diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2003-01-26 01:42:44 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2003-01-26 01:42:44 +0800 |
commit | 5ed8db56f056b4fa2c05673630c3b02fd3d5b554 (patch) | |
tree | bbf1a93d37dfb75671144b257deb4a103d742123 /x11/gdm2 | |
parent | 9dce96c1a0235aed4e3832e9e988a807e7b411ff (diff) | |
download | marcuscom-ports-5ed8db56f056b4fa2c05673630c3b02fd3d5b554.tar marcuscom-ports-5ed8db56f056b4fa2c05673630c3b02fd3d5b554.tar.gz marcuscom-ports-5ed8db56f056b4fa2c05673630c3b02fd3d5b554.tar.bz2 marcuscom-ports-5ed8db56f056b4fa2c05673630c3b02fd3d5b554.tar.lz marcuscom-ports-5ed8db56f056b4fa2c05673630c3b02fd3d5b554.tar.xz marcuscom-ports-5ed8db56f056b4fa2c05673630c3b02fd3d5b554.tar.zst marcuscom-ports-5ed8db56f056b4fa2c05673630c3b02fd3d5b554.zip |
Merge the recent ownership and permission fixes from FreeBSD CVS.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@437 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'x11/gdm2')
-rw-r--r-- | x11/gdm2/Makefile | 10 | ||||
-rw-r--r-- | x11/gdm2/pkg-install | 4 |
2 files changed, 6 insertions, 8 deletions
diff --git a/x11/gdm2/Makefile b/x11/gdm2/Makefile index 0670a96fc..b4696023c 100644 --- a/x11/gdm2/Makefile +++ b/x11/gdm2/Makefile @@ -59,16 +59,10 @@ post-patch: ${WRKSRC}/po/Makefile.in.in post-install: -.if !defined(BATCH) && !defined(PACKAGE_BUILDING) - @${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL +.if !defined(PACKAGE_BUILDING) + @${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL .endif @${INSTALL_SCRIPT} ${WRKSRC}/gdm.sh.sample ${PREFIX}/etc/rc.d -.if !defined(BATCH) && !defined(PACKAGE_BUILDING) - @${CHOWN} -R gdm:gdm ${PREFIX}/share/gnome/gdm ${PREFIX}/etc/gdm -.else - @${CHOWN} -R 92:92 ${PREFIX}/share/gnome/gdm ${PREFIX}/etc/gdm -.endif - @${CHMOD} 0750 ${PREFIX}/share/gnome/gdm @${CAT} ${PKGMESSAGE} .include <bsd.port.post.mk> diff --git a/x11/gdm2/pkg-install b/x11/gdm2/pkg-install index 04f07cb65..e373a44e3 100644 --- a/x11/gdm2/pkg-install +++ b/x11/gdm2/pkg-install @@ -10,6 +10,8 @@ if [ "$2" = "POST-INSTALL" ]; then UID=92 GID=${UID} PW=/usr/sbin/pw + CHMOD=/bin/chmod + CHOWN=/usr/sbin/chown if ${PW} group show "${GROUP}" 2>/dev/null; then echo "You already have a group \"${GROUP}\", so I will use it." @@ -34,6 +36,8 @@ if [ "$2" = "POST-INSTALL" ]; then exit 1 fi fi + ${CHOWN} -R ${USER}:${GROUP} ${PKG_PREFIX}/share/gnome/gdm ${PKG_PREFIX}/etc/gdm + ${CHMOD} 0750 ${PKG_PREFIX}/share/gnome/gdm exit 0 fi |