pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/emulators/suse91_linux Allow stripping 0 leading direc...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/49ce58ce45c6
branches:  trunk
changeset: 483280:49ce58ce45c6
user:      markd <markd%pkgsrc.org@localhost>
date:      Wed Nov 10 09:04:08 2004 +0000

description:
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:

 emulators/suse91_linux/Makefile.common |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (22 lines):

diff -r 52c34a2bfb33 -r 49ce58ce45c6 emulators/suse91_linux/Makefile.common
--- a/emulators/suse91_linux/Makefile.common    Wed Nov 10 08:56:16 2004 +0000
+++ b/emulators/suse91_linux/Makefile.common    Wed Nov 10 09:04:08 2004 +0000
@@ -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 @@
 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



Home | Main Index | Thread Index | Old Index