diff options
author | demon <demon@FreeBSD.org> | 2003-05-08 23:15:06 +0800 |
---|---|---|
committer | demon <demon@FreeBSD.org> | 2003-05-08 23:15:06 +0800 |
commit | 38b2de037908e49e3a2a594a6cd1053b4a282120 (patch) | |
tree | 699f92432e2ef5da5fc6effaf78cbab9e7df98fd | |
parent | a4c551125d7133a670ecdf6c5cf0652f8fabc220 (diff) | |
download | freebsd-ports-gnome-38b2de037908e49e3a2a594a6cd1053b4a282120.tar.gz freebsd-ports-gnome-38b2de037908e49e3a2a594a6cd1053b4a282120.tar.zst freebsd-ports-gnome-38b2de037908e49e3a2a594a6cd1053b4a282120.zip |
Create group 'rt' in pre-install phase, rather than post-extract.
Approved by: maintainer
-rw-r--r-- | www/rt3/Makefile | 8 | ||||
-rw-r--r-- | www/rt3/pkg-install | 20 | ||||
-rw-r--r-- | www/rt32/Makefile | 8 | ||||
-rw-r--r-- | www/rt32/pkg-install | 20 | ||||
-rw-r--r-- | www/rt34/Makefile | 8 | ||||
-rw-r--r-- | www/rt34/pkg-install | 20 | ||||
-rw-r--r-- | www/rt36/Makefile | 8 | ||||
-rw-r--r-- | www/rt36/pkg-install | 20 |
8 files changed, 100 insertions, 12 deletions
diff --git a/www/rt3/Makefile b/www/rt3/Makefile index 7470ff1fae1e..e2b0056438d4 100644 --- a/www/rt3/Makefile +++ b/www/rt3/Makefile @@ -107,7 +107,6 @@ DB_DBA_PASSWORD?= WEB_USER?= www WEB_GROUP?= www LIBS_GROUP?= wheel -RT_GROUP?= rt pre-fetch: @${ECHO} "" @@ -123,8 +122,11 @@ pre-fetch: @${ECHO} "" post-extract: - -@pw groupadd ${RT_GROUP} - -@cd ${WRKSRC} && chmod a+x configure + -@${CHMOD} a+x ${WRKSRC}/configure + +pre-install: + PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} \ + ${PKGNAME} PRE-INSTALL do-install: @cd ${WRKSRC} && ${MAKE} install diff --git a/www/rt3/pkg-install b/www/rt3/pkg-install new file mode 100644 index 000000000000..c7a940c2aa4d --- /dev/null +++ b/www/rt3/pkg-install @@ -0,0 +1,20 @@ +#!/bin/sh +# $FreeBSD$ +# + +if [ "$2" != "PRE-INSTALL" ]; then + exit 0 +fi + +GROUP=rt + +if ! pw groupshow "${GROUP}" 2>/dev/null 1>&2; then + if pw groupadd ${GROUP}; then + echo "Added group \"${GROUP}\"." + else + echo "Adding group \"${GROUP}\" failed..." + exit 1 + fi +fi + +exit 0 diff --git a/www/rt32/Makefile b/www/rt32/Makefile index 7470ff1fae1e..e2b0056438d4 100644 --- a/www/rt32/Makefile +++ b/www/rt32/Makefile @@ -107,7 +107,6 @@ DB_DBA_PASSWORD?= WEB_USER?= www WEB_GROUP?= www LIBS_GROUP?= wheel -RT_GROUP?= rt pre-fetch: @${ECHO} "" @@ -123,8 +122,11 @@ pre-fetch: @${ECHO} "" post-extract: - -@pw groupadd ${RT_GROUP} - -@cd ${WRKSRC} && chmod a+x configure + -@${CHMOD} a+x ${WRKSRC}/configure + +pre-install: + PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} \ + ${PKGNAME} PRE-INSTALL do-install: @cd ${WRKSRC} && ${MAKE} install diff --git a/www/rt32/pkg-install b/www/rt32/pkg-install new file mode 100644 index 000000000000..c7a940c2aa4d --- /dev/null +++ b/www/rt32/pkg-install @@ -0,0 +1,20 @@ +#!/bin/sh +# $FreeBSD$ +# + +if [ "$2" != "PRE-INSTALL" ]; then + exit 0 +fi + +GROUP=rt + +if ! pw groupshow "${GROUP}" 2>/dev/null 1>&2; then + if pw groupadd ${GROUP}; then + echo "Added group \"${GROUP}\"." + else + echo "Adding group \"${GROUP}\" failed..." + exit 1 + fi +fi + +exit 0 diff --git a/www/rt34/Makefile b/www/rt34/Makefile index 7470ff1fae1e..e2b0056438d4 100644 --- a/www/rt34/Makefile +++ b/www/rt34/Makefile @@ -107,7 +107,6 @@ DB_DBA_PASSWORD?= WEB_USER?= www WEB_GROUP?= www LIBS_GROUP?= wheel -RT_GROUP?= rt pre-fetch: @${ECHO} "" @@ -123,8 +122,11 @@ pre-fetch: @${ECHO} "" post-extract: - -@pw groupadd ${RT_GROUP} - -@cd ${WRKSRC} && chmod a+x configure + -@${CHMOD} a+x ${WRKSRC}/configure + +pre-install: + PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} \ + ${PKGNAME} PRE-INSTALL do-install: @cd ${WRKSRC} && ${MAKE} install diff --git a/www/rt34/pkg-install b/www/rt34/pkg-install new file mode 100644 index 000000000000..c7a940c2aa4d --- /dev/null +++ b/www/rt34/pkg-install @@ -0,0 +1,20 @@ +#!/bin/sh +# $FreeBSD$ +# + +if [ "$2" != "PRE-INSTALL" ]; then + exit 0 +fi + +GROUP=rt + +if ! pw groupshow "${GROUP}" 2>/dev/null 1>&2; then + if pw groupadd ${GROUP}; then + echo "Added group \"${GROUP}\"." + else + echo "Adding group \"${GROUP}\" failed..." + exit 1 + fi +fi + +exit 0 diff --git a/www/rt36/Makefile b/www/rt36/Makefile index 7470ff1fae1e..e2b0056438d4 100644 --- a/www/rt36/Makefile +++ b/www/rt36/Makefile @@ -107,7 +107,6 @@ DB_DBA_PASSWORD?= WEB_USER?= www WEB_GROUP?= www LIBS_GROUP?= wheel -RT_GROUP?= rt pre-fetch: @${ECHO} "" @@ -123,8 +122,11 @@ pre-fetch: @${ECHO} "" post-extract: - -@pw groupadd ${RT_GROUP} - -@cd ${WRKSRC} && chmod a+x configure + -@${CHMOD} a+x ${WRKSRC}/configure + +pre-install: + PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} \ + ${PKGNAME} PRE-INSTALL do-install: @cd ${WRKSRC} && ${MAKE} install diff --git a/www/rt36/pkg-install b/www/rt36/pkg-install new file mode 100644 index 000000000000..c7a940c2aa4d --- /dev/null +++ b/www/rt36/pkg-install @@ -0,0 +1,20 @@ +#!/bin/sh +# $FreeBSD$ +# + +if [ "$2" != "PRE-INSTALL" ]; then + exit 0 +fi + +GROUP=rt + +if ! pw groupshow "${GROUP}" 2>/dev/null 1>&2; then + if pw groupadd ${GROUP}; then + echo "Added group \"${GROUP}\"." + else + echo "Adding group \"${GROUP}\" failed..." + exit 1 + fi +fi + +exit 0 |