From 94ab30a189c45c94a65e4753651933c00131cb55 Mon Sep 17 00:00:00 2001 From: nork Date: Fri, 20 Sep 2002 17:45:51 +0000 Subject: Add install rc.d script(I forgot!), and use REINPLACE_CMD. PR: users-jp/70854 Submitted by: Yoshihiro Yanagida --- net/lmd/Makefile | 8 ++++++-- net/lmd/pkg-plist | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'net/lmd') 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 -- cgit