diff options
author | crees <crees@FreeBSD.org> | 2012-12-23 01:29:17 +0800 |
---|---|---|
committer | crees <crees@FreeBSD.org> | 2012-12-23 01:29:17 +0800 |
commit | 20a3e127051b74785c13119fe5984fc3f90637b2 (patch) | |
tree | e01f9ded39121d9217d20d72977d7bb3100c4b6d | |
parent | 4c3c23b0d65db7ca674a17c2fb30f3ad72b4c821 (diff) | |
download | freebsd-ports-gnome-20a3e127051b74785c13119fe5984fc3f90637b2.tar.gz freebsd-ports-gnome-20a3e127051b74785c13119fe5984fc3f90637b2.tar.zst freebsd-ports-gnome-20a3e127051b74785c13119fe5984fc3f90637b2.zip |
Use USERS and GROUPS
Approved by: sobomax (maintainer)
-rw-r--r-- | GIDs | 1 | ||||
-rw-r--r-- | UIDs | 1 | ||||
-rw-r--r-- | net/rtpproxy/Makefile | 14 | ||||
-rw-r--r-- | net/rtpproxy/pkg-install | 35 |
4 files changed, 7 insertions, 44 deletions
@@ -110,6 +110,7 @@ hg:*:212: drizzle:*:213: opendnssec:*:215: bs:*:220: +rtpproxy:*:222: postgrey:*:225: sqlgrey:*:226: kismet:*:229: @@ -117,6 +117,7 @@ hg:*:212:212::0:0:mercurial-server user:/usr/local/hg:/bin/sh drizzle:*:213:213::0:0:Drizzle daemon:/var/db/drizzle:/usr/sbin/nologin opendnssec:*:215:215::0:0:Opendnssec Pseudo User:/nonexistent:/usr/sbin/nologin bs:*:220:220::0:0:Big Sister:/usr/local/bigsister:/bin/sh +rtpproxy:*:222:222::0:0:& user:/nonexistent:/sbin/nologin postgrey:*:225:225::0:0:Postgrey Owner:/nonexistent:/usr/sbin/nologin sqlgrey:*:226:226::0:0:SQLgrey Owner:/nonexistent:/usr/sbin/nologin aprsd:*:240:240::0:0:aprsd:/nonexistent:/bin/sh diff --git a/net/rtpproxy/Makefile b/net/rtpproxy/Makefile index 1c16c3908bac..c8265203dab6 100644 --- a/net/rtpproxy/Makefile +++ b/net/rtpproxy/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: rtpproxy -# Date created: 20 April 2005 -# Whom: sobomax@FreeBSD.org -# +# Created by: sobomax # $FreeBSD$ -# PORTNAME= rtpproxy PORTVERSION= 1.2.1 @@ -12,7 +8,7 @@ CATEGORIES= net MASTER_SITES= http://www.rtpproxy.org/chrome/site/ MAINTAINER= sobomax@FreeBSD.org -COMMENT= A high-performance RTP proxy server for the SIP Express Router (SER) +COMMENT= High-performance RTP proxy server for the SIP Express Router (SER) LIB_DEPENDS= gsm.1:${PORTSDIR}/audio/gsm @@ -22,13 +18,13 @@ CPPFLAGS+= -I${LOCALBASE}/include #CONFIGURE_ARGS= --mandir=${LOCALBASE}/man MAN8= rtpproxy.8 +USERS= ${PORTNAME} +GROUPS= ${PORTNAME} + post-build: ${SED} 's|%%PREFIX%%|${PREFIX}|g ; s|%%RC_SUBR%%|/etc/rc.subr|g' \ ${WRKSRC}/freebsd/rtpproxy.in > ${WRKDIR}/rtpproxy -pre-install: - @PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL - post-install: ${INSTALL_SCRIPT} ${WRKDIR}/rtpproxy ${PREFIX}/etc/rc.d/rtpproxy diff --git a/net/rtpproxy/pkg-install b/net/rtpproxy/pkg-install deleted file mode 100644 index 58954e7a3963..000000000000 --- a/net/rtpproxy/pkg-install +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/sh -# $FreeBSD$ -# - -if [ "$2" != "PRE-INSTALL" ]; then - exit 0 -fi - -RTPPROXY_USER=rtpproxy -RTPPROXY_GROUP=${RTPPROXY_USER} -RTPPROXY_UID=222 -RTPPROXY_GID=${RTPPROXY_UID} - -if ! pw groupshow "${RTPPROXY_GROUP}" 2>/dev/null 1>&2; then - if pw groupadd ${RTPPROXY_GROUP} -g ${RTPPROXY_GID}; then - echo "Added group \"${RTPPROXY_GROUP}\"." - else - echo "Adding group \"${RTPPROXY_GROUP}\" failed..." - exit 1 - fi -fi - -if ! pw usershow "${RTPPROXY_USER}" 2>/dev/null 1>&2; then - if pw useradd ${RTPPROXY_USER} -u ${RTPPROXY_UID} -g ${RTPPROXY_GROUP} -h - \ - -s "/sbin/nologin" -d "/nonexistent" \ - -c "RTP Proxy"; \ - then - echo "Added user \"${RTPPROXY_USER}\"." - else - echo "Adding user \"${RTPPROXY_USER}\" failed..." - exit 1 - fi -fi - -exit 0 |