mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
No need to substitute variables in rc-script by hand
This commit is contained in:
parent
23729bfd50
commit
bb5c131440
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=133937
3 changed files with 1 additions and 8 deletions
|
@ -24,8 +24,7 @@ LIB_DEPENDS+= db3.3:${PORTSDIR}/databases/db3
|
|||
|
||||
NO_WRKSUBDIR= yes
|
||||
USE_REINPLACE= yes
|
||||
USE_RC_SUBR= yes
|
||||
RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
|
||||
USE_RC_SUBR= dracd.sh
|
||||
|
||||
MAN3= dracauth.3
|
||||
MAN1= rpc.dracd.1
|
||||
|
@ -61,12 +60,7 @@ do-install:
|
|||
@${INSTALL_MAN} ${WRKSRC}/rpc.dracd.1m ${PREFIX}/man/man1/rpc.dracd.1
|
||||
.endif
|
||||
|
||||
post-build:
|
||||
@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
|
||||
${FILESDIR}/dracd.sh > ${WRKSRC}/dracd.sh
|
||||
|
||||
post-install:
|
||||
@${INSTALL_SCRIPT} ${WRKSRC}/dracd.sh ${PREFIX}/etc/rc.d/dracd.sh
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
sbin/rpc.dracd
|
||||
include/drac.h
|
||||
lib/libdrac.a
|
||||
etc/rc.d/dracd.sh
|
||||
etc/dracd.allow-sample
|
||||
|
|
Loading…
Add table
Reference in a new issue