[PC-BSD Commits] r3313 - in pbibuild/modules/kmysqladmin: . overlay-dir

svn at pcbsd.org svn at pcbsd.org
Wed Jan 21 14:41:33 PST 2009


Author: kris
Date: 2009-01-21 14:41:32 -0800 (Wed, 21 Jan 2009)
New Revision: 3313

Modified:
   pbibuild/modules/kmysqladmin/build.sh
   pbibuild/modules/kmysqladmin/copy-files
   pbibuild/modules/kmysqladmin/overlay-dir/PBI.FirstRun.sh
   pbibuild/modules/kmysqladmin/overlay-dir/PBI.RemoveScript.sh
   pbibuild/modules/kmysqladmin/overlay-dir/PBI.SetupScript.sh
   pbibuild/modules/kmysqladmin/pbi.conf
Log:

Updated kmysqladmin, now 100% self-contained :)



Modified: pbibuild/modules/kmysqladmin/build.sh
===================================================================
--- pbibuild/modules/kmysqladmin/build.sh	2009-01-21 21:06:38 UTC (rev 3312)
+++ pbibuild/modules/kmysqladmin/build.sh	2009-01-21 22:41:32 UTC (rev 3313)
@@ -8,15 +8,3 @@
 # MODULEDIR = The location of the module directory for this PBI
 #   PORTVER = Version number of the port we used to build
 ##############################################################################
-# Get all the various language files and copy them to the PBI
-LANGFILE="kmysqladmin.mo"
-mkdir ${PBIDIR}/locale/
-cd /usr/local/share/locale
-for i in `ls`
-do
-  if [ -e "/usr/local/share/locale/${i}/LC_MESSAGES/${LANGFILE}" ]
-  then
-    mkdir ${PBIDIR}/locale/${i}
-    cp /usr/local/share/locale/${i}/LC_MESSAGES/${LANGFILE} ${PBIDIR}/locale/${i}/
-  fi
-done
\ No newline at end of file

Modified: pbibuild/modules/kmysqladmin/copy-files
===================================================================
--- pbibuild/modules/kmysqladmin/copy-files	2009-01-21 21:06:38 UTC (rev 3312)
+++ pbibuild/modules/kmysqladmin/copy-files	2009-01-21 22:41:32 UTC (rev 3313)
@@ -1,9 +1,20 @@
 /usr/local/bin/kmysqladmin bin/
+/usr/local/bin/khelp* bin/
 /usr/local/share/applnk/Database/kmysqladmin.desktop share/applnk/Database/
-/usr/local/share/apps/kmysqladmin share/apps/
 /usr/local/share/doc/HTML/en/kmysqladmin share/doc/HTML/en/
 /usr/local/share/icons/hicolor/16x16/apps/kmysqladmin.png share/icons/hicolor/16x16/apps/
 /usr/local/share/icons/hicolor/32x32/apps/kmysqladmin.png share/icons/hicolor/32x32/apps/
 /usr/local/share/icons/hicolor/48x48/apps/kmysqladmin.png share/icons/hicolor/48x48/apps/
 /usr/local/share/icons/locolor/16x16/apps/kmysqladmin.png share/icons/locolor/16x16/apps/
