summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron>1999-09-20 00:51:41 +0000
committertron <tron>1999-09-20 00:51:41 +0000
commit9485175b9fc5926745b16fa399316f7c8119b9be (patch)
tree2042887c6afd4d04e568ac2b766be68430f1047d
parent8a5cbd71717f7cf61c018bb9dea2ebf8aa27c99e (diff)
downloadpkgsrc-9485175b9fc5926745b16fa399316f7c8119b9be.tar.gz
Assign "DIST_SUBDIR", "MIRROR_DISTFILE", "WRKSRC" and "MANCOMPRESSED" with
"?=" so that they can be overwritten by a package.
-rw-r--r--emulators/suse_linux/suse.mk17
1 files changed, 10 insertions, 7 deletions
diff --git a/emulators/suse_linux/suse.mk b/emulators/suse_linux/suse.mk
index f06a4d12ae2..ddc68ddfe12 100644
--- a/emulators/suse_linux/suse.mk
+++ b/emulators/suse_linux/suse.mk
@@ -1,17 +1,16 @@
-# $NetBSD: suse.mk,v 1.1 1999/09/19 23:58:42 tron Exp $
+# $NetBSD: suse.mk,v 1.2 1999/09/20 00:51:41 tron Exp $
MASTER_SITE_SUSE= ftp://ftp.suse.com/pub/suse/i386/6.1/suse/ \
ftp://ftp.cs.unm.edu/mirrors/SuSE61/suse/
-DIST_SUBDIR= suse
-MIRROR_DISTFILE= no
+DIST_SUBDIR?= suse
+MIRROR_DISTFILE?= no
-WRKSRC= ${WRKDIR}
-MANCOMPRESSED= yes
+WRKSRC?= ${WRKDIR}
+MANCOMPRESSED?= yes
EMULSUBDIR= emul/linux
EMULDIR= ${PREFIX}/${EMULSUBDIR}
-EMULLDCONFIG=
RPM2PKG= ${PREFIX}/sbin/rpm2pkg
@@ -25,7 +24,11 @@ RPM2PKGARGS+= ${DISTDIR}/${DIST_SUBDIR}/${TEMP}
.if !target(do-install)
do-install:
- @${RM} -f ${PLIST_SRC}
+ @if [ -f ${PKGDIR}/PLIST ]; then \
+ ${CP} ${PKGDIR}/PLIST ${PLIST_SRC}; \
+ else \
+ ${RM} -f ${PLIST_SRC}; \
+ fi
${RPM2PKG} ${RPM2PKGARGS}
@if ${GREP} -q 'lib.*\.so' ${PLIST_SRC}; then \
${ECHO_MSG} "===> [Automatic Linux shared object handling]"; \