[PC-BSD Commits] r4190 - in pbibuild/modules/net-im/pidgin: . overlay-dir

svn at pcbsd.org svn at pcbsd.org
Mon Jul 6 12:59:43 PDT 2009


Author: kris
Date: 2009-07-06 12:59:42 -0700 (Mon, 06 Jul 2009)
New Revision: 4190

Added:
   pbibuild/modules/net-im/pidgin/overlay-dir/fixprefs.sh
Modified:
   pbibuild/modules/net-im/pidgin/build.sh
   pbibuild/modules/net-im/pidgin/overlay-dir/PBI.SetupScript.sh
Log:

Added support to pidgin to update the preferences XML file with the new program location
when re-installing it. 



Modified: pbibuild/modules/net-im/pidgin/build.sh
===================================================================
--- pbibuild/modules/net-im/pidgin/build.sh	2009-07-06 18:24:29 UTC (rev 4189)
+++ pbibuild/modules/net-im/pidgin/build.sh	2009-07-06 19:59:42 UTC (rev 4190)
@@ -8,3 +8,5 @@
 # MODULEDIR = The location of the module directory for this PBI
 #   PORTVER = Version number of the port we used to build
 ##############################################################################
+
+chmod 755 ${PBIDIR}/fixprefs.sh

Modified: pbibuild/modules/net-im/pidgin/overlay-dir/PBI.SetupScript.sh
===================================================================
--- pbibuild/modules/net-im/pidgin/overlay-dir/PBI.SetupScript.sh	2009-07-06 18:24:29 UTC (rev 4189)
+++ pbibuild/modules/net-im/pidgin/overlay-dir/PBI.SetupScript.sh	2009-07-06 19:59:42 UTC (rev 4190)
@@ -34,4 +34,16 @@
   ln -s /usr/local/lib/X11/locale /Programs/${PROGDIR}/lib/X11/locale
 fi
 
+# Run our helper script, which fixes the prefs file
+USERS="`cut -d ':' -f 1 /etc/passwd | grep -v '^#'`" 
+for i in ${USERS}  
+do 
+  HOMEDIR="`cat /etc/passwd | grep ^${i}: | cut -d ":" -f 6`" 
+  if [ -e "${HOMEDIR}/${i}/.purple/prefs.xml" ]
+  then
+    su $i -c /Programs/${PROGDIR}/fixprefs.sh ${PROGDIR}
+  fi
+done
+
+
 echo "LAUNCHCLOSE: /Programs/bin/pidgin"


Property changes on: pbibuild/modules/net-im/pidgin/overlay-dir/fixprefs.sh
___________________________________________________________________
Added: svn:executable
   + *



More information about the Commits mailing list