aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2004-11-30 07:23:18 +0800
committermarcus <marcus@FreeBSD.org>2004-11-30 07:23:18 +0800
commit563315348251eeadd02cde54151c762f8a172422 (patch)
treea6ccdcd553350b9e8e6aac92a670dc10ef9605f0 /Mk
parent22ffd05daa71686d6dd8e96ca8021f9ada96d991 (diff)
downloadfreebsd-ports-gnome-563315348251eeadd02cde54151c762f8a172422.tar.gz
freebsd-ports-gnome-563315348251eeadd02cde54151c762f8a172422.tar.zst
freebsd-ports-gnome-563315348251eeadd02cde54151c762f8a172422.zip
Don't always create a ${PREFIX}/etc/gconf directory if gconf is one of the
port's dependencies. Instead, only create this directory if the port will actually install GConf schemas. Also, do the creation in pre-su-install as we may not be root in pre-install. Spotted by: pav Tested by: pav
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.gnome.mk16
1 files changed, 7 insertions, 9 deletions
diff --git a/Mk/bsd.gnome.mk b/Mk/bsd.gnome.mk
index 50e767e773a6..fea19b4db09b 100644
--- a/Mk/bsd.gnome.mk
+++ b/Mk/bsd.gnome.mk
@@ -635,19 +635,17 @@ PLIST_SUB+= GNOMEDESKTOP:="@comment " NOGNOMEDESKTOP:=""
CONFIGURE_FAIL_MESSAGE= "Please direct the output of the failure of the make command to a file, and then feed that file to the gnomelogalyzer, available from "http://www.freebsd.org/gnome/gnomelogalyzer.sh", which will diagnose the problem and suggest a solution. If - and only if - the gnomelogalyzer cannot solve the problem, report the problem to the FreeBSD GNOME team at ${MAINTAINER}, and attach \"${CONFIGURE_WRKSRC}/${CONFIGURE_LOG}\" and the output of the failure of the make command. Also, it might be a good idea to provide an overview of all packages installed on your system (e.g. an \`ls ${PKG_DBDIR}\`)."
.endif
-.if defined(_USE_GNOME)
-. if ${_USE_GNOME:Mgconf}!="" || ${_USE_GNOME:Mgconf2}!=""
-pre-install: gnome-pre-install
+.if defined(GCONF_SCHEMAS) || defined(INSTALLS_OMF)
+pre-su-install: gnome-pre-su-install
+post-install: gnome-post-install
-gnome-pre-install:
+gnome-pre-su-install:
+.if defined(GCONF_SCHEMAS)
@${MKDIR} ${PREFIX}/etc/gconf/gconf.xml.defaults/
-
-. endif
+.else
+ @${DO_NADA}
.endif
-.if defined(GCONF_SCHEMAS) || defined(INSTALLS_OMF)
-post-install: gnome-post-install
-
gnome-post-install:
. if defined(GCONF_SCHEMAS)
@for i in ${GCONF_SCHEMAS}; do \