mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Add install rc.d script(I forgot!), and use REINPLACE_CMD.
PR: users-jp/70854 Submitted by: Yoshihiro Yanagida <yosh@yanagi.to>
This commit is contained in:
parent
480380d547
commit
c79372c0c6
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=66867
2 changed files with 7 additions and 2 deletions
|
@ -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/
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue