aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorskv <skv@FreeBSD.org>2006-09-20 02:11:26 +0800
committerskv <skv@FreeBSD.org>2006-09-20 02:11:26 +0800
commitc69c5bf32879e068694ccecabe0c3a9cd0201138 (patch)
tree5ff417a9029b08f2b02c44ce3cf599ae0f1f4a74
parentcc809de26804bbd5fc4bde43458510c9369dc315 (diff)
downloadfreebsd-ports-gnome-c69c5bf32879e068694ccecabe0c3a9cd0201138.tar.gz
freebsd-ports-gnome-c69c5bf32879e068694ccecabe0c3a9cd0201138.tar.zst
freebsd-ports-gnome-c69c5bf32879e068694ccecabe0c3a9cd0201138.zip
Allow to build port as 'root' if PACKAGE_BUILDING defined.
Requested by: kris
-rw-r--r--databases/firebird-server/Makefile2
-rw-r--r--databases/firebird2-server/Makefile2
-rw-r--r--databases/firebird20-server/Makefile2
3 files changed, 6 insertions, 0 deletions
diff --git a/databases/firebird-server/Makefile b/databases/firebird-server/Makefile
index eebdd65394d9..4a72ba31ae9a 100644
--- a/databases/firebird-server/Makefile
+++ b/databases/firebird-server/Makefile
@@ -109,8 +109,10 @@ post-su-install:
.ifndef WITHOUT_IPC_CLEANUP
pre-build:
+.ifndef PACKAGE_BUILDING
@if [ `${ID} -u` -eq 0 ]; then \
${ECHO_MSG} "==> Please do not build ${PORTNAME} as 'root' because this may cause conflicts with SysV semaphores of running services."; exit 1; fi
+.endif
[ -f ${WRKDIR}/ipcs.pre.build ] || /usr/bin/ipcs -s | ${TAIL} -n +3 | \
${GREP} -F `${ID} -un` | ${CAT} > ${WRKDIR}/ipcs.pre.build
diff --git a/databases/firebird2-server/Makefile b/databases/firebird2-server/Makefile
index e43e14ed379d..86870a9cbf6a 100644
--- a/databases/firebird2-server/Makefile
+++ b/databases/firebird2-server/Makefile
@@ -121,8 +121,10 @@ post-su-install:
.ifndef WITHOUT_IPC_CLEANUP
pre-build:
+.ifndef PACKAGE_BUILDING
@if [ `${ID} -u` -eq 0 ]; then \
${ECHO_MSG} "==> Please do not build ${PORTNAME} as 'root' because this may cause conflicts with SysV semaphores of running services."; exit 1; fi
+.endif
[ -f ${WRKDIR}/ipcs.pre.build ] || /usr/bin/ipcs -s | ${TAIL} -n +3 | \
${GREP} -F `${ID} -un` | ${CAT} > ${WRKDIR}/ipcs.pre.build
diff --git a/databases/firebird20-server/Makefile b/databases/firebird20-server/Makefile
index e43e14ed379d..86870a9cbf6a 100644
--- a/databases/firebird20-server/Makefile
+++ b/databases/firebird20-server/Makefile
@@ -121,8 +121,10 @@ post-su-install:
.ifndef WITHOUT_IPC_CLEANUP
pre-build:
+.ifndef PACKAGE_BUILDING
@if [ `${ID} -u` -eq 0 ]; then \
${ECHO_MSG} "==> Please do not build ${PORTNAME} as 'root' because this may cause conflicts with SysV semaphores of running services."; exit 1; fi
+.endif
[ -f ${WRKDIR}/ipcs.pre.build ] || /usr/bin/ipcs -s | ${TAIL} -n +3 | \
${GREP} -F `${ID} -un` | ${CAT} > ${WRKDIR}/ipcs.pre.build