diff options
author | krion <krion@FreeBSD.org> | 2004-06-16 22:56:17 +0800 |
---|---|---|
committer | krion <krion@FreeBSD.org> | 2004-06-16 22:56:17 +0800 |
commit | a6128a32ae9cb4bf7b040ceb425df52af79b4325 (patch) | |
tree | 7628fdc0b6d0d89238385912bcc3668fd0d73e99 /sysutils | |
parent | 8faed9d9a0a7f62bec1b6febe1717a90bca03a05 (diff) | |
download | freebsd-ports-gnome-a6128a32ae9cb4bf7b040ceb425df52af79b4325.tar.gz freebsd-ports-gnome-a6128a32ae9cb4bf7b040ceb425df52af79b4325.tar.zst freebsd-ports-gnome-a6128a32ae9cb4bf7b040ceb425df52af79b4325.zip |
Update to version 0.2p2
PR: ports/67980
Submitted by: maintainer
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/uptimec/Makefile | 11 | ||||
-rw-r--r-- | sysutils/uptimec/distinfo | 4 | ||||
-rw-r--r-- | sysutils/uptimec/files/uptimec.sh | 6 |
3 files changed, 14 insertions, 7 deletions
diff --git a/sysutils/uptimec/Makefile b/sysutils/uptimec/Makefile index a70fb0182682..fe50275f3f74 100644 --- a/sysutils/uptimec/Makefile +++ b/sysutils/uptimec/Makefile @@ -6,7 +6,7 @@ # PORTNAME= uptimec -PORTVERSION= 0.2 +PORTVERSION= 0.2p2 CATEGORIES= sysutils MASTER_SITES= http://www.mrEriksson.net/downloads/ \ ftp://ftp.mrEriksson.net/pub/uptimec/ @@ -17,14 +17,17 @@ COMMENT= Client for Uptime Project GNU_CONFIGURE= yes CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL} USE_GMAKE= yes +USE_RC_SUBR= yes PLIST_FILES= sbin/uptimec etc/uptimecrc.sample etc/rc.d/uptimec.sh PORTDOCS= README COPYING ChangeLog INSTALL protocol.txt +RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR} + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/uptimec ${PREFIX}/sbin ${INSTALL_DATA} ${MASTERDIR}/files/uptimecrc.sample ${PREFIX}/etc - ${INSTALL_SCRIPT} ${MASTERDIR}/files/uptimec.sh ${PREFIX}/etc/rc.d + ${INSTALL_SCRIPT} ${WRKSRC}/uptimec.sh ${PREFIX}/etc/rc.d .if !defined(NOPORTDOCS) ${MKDIR} ${DOCSDIR} .for i in ${PORTDOCS} @@ -32,6 +35,10 @@ do-install: .endfor .endif +post-extract: + @${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \ + ${FILESDIR}/uptimec.sh > ${WRKSRC}/uptimec.sh + post-install: @${SED} -e 's,%%LOCALBASE%%,${LOCALBASE},' ${PKGMESSAGE} diff --git a/sysutils/uptimec/distinfo b/sysutils/uptimec/distinfo index ae85e94e2193..8eeffa576dd5 100644 --- a/sysutils/uptimec/distinfo +++ b/sysutils/uptimec/distinfo @@ -1,2 +1,2 @@ -MD5 (uptimec-0.2.tar.gz) = 42289c40bf7dc8e1110bc70ed8d664f7 -SIZE (uptimec-0.2.tar.gz) = 73195 +MD5 (uptimec-0.2p2.tar.gz) = 944d05c4c227c3cd2d1eae4d6e4d532a +SIZE (uptimec-0.2p2.tar.gz) = 81879 diff --git a/sysutils/uptimec/files/uptimec.sh b/sysutils/uptimec/files/uptimec.sh index 994e17e4c3c1..82a1b92a135b 100644 --- a/sysutils/uptimec/files/uptimec.sh +++ b/sysutils/uptimec/files/uptimec.sh @@ -14,13 +14,13 @@ #uptimec_enable="NO" # -. /etc/rc.subr +. %%RC_SUBR%% name=uptimec rcvar=`set_rcvar` -command=/usr/local/sbin/uptimec -required_files=/usr/local/etc/uptimecrc +command=%%PREFIX%%/sbin/uptimec +required_files=%%PREFIX%%/etc/uptimecrc # default to enable uptimec_enable=${uptimec_enable:-"YES"} |