1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00

- Don't abort installation when we fail to make device

PR:		ports/80592
Submitted by:	Frank W. Josellis <frank@dynamical-systems.org> (maintainer)
This commit is contained in:
Pav Lucistnik 2005-05-04 14:25:52 +00:00
parent 6119440a38
commit 9fcf507f17
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=134609
2 changed files with 23 additions and 1 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= pcfclock
PORTVERSION= 0.44
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= http://www-stud.ims.uni-stuttgart.de/~voegelas/pcfclock/
@ -21,6 +22,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
${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL

View File

@ -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