aboutsummaryrefslogtreecommitdiff
path: root/net/loadd
diff options
context:
space:
mode:
authorNorikatsu Shigemura <nork@FreeBSD.org>2002-09-20 17:36:26 +0000
committerNorikatsu Shigemura <nork@FreeBSD.org>2002-09-20 17:36:26 +0000
commit480380d54715c8432e641a6411759a2d994cddbf (patch)
tree6a0745a514e2db9c3de127086a3d02ce61083e7c /net/loadd
parent973cb7e987d8fa0e02aaff7b25d9db71639329dc (diff)
downloadports-480380d54715c8432e641a6411759a2d994cddbf.tar.gz
ports-480380d54715c8432e641a6411759a2d994cddbf.zip
Notes
Diffstat (limited to 'net/loadd')
-rw-r--r--net/loadd/Makefile7
-rw-r--r--net/loadd/files/010.loadd.sh2
2 files changed, 6 insertions, 3 deletions
diff --git a/net/loadd/Makefile b/net/loadd/Makefile
index 8b1ad2dff701..e9459f686380 100644
--- a/net/loadd/Makefile
+++ b/net/loadd/Makefile
@@ -14,6 +14,9 @@ MAINTAINER= sysadmin@alexdupre.com
LIB_DEPENDS= glib12.3:${PORTSDIR}/devel/glib12
+USE_REINPLACE= YES
+REINPLACE_ARGS= #empty
+
DOCS= INSTALL LICENSE README TODO
PKGMESSAGE= ${WRKDIR}/pkg-message
@@ -21,8 +24,8 @@ MAKE_ENV+= CPPFLAGS="-DPREFIX=\\\"${PREFIX}\\\""
MAKE_ENV+= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" PTHREAD_LIBS="${PTHREAD_LIBS}"
post-build:
- @${SED} 's,%%PREFIX%%,${PREFIX},g' ${.CURDIR}/pkg-message.in \
- > ${WRKDIR}/pkg-message
+ ${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g' \
+ ${.CURDIR}/pkg-message.in > ${WRKDIR}/pkg-message
do-install:
@${ECHO_CMD} "Installing files..."
diff --git a/net/loadd/files/010.loadd.sh b/net/loadd/files/010.loadd.sh
index a20c4440d37b..27fcbc9d9ce6 100644
--- a/net/loadd/files/010.loadd.sh
+++ b/net/loadd/files/010.loadd.sh
@@ -16,7 +16,7 @@ case "$1" in
start)
case ${loadd_enable:-NO} in
[Yy][Ee][Ss])
- [ -f ${PREFIX}/etc/loadd.conf && ${loadd_program:-${PREFIX}/libexec/loadd} ${loadd_flags:--d} && echo -n ' loadd'
+ [ -f ${PREFIX}/etc/loadd.conf ] && ${loadd_program:-${PREFIX}/libexec/loadd} ${loadd_flags:--d} && echo -n ' loadd'
;;
esac
;;