summaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>1999-05-17 02:16:07 +0000
committertron <tron@pkgsrc.org>1999-05-17 02:16:07 +0000
commit0b7a57bce88ca7d42890128f59eee6c0ed0c7289 (patch)
tree741f27144158c925df6c13bd9fab666fb48ffada /emulators
parent79eeaccfb14eb958d5caa879e4b9a80411d6a97e (diff)
downloadpkgsrc-0b7a57bce88ca7d42890128f59eee6c0ed0c7289.tar.gz
Use "tar" to copy files because "cp -Rp" clobbers the directory
permissions from the "aaa_dir" RPM file.
Diffstat (limited to 'emulators')
-rw-r--r--emulators/suse_base/Makefile3
-rwxr-xr-xemulators/suse_base/scripts/rpm2pkg.sh2
2 files changed, 3 insertions, 2 deletions
diff --git a/emulators/suse_base/Makefile b/emulators/suse_base/Makefile
index 052cdcb7707..148f9071449 100644
--- a/emulators/suse_base/Makefile
+++ b/emulators/suse_base/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 1999/05/17 01:54:01 tron Exp $
+# $NetBSD: Makefile,v 1.4 1999/05/17 02:16:07 tron Exp $
DISTNAME= suse_base-6.1
CATEGORIES= emulators
@@ -33,6 +33,7 @@ do-build:
${SCRIPTDIR}/*.sh; do \
${SED} -e 's#@@EMULDIR@@#${EMULDIR}#g' \
-e 's#@@EMULSUBDIR@@#${EMULSUBDIR}#g' \
+ -e 's#@@GTAR@@#${GTAR}#g' \
-e 's#@@PREFIX@@#${PREFIX}#g' \
<$$FILE >${WRKDIR}/`basename $$FILE`; \
done
diff --git a/emulators/suse_base/scripts/rpm2pkg.sh b/emulators/suse_base/scripts/rpm2pkg.sh
index 83ef563681a..5b7a68846cd 100755
--- a/emulators/suse_base/scripts/rpm2pkg.sh
+++ b/emulators/suse_base/scripts/rpm2pkg.sh
@@ -37,7 +37,7 @@ done
find @@EMULSUBDIR@@/* -type d | sort -r |
awk '{print("@unexec rmdir %D/"$1" >/dev/null 2>&1 || true")}') >$PLIST
-cp -Rp $TMPDIR/@@EMULSUBDIR@@/* @@EMULDIR@@
+@@GTAR@@ cCf $TMPDIR - @@EMULSUBDIR@@ | @@GTAR@@ xCf @@PREFIX@@ -
cat $PLIST