ports/80592: Update port: sysutils/pcfclock revised
Frank W. Josellis
frank at dynamical-systems.org
Tue May 3 21:10:09 UTC 2005
>Number: 80592
>Category: ports
>Synopsis: Update port: sysutils/pcfclock revised
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Tue May 03 21:10:01 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Frank W. Josellis
>Release: FreeBSD 4.11-STABLE i386
>Organization:
>Environment:
System: FreeBSD achilles.tractrix.org 4.11-STABLE FreeBSD 4.11-STABLE #2: Sun May 1 12:35:10 CEST 2005 root at achilles.tractrix.org:/usr/obj/usr/src/sys/ACHILLES i386
>Description:
Minor fixes to prevent errors from 'make install'.
>How-To-Repeat:
>Fix:
--- pcfclock_1.patch begins here ---
diff -Nur pcfclock.bak/Makefile pcfclock/Makefile
--- pcfclock.bak/Makefile Thu Apr 28 14:20:18 2005
+++ pcfclock/Makefile Tue May 3 15:40:30 2005
@@ -7,6 +7,7 @@
PORTNAME= pcfclock
PORTVERSION= 0.44
+PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= http://www-stud.ims.uni-stuttgart.de/~voegelas/pcfclock/
@@ -20,6 +21,14 @@
PLIST_FILES= sbin/pcfdate
.include <bsd.port.pre.mk>
+
+.if ${ARCH} == "alpha"
+IGNORE= Not supported for architecture ${ARCH}
+.endif
+
+.if ${OSVERSION} < 400000
+IGNORE= Not supported for versions prior to FreeBSD 4.0
+.endif
post-install:
.if ${OSVERSION} < 500000
diff -Nur pcfclock.bak/pkg-install pcfclock/pkg-install
--- pcfclock.bak/pkg-install Thu Apr 28 14:20:18 2005
+++ pcfclock/pkg-install Tue May 3 15:45:47 2005
@@ -2,6 +2,19 @@
case $2 in
POST-INSTALL)
- [ -c /dev/pcfclock0 ] || ( cd /dev && ./MAKEDEV pcfclock0 )
+ if [ ! -c /dev/pcfclock0 ]; then
+ rv=1
+ if [ -x /dev/MAKEDEV ]; then
+ ( cd /dev && ./MAKEDEV pcfclock0 )
+ rv=$?
+ fi
+
+ if [ ${rv} = 0 ]; then
+ echo "$2: Device special file /dev/pcfclock0 created"
+ else
+ echo "$2: Unexpected failure creating /dev/pcfclock0"
+ echo "$2: Try 'cd /dev ; mknod pcfclock0 c 140 0 root:wheel'"
+ fi
+ fi
;;
esac
--- pcfclock_1.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list