diff options
Diffstat (limited to 'emulators/suse_base')
-rw-r--r-- | emulators/suse_base/Makefile | 3 | ||||
-rwxr-xr-x | emulators/suse_base/scripts/rpm2pkg.sh | 12 |
2 files changed, 10 insertions, 5 deletions
diff --git a/emulators/suse_base/Makefile b/emulators/suse_base/Makefile index 065f71c9961..052cdcb7707 100644 --- a/emulators/suse_base/Makefile +++ b/emulators/suse_base/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 1999/05/17 00:36:44 tron Exp $ +# $NetBSD: Makefile,v 1.3 1999/05/17 01:54:01 tron Exp $ DISTNAME= suse_base-6.1 CATEGORIES= emulators @@ -21,7 +21,6 @@ NO_PATCH= yes NO_CONFIGURE= yes NO_WRKSUBDIR= yes MANCOMPRESSED= yes -MANZ= yes INSTALL_FILE= ${WRKDIR}/INSTALL PLIST_SRC= ${WRKDIR}/PLIST_DYNAMIC diff --git a/emulators/suse_base/scripts/rpm2pkg.sh b/emulators/suse_base/scripts/rpm2pkg.sh index 15657c7ffb8..83ef563681a 100755 --- a/emulators/suse_base/scripts/rpm2pkg.sh +++ b/emulators/suse_base/scripts/rpm2pkg.sh @@ -24,9 +24,15 @@ done find @@EMULSUBDIR@@/* -type l | sort | (while read LINK do - set - X `file $LINK`; \ - echo "@exec ln -s $6 %D/$LINK" - echo "@unexec rm -f %D/$LINK" + set - X `file $LINK` + if cd `dirname $LINK` && test -f $6 + then + echo $LINK + else + echo "@exec ln -s $6 %D/$LINK" + echo "@unexec rm -f %D/$LINK" + fi + cd $TMPDIR done) find @@EMULSUBDIR@@/* -type d | sort -r | awk '{print("@unexec rmdir %D/"$1" >/dev/null 2>&1 || true")}') >$PLIST |