diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2010-01-11 04:21:15 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2010-01-11 04:21:15 +0800 |
commit | ed2b1120e83921c372b03b548fb1f6227c7bc7ca (patch) | |
tree | a2070bbbf7a9e9517c6e7f289e976981ead9e210 | |
parent | 2ddea15d2b967c95d20108eb3b4d122954f8d084 (diff) | |
download | marcuscom-ports-ed2b1120e83921c372b03b548fb1f6227c7bc7ca.tar marcuscom-ports-ed2b1120e83921c372b03b548fb1f6227c7bc7ca.tar.gz marcuscom-ports-ed2b1120e83921c372b03b548fb1f6227c7bc7ca.tar.bz2 marcuscom-ports-ed2b1120e83921c372b03b548fb1f6227c7bc7ca.tar.lz marcuscom-ports-ed2b1120e83921c372b03b548fb1f6227c7bc7ca.tar.xz marcuscom-ports-ed2b1120e83921c372b03b548fb1f6227c7bc7ca.tar.zst marcuscom-ports-ed2b1120e83921c372b03b548fb1f6227c7bc7ca.zip |
Perform some massive plist surgery to give this port a fighting chance
if installed from packages.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@13423 df743ca5-7f9a-e211-a948-0013205c9059
-rw-r--r-- | ports-mgmt/packagekit/Makefile | 12 | ||||
-rw-r--r-- | ports-mgmt/packagekit/pkg-plist | 22 |
2 files changed, 26 insertions, 8 deletions
diff --git a/ports-mgmt/packagekit/Makefile b/ports-mgmt/packagekit/Makefile index a93829443..d20baebe5 100644 --- a/ports-mgmt/packagekit/Makefile +++ b/ports-mgmt/packagekit/Makefile @@ -3,11 +3,11 @@ # Whom: Anders F Bjorklund <afb@users.sourceforge.net> # # $FreeBSD$ -# $MCom: ports/ports-mgmt/packagekit/Makefile,v 1.8 2010/01/09 20:50:09 marcus Exp $ +# $MCom: ports/ports-mgmt/packagekit/Makefile,v 1.9 2010/01/09 21:00:43 marcus Exp $ PORTNAME= PackageKit PORTVERSION= 0.5.5 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= ports-mgmt sysutils MASTER_SITES= http://www.packagekit.org/releases/ @@ -20,7 +20,8 @@ LIB_DEPENDS= execinfo.1:${PORTSDIR}/devel/libexecinfo \ dbus-glib-1:${PORTSDIR}/devel/dbus-glib \ polkit-gobject-1.0:${PORTSDIR}/sysutils/polkit \ ck-connector.0:${PORTSDIR}/sysutils/consolekit -RUN_DEPENDS= lsof:${PORTSDIR}/sysutils/lsof +RUN_DEPENDS= lsof:${PORTSDIR}/sysutils/lsof \ + ${LOCALBASE}/share/mime/magic:${PORTSDIR}/misc/shared-mime-info USE_GMAKE= yes USE_GETTEXT= yes @@ -111,4 +112,9 @@ post-patch: @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \ ${WRKSRC}/src/pk-lsof.c +post-install: + @${INSTALL_DATA} ${WRKSRC}/data/transactions.db \ + ${PREFIX}/share/PackageKit/transactions.db + @-update-mime-database ${PREFIX}/share/mime > /dev/null + .include <bsd.port.post.mk> diff --git a/ports-mgmt/packagekit/pkg-plist b/ports-mgmt/packagekit/pkg-plist index d5af2cd6a..db3da8ef9 100644 --- a/ports-mgmt/packagekit/pkg-plist +++ b/ports-mgmt/packagekit/pkg-plist @@ -149,6 +149,9 @@ sbin/packagekitd %%PORTS%%share/PackageKit/helpers/ports/ruby_packagekit/prints.rb share/PackageKit/helpers/test_spawn/search-name.sh share/PackageKit/pk-upgrade-distro.sh +share/PackageKit/transactions.db +@exec mkdir -p /var/lib/PackageKit +@exec if [ ! -f /var/lib/PackageKit/%f ]; then cp -f %B/%f /var/lib/PackageKit; chmod o-r /var/lib/PackageKit/%f; fi share/PackageKit/website/img/assassin.png share/PackageKit/website/img/author-alefebvre.png share/PackageKit/website/img/author-btimothy.png @@ -430,21 +433,22 @@ share/polkit-1/actions/org.freedesktop.packagekit.policy %%RUCK%%share/ruck/ruckmain.py %%RUCK%%share/ruck/rucktalk.py %%RUCK%%share/ruck/ruckyum.py -@comment var/lib/PackageKit/transactions.db +@exec mkdir -p /var/cache/PackageKit/downloads +@unexec rmdir /var/cache/PackageKit/downloads 2>/dev/null +@unexec rmdir /var/cache/PackageKit 2>/dev/null +@unexec rmdir /var/cache 2>/dev/null +@unexec rmdir /var/lib/PackageKit 2>/dev/null +@unexec rmdir /var/lib 2>/dev/null %%RUCK%%@dirrm share/ruck/commands %%RUCK%%@dirrm share/ruck @dirrmtry share/locale/te/LC_MESSAGES @dirrmtry share/locale/te @dirrmtry share/locale/sr@latin/LC_MESSAGES @dirrmtry share/locale/sr@latin -@dirrmtry share/locale/no/LC_MESSAGES -@dirrmtry share/locale/no @dirrmtry share/locale/nn/LC_MESSAGES @dirrmtry share/locale/nn @dirrmtry share/locale/ne/LC_MESSAGES @dirrmtry share/locale/ne -@dirrmtry share/locale/mt/LC_MESSAGES -@dirrmtry share/locale/mt @dirrmtry share/locale/mr/LC_MESSAGES @dirrmtry share/locale/mr @dirrmtry share/locale/bn_IN/LC_MESSAGES @@ -452,6 +456,8 @@ share/polkit-1/actions/org.freedesktop.packagekit.policy @dirrmtry share/locale/as/LC_MESSAGES @dirrmtry share/locale/as @dirrm share/gtk-doc/html/PackageKit +@dirrmtry share/gtk-doc/html +@dirrmtry share/gtk-doc %%PORTS%%@dirrm share/PackageKit/website/img/thumbnails %%PORTS%%@dirrm share/PackageKit/website/img %%PORTS%%@dirrm share/PackageKit/website @@ -466,3 +472,9 @@ share/polkit-1/actions/org.freedesktop.packagekit.policy @dirrm include/PackageKit/packagekit-glib @dirrm include/PackageKit/backend @dirrm include/PackageKit +@dirrmtry etc/sysconfig +@dirrmtry etc/profile.d +@dirrmtry etc/cron.daily +@dirrm etc/Packagekit +@exec %%LOCALBASE%%/bin/update-mime-database %D/share/mime +@unexec %%LOCALBASE%%/bin/update-mime-database %D/share/mime |