summaryrefslogtreecommitdiffstats
path: root/x11/gdm/pkg-install
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2008-12-27 06:23:13 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2008-12-27 06:23:13 +0800
commitaff12e9f850e0c2b0caff46284c44ad60f9f47a3 (patch)
tree4506f7397335ba7df884dae805df1208ddcb539d /x11/gdm/pkg-install
parent7e368f8830102268ec13b275e53b048446aa4d2e (diff)
downloadmarcuscom-ports-aff12e9f850e0c2b0caff46284c44ad60f9f47a3.tar
marcuscom-ports-aff12e9f850e0c2b0caff46284c44ad60f9f47a3.tar.gz
marcuscom-ports-aff12e9f850e0c2b0caff46284c44ad60f9f47a3.tar.bz2
marcuscom-ports-aff12e9f850e0c2b0caff46284c44ad60f9f47a3.tar.lz
marcuscom-ports-aff12e9f850e0c2b0caff46284c44ad60f9f47a3.tar.xz
marcuscom-ports-aff12e9f850e0c2b0caff46284c44ad60f9f47a3.tar.zst
marcuscom-ports-aff12e9f850e0c2b0caff46284c44ad60f9f47a3.zip
Teach gdm where to find its home directory. This should fix some issues
with missing GConf settings. Reported by: Pawel Worach <pawel.worach@gmail.com> git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@11837 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'x11/gdm/pkg-install')
-rw-r--r--x11/gdm/pkg-install16
1 files changed, 11 insertions, 5 deletions
diff --git a/x11/gdm/pkg-install b/x11/gdm/pkg-install
index 29d467924..788a1a610 100644
--- a/x11/gdm/pkg-install
+++ b/x11/gdm/pkg-install
@@ -44,14 +44,20 @@ POST-INSTALL)
${CHOWN} root:wheel /var/log/gdm
${CHOWN} -R root:${GROUP} /var/gdm
${CHMOD} 1770 /var/gdm
+ ${MKDIR} -p /var/run/gdm
+ ${CHOWN} root:${GROUP} /var/run/gdm
+ ${CHMOD} 1777 /var/run/gdm
${CHOWN} root:wheel ${PKG_PREFIX}/share/gdm
${CHMOD} 0755 ${PKG_PREFIX}/share/gdm
- ${MKDIR} -p /var/lib/gdm
- ${CHMOD} 1770 /var/lib/gdm
- ${CHOWN} root:${GROUP} /var/lib/gdm
${MKDIR} -p ${PKG_PREFIX}/etc/gdm/home
- ${CHOWN} ${USER}:${GROUP} ${PKG_PREFIX}/etc/gdm/home
- ${CHMOD} 0755 ${PKG_PREFIX}/etc/gdm/home
+ ${CHOWN} root:${GROUP} ${PKG_PREFIX}/etc/gdm/home
+ ${CHMOD} 1770 ${PKG_PREFIX}/etc/gdm/home
+ install -o root -g wheel -m 444 ${PKG_PREFIX}/share/gdm/gconf.path ${PKG_PREFIX}/etc/gdm/home/.gconf.path
+ gconftool-2 --direct --config-source=xml:merged:${PKG_PREFIX}/etc/gdm/home/.gconf.mandatory --recursive-unset /
+ gconftool-2 --direct --config-source=xml:merged:${PKG_PREFIX}/etc/gdm/home/.gconf.mandatory --load ${PKG_PREFIX}/share/gdm/session-setup.entries
+ ${CHOWN} -R root:gdm ${PKG_PREFIX}/etc/gdm/home/.gconf.mandatory
+ ${CHMOD} 1750 ${PKG_PREFIX}/etc/gdm/home/.gconf.mandatory
+ ${CHMOD} 1640 ${PKG_PREFIX}/etc/gdm/home/.gconf.mandatory/*.xml
${MKDIR} -p ${PKG_PREFIX}/etc/dm/Sessions
exit 0