diff options
author | Dirk Froemberg <dirk@FreeBSD.org> | 2002-04-28 07:38:54 +0000 |
---|---|---|
committer | Dirk Froemberg <dirk@FreeBSD.org> | 2002-04-28 07:38:54 +0000 |
commit | f5f2e82d03009fbdcd8d33ad4daa943c439c4f51 (patch) | |
tree | 53ba6e89f6fae3dc68445d7eb2017931fe6c4fc3 /devel/pth | |
parent | Add xmms-paranormal 0.2.0, an adaptation of the "OpenGL Spectrum (diff) |
Add startup script for non standard library path.
PR: ports/37142
Submitted by: Alex Dupre <sysadmin@alexdupre.com>
Diffstat (limited to 'devel/pth')
-rw-r--r-- | devel/pth/Makefile | 7 | ||||
-rw-r--r-- | devel/pth/files/pth.sh | 20 | ||||
-rw-r--r-- | devel/pth/pkg-plist | 1 |
3 files changed, 26 insertions, 2 deletions
diff --git a/devel/pth/Makefile b/devel/pth/Makefile index 56f764f64e75..731da7015a0f 100644 --- a/devel/pth/Makefile +++ b/devel/pth/Makefile @@ -7,9 +7,9 @@ PORTNAME= pth PORTVERSION= 1.4.1 +PORTREVISION= 1 CATEGORIES= devel -MASTER_SITES= ${MASTER_SITE_GNU} \ - ftp://ftp.engelschall.com/sw/pth/ +MASTER_SITES= ${MASTER_SITE_GNU} MASTER_SITE_SUBDIR= pth MAINTAINER= ports@FreeBSD.org @@ -30,6 +30,9 @@ MAN3= pth.3 pthread.3 post-build: @${ECHO_MSG} "===> Use 'make test' to run a quick test suite." +post-install: + @${INSTALL_SCRIPT} ${FILESDIR}/pth.sh ${PREFIX}/etc/rc.d/000.pth.sh + test: @cd ${WRKSRC} && ${MAKE} test diff --git a/devel/pth/files/pth.sh b/devel/pth/files/pth.sh new file mode 100644 index 000000000000..f3004c3281e8 --- /dev/null +++ b/devel/pth/files/pth.sh @@ -0,0 +1,20 @@ +#!/bin/sh + +if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then + echo "$0: Cannot determine the PREFIX" >&2 + exit 1 +fi + +case "$1" in + start) + /sbin/ldconfig -m ${PREFIX}/lib/pth + ;; + stop) + ;; + *) + echo "" + echo "Usage: `basename $0` { start | stop }" + echo "" + exit 64 + ;; +esac diff --git a/devel/pth/pkg-plist b/devel/pth/pkg-plist index 8b9e2b93dfd2..f7444db4a4a7 100644 --- a/devel/pth/pkg-plist +++ b/devel/pth/pkg-plist @@ -1,5 +1,6 @@ bin/pth-config bin/pthread-config +etc/rc.d/000.pth.sh include/pth/pth.h include/pth/pthread.h lib/pth/libpth.a |