ports/79753: Update port: sysutils/uptimec to 0.2p5

KATO Tsuguru tkato432 at yahoo.com
Sun Apr 10 14:10:22 UTC 2005


>Number:         79753
>Category:       ports
>Synopsis:       Update port: sysutils/uptimec to 0.2p5
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr 10 14:10:17 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 4.11-RELEASE i386
>Organization:
>Environment:
>Description:
- Update to version 0.2p5

New file:
files/pkg-message.in
files/uptimec.sh.in

Remove file:
files/uptimec.sh
pkg-message

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/sysutils/uptimec/Makefile sysutils/uptimec/Makefile
--- /usr/ports/sysutils/uptimec/Makefile	Wed Oct 13 02:43:22 2004
+++ sysutils/uptimec/Makefile	Thu Mar 24 23:17:13 2005
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	uptimec
-PORTVERSION=	0.2p2
+PORTVERSION=	0.2p5
 CATEGORIES=	sysutils
 MASTER_SITES=	http://www.mrEriksson.net/downloads/ \
 		ftp://ftp.mrEriksson.net/pub/uptimec/
@@ -14,32 +14,29 @@
 MAINTAINER=	ports at FreeBSD.org
 COMMENT=	Client for Uptime Project
 
-GNU_CONFIGURE=	yes
-CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
-USE_GMAKE=	yes
 USE_RC_SUBR=	yes
+USE_REINPLACE=	yes
+USE_GMAKE=	yes
+GNU_CONFIGURE=	yes
+CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
 
 PLIST_FILES=	sbin/uptimec etc/uptimecrc.sample etc/rc.d/uptimec.sh
-PORTDOCS=	README COPYING ChangeLog INSTALL protocol.txt
+PORTDOCS=	README ChangeLog INSTALL protocol.txt
 
-RC_SCRIPTS_SUB=	PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
+SUB_FILES=	pkg-message uptimec.sh
+
+post-patch:
+	@${REINPLACE_CMD} -e 's|^CFLAGS=|#CFLAGS=|g' ${WRKSRC}/configure
 
 do-install:
-		${INSTALL_PROGRAM} ${WRKSRC}/uptimec ${PREFIX}/sbin
-		${INSTALL_DATA} ${MASTERDIR}/files/uptimecrc.sample ${PREFIX}/etc
-		${INSTALL_SCRIPT} ${WRKSRC}/uptimec.sh ${PREFIX}/etc/rc.d
+	${INSTALL_PROGRAM} ${WRKSRC}/uptimec ${PREFIX}/sbin
+	${INSTALL_DATA} ${FILESDIR}/uptimecrc.sample ${PREFIX}/etc
+	${INSTALL_SCRIPT} ${WRKDIR}/uptimec.sh ${PREFIX}/etc/rc.d
 .if !defined(NOPORTDOCS)
-		${MKDIR} ${DOCSDIR}
+	@${MKDIR} ${DOCSDIR}
 .for i in ${PORTDOCS}
-		${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
 .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}
 
 .include <bsd.port.mk>
