ports/126074: [maintainer update] Make sysutiles/uptimed create a needed working directory
Andy Fawcett
andy at athame.co.uk
Tue Jul 29 13:40:02 UTC 2008
>Number: 126074
>Category: ports
>Synopsis: [maintainer update] Make sysutiles/uptimed create a needed working directory
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Jul 29 13:40:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Andy Fawcett
>Release: FreeBSD 7.0-STABLE amd64
>Organization:
>Environment:
System: FreeBSD 7.0-STABLE #7: Tue Jun 3 07:39:48 EEST 2008
root at ping.int.athame.co.uk:/usr/obj/usr/src/sys/IGOR
>Description:
uptimed needs /var/spool/uptimed to be created for it to function correctly.
This update ensures that the directory is created when making a build from ports, or installing from a package.
>How-To-Repeat:
>Fix:
--- uptimed.diff begins here ---
diff -ruN uptimed-orig/Makefile uptimed/Makefile
--- uptimed-orig/Makefile 2008-07-29 15:12:50.000000000 +0300
+++ uptimed/Makefile 2008-07-29 15:14:38.000000000 +0300
@@ -6,6 +6,7 @@
PORTNAME= uptimed
PORTVERSION= 0.3.12
+PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= http://podgorny.cz/uptimed/releases/
@@ -27,6 +28,7 @@
post-install:
${MKDIR} ${PREFIX}/www/cgi-bin
+ ${MKDIR} /var/spool/uptimed
${INSTALL_PROGRAM} ${PREFIX}/bin/uprecords ${PREFIX}/www/cgi-bin/uprecords.cgi
${INSTALL_DATA} ${WRKSRC}/sample-cgi/* ${PREFIX}/www/cgi-bin/
diff -ruN uptimed-orig/pkg-plist uptimed/pkg-plist
--- uptimed-orig/pkg-plist 2008-07-29 15:12:50.000000000 +0300
+++ uptimed/pkg-plist 2008-07-29 15:33:49.000000000 +0300
@@ -1,3 +1,4 @@
+ at exec mkdir -p /var/spool/uptimed
bin/uprecords
etc/uptimed.conf-dist
lib/libuptimed.a
@@ -10,3 +11,4 @@
www/cgi-bin/uprecords.footer
www/cgi-bin/uprecords.header
@dirrmtry www/cgi-bin
+ at dirrmtry /var/spool/uptimed
--- uptimed.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list