diff options
author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2005-03-16 05:17:35 +0000 |
---|---|---|
committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2005-03-16 05:17:35 +0000 |
commit | eff18c67b313ebbae1dbda83939c0ba7cba3ec4b (patch) | |
tree | f0fefa217f0d0db678b37e15740250d6a31bc82f | |
parent | Add missing '\' to end of line. Should fix INDEX builds. (diff) |
* Add a startup script to load evolution's libraries needed for components
such as the ximian-connector
* Fully-qualify the path to update-desktop-database in the plist since
/usr/local/bin isn't in pkg_add's PATH
Notes
Notes:
svn path=/head/; revision=131371
-rw-r--r-- | mail/evolution/Makefile | 9 | ||||
-rw-r--r-- | mail/evolution/files/evolibs.sh | 15 | ||||
-rw-r--r-- | mail/evolution/pkg-plist | 4 |
3 files changed, 26 insertions, 2 deletions
diff --git a/mail/evolution/Makefile b/mail/evolution/Makefile index ed66989ed14a..81c3bdd6dbac 100644 --- a/mail/evolution/Makefile +++ b/mail/evolution/Makefile @@ -7,6 +7,7 @@ PORTNAME= evolution PORTVERSION= 2.2.0 +PORTREVISION= 1 CATEGORIES= mail gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= sources/${PORTNAME}/2.2 @@ -95,8 +96,16 @@ PLIST_SUB+= DBUS="" PLIST_SUB+= DBUS="@comment " .endif +post-patch: + @${SED} -e 's|%%PREFIX%%|${PREFIX}| ; \ + s|%%EVO_VERSION%%|${EVO_VERSION}|' \ + ${FILESDIR}/evolibs.sh > ${WRKDIR}/evolibs.sh + post-install: @${LN} -sf ${PREFIX}/bin/evolution-${EVO_VERSION} \ ${PREFIX}/bin/evolution + @${INSTALL_SCRIPT} -m 555 ${WRKDIR}/evolibs.sh \ + ${PREFIX}/etc/rc.d/000.evolibs.sh + -@update-desktop-database .include <bsd.port.post.mk> diff --git a/mail/evolution/files/evolibs.sh b/mail/evolution/files/evolibs.sh new file mode 100644 index 000000000000..e191b9c41ed9 --- /dev/null +++ b/mail/evolution/files/evolibs.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +case "$1" in + start) + /sbin/ldconfig -m %%PREFIX%%/lib/evolution/%%EVO_VERSION%% + ;; + stop) + ;; + *) + echo "" + echo "Usage: `basename $0` { start | stop }" + echo "" + exit 64 + ;; +esac diff --git a/mail/evolution/pkg-plist b/mail/evolution/pkg-plist index 62803eb553b0..2ef7f8dcd185 100644 --- a/mail/evolution/pkg-plist +++ b/mail/evolution/pkg-plist @@ -215,7 +215,7 @@ libexec/evolution/%%VERSION%%/evolution-addressbook-export libexec/evolution/%%VERSION%%/evolution-alarm-notify libexec/evolution/%%VERSION%%/killev share/gnome/applications/evolution-%%VERSION%%.desktop -@exec update-desktop-database > /dev/null || /usr/bin/true +@exec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true share/gnome/evolution/%%VERSION%%/addresstypes.xml share/gnome/evolution/%%VERSION%%/default/C/mail/local/Inbox share/gnome/evolution/%%VERSION%%/default/de/mail/local/Inbox @@ -505,4 +505,4 @@ share/locale/zh_TW/LC_MESSAGES/evolution-%%VERSION%%.mo @dirrm include/evolution-%%VERSION%%/calendar/gui @dirrm include/evolution-%%VERSION%%/calendar @dirrm include/evolution-%%VERSION%% -@unexec update-desktop-database > /dev/null || /usr/bin/true +@unexec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true |