diff -urN /usr/ports/sysutils/uptimec/distinfo sysutils/uptimec/distinfo
--- /usr/ports/sysutils/uptimec/distinfo	Thu Jun 17 01:26:19 2004
+++ sysutils/uptimec/distinfo	Thu Mar 24 23:09:11 2005
@@ -1,2 +1,2 @@
-MD5 (uptimec-0.2p2.tar.gz) = 944d05c4c227c3cd2d1eae4d6e4d532a
-SIZE (uptimec-0.2p2.tar.gz) = 81879
+MD5 (uptimec-0.2p5.tar.gz) = 621b5c4c421d5d1ce892cb730ca3d359
+SIZE (uptimec-0.2p5.tar.gz) = 82940
diff -urN /usr/ports/sysutils/uptimec/files/pkg-message.in sysutils/uptimec/files/pkg-message.in
--- /usr/ports/sysutils/uptimec/files/pkg-message.in	Thu Jan  1 09:00:00 1970
+++ sysutils/uptimec/files/pkg-message.in	Thu Mar 24 23:03:51 2005
@@ -0,0 +1,13 @@
+Tips for participating in Uptime contest:
+
+  - You need to obtain hostid and password on project home page
+    http://mreriksson.net/uptimes/
+    
+  - Enter hostid and password into %%LOCALBASE%%/etc/uptimecrc
+
+  - client uses UDP protocol for talking to server on port 2050
+
+  You may need to open this port in firewall:
+  ipfw add allow udp from any to any dst-port 2050 out keep-state
+   
+Radim Kolar   
diff -urN /usr/ports/sysutils/uptimec/files/uptimec.sh sysutils/uptimec/files/uptimec.sh
--- /usr/ports/sysutils/uptimec/files/uptimec.sh	Thu Jun 17 01:26:19 2004
+++ sysutils/uptimec/files/uptimec.sh	Thu Jan  1 09:00:00 1970
@@ -1,52 +0,0 @@
-#!/bin/sh
-#
-# $FreeBSD: ports/sysutils/uptimec/files/uptimec.sh,v 1.3 2004/06/16 14:56:17 krion Exp $
-#
-
-# PROVIDE: uptimec
-# REQUIRE: LOGIN
-# KEYWORD: FreeBSD shutdown
-
-# Uptimec is enabled by default, if you have configuration file
-#
-# Add the following line to /etc/rc.conf to disable uptimec:
-#
-#uptimec_enable="NO"
-#
-
-. %%RC_SUBR%%
-
-name=uptimec
-rcvar=`set_rcvar`
-
-command=%%PREFIX%%/sbin/uptimec
-required_files=%%PREFIX%%/etc/uptimecrc
-
-# default to enable
-uptimec_enable=${uptimec_enable:-"YES"}
-uptimec_user=${uptimec_user:-"nobody"}
-
-load_rc_config $name
-
-#if no uptimec_flags, parse rcfile
-if [ -z "$uptimec_flags" -a -r $required_files ]; then
-    #get hostid from configuration file
-    hostid=`awk -F '( |\t)*=( |\t)*' '/^HOSTID/ { print $2;exit 0;}' $required_files`
-    password=`awk -F '( |\t)*=( |\t)*' '/^PASSWORD/ { print $2;exit 0;}' $required_files`
-    server=`awk -F '( |\t)*=( |\t)*' '/^SERVER/ { print $2;exit 0;}' $required_files`
-    port=`awk -F '( |\t)*=( |\t)*' '/^PORT/ { print $2;exit 0;}' $required_files`
-    if [ -z "$hostid" -o -z "$password" ]; then
-	exit 0;
-    fi
-    if [ -n "$server" ]; then
-	uptimec_flags="-s $server"
-    fi
-    if [ -n "$port" ]; then
-	uptimec_flags="$uptimec_flags -P $port"
-    fi	
-    uptimec_flags="$uptimec_flags -i $hostid -p $password" 	
-else
-    exit 0;
-fi    
-
-run_rc_command "$1"
diff -urN /usr/ports/sysutils/uptimec/files/uptimec.sh.in sysutils/uptimec/files/uptimec.sh.in
--- /usr/ports/sysutils/uptimec/files/uptimec.sh.in	Thu Jan  1 09:00:00 1970
+++ sysutils/uptimec/files/uptimec.sh.in	Thu Mar 24 23:19:37 2005
@@ -0,0 +1,52 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: uptimec
+# REQUIRE: LOGIN
+# KEYWORD: FreeBSD shutdown
+
+# Uptimec is enabled by default, if you have configuration file
+#
+# Add the following line to /etc/rc.conf to disable uptimec:
+#
+#uptimec_enable="NO"
+#
+
+. %%RC_SUBR%%
+
+name=uptimec
+rcvar=`set_rcvar`
+
+command=%%PREFIX%%/sbin/uptimec
+required_files=%%PREFIX%%/etc/uptimecrc
+
+# default to enable
+uptimec_enable=${uptimec_enable:-"YES"}
+uptimec_user=${uptimec_user:-"nobody"}
+
+load_rc_config $name
+
+#if no uptimec_flags, parse rcfile
+if [ -z "$uptimec_flags" -a -r $required_files ]; then
+    #get hostid from configuration file
+    hostid=`awk -F '( |\t)*=( |\t)*' '/^HOSTID/ { print $2;exit 0;}' $required_files`
+    password=`awk -F '( |\t)*=( |\t)*' '/^PASSWORD/ { print $2;exit 0;}' $required_files`
+    server=`awk -F '( |\t)*=( |\t)*' '/^SERVER/ { print $2;exit 0;}' $required_files`
+    port=`awk -F '( |\t)*=( |\t)*' '/^PORT/ { print $2;exit 0;}' $required_files`
+    if [ -z "$hostid" -o -z "$password" ]; then
+	exit 0;
+    fi
+    if [ -n "$server" ]; then
+	uptimec_flags="-s $server"
+    fi
+    if [ -n "$port" ]; then
+	uptimec_flags="$uptimec_flags -P $port"
+    fi	
+    uptimec_flags="$uptimec_flags -i $hostid -p $password" 	
+else
+    exit 0;
+fi    
+
+run_rc_command "$1"
diff -urN /usr/ports/sysutils/uptimec/pkg-message sysutils/uptimec/pkg-message
--- /usr/ports/sysutils/uptimec/pkg-message	Tue Apr  6 22:13:58 2004
+++ sysutils/uptimec/pkg-message	Thu Jan  1 09:00:00 1970
@@ -1,13 +0,0 @@
-Tips for participating in Uptime contest:
-
-  - You need to obtain hostid and password on project home page
-    http://mreriksson.net/uptimes/
-    
-  - Enter hostid and password into %%LOCALBASE%%/etc/uptimecrc
-
-  - client uses UDP protocol for talking to server on port 2050
-
-  You may need to open this port in firewall:
-  ipfw add allow udp from any to any dst-port 2050 out keep-state
-   
-Radim Kolar   
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list