From 0a8f0409135fc6e93cdef079cb6131570e4039aa Mon Sep 17 00:00:00 2001 From: marcus Date: Sun, 19 Jan 2003 22:50:09 +0000 Subject: Correct last commit. PKG_PREFIX is only set by pkg_add, thus when building the port, the variable does not exist. Spotted by: Mark Hannon --- x11/gdm2/Makefile | 6 ++++++ x11/gdm2/pkg-install | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'x11/gdm2') diff --git a/x11/gdm2/Makefile b/x11/gdm2/Makefile index 932bcabba2c2..b6ee39f88381 100644 --- a/x11/gdm2/Makefile +++ b/x11/gdm2/Makefile @@ -62,6 +62,12 @@ post-install: @${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 diff --git a/x11/gdm2/pkg-install b/x11/gdm2/pkg-install index e373a44e33ca..df128647f968 100644 --- a/x11/gdm2/pkg-install +++ b/x11/gdm2/pkg-install @@ -36,8 +36,10 @@ 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 + 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 exit 0 fi -- cgit