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

svn at pcbsd.org svn at pcbsd.org
Thu Nov 10 07:46:38 PST 2011


Author: kenmoore
Date: 2011-11-10 07:46:38 -0800 (Thu, 10 Nov 2011)
New Revision: 13786

Modified:
   pbi/modules/net-p2p/transmission/pbi.conf
   pbi/modules/net-p2p/transmission/scripts/post-install.sh
Log:
Fix the post-install script for transmission, require root to install, and rebuild



Modified: pbi/modules/net-p2p/transmission/pbi.conf
===================================================================
--- pbi/modules/net-p2p/transmission/pbi.conf	2011-11-10 15:45:59 UTC (rev 13785)
+++ pbi/modules/net-p2p/transmission/pbi.conf	2011-11-10 15:46:38 UTC (rev 13786)
@@ -24,5 +24,8 @@
 # Ports to build before / after
 PBI_MKPORTBEFORE="graphics/gtk-update-icon-cache"
 PBI_MKPORTAFTER="www/transmission-web"
+
+PBI_REQUIRESROOT="YES"; export PBI_REQUIRESROOT
+PBI_BUILDKEY="01"; 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	2011-11-10 15:45:59 UTC (rev 13785)
+++ pbi/modules/net-p2p/transmission/scripts/post-install.sh	2011-11-10 15:46:38 UTC (rev 13786)
@@ -5,9 +5,9 @@
 
 ln -s ${PBI_PROGDIRPATH}/etc/rc.d/transmission ${PBI_RCDIR}/transmission
 echo "transmission_enable=\"YES\"
-transmission_watch_dir=\"/Programs/share/transmission/AutoTorrents\"
-transmission_conf_dir=\"/Programs/share/transmission/etc\"
-transmission_download_dir=\"/Programs/share/transmission/home/Downloads\"
+transmission_watch_dir=\"${PBI_PROGDIRPATH}/share/transmission/AutoTorrents\"
+transmission_conf_dir=\"${PBI_PRODGIRPATH}/share/transmission/etc\"
+transmission_download_dir=\"${PBI_PROGDIRPATH}/share/transmission/home/Downloads\"
 " >> /etc/rc.conf
 
 
@@ -19,7 +19,7 @@
 CHMOD=/bin/chmod
 CHOWN=/usr/sbin/chown
 MKDIR=/bin/mkdir
-THOME=/Programs/share/${USER}/home
+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."



More information about the Commits mailing list