aboutsummaryrefslogtreecommitdiffstats
path: root/x11/gdm2
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2003-01-20 06:50:09 +0800
committermarcus <marcus@FreeBSD.org>2003-01-20 06:50:09 +0800
commit0a8f0409135fc6e93cdef079cb6131570e4039aa (patch)
tree0e1c54bcba093539d3fd69d2a0b3df464a1681f5 /x11/gdm2
parent47d782e525e6d81e558535bd0e9be672a1c2c7e9 (diff)
downloadfreebsd-ports-gnome-0a8f0409135fc6e93cdef079cb6131570e4039aa.tar.gz
freebsd-ports-gnome-0a8f0409135fc6e93cdef079cb6131570e4039aa.tar.zst
freebsd-ports-gnome-0a8f0409135fc6e93cdef079cb6131570e4039aa.zip
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 <markhannon@optusnet.com.au>
Diffstat (limited to 'x11/gdm2')
-rw-r--r--x11/gdm2/Makefile6
-rw-r--r--x11/gdm2/pkg-install6
2 files changed, 10 insertions, 2 deletions
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 <bsd.port.post.mk>
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