mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
- Add stage support
This commit is contained in:
parent
c9b0543b6d
commit
fcb18eda79
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=336005
@ -14,28 +14,22 @@ RUN_DEPENDS= wget:${PORTSDIR}/ftp/wget
|
||||
|
||||
NO_BUILD= yes
|
||||
|
||||
MAN1= dphys-config.1
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
||||
|
||||
NO_STAGE= yes
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|/etc|${PREFIX}/etc|' ${WRKSRC}/${PORTNAME}
|
||||
|
||||
do-install:
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
|
||||
${INSTALL_MAN} ${WRKSRC}/${MAN1} ${MAN1PREFIX}/man/man1
|
||||
${MKDIR} ${EXAMPLESDIR}/site.example/local/sbin
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
|
||||
${INSTALL_MAN} ${WRKSRC}/dphys-config.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
|
||||
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/site.example/local/sbin
|
||||
.for f in dphys-config.example cron.d.example init.d.example
|
||||
${INSTALL_DATA} ${WRKSRC}/${f} ${EXAMPLESDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${EXAMPLESDIR}
|
||||
.endfor
|
||||
${INSTALL_DATA} ${WRKSRC}/site.example/${PORTNAME}* \
|
||||
${EXAMPLESDIR}/site.example/
|
||||
${STAGEDIR}${EXAMPLESDIR}/site.example/
|
||||
${INSTALL_DATA} ${WRKSRC}/site.example/local/sbin/${PORTNAME}-* \
|
||||
${EXAMPLESDIR}/site.example/local/sbin/
|
||||
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.example ${PREFIX}/etc/${PORTNAME}.sample
|
||||
.if !exists(${PREFIX}/etc/${PORTNAME})
|
||||
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.example ${PREFIX}/etc/${PORTNAME}
|
||||
.endif
|
||||
${STAGEDIR}${EXAMPLESDIR}/site.example/local/sbin/
|
||||
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.example ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.sample
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,8 +1,8 @@
|
||||
@comment $FreeBSD$
|
||||
bin/dphys-config
|
||||
@unexec if cmp -s %D/etc/dphys-config %D/etc/dphys-config.sample; then rm -f %D/etc/dphys-config; fi
|
||||
etc/dphys-config.sample
|
||||
@exec [ -f %B/dphys-config ] || cp %B/%f %B/dphys-config
|
||||
man/man1/dphys-config.1.gz
|
||||
%%EXAMPLESDIR%%/cron.d.example
|
||||
%%EXAMPLESDIR%%/dphys-config.example
|
||||
%%EXAMPLESDIR%%/init.d.example
|
||||
|
Loading…
Reference in New Issue
Block a user