diff options
author | Chris Rees <crees@FreeBSD.org> | 2012-12-08 15:33:27 +0000 |
---|---|---|
committer | Chris Rees <crees@FreeBSD.org> | 2012-12-08 15:33:27 +0000 |
commit | 14465d0b026716c1cf0951782fd2e255656adcbe (patch) | |
tree | f3b9d453b49ede5b38088cac6c2ff5e3519743da /net-p2p/transmission-daemon | |
parent | 365265e585b0e601bc21debd18d98fec686c42e4 (diff) |
Notes
Diffstat (limited to 'net-p2p/transmission-daemon')
-rw-r--r-- | net-p2p/transmission-daemon/Makefile | 11 | ||||
-rw-r--r-- | net-p2p/transmission-daemon/pkg-install | 46 | ||||
-rw-r--r-- | net-p2p/transmission-daemon/pkg-plist | 5 |
3 files changed, 5 insertions, 57 deletions
diff --git a/net-p2p/transmission-daemon/Makefile b/net-p2p/transmission-daemon/Makefile index b3be3bbedcdc..bbc21109521a 100644 --- a/net-p2p/transmission-daemon/Makefile +++ b/net-p2p/transmission-daemon/Makefile @@ -5,7 +5,7 @@ # $FreeBSD$ # -PORTREVISION= 0 +PORTREVISION= 1 PKGNAMESUFFIX= -daemon MAINTAINER= crees@FreeBSD.org @@ -16,10 +16,11 @@ RUN_DEPENDS= ${GEN_RUN_DEPENDS} DESCR= ${.CURDIR}/pkg-descr MASTERDIR= ${.CURDIR}/../transmission-cli PLIST= ${.CURDIR}/pkg-plist -PKGINSTALL= ${.CURDIR}/pkg-install SLAVEPORT= daemon USE_RC_SUBR= transmission +USERS= transmission +GROUPS= transmission EXTRA_CONF_ARGS=--disable-cli \ --enable-daemon \ @@ -29,10 +30,4 @@ EXTRA_CONF_ARGS=--disable-cli \ MAN1= transmission-daemon.1 transmission-remote.1 -post-install: general-install -.if !defined(PACKAGE_BUILDING) - @${SETENV} PKG_PREFIX=${PREFIX} \ - ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL -.endif - .include "${MASTERDIR}/Makefile" diff --git a/net-p2p/transmission-daemon/pkg-install b/net-p2p/transmission-daemon/pkg-install deleted file mode 100644 index 7d6ee9b0a832..000000000000 --- a/net-p2p/transmission-daemon/pkg-install +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/sh - -case $2 in -POST-INSTALL) - USER=transmission - GROUP=${USER} - UID=921 - GID=${UID} - PW=/usr/sbin/pw - CHMOD=/bin/chmod - CHOWN=/usr/sbin/chown - MKDIR=/bin/mkdir - THOME=${PKG_PREFIX}/etc/${USER}/home - - 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} -g ${GID}; 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} -u ${UID} -g ${GROUP} -h - \ - -d "${THOME}" -s /usr/sbin/nologin -c "Transmission Daemon User" - then - echo "Added user \"${USER}\"." - else - echo "Adding user \"${USER}\" failed..." - exit 1 - fi - fi - - ${MKDIR} -p ${THOME}/Downloads - ${CHOWN} root:${GROUP} ${THOME} - ${CHOWN} ${USER}:${GROUP} ${THOME}/Downloads - ${CHMOD} 1770 ${THOME} - - exit 0 - ;; -esac diff --git a/net-p2p/transmission-daemon/pkg-plist b/net-p2p/transmission-daemon/pkg-plist index e7cb3d4f583f..79cc3a27a322 100644 --- a/net-p2p/transmission-daemon/pkg-plist +++ b/net-p2p/transmission-daemon/pkg-plist @@ -5,6 +5,5 @@ bin/transmission-remote %%PORTDOCS%%%%DOCSDIR%%/NEWS %%PORTDOCS%%%%DOCSDIR%%/README %%PORTDOCS%%@dirrm %%DOCSDIR%% -@dirrmtry etc/transmission/home/Downloads -@dirrmtry etc/transmission/home -@dirrmtry etc/transmission +@dirrmtry %%ETCDIR%%/home +@dirrmtry %%ETCDIR%% |