2007-09-15 18:36:51 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.4 2007/09/15 22:36:58 merdely Exp $
|
2005-02-21 11:08:06 -05:00
|
|
|
|
2007-09-15 18:36:51 -04:00
|
|
|
COMMENT= remote filesystem snapshot utility
|
2005-02-21 11:08:06 -05:00
|
|
|
|
2006-08-01 08:32:36 -04:00
|
|
|
DISTNAME= rsnapshot-1.2.9
|
2005-02-21 11:08:06 -05:00
|
|
|
CATEGORIES= net
|
|
|
|
HOMEPAGE= http://www.rsnapshot.org/
|
|
|
|
|
|
|
|
MAINTAINER= Sigfred Haversen <bsdlist@mumak.com>
|
|
|
|
|
|
|
|
# GPL
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
|
|
|
MASTER_SITES= http://www.rsnapshot.org/downloads/
|
|
|
|
|
|
|
|
BUILD_DEPENDS= ${RUN_DEPENDS}
|
|
|
|
RUN_DEPENDS= ::net/rsync
|
|
|
|
|
|
|
|
PKG_ARCH= *
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
|
|
|
SEPARATE_BUILD= concurrent
|
|
|
|
CONFIGURE_STYLE= simple
|
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${SYSCONFDIR}
|
|
|
|
|
|
|
|
SAMPLES_DIR= ${PREFIX}/share/examples/rsnapshot
|
|
|
|
|
|
|
|
post-build:
|
|
|
|
sed 's,!!SAMPLES_DIR!!,${SAMPLES_DIR},g; \
|
|
|
|
s,!!SYSCONFDIR!!,${SYSCONFDIR},g' \
|
|
|
|
< ${WRKSRC}/rsnapshot.1 \
|
|
|
|
> ${WRKBUILD}/rsnapshot.1
|
|
|
|
sed 's,!!SAMPLES_DIR!!,${SAMPLES_DIR},g; \
|
|
|
|
s,!!SYSCONFDIR!!,${SYSCONFDIR},g' \
|
|
|
|
< ${WRKSRC}/README \
|
|
|
|
> ${WRKBUILD}/README
|
|
|
|
mv ${WRKBUILD}/rsnapshot ${WRKBUILD}/rsnapshot.tmp
|
|
|
|
sed 's,!!SAMPLES_DIR!!,${SAMPLES_DIR},g; \
|
|
|
|
s,!!SYSCONFDIR!!,${SYSCONFDIR},g' \
|
|
|
|
< ${WRKBUILD}/rsnapshot.tmp \
|
|
|
|
> ${WRKBUILD}/rsnapshot
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_DATA_DIR} ${SAMPLES_DIR}
|
|
|
|
${INSTALL_DATA_DIR} ${SAMPLES_DIR}/utils
|
2006-08-01 08:32:36 -04:00
|
|
|
${INSTALL_DATA_DIR} ${SAMPLES_DIR}/utils/rsnapshotdb
|
|
|
|
${INSTALL_SCRIPT} ${WRKBUILD}/rsnapshot ${PREFIX}/bin
|
2005-02-21 11:08:06 -05:00
|
|
|
${INSTALL_MAN} ${WRKBUILD}/rsnapshot.1 ${PREFIX}/man/man1
|
|
|
|
${INSTALL_DATA} ${WRKBUILD}/rsnapshot.conf.default ${SAMPLES_DIR}
|
|
|
|
${INSTALL_DATA} ${WRKBUILD}/README ${SAMPLES_DIR}
|
2006-08-01 08:32:36 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/utils/README ${SAMPLES_DIR}/utils
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/utils/rsnaptar ${SAMPLES_DIR}/utils
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/utils/*.pl ${SAMPLES_DIR}/utils
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/utils/*.sh ${SAMPLES_DIR}/utils
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/utils/rsnapshotdb/* ${SAMPLES_DIR}/utils/rsnapshotdb
|
2005-02-21 11:08:06 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|