diff options
author | crees <crees@FreeBSD.org> | 2011-07-09 01:25:53 +0800 |
---|---|---|
committer | crees <crees@FreeBSD.org> | 2011-07-09 01:25:53 +0800 |
commit | 427078c8cca6001dd0261fe5f5d5c3ab5a8bcc5f (patch) | |
tree | 0691b63fba3c8da7a3dd592f267cd4b123cb7f75 /net | |
parent | 67e9128232ad55ece1768932e9bd2c6249b6078f (diff) | |
download | freebsd-ports-gnome-427078c8cca6001dd0261fe5f5d5c3ab5a8bcc5f.tar.gz freebsd-ports-gnome-427078c8cca6001dd0261fe5f5d5c3ab5a8bcc5f.tar.zst freebsd-ports-gnome-427078c8cca6001dd0261fe5f5d5c3ab5a8bcc5f.zip |
Use USERS and GROUPS
PR: ports/157630
Submitted by: crees (me)
Approved by: rene (mentor, implicit), maintainer
Diffstat (limited to 'net')
-rw-r--r-- | net/yate-devel/Makefile | 5 | ||||
-rw-r--r-- | net/yate-devel/pkg-install | 35 |
2 files changed, 2 insertions, 38 deletions
diff --git a/net/yate-devel/Makefile b/net/yate-devel/Makefile index 300fdebb7646..fae2c8dc2601 100644 --- a/net/yate-devel/Makefile +++ b/net/yate-devel/Makefile @@ -47,6 +47,8 @@ OPTIONS= X11 "Build GUI client; yate-gtk2" on \ H323 "H323 software channel/protocol support" on \ FAX "Fax software channel/driver support" off +USERS= ${PORTNAME} +GROUPS= ${USERS} DOCSDIR= ${LOCALBASE}/share/doc/yate PLIST_SUB= BRISTUFF="@comment " PLIST_SUB+= VERSION=${PORTVERSION:S/.p2//} @@ -125,9 +127,6 @@ post-patch: ${REINPLACE_CMD} -e 's,%%LOCALBASE%%,${LOCALBASE},g' \ ${WRKSRC}/modules/Makefile.in -pre-install: - @PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL - post-install: @${MKDIR} ${DOCSDIR} @${INSTALL_DATA} ${WRKSRC}/COPYING ${DOCSDIR} diff --git a/net/yate-devel/pkg-install b/net/yate-devel/pkg-install deleted file mode 100644 index ed6b2307e3b6..000000000000 --- a/net/yate-devel/pkg-install +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/sh -# $FreeBSD$ -# - -if [ "$2" != "PRE-INSTALL" ]; then - exit 0 -fi - -YATE_USER=yate -YATE_GROUP=${YATE_USER} -YATE_UID=204 -YATE_GID=${YATE_UID} - -if ! pw groupshow "${YATE_GROUP}" 2>/dev/null 1>&2; then - if pw groupadd ${YATE_GROUP} -g ${YATE_GID}; then - echo "Added group \"${YATE_GROUP}\"." - else - echo "Adding group \"${YATE_GROUP}\" failed..." - exit 1 - fi -fi - -if ! pw usershow "${YATE_USER}" 2>/dev/null 1>&2; then - if pw useradd ${YATE_USER} -u ${YATE_UID} -g ${YATE_GROUP} -h - \ - -s "/sbin/nologin" -d "/nonexistent" \ - -c "Yate Telephoney Server"; \ - then - echo "Added user \"${YATE_USER}\"." - else - echo "Adding user \"${YATE_USER}\" failed..." - exit 1 - fi -fi - -exit 0 |