s/X11BASE/PREFIX/ in devhelp start script.

For X11BASE != PREFIX cases.

Submitted by:	bland
This commit is contained in:
Koop Mast 2005-09-18 13:55:49 +00:00
parent 10ee43b9c6
commit 94b016e8a9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=143072
2 changed files with 3 additions and 3 deletions

View file

@ -7,6 +7,7 @@
PORTNAME= devhelp
PORTVERSION= 0.10
PORTREVISION= 1
CATEGORIES?= devel gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/${PORTNAME}/${PORTVERSION:C,^([[:digit:]]+\.[[:digit:]]+).*,\1,}
@ -54,7 +55,6 @@ pre-everything::
@${ECHO_MSG} " firefox "
@${ECHO_MSG} ""
post-patch:
@${SED} -e 's|%%PREFIX%%|${PREFIX}|g' \
-e 's|%%MOZILLA%%|${MOZILLA}|g' \
@ -62,6 +62,6 @@ post-patch:
post-install:
@${INSTALL_SCRIPT} -m 555 ${WRKDIR}/devhelp.sh ${PREFIX}/etc/rc.d/000.devhelp.sh
@ldconfig -m ${X11BASE}/lib/${MOZILLA}
@${LDCONFIG} -m ${X11BASE}/lib/${MOZILLA}
.include <bsd.port.post.mk>

View file

@ -13,7 +13,7 @@ name=devhelp
start_cmd=devhelp_start
stop_cmd=:
[ -z "$devhelp_libdir" ] && devhelp_libdir="%%X11BASE%%/lib/%%MOZILLA%%"
[ -z "$devhelp_libdir" ] && devhelp_libdir="%%PREFIX%%/lib/%%MOZILLA%%"
devhelp_start() {
if [ -d "$devhelp_libdir" ]; then