aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authornork <nork@FreeBSD.org>2002-09-21 01:45:51 +0800
committernork <nork@FreeBSD.org>2002-09-21 01:45:51 +0800
commit94ab30a189c45c94a65e4753651933c00131cb55 (patch)
treeff7d834e8d6c3b2b6843d04c84dd7d0781cc0dc2 /net
parente86ebd7541d87c4a2e7f2fba00a874d764acbc78 (diff)
downloadfreebsd-ports-gnome-94ab30a189c45c94a65e4753651933c00131cb55.tar.gz
freebsd-ports-gnome-94ab30a189c45c94a65e4753651933c00131cb55.tar.zst
freebsd-ports-gnome-94ab30a189c45c94a65e4753651933c00131cb55.zip
Add install rc.d script(I forgot!), and use REINPLACE_CMD.
PR: users-jp/70854 Submitted by: Yoshihiro Yanagida <yosh@yanagi.to>
Diffstat (limited to 'net')
-rw-r--r--net/lmd/Makefile8
-rw-r--r--net/lmd/pkg-plist1
2 files changed, 7 insertions, 2 deletions
diff --git a/net/lmd/Makefile b/net/lmd/Makefile
index 1cf69392eec3..1fb8870b8e1e 100644
--- a/net/lmd/Makefile
+++ b/net/lmd/Makefile
@@ -12,6 +12,9 @@ MASTER_SITES= http://www.bsdshell.net/download/
MAINTAINER= sysadmin@alexdupre.com
+USE_REINPLACE= YES
+REINPLACE_ARGS= #empty
+
MODULES= ldd_http_module.so
DOCS= INSTALL LICENSE README
PKGMESSAGE= ${WRKDIR}/pkg-message
@@ -19,12 +22,13 @@ PKGMESSAGE= ${WRKDIR}/pkg-message
MAKE_ENV+= CPPFLAGS="-DPREFIX=\\\"${PREFIX}\\\""
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..."
@${INSTALL_PROGRAM} ${WRKSRC}/lmd ${PREFIX}/sbin/lmd
+ @${INSTALL_SCRIPT} ${FILESDIR}/lmd.sh ${PREFIX}/etc/rc.d/lmd.sh
@${INSTALL_DATA} ${WRKSRC}/lmd.conf ${PREFIX}/etc/lmd.conf.sample
.for f in ${MODULES}
@${INSTALL_DATA} ${WRKSRC}/modules_check/${f} ${PREFIX}/lib/
diff --git a/net/lmd/pkg-plist b/net/lmd/pkg-plist
index 82458824c348..6bc546004a57 100644
--- a/net/lmd/pkg-plist
+++ b/net/lmd/pkg-plist
@@ -1,4 +1,5 @@
sbin/lmd
+etc/rc.d/lmd.sh
etc/lmd.conf.sample
lib/ldd_http_module.so
%%PORTDOCS%%share/doc/lmd/README