-/usr/local/share/icons/locolor/32x32/apps/kmysqladmin.png share/icons/locolor/32x32/apps/
\ No newline at end of file
+/usr/local/share/icons/locolor/32x32/apps/kmysqladmin.png share/icons/locolor/32x32/apps/
+/usr/local/lib/kde3/kio* autolibs/kde3/
+/usr/local/share/apps share/
+/usr/local/share/config share/
+/usr/local/share/config.kcfg share/
+/usr/local/share/servicetypes share/
+/usr/local/share/mimelnk share/
+/usr/local/share/sounds/k3b* share/sounds/
+/usr/local/share/services share/
+/usr/local/bin/kio* bin/
+/usr/local/bin/*dcop* bin/
+/usr/local/libexec/gam* libexec/

Modified: pbibuild/modules/kmysqladmin/overlay-dir/PBI.FirstRun.sh
===================================================================
--- pbibuild/modules/kmysqladmin/overlay-dir/PBI.FirstRun.sh	2009-01-21 21:06:38 UTC (rev 3312)
+++ pbibuild/modules/kmysqladmin/overlay-dir/PBI.FirstRun.sh	2009-01-21 22:41:32 UTC (rev 3313)
@@ -15,34 +15,3 @@
 # echo 'SETSTEPS: <num>' # Set the current progress of the progress bar
 # echo 'MSG: <text>' # Display this text above progress bar
 #########################################
-
-
-if [ -e "/usr/local/bin/kmysqladmin" ]
-then
-    # Looks like FF is installed, ask if they want to remove the old one
-    ls -al /usr/local/bin/kmysqladmin | grep Programs 2>/dev/null
-    if [ "$?" = "0" ]
-    then
-      kdialog --yesno "KMysqladmin is already installed, do you wish to uninstall it?" 
-      if [ "$?" = "0" ]
-      then
-        FF="`ls -al /usr/local/bin/kmysqladmin | cut -d '>' -f 2 | cut -d "/" -f 3`"
-        echo $FF | grep KMysqladmin 2>/dev/null
-        if [ "$?" = "0" ]
-        then
-          PBIdelete -remove ${FF}
-        else
-          kdialog --sorry "KMysqladmin could not be automatically removed... Please remove it in Add / Remove Programs and try again."
-          return 2
-        fi
-      else
-        kdialog --sorry "KMysqladmin is already installed, it must be uninstalled before loading this PBI"
-        return 2
-      fi
-      
-    else
-      # Could not find a link to PBI folder
-      kdialog --sorry "KMysqladmin is already installed, it must be uninstalled before loading this PBI"
-      return 2
-    fi
-fi 

Modified: pbibuild/modules/kmysqladmin/overlay-dir/PBI.RemoveScript.sh
===================================================================
--- pbibuild/modules/kmysqladmin/overlay-dir/PBI.RemoveScript.sh	2009-01-21 21:06:38 UTC (rev 3312)
+++ pbibuild/modules/kmysqladmin/overlay-dir/PBI.RemoveScript.sh	2009-01-21 22:41:32 UTC (rev 3313)
@@ -6,20 +6,3 @@
 # ${2} is the username of person performing the deletion.
 # TIP: 'kdialog' should be used for user interaction. 
 #########################################
-rm -fR /usr/local/bin/kmysqladmin
-rm -fR /usr/local/share/applnk/Database/kmysqladmin.desktop
-rm -fR /usr/local/share/apps/kmysqladmin
-rm -fR /usr/local/share/doc/HTML/en/kmysqladmin
-rm -fR /usr/local/share/icons/hicolor/16x16/apps/kmysqladmin.png
-rm -fR /usr/local/share/icons/hicolor/32x32/apps/kmysqladmin.png
-rm -fR /usr/local/share/icons/hicolor/48x48/apps/kmysqladmin.png
-rm -fR /usr/local/share/icons/locolor/16x16/apps/kmysqladmin.png
-rm -fR /usr/local/share/icons/locolor/32x32/apps/kmysqladmin.png
-
-# Remove the old locale files since we are uninstalling
-LANGFILE="kmysqladmin.mo"
-cd /Programs/${PROGDIR}/locale
-for i in `ls`
-do
-  rm /usr/local/share/locale/${i}/LC_MESSAGES/${LANGFILE}
-done

Modified: pbibuild/modules/kmysqladmin/overlay-dir/PBI.SetupScript.sh
===================================================================
--- pbibuild/modules/kmysqladmin/overlay-dir/PBI.SetupScript.sh	2009-01-21 21:06:38 UTC (rev 3312)
+++ pbibuild/modules/kmysqladmin/overlay-dir/PBI.SetupScript.sh	2009-01-21 22:41:32 UTC (rev 3313)
@@ -14,14 +14,14 @@
 # echo 'SETSTEPS: <num>' # Set the current progress of the progress bar
 # echo 'MSG: <text>' # Display this text above progress bar
 #########################################
-ln -s /Programs/${PROGDIR}/.sbin/kmysqladmin /usr/local/bin/kmysqladmin
-ln -s /Programs/${PROGDIR}/share/applnk/Database/kmysqladmin.desktop /usr/local/share/applnk/Database/kmysqladmin.desktop
-ln -s /Programs/${PROGDIR}/share/apps/kmysqladmin /usr/local/share/apps/kmysqladmin
-ln -s /Programs/${PROGDIR}/share/doc/HTML/en/kmysqladmin /usr/local/share/doc/HTML/en/kmysqladmin
-ln -s /Programs/${PROGDIR}/share/icons/hicolor/16x16/apps/kmysqladmin.png /usr/local/share/icons/hicolor/16x16/apps/kmysqladmin.png
-ln -s /Programs/${PROGDIR}/share/icons/hicolor/32x32/apps/kmysqladmin.png /usr/local/share/icons/hicolor/32x32/apps/kmysqladmin.png
-ln -s /Programs/${PROGDIR}/share/icons/hicolor/48x48/apps/kmysqladmin.png /usr/local/share/icons/hicolor/48x48/apps/kmysqladmin.png
-ln -s /Programs/${PROGDIR}/share/icons/locolor/16x16/apps/kmysqladmin.png /usr/local/share/icons/locolor/16x16/apps/kmysqladmin.png
-ln -s /Programs/${PROGDIR}/share/icons/locolor/32x32/apps/kmysqladmin.png /usr/local/share/icons/locolor/32x32/apps/kmysqladmin.png
 
-echo "LAUNCHCLOSE: /usr/local/bin/kmysqladmin"
+# Check which font config we want to link to
+if [ -d "/PCBSD/local/etc/fonts" ]
+then
+  ln -s /PCBSD/local/etc/fonts /Programs/${PROGDIR}/etc/fonts
+else
+  ln -s /usr/local/etc/fonts /Programs/${PROGDIR}/etc/fonts
+fi
+
+
+echo "LAUNCHCLOSE: /Programs/bin/kmysqladmin"

Modified: pbibuild/modules/kmysqladmin/pbi.conf
===================================================================
--- pbibuild/modules/kmysqladmin/pbi.conf	2009-01-21 21:06:38 UTC (rev 3312)
+++ pbibuild/modules/kmysqladmin/pbi.conf	2009-01-21 22:41:32 UTC (rev 3313)
@@ -32,6 +32,6 @@
 
 # Build Key - Change this to anything else to trigger a rebuild 
 #           - The rebuild will take place even if port is still the same ver
-BUILDKEY="02"
+BUILDKEY="01"
 
 export PBIPORT MAKEOPTS PROGNAME PROGWEB PROGAUTHOR OTHERPORT PROGICON PROGLIBS PBIUPDATE BUILDKEY



More information about the Commits mailing list