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

Support staging

This commit is contained in:
Emanuel Haupt 2014-02-25 13:33:55 +00:00
parent 1ffaa567ff
commit e0e54afe5d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=345995

View File

@ -12,30 +12,24 @@ COMMENT= Convenience frontend tools for the management of UFS2 snapshots
NO_BUILD= yes NO_BUILD= yes
MAN8= snapshot.8 periodic-snapshot.8
PLIST_FILES= sbin/snapshot \
sbin/periodic-snapshot \
etc/amd.map.snap
SUB_FILES= pkg-message pkg-deinstall SUB_FILES= pkg-message pkg-deinstall
PKGMESSAGE= ${WRKDIR}/pkg-message PKGMESSAGE= ${WRKDIR}/pkg-message
PKGDEINSTALLL= ${WRKDIR}/pkg-deinstall PKGDEINSTALLL= ${WRKDIR}/pkg-deinstall
NO_STAGE= yes PLIST_FILES= etc/amd.map.snap man/man8/periodic-snapshot.8.gz \
man/man8/snapshot.8.gz sbin/periodic-snapshot sbin/snapshot
post-patch: post-patch:
@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" \ @${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" \
${WRKSRC}/amd.map.snap ${WRKSRC}/snapshot \ ${WRKSRC}/amd.map.snap ${WRKSRC}/snapshot \
${WRKSRC}/periodic-snapshot ${WRKSRC}/snapshot.8 ${WRKSRC}/periodic-snapshot ${WRKSRC}/snapshot.8
do-install: do-install:
${INSTALL_SCRIPT} ${WRKSRC}/snapshot ${PREFIX}/sbin/ ${INSTALL_SCRIPT} ${WRKSRC}/snapshot ${STAGEDIR}${PREFIX}/sbin
${INSTALL_SCRIPT} ${WRKSRC}/periodic-snapshot ${PREFIX}/sbin/ ${INSTALL_SCRIPT} ${WRKSRC}/periodic-snapshot ${STAGEDIR}${PREFIX}/sbin
${INSTALL_MAN} ${WRKSRC}/snapshot.8 ${PREFIX}/man/man8/ ${INSTALL_MAN} ${WRKSRC}/snapshot.8 ${STAGEDIR}${MANPREFIX}/man/man8
${INSTALL_MAN} ${WRKSRC}/periodic-snapshot.8 ${PREFIX}/man/man8/ ${INSTALL_MAN} ${WRKSRC}/periodic-snapshot.8 \
${INSTALL_DATA} ${WRKSRC}/amd.map.snap ${PREFIX}/etc/ ${STAGEDIR}${MANPREFIX}/man/man8
${INSTALL_DATA} ${WRKSRC}/amd.map.snap ${STAGEDIR}${PREFIX}/etc
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk> .include <bsd.port.mk>