1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-21 20:38:45 +00:00

* 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
This commit is contained in:
Joe Marcus Clarke 2005-03-16 05:17:35 +00:00
parent daa49a8a63
commit eff18c67b3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=131371
3 changed files with 26 additions and 2 deletions

View File

@ -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>

View File

@ -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

View File

@ -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