diff options
author | skv <skv@FreeBSD.org> | 2006-09-20 02:11:26 +0800 |
---|---|---|
committer | skv <skv@FreeBSD.org> | 2006-09-20 02:11:26 +0800 |
commit | c69c5bf32879e068694ccecabe0c3a9cd0201138 (patch) | |
tree | 5ff417a9029b08f2b02c44ce3cf599ae0f1f4a74 | |
parent | cc809de26804bbd5fc4bde43458510c9369dc315 (diff) | |
download | freebsd-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/Makefile | 2 | ||||
-rw-r--r-- | databases/firebird2-server/Makefile | 2 | ||||
-rw-r--r-- | databases/firebird20-server/Makefile | 2 |
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 |