diff options
author | mva <mva@FreeBSD.org> | 2014-01-18 23:46:24 +0800 |
---|---|---|
committer | mva <mva@FreeBSD.org> | 2014-01-18 23:46:24 +0800 |
commit | 00931d311b1e3962e52003a5cd624f37282420bd (patch) | |
tree | 891dd77d66c0f7ce29693e95774623983ec33a37 /sysutils | |
parent | 6835151a45de7d1fd594c50cd0164aa176ec3b23 (diff) | |
download | freebsd-ports-gnome-00931d311b1e3962e52003a5cd624f37282420bd.tar.gz freebsd-ports-gnome-00931d311b1e3962e52003a5cd624f37282420bd.tar.zst freebsd-ports-gnome-00931d311b1e3962e52003a5cd624f37282420bd.zip |
- Enable stagedir support
- Add LICENSE
- Simplify OPTIONS
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/flexbackup/Makefile | 57 | ||||
-rw-r--r-- | sysutils/flexbackup/pkg-plist | 2 |
2 files changed, 21 insertions, 38 deletions
diff --git a/sysutils/flexbackup/Makefile b/sysutils/flexbackup/Makefile index 7c4f264147cf..d4dc8053a4a9 100644 --- a/sysutils/flexbackup/Makefile +++ b/sysutils/flexbackup/Makefile @@ -11,14 +11,13 @@ MASTER_SITES= http://www.edwinh.org/flexbackup/tarball/ \ MAINTAINER= mva@FreeBSD.org COMMENT= Perl-based flexible backup system that can use dump/afio/cpio/tar/star -# FreeBSD 6.0 removed gtar -RUN_DEPENDS= gtar:${PORTSDIR}/archivers/gtar - -TAR_CMD= ${PREFIX}/bin/gtar +LICENSE= GPLv2 -MAKE_ARGS= PERLPATH=${PERL} CONFFILE=${PREFIX}/etc/flexbackup.conf +RUN_DEPENDS= gtar:${PORTSDIR}/archivers/gtar USES= perl5 +MAKE_ARGS= PERLPATH=${PERL} CONFFILE=${PREFIX}/etc/flexbackup.conf +TAR_CMD= ${PREFIX}/bin/gtar SUB_FILES+= pkg-message @@ -29,48 +28,30 @@ MBUFFER_DESC= Enable mbuffer support STAR_DESC= Enable star support ZIP_DESC= Enable zip support -NO_STAGE= yes -.include <bsd.port.options.mk> - -.if ${PORT_OPTIONS:MAFIO} -RUN_DEPENDS+= afio:${PORTSDIR}/sysutils/afio -.endif +AFIO_RUN_DEPENDS= afio:${PORTSDIR}/sysutils/afio +BUFFER_RUN_DEPENDS= buffer:${PORTSDIR}/misc/buffer +MBUFFER_RUN_DEPENDS= mbuffer:${PORTSDIR}/misc/mbuffer +STAR_RUN_DEPENDS= star:${PORTSDIR}/archivers/star +ZIP_RUN_DEPENDS= zip:${PORTSDIR}/archivers/zip -.if ${PORT_OPTIONS:MBUFFER} -RUN_DEPENDS+= buffer:${PORTSDIR}/misc/buffer -.endif - -.if ${PORT_OPTIONS:MMBUFFER} -RUN_DEPENDS+= mbuffer:${PORTSDIR}/misc/mbuffer -.endif - -.if ${PORT_OPTIONS:MSTAR} -RUN_DEPENDS+= star:${PORTSDIR}/archivers/star -.endif - -.if ${PORT_OPTIONS:MZIP} -RUN_DEPENDS+= zip:${PORTSDIR}/archivers/zip -.endif - -MAN1= flexbackup.1 -MAN5= flexbackup.conf.5 +DOCLIST= CHANGES CREDITS README TODO faq.html post-patch: @${REINPLACE_CMD} -e 's|%%TAR_CMD%%|'${TAR_CMD}'|g' \ ${WRKSRC}/flexbackup.conf do-install: - @${INSTALL_SCRIPT} ${WRKSRC}/fb.install ${PREFIX}/bin/flexbackup - @${INSTALL_DATA} ${WRKSRC}/flexbackup.conf ${PREFIX}/etc/flexbackup.conf.sample - @${INSTALL_MAN} ${WRKSRC}/flexbackup.1 ${MAN1PREFIX}/man/man1 - @${INSTALL_MAN} ${WRKSRC}/flexbackup.conf.5 ${MAN5PREFIX}/man/man5 - -DOCLIST= CHANGES CREDITS README TODO faq.html + @${INSTALL_SCRIPT} ${WRKSRC}/fb.install \ + ${STAGEDIR}${PREFIX}/bin/flexbackup + @${INSTALL_DATA} ${WRKSRC}/flexbackup.conf \ + ${STAGEDIR}${PREFIX}/etc/flexbackup.conf.sample + @${INSTALL_MAN} ${WRKSRC}/flexbackup.1 \ + ${STAGEDIR}${MAN1PREFIX}/man/man1 + @${INSTALL_MAN} ${WRKSRC}/flexbackup.conf.5 \ + ${STAGEDIR}${MAN5PREFIX}/man/man5 post-install: -.if ${PORT_OPTIONS:MDOCS} - @cd ${WRKSRC} && ${COPYTREE_SHARE} "${DOCLIST}" ${DOCSDIR} -.endif + @cd ${WRKSRC} && ${COPYTREE_SHARE} "${DOCLIST}" ${STAGEDIR}${DOCSDIR} @${CAT} ${PKGMESSAGE} .include <bsd.port.mk> diff --git a/sysutils/flexbackup/pkg-plist b/sysutils/flexbackup/pkg-plist index 7695fda94a9e..8cddca94cd66 100644 --- a/sysutils/flexbackup/pkg-plist +++ b/sysutils/flexbackup/pkg-plist @@ -1,5 +1,7 @@ bin/flexbackup etc/flexbackup.conf.sample +man/man1/flexbackup.1.gz +man/man5/flexbackup.conf.5.gz %%PORTDOCS%%%%DOCSDIR%%/CHANGES %%PORTDOCS%%%%DOCSDIR%%/CREDITS %%PORTDOCS%%%%DOCSDIR%%/README |