pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/emulators Only invoke MAKEDEV to create devices if tha...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ae9f358a8f70
branches:  trunk
changeset: 532589:ae9f358a8f70
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Thu Aug 23 21:50:23 2007 +0000

description:
Only invoke MAKEDEV to create devices if that script exists (which
doesn't on FreeBSD-6.x).

This fixes PR pkg/34817 and PR pkg/36081.

diffstat:

 emulators/suse100_base/INSTALL |  9 +++++----
 emulators/suse91_base/INSTALL  |  9 +++++----
 2 files changed, 10 insertions(+), 8 deletions(-)

diffs (46 lines):

diff -r dd68b8be39da -r ae9f358a8f70 emulators/suse100_base/INSTALL
--- a/emulators/suse100_base/INSTALL    Thu Aug 23 21:32:56 2007 +0000
+++ b/emulators/suse100_base/INSTALL    Thu Aug 23 21:50:23 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: INSTALL,v 1.7 2007/07/30 14:42:43 jlam Exp $
+# $NetBSD: INSTALL,v 1.8 2007/08/23 21:50:23 jlam Exp $
 
 # Generate a +ROOT_ACTIONS script that runs certain actions that require
 # superuser privileges.
@@ -57,9 +57,10 @@
                ${CP} /dev/MAKEDEV ${EMULDIR}/dev
        ${TEST} ! -f /dev/MAKEDEV.subr ||
                ${CP} /dev/MAKEDEV.subr ${EMULDIR}/dev
-       ( cd ${EMULDIR}/dev &&
-         ${SH} ./MAKEDEV std audio &&
-         ${LN} -fs sound dsp )
+       ${TEST} ! -f ${EMULDIR}/dev/MAKEDEV ||
+               ( cd ${EMULDIR}/dev &&
+                 ${SH} ./MAKEDEV std audio &&
+                 ${LN} -fs sound dsp )
 
        # Create the appropriate symlink so that the kernel will
        # find the installed files.
diff -r dd68b8be39da -r ae9f358a8f70 emulators/suse91_base/INSTALL
--- a/emulators/suse91_base/INSTALL     Thu Aug 23 21:32:56 2007 +0000
+++ b/emulators/suse91_base/INSTALL     Thu Aug 23 21:50:23 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: INSTALL,v 1.6 2007/07/30 14:42:43 jlam Exp $
+# $NetBSD: INSTALL,v 1.7 2007/08/23 21:50:23 jlam Exp $
 
 # Generate a +ROOT_ACTIONS script that runs certain actions that require
 # superuser privileges.
@@ -57,9 +57,10 @@
                ${CP} /dev/MAKEDEV ${EMULDIR}/dev
        ${TEST} ! -f /dev/MAKEDEV.subr ||
                ${CP} /dev/MAKEDEV.subr ${EMULDIR}/dev
-       ( cd ${EMULDIR}/dev &&
-         ${SH} ./MAKEDEV std audio &&
-         ${LN} -fs sound dsp )
+       ${TEST} ! -f ${EMULDIR}/dev/MAKEDEV ||
+               ( cd ${EMULDIR}/dev &&
+                 ${SH} ./MAKEDEV std audio &&
+                 ${LN} -fs sound dsp )
 
        # Create the appropriate symlink so that the kernel will
        # find the installed files.



Home | Main Index | Thread Index | Old Index