summaryrefslogtreecommitdiffstats
path: root/misc/gnomehier/Makefile
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2005-01-15 11:47:48 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2005-01-15 11:47:48 +0800
commit0b91cbfa2da8cecb4c1ab803861aa8529ce545ee (patch)
tree418a15e11c2ab5ff497068b0af6bfdb22d2daeda /misc/gnomehier/Makefile
parent26fb21116a7e74d7c1902937ecbcd002bdf71ba2 (diff)
downloadmarcuscom-ports-0b91cbfa2da8cecb4c1ab803861aa8529ce545ee.tar
marcuscom-ports-0b91cbfa2da8cecb4c1ab803861aa8529ce545ee.tar.gz
marcuscom-ports-0b91cbfa2da8cecb4c1ab803861aa8529ce545ee.tar.bz2
marcuscom-ports-0b91cbfa2da8cecb4c1ab803861aa8529ce545ee.tar.lz
marcuscom-ports-0b91cbfa2da8cecb4c1ab803861aa8529ce545ee.tar.xz
marcuscom-ports-0b91cbfa2da8cecb4c1ab803861aa8529ce545ee.tar.zst
marcuscom-ports-0b91cbfa2da8cecb4c1ab803861aa8529ce545ee.zip
Run the mtree command at package install time to fix leftover file
warnings on the package build machines. Reported by: GNOME Tinderbox git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@3437 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'misc/gnomehier/Makefile')
-rw-r--r--misc/gnomehier/Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/misc/gnomehier/Makefile b/misc/gnomehier/Makefile
index d8d8cfcea..ce72cb7b5 100644
--- a/misc/gnomehier/Makefile
+++ b/misc/gnomehier/Makefile
@@ -7,7 +7,7 @@
PORTNAME= gnomehier
PORTVERSION= 2.0
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= misc gnome
MASTER_SITES= # none
DISTFILES= # none
@@ -17,11 +17,14 @@ COMMENT= A utility port that creates the GNOME directory tree
NO_BUILD= yes
PLIST?= ${WRKDIR}/pkg-plist
+PKGINSTALL= ${WRKDIR}/pkg-install
GNOME_MTREE= BSD.gnome-x11.dist
USE_X_PREFIX= yes
+GNOME_MTREE_ARGS=${MTREE_ARGS:S|${MTREE_FILE}|${WRKDIR}/${GNOME_MTREE}|}
+
do-fetch:
@${DO_NADA}
@@ -38,6 +41,8 @@ pre-install:
do \
${MKDIR} ${WRKSRC}/$${dir}; \
done
+ @${SED} -e 's|%%MTREE_ARGS%%|${GNOME_MTREE_ARGS}|' \
+ < ${FILESDIR}/pkg-install.in > ${PKGINSTALL}
pre-su-install:
${CHGRP} games ${WRKSRC}/share/gnome/games
@@ -48,8 +53,12 @@ pre-su-install:
> ${WRKDIR}/${GNOME_MTREE}
do-install:
- ${MTREE_CMD} ${MTREE_ARGS:S|${MTREE_FILE}|${WRKDIR}/${GNOME_MTREE}|} ${PREFIX}
${MKDIR} ${PREFIX}/etc/mtree
${INSTALL_DATA} ${WRKDIR}/${GNOME_MTREE} ${PREFIX}/etc/mtree
+post-install:
+.if !defined(PACKAGE_BUILDING)
+ @${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
+.endif
+
.include <bsd.port.mk>