diff options
author | ahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059> | 2004-12-23 10:53:48 +0800 |
---|---|---|
committer | ahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059> | 2004-12-23 10:53:48 +0800 |
commit | 243dbf4f3d444e1abf219da0b83c3a59f3130e82 (patch) | |
tree | f522004d393a3a6c1faa8f82f4ecb9daa5c0f485 /misc/gnomehier/Makefile | |
parent | b6f9d24761a55ad654b1999a94caccf9603150ad (diff) | |
download | marcuscom-ports-243dbf4f3d444e1abf219da0b83c3a59f3130e82.tar.gz marcuscom-ports-243dbf4f3d444e1abf219da0b83c3a59f3130e82.tar.zst marcuscom-ports-243dbf4f3d444e1abf219da0b83c3a59f3130e82.zip |
Introducing gnomehier 2.0
- Remove all the .keep files and use a auto-generated BSD.gnome-11.dist mtree
file from a combination of files/dirlist and /etc/mtree/BSD.x11[-4].dist.
- MTREE_FILE?=X11BASE/etc/mtree/BSD.gnome-x11.dist is defined for every port
that uses gnomeprefix
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@3302 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'misc/gnomehier/Makefile')
-rw-r--r-- | misc/gnomehier/Makefile | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/misc/gnomehier/Makefile b/misc/gnomehier/Makefile new file mode 100644 index 000000000..edad81e52 --- /dev/null +++ b/misc/gnomehier/Makefile @@ -0,0 +1,53 @@ +# New ports collection makefile for: gnomehier +# Date created: 2 July 2002 +# Whom: Maxim Sobolev <sobomax@FreeBSD.org> +# +# $FreeBSD: ports/misc/gnomehier/Makefile,v 1.27 2004/12/18 01:54:05 marcus Exp $ +# + +PORTNAME= gnomehier +PORTVERSION= 2.0 +PORTREVISION= 0 +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 + +GNOME_MTREE= BSD.gnome-x11.dist + +USE_X_PREFIX= yes + +do-fetch: + @${DO_NADA} + +pre-su-install: + @${CP} -f ${FILESDIR}/dirlist ${WRKDIR} + @${RM} -f ${PLIST} ${WRKDIR}/${GNOME_MTREE} + @${TOUCH} -f ${PLIST} + @${MKDIR} ${WRKSRC} + @${CAT} ${FILESDIR}/dirlist | ${SORT} -r | ${SED} -e \ + 's|^|@dirrm |' >> ${PLIST} + @${ECHO_CMD} etc/mtree/${GNOME_MTREE} >> ${PLIST} + @${ECHO_CMD} "@unexec ${RMDIR} %D/etc/mtree 2>/dev/null || ${TRUE}" >> ${PLIST} + @for dir in `${CAT} ${WRKDIR}/dirlist`; \ + do \ + ${MKDIR} ${WRKSRC}/$${dir}; \ + done + ${CHGRP} games ${WRKSRC}/share/gnome/games + ${CHMOD} g=rwXs ${WRKSRC}/share/gnome/games + ${MTREE_CMD} ${MTREE_ARGS} ${WRKSRC}/ + cd ${WRKSRC} && \ + ${MTREE_CMD} -U -d -n -i -c -k "uname, gname, mode" \ + > ${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 + +.include <bsd.port.mk> |