[PC-BSD Commits] r17409 - in pbi/modules/net-p2p/transmission: . scripts

svn at pcbsd.org svn at pcbsd.org
Mon Jun 25 08:03:52 PDT 2012


Author: kenmoore
Date: 2012-06-25 15:03:52 +0000 (Mon, 25 Jun 2012)
New Revision: 17409

Modified:
   pbi/modules/net-p2p/transmission/pbi.conf
   pbi/modules/net-p2p/transmission/scripts/post-install.sh
Log:
Remove the group/user scripting from net-p2p/transmission and rebuild



Modified: pbi/modules/net-p2p/transmission/pbi.conf
===================================================================
--- pbi/modules/net-p2p/transmission/pbi.conf	2012-06-25 15:00:50 UTC (rev 17408)
+++ pbi/modules/net-p2p/transmission/pbi.conf	2012-06-25 15:03:52 UTC (rev 17409)
@@ -26,6 +26,6 @@
 PBI_MKPORTAFTER="www/transmission-web devel/libevent2"
 
 PBI_REQUIRESROOT="YES"; export PBI_REQUIRESROOT
-PBI_BUILDKEY="03"; export PBI_BUILDKEY
+PBI_BUILDKEY="04"; export PBI_BUILDKEY
  
 export PBI_PROGNAME PBI_PROGWEB PBI_PROGAUTHOR PBI_PROGICON PBI_MAKEPORT PBI_MKPORTBEFORE PBI_MKPORTAFTER

Modified: pbi/modules/net-p2p/transmission/scripts/post-install.sh
===================================================================
--- pbi/modules/net-p2p/transmission/scripts/post-install.sh	2012-06-25 15:00:50 UTC (rev 17408)
+++ pbi/modules/net-p2p/transmission/scripts/post-install.sh	2012-06-25 15:03:52 UTC (rev 17409)
@@ -13,36 +13,11 @@
 
 USER=transmission
 GROUP=${USER}
-UID=921
-GID=${UID}
-PW=/usr/sbin/pw
 CHMOD=/bin/chmod
 CHOWN=/usr/sbin/chown
 MKDIR=/bin/mkdir
 THOME=${PBI_PROGDIRPATH}/share/${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..."
-	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..."
-	fi
-fi
-
 ${MKDIR} -p ${THOME}/Downloads
 ${MKDIR} -p ${THOME}/AutoTorrents
 ${MKDIR} -p ${THOME}/etc



More information about the Commits mailing list