summaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2007-04-15 10:24:14 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2007-04-15 10:24:14 +0800
commit99b11d1db34265166f911afa3b77c2cd3cb191b9 (patch)
tree0f67062de76c977bfb21de2cccb918d9a3c48a6a /misc
parentd64f931d45119784f41145b5f2c6c90af02a543a (diff)
downloadmarcuscom-ports-99b11d1db34265166f911afa3b77c2cd3cb191b9.tar
marcuscom-ports-99b11d1db34265166f911afa3b77c2cd3cb191b9.tar.gz
marcuscom-ports-99b11d1db34265166f911afa3b77c2cd3cb191b9.tar.bz2
marcuscom-ports-99b11d1db34265166f911afa3b77c2cd3cb191b9.tar.lz
marcuscom-ports-99b11d1db34265166f911afa3b77c2cd3cb191b9.tar.xz
marcuscom-ports-99b11d1db34265166f911afa3b77c2cd3cb191b9.tar.zst
marcuscom-ports-99b11d1db34265166f911afa3b77c2cd3cb191b9.zip
Add share/gnome/control-center/keybindings since metacity needs this
directory. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@8599 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'misc')
-rw-r--r--misc/gnomehier/Makefile61
-rw-r--r--misc/gnomehier/files/dirlist100
-rw-r--r--misc/gnomehier/files/pkg-install.in8
-rw-r--r--misc/gnomehier/pkg-descr3
4 files changed, 172 insertions, 0 deletions
diff --git a/misc/gnomehier/Makefile b/misc/gnomehier/Makefile
new file mode 100644
index 000000000..86d716506
--- /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.35 2006/10/14 08:35:20 marcus Exp $
+# $MCom: ports/misc/gnomehier/Makefile,v 1.14 2006/10/10 20:22:15 mezz Exp $
+#
+# !!DON'T BUMP PORTREVISION ON MTREE CHANGES ANYMORE!!
+
+PORTNAME= gnomehier
+PORTVERSION= 2.3
+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>
diff --git a/misc/gnomehier/files/dirlist b/misc/gnomehier/files/dirlist
new file mode 100644
index 000000000..1be4acf08
--- /dev/null
+++ b/misc/gnomehier/files/dirlist
@@ -0,0 +1,100 @@
+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/schemas
+etc/gnome
+etc/gnome/config
+etc/gnome-vfs-2.0
+etc/gnome-vfs-2.0/modules
+etc/sound
+etc/sound/events
+etc/vfs
+etc/vfs/modules
+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/doc/libgda
+share/gnome
+share/gnome/applets
+share/gnome/applets/Amusements
+share/gnome/applets/Clocks
+share/gnome/applets/Monitors
+share/gnome/applets/Multimedia
+share/gnome/applets/Network
+share/gnome/applets/Utility
+share/gnome/application-registry
+share/gnome/applications
+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/capplets
+share/gnome/control-center
+share/gnome/control-center-2.0
+share/gnome/control-center-2.0/capplets
+share/gnome/control-center/Desktop
+share/gnome/control-center/Documents
+share/gnome/control-center/Peripherals
+share/gnome/control-center/Session
+share/gnome/control-center/capplets
+share/gnome/control-center/keybindings
+share/gnome/fonts
+share/gnome/games
+share/gnome/gnome-2.0
+share/gnome/gnome-2.0/ui
+share/gnome/gnome-about
+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/icons
+share/gnome/idl
+share/gnome/images
+share/gnome/mc
+share/gnome/mc/templates
+share/gnome/mime-info
+share/gnome/oaf
+share/gnome/omf
+share/gnome/panel
+share/gnome/pixmaps
+share/gnome/pixmaps/document-icons
+share/gnome/pixmaps/splash
+share/gnome/sgml
+share/gnome/sgml/docbook
+share/gnome/sgml/docbook/gnome-customization-0.1
+share/gnome/sounds
+share/gnome/themes
+share/gnome/ui
+share/gnome/vfolders
+share/gnome/wm-properties
+share/gnome/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.