From 2b02a828296cf38aebd4dc162260e19f19704b80 Mon Sep 17 00:00:00 2001 From: markd Date: Wed, 10 Nov 2004 09:04:08 +0000 Subject: 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. --- emulators/suse91_linux/Makefile.common | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'emulators') 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 -- cgit v1.2.3