Add startup script for non standard library path.

PR:		ports/37142
Submitted by:	Alex Dupre <sysadmin@alexdupre.com>
This commit is contained in:
Dirk Froemberg 2002-04-28 07:38:54 +00:00
parent ade6c82878
commit f5f2e82d03
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=58250
3 changed files with 26 additions and 2 deletions

View File

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

20
devel/pth/files/pth.sh Normal file
View File

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

View File

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