summaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
authormarkd <markd@pkgsrc.org>2004-11-10 09:04:08 +0000
committermarkd <markd@pkgsrc.org>2004-11-10 09:04:08 +0000
commit5e10ca2f5e0eeb2c450449ce96d02a59e56d79fd (patch)
treeeabf6588df7b23d1e9e86c7377423f01a9528255 /emulators
parentecf3fb64ad7a936fb226e43d58cfd108475cb11f (diff)
downloadpkgsrc-5e10ca2f5e0eeb2c450449ce96d02a59e56d79fd.tar.gz
Allow stripping 0 leading directories from path names in rpm's. rpm2pkg
complains about "-s 0" so don't pass the argument at all in that case.
Diffstat (limited to 'emulators')
-rw-r--r--emulators/suse91_linux/Makefile.common8
1 files changed, 5 insertions, 3 deletions
diff --git a/emulators/suse91_linux/Makefile.common b/emulators/suse91_linux/Makefile.common
index e6df71885b0..c87e46cc66b 100644
--- a/emulators/suse91_linux/Makefile.common
+++ b/emulators/suse91_linux/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.5 2004/11/08 12:41:08 wiz Exp $
+# $NetBSD: Makefile.common,v 1.6 2004/11/10 09:04:08 markd Exp $
SUSE_VERSION= 9.1
@@ -31,8 +31,10 @@ BUILD_DEFS+= RPMIGNOREPATH
LDD?= ${TRUE}
RPM2PKGSTRIP?= 1
-RPM2PKGARGS= -d ${PREFIX} -f ${PLIST_SRC} -p ${EMULSUBDIR} \
- -s ${RPM2PKGSTRIP}
+RPM2PKGARGS= -d ${PREFIX} -f ${PLIST_SRC} -p ${EMULSUBDIR}
+.if empty(RPM2PKGSTRIP:M0)
+RPM2PKGARGS+= -s ${RPM2PKGSTRIP}
+.endif
.for TEMP in ${RPMIGNOREPATH}
RPM2PKGARGS+= -i ${TEMP}
.endfor