summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorasami <asami@FreeBSD.org>1995-03-27 13:11:18 +0000
committerasami <asami@FreeBSD.org>1995-03-27 13:11:18 +0000
commit56494876c181af4f161b4d2a11bc686d45f70bd7 (patch)
treecd589d9187750fc2098898679a79ca1fa763468c /share
parentb8b34df69c1cffc2d2ff84bc3310dfe0244e395b (diff)
downloadFreeBSD-src-56494876c181af4f161b4d2a11bc686d45f70bd7.zip
FreeBSD-src-56494876c181af4f161b4d2a11bc686d45f70bd7.tar.gz
Added more standard package suport file names. INSTALL for the
installation script, DEINSTALL for the deinstallation script, and REQ for the requirement script, will be added with appropriate flags to PKG_ARGS if they exist under pkg/.
Diffstat (limited to 'share')
-rw-r--r--share/mk/bsd.port.mk15
1 files changed, 13 insertions, 2 deletions
diff --git a/share/mk/bsd.port.mk b/share/mk/bsd.port.mk
index fa28a18..282795e 100644
--- a/share/mk/bsd.port.mk
+++ b/share/mk/bsd.port.mk
@@ -3,7 +3,7 @@
# bsd.port.mk - 940820 Jordan K. Hubbard.
# This file is in the public domain.
#
-# $Id: bsd.port.mk,v 1.124 1995/03/22 21:46:04 jkh Exp $
+# $Id: bsd.port.mk,v 1.125 1995/03/23 20:42:42 gpalmer Exp $
#
# Please view me with 4 column tabs!
@@ -206,7 +206,18 @@ EXTRACT_BEFORE_ARGS?= -xzf
.endif
PKG_CMD?= pkg_create
-PKG_ARGS?= -v -c ${PKGDIR}/COMMENT -d ${PKGDIR}/DESCR -f ${PKGDIR}/PLIST -p ${PREFIX}
+.if !defined(PKG_ARGS)
+PKG_ARGS= -v -c ${PKGDIR}/COMMENT -d ${PKGDIR}/DESCR -f ${PKGDIR}/PLIST -p ${PREFIX}
+.if exists(${PKGDIR}/INSTALL)
+PKG_ARGS+= -i ${PKGDIR}/INSTALL
+.endif
+.if exists(${PKGDIR}/DEINSTALL)
+PKG_ARGS+= -k ${PKGDIR}/DEINSTALL
+.endif
+.if exists(${PKGDIR}/REQ)
+PKG_ARGS+= -r ${PKGDIR}/REQ
+.endif
+.endif
PKG_SUFX?= .tgz
ECHO_MSG?= echo
OpenPOWER on IntegriCloud