aboutsummaryrefslogtreecommitdiffstats
path: root/x11/gdm
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2003-01-22 00:16:02 +0800
committermarcus <marcus@FreeBSD.org>2003-01-22 00:16:02 +0800
commitc08523b30ca8d66b933a8cf621603ec6dabd1cdf (patch)
tree7a000943cc6c7e8b15f474ebcfcf4b46c9a7cee5 /x11/gdm
parent24871727c0d49b989028af7c5aeebc47715474f0 (diff)
downloadfreebsd-ports-graphics-c08523b30ca8d66b933a8cf621603ec6dabd1cdf.tar.gz
freebsd-ports-graphics-c08523b30ca8d66b933a8cf621603ec6dabd1cdf.tar.zst
freebsd-ports-graphics-c08523b30ca8d66b933a8cf621603ec6dabd1cdf.zip
One more pass at the gdm's. This time, allow the gdm user and group to
be created even if BATCH is defined. Also, set PKG_PREFIX from the port Makefile so we can take care of directory permissions within the pkg-install script for both the port and package.
Diffstat (limited to 'x11/gdm')
-rw-r--r--x11/gdm/Makefile10
-rw-r--r--x11/gdm/pkg-install6
2 files changed, 4 insertions, 12 deletions
diff --git a/x11/gdm/Makefile b/x11/gdm/Makefile
index 9f18d67aa8f..d2a282f2c0e 100644
--- a/x11/gdm/Makefile
+++ b/x11/gdm/Makefile
@@ -49,15 +49,9 @@ post-patch:
s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
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
+.if !defined(PACKAGE_BUILDING)
+ @${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.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 df128647f96..237a1ceaa0c 100644
--- a/x11/gdm/pkg-install
+++ b/x11/gdm/pkg-install
@@ -36,10 +36,8 @@ if [ "$2" = "POST-INSTALL" ]; then
exit 1
fi
fi
- if [ -n "${PKG_PREFIX}" ]; then
- ${CHOWN} -R ${USER}:${GROUP} ${PKG_PREFIX}/share/gnome/gdm ${PKG_PREFIX}/etc/gdm
- ${CHMOD} 0750 ${PKG_PREFIX}/share/gnome/gdm
- fi
+ ${CHOWN} -R ${USER}:${GROUP} ${PKG_PREFIX}/share/gnome/gdm ${PKG_PREFIX}/etc/gdm
+ ${CHMOD} 0750 ${PKG_PREFIX}/share/gnome/gdm
exit 0
fi