diff options
author | crees <crees@FreeBSD.org> | 2011-08-12 21:58:50 +0800 |
---|---|---|
committer | crees <crees@FreeBSD.org> | 2011-08-12 21:58:50 +0800 |
commit | fcba9303dae3b2a3b61bb19e1e194aa2f569d3b9 (patch) | |
tree | 1f7c901c3e6347ed99ad3a92978b3af4c3e6e704 /net | |
parent | 145dea27d368844d6565db9d04fc041a400d60c1 (diff) | |
download | freebsd-ports-gnome-fcba9303dae3b2a3b61bb19e1e194aa2f569d3b9.tar.gz freebsd-ports-gnome-fcba9303dae3b2a3b61bb19e1e194aa2f569d3b9.tar.zst freebsd-ports-gnome-fcba9303dae3b2a3b61bb19e1e194aa2f569d3b9.zip |
net/gini now uses USERS
Diffstat (limited to 'net')
-rw-r--r-- | net/gini/Makefile | 5 | ||||
-rw-r--r-- | net/gini/pkg-install | 37 |
2 files changed, 2 insertions, 40 deletions
diff --git a/net/gini/Makefile b/net/gini/Makefile index 193e93346a3e..1ac6c1a7ed7f 100644 --- a/net/gini/Makefile +++ b/net/gini/Makefile @@ -21,13 +21,12 @@ USE_GNOME= glib12 GNU_CONFIGURE= yes CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib" USE_GMAKE= yes +USERS= ${PORTNAME} +GROUPS= ${USERS} MAN1= ginicon.1 ginifeed.1 MAN8= gini.8 -pre-install: - @${SETENV} ${SCRIPTS_ENV} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL - post-install: ${INSTALL_SCRIPT} ${FILESDIR}/gini.sh.sample ${PREFIX}/etc/rc.d .if !defined(NOPORTDOCS) diff --git a/net/gini/pkg-install b/net/gini/pkg-install deleted file mode 100644 index 1024c4cc7230..000000000000 --- a/net/gini/pkg-install +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/sh - -LOGDIR=/var/log/gini - -case $2 in -PRE-INSTALL) - USER=gini - GROUP=${USER} - - if pw group show "${GROUP}" 2>/dev/null; then - echo "You already have a group \"${GROUP}\", so I will use it." - else - if pw groupadd ${GROUP}; then - echo "Added group \"${GROUP}\"." - else - echo "Adding group \"${GROUP}\" failed..." - exit 1 - fi - fi - - if pw user show "${USER}" 2>/dev/null; then - echo "You already have a user \"${USER}\", so I will use it." - else - if pw useradd ${USER} -g ${GROUP} -h - \ - -s /sbin/nologin -d /nonexistent -c 'GINI streaming server' - then - echo "Added user \"${USER}\"." - else - echo "Adding user \"${USER}\" failed..." - exit 1 - fi - fi - - mkdir -p ${LOGDIR} - chown -R gini:gini ${LOGDIR} - ;; -esac |