summaryrefslogtreecommitdiff
path: root/ports-mgmt/p5-FreeBSD-Portindex/Makefile
diff options
context:
space:
mode:
authorMatthew Seaman <matthew@FreeBSD.org>2013-09-27 14:26:32 +0000
committerMatthew Seaman <matthew@FreeBSD.org>2013-09-27 14:26:32 +0000
commit00bf041f4b5033433b6bebfe0deb753d2b99aad7 (patch)
treedc251550ae551242814abef511b1cc20334f970d /ports-mgmt/p5-FreeBSD-Portindex/Makefile
parentdevel/py-hgsubversion: allow staging (diff)
- stageify
- move post-install actions into new pkg-install script
Notes
Notes: svn path=/head/; revision=328480
Diffstat (limited to 'ports-mgmt/p5-FreeBSD-Portindex/Makefile')
-rw-r--r--ports-mgmt/p5-FreeBSD-Portindex/Makefile28
1 files changed, 8 insertions, 20 deletions
diff --git a/ports-mgmt/p5-FreeBSD-Portindex/Makefile b/ports-mgmt/p5-FreeBSD-Portindex/Makefile
index 68ff2dc42c9d..f41707aebdfa 100644
--- a/ports-mgmt/p5-FreeBSD-Portindex/Makefile
+++ b/ports-mgmt/p5-FreeBSD-Portindex/Makefile
@@ -21,7 +21,6 @@ RUN_DEPENDS:= ${BUILD_DEPENDS}
OPTIONS_DEFINE= GRAPHVIZ
GRAPHVIS_DESCR= Add GraphViz run-time dependency
-NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MGRAPHVIZ}
@@ -39,28 +38,17 @@ CACHE_MODE?= 0775
CFG_FILE= portindex.cfg
-MAN1= find-updated.1 cache-init.1 cache-update.1 portindex.1 \
- portdepends.1 make-readmes.1
+SUB_FILES+= pkg-install
+SUB_LIST+= CACHE_DIR=${CACHE_DIR} \
+ CACHE_OWNER=${CACHE_OWNER} \
+ CACHE_GROUP=${CACHE_GROUP} \
+ CACHE_MODE=${CACHE_MODE} \
+ CFG_FILE=${PREFIX}/etc/portindex.cfg
-post-install: install-conf install-cache
+post-install: install-conf
install-conf:
cd ${WRKSRC} ; \
- ${INSTALL_DATA} ${CFG_FILE}.sample ${PREFIX}/etc/${CFG_FILE}.sample
- cd ${PREFIX}/etc ; \
- if ${TEST} ! -f ${CFG_FILE} ; then \
- ${CP} -p ${CFG_FILE}.sample ${CFG_FILE} ; \
- fi
-
-# Create the cache directory and make it writable by group 'operator'
-# by default. Only if the cache directory doesn't already exist.
-# Have to do this by hand if installing via pkg.
-
-install-cache:
- if ${TEST} ! -d ${CACHE_DIR} ; then \
- ${MKDIR} ${CACHE_DIR} ; \
- ${CHOWN} ${CACHE_OWNER}:${CACHE_GROUP} ${CACHE_DIR} ; \
- ${CHMOD} ${CACHE_MODE} ${CACHE_DIR} ; \
- fi
+ ${INSTALL_DATA} ${CFG_FILE}.sample ${STAGEDIR}${PREFIX}/etc/${CFG_FILE}.sample
.include <bsd.port.mk>