diff options
author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2003-01-19 19:51:30 +0000 |
---|---|---|
committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2003-01-19 19:51:30 +0000 |
commit | 2a4d82353a6c66c92f93d519a02686dda58672a7 (patch) | |
tree | 48bd9d0b1112ef3f722332232936d415e568f8c2 /x11 | |
parent | * Use which -s instead of command -v to test for certain programs [1] (diff) |
Make sure directory permissions are properly set when installing from
package.
Diffstat (limited to 'x11')
-rw-r--r-- | x11/gdm/Makefile | 6 | ||||
-rw-r--r-- | x11/gdm/pkg-install | 4 |
2 files changed, 4 insertions, 6 deletions
diff --git a/x11/gdm/Makefile b/x11/gdm/Makefile index 9f18d67aa8fc..c5e9a26f38c7 100644 --- a/x11/gdm/Makefile +++ b/x11/gdm/Makefile @@ -52,12 +52,6 @@ post-install: .if !defined(BATCH) && !defined(PACKAGE_BUILDING) @${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL .endif -.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/gdm/pkg-install b/x11/gdm/pkg-install index 04f07cb65ce4..e373a44e33ca 100644 --- a/x11/gdm/pkg-install +++ b/x11/gdm/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 |