openbsd-ports/net/rsnapshot/Makefile
2022-12-28 08:45:33 +00:00

53 lines
1.3 KiB
Makefile

COMMENT= remote filesystem snapshot utility
GH_ACCOUNT= rsnapshot
GH_PROJECT= rsnapshot
GH_TAGNAME= 1.4.5
CATEGORIES= net sysutils
HOMEPAGE= http://www.rsnapshot.org/
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
# GPLv2+
PERMIT_PACKAGE= Yes
BUILD_DEPENDS= net/rsync
RUN_DEPENDS= devel/p5-Lchown \
net/rsync
PKG_ARCH= *
CONFIGURE_STYLE= autoreconf
AUTOCONF_VERSION= 2.69
AUTOMAKE_VERSION= 1.15
AUTORECONF= ./autogen.sh
SAMPLES_DIR= ${PREFIX}/share/examples/rsnapshot
FAKE_FLAGS= sysconfdir=${SAMPLES_DIR}
# needed for tests
USE_GMAKE= Yes
TEST_TARGET= test
post-configure:
sed -i "s,/etc/rsnapshot.conf,${SYSCONFDIR}/rsnapshot.conf,g" \
${WRKSRC}/{README.md,rsnapshot-program.pl} \
${WRKSRC}/rsnapshot{,-diff} \
${WRKSRC}/utils/rsnapshotdb/rsnapshotDB.pl
post-install:
${INSTALL_DATA_DIR} ${SAMPLES_DIR}/utils
${INSTALL_DATA_DIR} ${SAMPLES_DIR}/utils/rsnapshotdb
${INSTALL_DATA} ${WRKSRC}/README.md ${SAMPLES_DIR}
${INSTALL_DATA} ${WRKSRC}/utils/README ${SAMPLES_DIR}/utils
${INSTALL_DATA} ${WRKSRC}/utils/rsnapshot-copy ${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
.include <bsd.port.mk>