Add startup script for non standard library path.
PR: ports/37142 Submitted by: Alex Dupre <sysadmin@alexdupre.com>
This commit is contained in:
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
|
@ -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
20
devel/pth/files/pth.sh
Normal 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
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue