summaryrefslogtreecommitdiffstats
path: root/misc/gnomehier/Makefile
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2006-07-18 04:31:50 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2006-07-18 04:31:50 +0800
commit081ef700c6657387961d3545e6dee89624fa6530 (patch)
treec9ec1a6ea961ff4b9cc8e827565e5708c9255175 /misc/gnomehier/Makefile
parent873890c45ae2352436bdd1762ec3f9131e047227 (diff)
downloadmarcuscom-ports-081ef700c6657387961d3545e6dee89624fa6530.tar
marcuscom-ports-081ef700c6657387961d3545e6dee89624fa6530.tar.gz
marcuscom-ports-081ef700c6657387961d3545e6dee89624fa6530.tar.bz2
marcuscom-ports-081ef700c6657387961d3545e6dee89624fa6530.tar.lz
marcuscom-ports-081ef700c6657387961d3545e6dee89624fa6530.tar.xz
marcuscom-ports-081ef700c6657387961d3545e6dee89624fa6530.tar.zst
marcuscom-ports-081ef700c6657387961d3545e6dee89624fa6530.zip
Add gnomehier and switch PREFIX to LOCALBASE.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@6612 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'misc/gnomehier/Makefile')
-rw-r--r--misc/gnomehier/Makefile61
1 files changed, 61 insertions, 0 deletions
diff --git a/misc/gnomehier/Makefile b/misc/gnomehier/Makefile
new file mode 100644
index 000000000..ab6a844e9
--- /dev/null
+++ b/misc/gnomehier/Makefile
@@ -0,0 +1,61 @@
+# New ports collection makefile for: gnomehier
+# Date created: 2 July 2002
+# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
+#
+# $FreeBSD: ports/misc/gnomehier/Makefile,v 1.34 2006/04/30 00:46:57 marcus Exp $
+# $MCom: ports/misc/gnomehier/Makefile,v 1.11 2006/03/14 03:05:32 marcus Exp $
+#
+# !!DON'T BUMP PORTREVISION ON MTREE CHANGES ANYMORE!!
+
+PORTNAME= gnomehier
+PORTVERSION= 2.2
+CATEGORIES= misc gnome
+MASTER_SITES= # none
+DISTFILES= # none
+
+MAINTAINER= gnome@FreeBSD.org
+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.dist
+GNOME_MTREE_ARGS=${MTREE_ARGS:S|${MTREE_FILE}|${PREFIX}/etc/mtree/${GNOME_MTREE}|}
+
+USE_XLIB= yes
+
+do-fetch:
+ @${DO_NADA}
+
+pre-install:
+ @${CP} -f ${FILESDIR}/dirlist ${WRKDIR}
+ @${RM} -f ${PLIST} ${WRKDIR}/${GNOME_MTREE}
+ @${TOUCH} -f ${PLIST}
+ @${ECHO_CMD} etc/mtree/${GNOME_MTREE} >> ${PLIST}
+ @${MKDIR} ${WRKSRC}
+ @${CAT} ${FILESDIR}/dirlist | ${SORT} -r | ${SED} -e \
+ 's|^|@dirrm |' >> ${PLIST}
+ @${ECHO_CMD} "@unexec ${RMDIR} %D/etc/mtree 2>/dev/null || ${TRUE}" >> ${PLIST}
+ @for dir in `${CAT} ${WRKDIR}/dirlist`; \
+ 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
+ ${CHMOD} g=rwXs ${WRKSRC}/share/gnome/games
+ cd ${WRKSRC} && \
+ ${MTREE_CMD} -U -d -n -i -c -k "uname, gname, mode" \
+ > ${WRKDIR}/${GNOME_MTREE}
+
+do-install:
+ ${MKDIR} ${PREFIX}/etc/mtree
+ ${INSTALL_DATA} ${WRKDIR}/${GNOME_MTREE} ${PREFIX}/etc/mtree
+
+post-install:
+ @${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
+
+.include <bsd.port.mk>