diff options
author | mezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059> | 2009-03-11 06:27:15 +0800 |
---|---|---|
committer | mezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059> | 2009-03-11 06:27:15 +0800 |
commit | 7dc4f82dd2e84b43a7cf22c20edfb0fe4576ff02 (patch) | |
tree | a299950113d1f9bfc967fd7525acc3484d4a29c2 /misc | |
parent | d83ca3e4e9431b7fa74c417d7ac4b056df2826f2 (diff) | |
download | marcuscom-ports-7dc4f82dd2e84b43a7cf22c20edfb0fe4576ff02.tar marcuscom-ports-7dc4f82dd2e84b43a7cf22c20edfb0fe4576ff02.tar.gz marcuscom-ports-7dc4f82dd2e84b43a7cf22c20edfb0fe4576ff02.tar.bz2 marcuscom-ports-7dc4f82dd2e84b43a7cf22c20edfb0fe4576ff02.tar.lz marcuscom-ports-7dc4f82dd2e84b43a7cf22c20edfb0fe4576ff02.tar.xz marcuscom-ports-7dc4f82dd2e84b43a7cf22c20edfb0fe4576ff02.tar.zst marcuscom-ports-7dc4f82dd2e84b43a7cf22c20edfb0fe4576ff02.zip |
Add etc/xdg and etc/xdg/autostart in gnomehier. It's starting to get too
common for GNOME and even other different WMs/desktops. Remove both direcotries
from ports' plist.
Discussed with: marcus
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@12066 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'misc')
-rw-r--r-- | misc/gnomehier/Makefile | 62 | ||||
-rw-r--r-- | misc/gnomehier/files/dirlist | 101 | ||||
-rw-r--r-- | misc/gnomehier/files/pkg-install.in | 8 | ||||
-rw-r--r-- | misc/gnomehier/pkg-descr | 3 |
4 files changed, 174 insertions, 0 deletions
diff --git a/misc/gnomehier/Makefile b/misc/gnomehier/Makefile new file mode 100644 index 000000000..c5a70c43b --- /dev/null +++ b/misc/gnomehier/Makefile @@ -0,0 +1,62 @@ +# New ports collection makefile for: gnomehier +# Date created: 2 July 2002 +# Whom: Maxim Sobolev <sobomax@FreeBSD.org> +# +# $FreeBSD: ports/misc/gnomehier/Makefile,v 1.40 2009/01/10 05:21:39 marcus Exp $ +# $MCom: ports/misc/gnomehier/Makefile,v 1.31 2008/12/26 23:27:22 marcus Exp $ +# +# !!DON'T BUMP PORTREVISION ON MTREE CHANGES ANYMORE!! + +PORTNAME= gnomehier +PORTVERSION= 2.3 +PORTREVISION= 12 +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}|} + +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/games + ${CHMOD} g=rwXs ${WRKSRC}/share/games + cd ${WRKSRC} && \ + ${MTREE_CMD} -U -d -n -i -c -k "uname, gname, mode" | \ + ${SED} -e 's|uname=[A-Za-z0-9_]*|uname=root|' \ + -e 's|gname=[A-Za-z0-9_]*|gname=wheel|' \ + > ${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> diff --git a/misc/gnomehier/files/dirlist b/misc/gnomehier/files/dirlist new file mode 100644 index 000000000..9ef1b4c8f --- /dev/null +++ b/misc/gnomehier/files/dirlist @@ -0,0 +1,101 @@ +etc/CORBA +etc/CORBA/servers +etc/X11 +etc/X11/serverconfig +etc/X11/starthere +etc/X11/sysconfig +etc/gconf +etc/gconf/gconf.xml.defaults +etc/gconf/gconf.xml.mandatory +etc/gconf/gconf.xml.system +etc/gconf/schemas +etc/gnome +etc/gnome-vfs-2.0 +etc/gnome-vfs-2.0/modules +etc/gnome/config +etc/sound +etc/sound/events +etc/vfs +etc/vfs/modules +etc/xdg +etc/xdg/autostart +include/gconf +include/gdkcardimage +include/gnome-1.0 +lib/GConf +lib/bonobo +lib/bonobo/monikers +lib/bonobo/plugin +lib/gnome-vfs-2.0 +lib/gnome-vfs-2.0/modules +lib/vfs +lib/vfs/modules +libdata/bonobo +libdata/bonobo/servers +share/applets +share/applets/Amusements +share/applets/Clocks +share/applets/Monitors +share/applets/Multimedia +share/applets/Network +share/applets/Utility +share/application-registry +share/capplets +share/control-center +share/control-center-2.0 +share/control-center-2.0/capplets +share/control-center/Desktop +share/control-center/Documents +share/control-center/Peripherals +share/control-center/Session +share/control-center/capplets +share/control-center/keybindings +share/doc/libgda +share/games +share/gnome +share/gnome-2.0 +share/gnome-2.0/ui +share/gnome-about +share/gnome-control-center +share/gnome-control-center/keybindings +share/gnome/apps +share/gnome/apps/Applications +share/gnome/apps/Audio +share/gnome/apps/Development +share/gnome/apps/Games +share/gnome/apps/Graphics +share/gnome/apps/Internet +share/gnome/apps/Multimedia +share/gnome/apps/Settings +share/gnome/apps/Settings/Desktop +share/gnome/apps/Settings/Documents +share/gnome/apps/Settings/Peripherals +share/gnome/apps/Settings/Session +share/gnome/apps/System +share/gnome/apps/Utilities +share/gnome/autostart +share/gnome/help +share/gnome/help/fdl +share/gnome/help/fdl/C +share/gnome/help/gpl +share/gnome/help/gpl/C +share/gnome/help/lgpl +share/gnome/help/lgpl/C +share/gnome/panel +share/gnome/ui +share/gnome/wm-properties +share/images +share/mc +share/mc/templates +share/mime-info +share/oaf +share/omf +share/pixmaps/document-icons +share/pixmaps/splash +share/sgml/docbook +share/sgml/docbook/gnome-customization-0.1 +share/sounds +share/vala +share/vala/vapi +share/vfolders +share/xmodmap diff --git a/misc/gnomehier/files/pkg-install.in b/misc/gnomehier/files/pkg-install.in new file mode 100644 index 000000000..20e30328e --- /dev/null +++ b/misc/gnomehier/files/pkg-install.in @@ -0,0 +1,8 @@ +#!/bin/sh + +case $2 in +POST-INSTALL) + /usr/sbin/mtree %%MTREE_ARGS%% ${PKG_PREFIX} + exit 0 + ;; +esac diff --git a/misc/gnomehier/pkg-descr b/misc/gnomehier/pkg-descr new file mode 100644 index 000000000..ec27b1ee2 --- /dev/null +++ b/misc/gnomehier/pkg-descr @@ -0,0 +1,3 @@ +This is a utility port that creates the common GNOME directory +structure. This way, the existence of the directories can be +ensured before applications attempt to install into them. |