diff options
author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2003-04-01 20:32:55 +0000 |
---|---|---|
committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2003-04-01 20:32:55 +0000 |
commit | 5242569a08860a334700a80c93021c2c671a6338 (patch) | |
tree | 8eec6ef4046b32d1705caafc586d252235d6abf4 /deskutils/mrproject | |
parent | - add COMMENT and MAINTAINER (diff) |
Make sure to run ldconfig -m for each of the module directories at boot time.
This allows mrproject and its API to survive reboots.
Reported by: olgeni
Adapted from: databases/mysql323-client
Notes
Notes:
svn path=/head/; revision=77926
Diffstat (limited to 'deskutils/mrproject')
-rw-r--r-- | deskutils/mrproject/Makefile | 5 | ||||
-rw-r--r-- | deskutils/mrproject/files/mrproject.sh | 16 |
2 files changed, 21 insertions, 0 deletions
diff --git a/deskutils/mrproject/Makefile b/deskutils/mrproject/Makefile index b54452970282..5f4f9af0abc0 100644 --- a/deskutils/mrproject/Makefile +++ b/deskutils/mrproject/Makefile @@ -7,6 +7,7 @@ PORTNAME= mrproject PORTVERSION= 0.9.1 +PORTREVISION= 1 CATEGORIES= deskutils gnome MASTER_SITES= ftp://ftp.codefactory.se/pub/software/mrproject/source/ @@ -30,4 +31,8 @@ post-patch: @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \ s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure +post-install: + @${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/mrproject.sh > ${PREFIX}/etc/rc.d/000.mrproject.sh + @${CHMOD} 750 ${PREFIX}/etc/rc.d/000.mrproject.sh + .include <bsd.port.mk> diff --git a/deskutils/mrproject/files/mrproject.sh b/deskutils/mrproject/files/mrproject.sh new file mode 100644 index 000000000000..82e41f4d7b06 --- /dev/null +++ b/deskutils/mrproject/files/mrproject.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +case "$1" in + start) + /sbin/ldconfig -m %%PREFIX%%/lib/mrproject + /sbin/ldconfig -m %%PREFIX%%/lib/mrproject/views + ;; + stop) + ;; + *) + echo "" + echo "Usage: `basename $0` { start | stop }" + echo "" + exit 64 + ;; +esac |