Date: Tue, 3 May 2005 23:00:41 +0200 (CEST) From: "Frank W. Josellis" <frank@dynamical-systems.org> To: FreeBSD-gnats-submit@FreeBSD.org Cc: kris@obsecurity.org Subject: ports/80592: Update port: sysutils/pcfclock revised Message-ID: <200505032100.j43L0fmi000619@achilles.tractrix.org> Resent-Message-ID: <200505032110.j43LA11O063553@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200505032100.j43L0fmi000619>