aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/yate-devel/Makefile5
-rw-r--r--net/yate-devel/pkg-install35
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