diff options
author | tron <tron@pkgsrc.org> | 1999-05-17 01:54:01 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 1999-05-17 01:54:01 +0000 |
commit | 79eeaccfb14eb958d5caa879e4b9a80411d6a97e (patch) | |
tree | f30a22399bb8f6191cfead53185a2029689b4ac9 /emulators | |
parent | 708b192ed80072802187bb4dd7dc7e4fc1548466 (diff) | |
download | pkgsrc-79eeaccfb14eb958d5caa879e4b9a80411d6a97e.tar.gz |
Handle symlinks pointing to files smarter in automatically created
package list so that decompressing the manual pages will work.
Diffstat (limited to 'emulators')
-rw-r--r-- | emulators/suse_base/Makefile | 3 | ||||
-rwxr-xr-x | emulators/suse_base/scripts/rpm2pkg.sh | 12 | ||||
-rw-r--r-- | emulators/suse_libc5/Makefile | 3 | ||||
-rw-r--r-- | emulators/suse_x11/Makefile | 3 |
4 files changed, 12 insertions, 9 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 diff --git a/emulators/suse_libc5/Makefile b/emulators/suse_libc5/Makefile index ee0fc53d6a6..01b5579dc92 100644 --- a/emulators/suse_libc5/Makefile +++ b/emulators/suse_libc5/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 1999/05/17 00:52:31 thorpej Exp $ +# $NetBSD: Makefile,v 1.4 1999/05/17 01:54:01 tron Exp $ DISTNAME= suse_libc5-6.1 CATEGORIES= emulators @@ -20,7 +20,6 @@ NO_PATCH= yes NO_CONFIGURE= yes NO_WRKSUBDIR= yes MANCOMPRESSED= yes -MANZ= yes PLIST_SRC= ${WRKDIR}/PLIST_DYNAMIC EMULSUBDIR= emul/linux diff --git a/emulators/suse_x11/Makefile b/emulators/suse_x11/Makefile index 2507af79f90..02c9a7f7e5c 100644 --- a/emulators/suse_x11/Makefile +++ b/emulators/suse_x11/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_x11-6.1 CATEGORIES= emulators @@ -20,7 +20,6 @@ NO_PATCH= yes NO_CONFIGURE= yes NO_WRKSUBDIR= yes MANCOMPRESSED= yes -MANZ= yes PLIST_SRC= ${WRKDIR}/PLIST_DYNAMIC EMULSUBDIR= emul/linux |