1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- Support staging.

This commit is contained in:
Veniamin Gvozdikov 2014-07-01 15:16:29 +00:00
parent c34f838c48
commit 1e4fba24ca
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=360032

View File

@ -16,9 +16,8 @@ ONLY_FOR_ARCHS= i386 amd64
WRKSRC= ${WRKDIR}/${PORTNAME}
LIB_DEPENDS+= m:${PORTSDIR}/misc/compat6x
LIB_DEPENDS+= libm.so:${PORTSDIR}/misc/compat6x
NO_STAGE= yes
do-configure:
.for f in 's,./backup/,/var/db/${PORTNAME}/backup,g' \
@ -30,13 +29,10 @@ do-configure:
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME}.bin \
${PREFIX}/bin/${PORTNAME}
${STAGEDIR}${PREFIX}/bin/${PORTNAME}
post-install:
@${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf \
${PREFIX}/etc/${PORTNAME}.conf.sample
@if [ ! -f ${PREFIX}/etc/${PORTNAME}.conf ]; then \
${CP} -p ${PREFIX}/etc/${PORTNAME}.conf.sample ${PREFIX}/etc/${PORTNAME}.conf ; \
fi
${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample
.include <bsd.port.mk>