diff options
author | ahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059> | 2005-11-11 19:18:38 +0800 |
---|---|---|
committer | ahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059> | 2005-11-11 19:18:38 +0800 |
commit | b6d6da529dddc192f65671d28ba41df840490aca (patch) | |
tree | 96410c8e7e59a9dd847cd82b925949b430e86e74 /misc/gnomehier/Makefile | |
parent | bad562b6af9c2609ca8a4018c36f250ce475ddd9 (diff) | |
download | marcuscom-ports-b6d6da529dddc192f65671d28ba41df840490aca.tar.gz marcuscom-ports-b6d6da529dddc192f65671d28ba41df840490aca.tar.zst marcuscom-ports-b6d6da529dddc192f65671d28ba41df840490aca.zip |
- readd gnomehier
This version uses gnome-pre-su-install to create directories
and still uses MTREE file. This removes the need for having
to bump PORTREVISION in gnomehier and have to keep the GNOME_MTREE
in sync with X11 MTREE_FILE. Also gnomehier now only creates directories
from dirlist.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@5107 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'misc/gnomehier/Makefile')
-rw-r--r-- | misc/gnomehier/Makefile | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/misc/gnomehier/Makefile b/misc/gnomehier/Makefile new file mode 100644 index 000000000..b4d5f2303 --- /dev/null +++ b/misc/gnomehier/Makefile @@ -0,0 +1,63 @@ +# New ports collection makefile for: gnomehier +# Date created: 2 July 2002 +# Whom: Maxim Sobolev <sobomax@FreeBSD.org> +# +# $FreeBSD$ +# $MCom$ +# +# !!DON'T BUMP PORTREVISION ON MTREE CHANGES ANYMORE!! + +PORTNAME= gnomehier +PORTVERSION= 2.1 + +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-x11.dist + +USE_X_PREFIX= yes + +GNOME_MTREE_ARGS=${MTREE_ARGS:S|${MTREE_FILE}|${PREFIX}/etc/mtree/${GNOME_MTREE}|} + +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> |