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
commit2b02a828296cf38aebd4dc162260e19f19704b80 (patch)
treeeabf6588df7b23d1e9e86c7377423f01a9528255 /emulators
parentee2f32408f7526d3fe9f6874cce47fbb2eae4240 (diff)
downloadpkgsrc-2b02a828296cf38aebd4dc162260e19f19704b80.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