Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use USERS and GROUPS

Approved by:	sobomax (maintainer)


git-svn-id: svn+ssh://svn.freebsd.org/ports/head@309401 aed309b6-a8cd-e111-996c-001c23d10e55
  • Loading branch information...
commit 9c4c18714cfe3f2d37b03c1ff2e52bc16176a6e6 1 parent b8b370d
crees authored
View
1  GIDs
@@ -110,6 +110,7 @@ hg:*:212:
drizzle:*:213:
opendnssec:*:215:
bs:*:220:
+rtpproxy:*:222:
postgrey:*:225:
sqlgrey:*:226:
kismet:*:229:
View
1  UIDs
@@ -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
View
14 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
View
35 net/rtpproxy/pkg-install
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.