View | Details | Raw Unified | Return to bug 138366 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-3 / +17 lines)
Lines 5-14 Link Here
5
# $FreeBSD: ports/benchmarks/thrulay/Makefile,v 1.3 2008/07/25 14:34:11 pav Exp $
5
# $FreeBSD: ports/benchmarks/thrulay/Makefile,v 1.3 2008/07/25 14:34:11 pav Exp $
6
6
7
PORTNAME=	thrulay
7
PORTNAME=	thrulay
8
PORTVERSION=	0.8
8
PORTVERSION=	0.9
9
CATEGORIES=	benchmarks net ipv6
9
CATEGORIES=	benchmarks net ipv6
10
MASTER_SITES=	http://unc.dl.sourceforge.net/sourceforge/thrulay/ \
10
MASTER_SITES=	SF \
11
		http://internap.dl.sourceforge.net/sourceforge/thrulay/ \
12
		http://www.internet2.edu/~shalunov/thrulay/
11
		http://www.internet2.edu/~shalunov/thrulay/
13
12
14
MAINTAINER=	shalunov@shlang.com
13
MAINTAINER=	shalunov@shlang.com
Lines 19-30 Link Here
19
MANCOMPRESSED=	no
18
MANCOMPRESSED=	no
20
HAS_CONFIGURE=	yes
19
HAS_CONFIGURE=	yes
21
USE_GMAKE=	yes
20
USE_GMAKE=	yes
21
USE_LDCONFIG=	yes
22
23
PORTDOCS=	ChangeLog README thrulay-protocol.txt thrulay-index.html
24
25
post-patch:
26
	${REINPLACE_CMD} -e '922s,datarootdir,prefix,g' ${WRKSRC}/configure
22
27
23
post-install:
28
post-install:
29
	@${CP} ${WRKSRC}/doc/*.[ht]* ${WRKSRC}/
24
	${INSTALL_SCRIPT} ${FILESDIR}/thrulayd.sh.sample ${PREFIX}/etc/rc.d/
30
	${INSTALL_SCRIPT} ${FILESDIR}/thrulayd.sh.sample ${PREFIX}/etc/rc.d/
25
	@if [ ! -f ${PREFIX}/etc/rc.d/thrulayd.sh ]; then \
31
	@if [ ! -f ${PREFIX}/etc/rc.d/thrulayd.sh ]; then \
26
		${CP} -p ${PREFIX}/etc/rc.d/thrulayd.sh.sample \
32
		${CP} -p ${PREFIX}/etc/rc.d/thrulayd.sh.sample \
27
			${PREFIX}/etc/rc.d/thrulayd.sh ; \
33
			${PREFIX}/etc/rc.d/thrulayd.sh ; \
28
	fi
34
	fi
29
35
36
.if !defined(NOPORTDOCS)
37
	@${MKDIR} ${DOCSDIR}
38
.for docs in ${PORTDOCS}
39
	${INSTALL_DATA} ${WRKSRC}/${docs} ${DOCSDIR}
40
.endfor
41
.endif
42
	@${CAT} ${PKGMESSAGE}
43
30
.include <bsd.port.mk>
44
.include <bsd.port.mk>
(-)distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (thrulay-0.8.tar.gz) = 725fb13344608a652e818bcd16fe9ef6
1
MD5 (thrulay-0.9.tar.gz) = e7ada3c0634d2aa688299a434161f5c8
2
SHA256 (thrulay-0.8.tar.gz) = f118a16fe95aac3a93d430f5adf6e20d9437b759617b7596077897c5c4bba8b7
2
SHA256 (thrulay-0.9.tar.gz) = 373d5613dfe371f6b4f48fc853f6c27701b2981ba4100388c9881cb802d1780d
3
SIZE (thrulay-0.8.tar.gz) = 88881
3
SIZE (thrulay-0.9.tar.gz) = 370312
(-)pkg-message (-4 / +9 lines)
Lines 1-4 Link Here
1
The package consists of a client (thrulay) and a daemon (thrulayd).
1
**************************************************************************
2
The thrulay client is usable immediately.  The thrulayd deamon needs to be
2
*                                                                        *
3
started, which will happen automatically in the next boot cycle.  You may
3
* The package consists of a client (thrulay) and a daemon (thrulayd).    *
4
also start it manually by entering thrulayd as root.
4
* The thrulay client is usable immediately.                              *
5
*                                                                        *
6
* To run thrulayd from startup, add thrulayd_enable="YES"                * 
7
* in your /etc/rc.conf                                                   *
8
*                                                                        *
9
**************************************************************************
(-)pkg-plist (-1 / +7 lines)
Lines 1-5 Link Here
1
bin/thrulay
1
bin/thrulay
2
sbin/thrulayd
2
sbin/thrulayd
3
include/thrulay/client.h
4
include/thrulay/server.h
5
lib/libthrulay.a
6
lib/libthrulay.la
7
lib/libthrulay.so
8
lib/libthrulay.so.0
3
@unexec if cmp -s %D/etc/rc.d/thrulayd.sh.sample %D/etc/rc.d/thrulayd.sh; then rm -f %D/etc/rc.d/thrulayd.sh; fi
9
@unexec if cmp -s %D/etc/rc.d/thrulayd.sh.sample %D/etc/rc.d/thrulayd.sh; then rm -f %D/etc/rc.d/thrulayd.sh; fi
4
etc/rc.d/thrulayd.sh.sample
10
etc/rc.d/thrulayd.sh.sample
5
@exec if [ ! -f %D/etc/rc.d/thrulayd.sh ] ; then cp -p %D/%F %B/thrulayd.sh; fi
11
@dirrm include/thrulay
(-)files/thrulayd.sh.sample (-10 / +19 lines)
Lines 1-14 Link Here
1
#!/bin/sh
1
#!/bin/sh
2
2
3
thrulayd=/usr/local/sbin/thrulayd
3
# PROVIDE: thrulay
4
4
5
case "$1" in
5
# Add the following line to /etc/rc.conf to enable `thrulayd':
6
start)
6
#
7
	[ -x $thrulayd ] && $thrulayd && echo -n ' thrulayd'
7
#thrulayd_enable="YES"
8
	;;
8
#
9
*)
10
	echo "Usage: `basename $0` {start}" >&2
11
	;;
12
esac
13
9
14
exit 0
10
. /etc/rc.subr
11
12
name="thrulayd"
13
rcvar=`set_rcvar`
14
15
# read settings, set default values
16
load_rc_config "${name}"
17
: ${thrulayd_enable="NO"}
18
: ${thrulayd_directory="/usr/local/sbin"}
19
20
# path to your executable, might be bin, sbin, ...
21
command="${thrulayd_directory}/thrulayd"
22
23
run_rc_command "$1"

Return to bug 138366