[PC-BSD Commits] r19364 - in pcbsd/current/src-sh/pbi-manager: . port-files

svn at pcbsd.org svn at pcbsd.org
Wed Sep 19 07:49:20 PDT 2012


Author: kris
Date: 2012-09-19 14:49:20 +0000 (Wed, 19 Sep 2012)
New Revision: 19364

Modified:
   pcbsd/current/src-sh/pbi-manager/pbi-manager
   pcbsd/current/src-sh/pbi-manager/port-files/pkg-plist
Log:

Add XDG mime / icons



Modified: pcbsd/current/src-sh/pbi-manager/pbi-manager
===================================================================
--- pcbsd/current/src-sh/pbi-manager/pbi-manager	2012-09-19 14:44:46 UTC (rev 19363)
+++ pcbsd/current/src-sh/pbi-manager/pbi-manager	2012-09-19 14:49:20 UTC (rev 19364)
@@ -1238,6 +1238,8 @@
 	if [ ! -d "${PBI_XDGCFGDIR}" ] ; then mkdir -p ${PBI_XDGCFGDIR} >/dev/null 2>/dev/null ; fi
 	if [ ! -d "${PBI_XDGAPPDIR}" ] ; then mkdir -p ${PBI_XDGAPPDIR} >/dev/null 2>/dev/null ; fi
 	if [ ! -d "${PBI_XDGDIRDIR}" ] ; then mkdir -p ${PBI_XDGDIRDIR} >/dev/null 2>/dev/null ; fi
+	if [ ! -d "${PBI_XDGICONDIR}" ] ; then mkdir -p ${PBI_XDGICONDIR} >/dev/null 2>/dev/null ; fi
+	if [ ! -d "${PBI_XDGMIMEDIR}" ] ; then mkdir -p ${PBI_XDGMIMEDIR} >/dev/null 2>/dev/null ; fi
 	if [ ! -d "${PBI_RCDIR}" ] ; then mkdir -p ${PBI_RCDIR} >/dev/null 2>/dev/null ; fi
 	if [ ! -d "${PBI_HASHDIR}" ] ; then mkdir -p ${PBI_HASHDIR} >/dev/null 2>/dev/null ; fi
 	if [ ! -d "${PBI_DBAPPDIR}" ] ; then mkdir -p ${PBI_DBAPPDIR} >/dev/null 2>/dev/null ; fi
@@ -1251,7 +1253,7 @@
 	# Set the permissions for directories if we are running as root
 	if [ `id -u` != "0" ] ; then return ; fi
 
-	for cDir in $PBI_APPDIR $PBI_DBAPPDIR $PBI_DBHASHQUEUEDIR $PBI_XDGCFGDIR $PBI_XDGAPPDIR $PBI_XDGDIRDIR
+	for cDir in $PBI_APPDIR $PBI_DBAPPDIR $PBI_DBHASHQUEUEDIR $PBI_XDGCFGDIR $PBI_XDGAPPDIR $PBI_XDGDIRDIR $PBI_XDGICONDIR $PBI_XDGMIMEDIR
 	do	
 		chown root:${PBI_INSTALLGROUP} ${cDir}
 		chmod 775 ${cDir}
@@ -1295,6 +1297,8 @@
 	PBI_XDGCFGDIR="${PBI_APPDIR}/etc/xdg/menus"
 	PBI_XDGAPPDIR="${PBI_APPDIR}/share/applications"
 	PBI_XDGDIRDIR="${PBI_APPDIR}/share/desktop-directories"
+	PBI_XDGICONDIR="${PBI_APPDIR}/share/icons/hicolor"
+	PBI_XDGMIMEDIR="${PBI_APPDIR}/share/mime"
 	PBI_RCDIR="${SYS_LOCALBASE}/etc/rc.d"
 	PBI_ETCCONF="${SYS_LOCALBASE}/etc/pbi.conf"
 	PCBSD_ETCCONF="${SYS_LOCALBASE}/etc/pcbsd.conf"

Modified: pcbsd/current/src-sh/pbi-manager/port-files/pkg-plist
===================================================================
--- pcbsd/current/src-sh/pbi-manager/port-files/pkg-plist	2012-09-19 14:44:46 UTC (rev 19363)
+++ pcbsd/current/src-sh/pbi-manager/port-files/pkg-plist	2012-09-19 14:49:20 UTC (rev 19364)
@@ -69,6 +69,9 @@
 @unexec rmdir /usr/pbi/.hashdir >/dev/null 2>/dev/null
 @unexec rmdir /usr/pbi/share/applications >/dev/null 2>/dev/null
 @unexec rmdir /usr/pbi/share/desktop-directories >/dev/null 2>/dev/null
+ at unexec rmdir /usr/pbi/share/icons/hicolor >/dev/null 2>/dev/null
+ at unexec rmdir /usr/pbi/share/icons >/dev/null 2>/dev/null
+ at unexec rmdir /usr/pbi/share/mime >/dev/null 2>/dev/null
 @unexec rmdir /usr/pbi/share >/dev/null 2>/dev/null
 @unexec rmdir /usr/pbi/etc/xdg/menus >/dev/null 2>/dev/null
 @unexec rmdir /usr/pbi/etc/xdg >/dev/null 2>/dev/null



More information about the Commits mailing list