openbsd-ports/net/rsnapshot/Makefile
2010-10-18 18:36:45 +00:00

53 lines
1.4 KiB
Makefile

# $OpenBSD: Makefile,v 1.8 2010/10/18 18:36:57 espie Exp $
COMMENT= remote filesystem snapshot utility
DISTNAME= rsnapshot-1.3.1
REVISION= 0
CATEGORIES= net sysutils
HOMEPAGE= http://www.rsnapshot.org/
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
# GPLv2+
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= ::net/rsync
RUN_DEPENDS= ::net/rsync \
::devel/p5-Lchown
PKG_ARCH= *
NO_REGRESS= Yes
CONFIGURE_STYLE= simple
CONFIGURE_ARGS+= --sysconfdir=${SYSCONFDIR}
SAMPLES_DIR= ${PREFIX}/share/examples/rsnapshot
SUBST_VARS= SAMPLES_DIR
FAKE_FLAGS= sysconfdir=${SAMPLES_DIR}
USE_GROFF = Yes
pre-build:
${SUBST_CMD} ${WRKSRC}/rsnapshot.1 ${WRKSRC}/README \
${WRKSRC}/rsnapshot-program.pl
post-install:
${INSTALL_DATA_DIR} ${SAMPLES_DIR}/utils
${INSTALL_DATA_DIR} ${SAMPLES_DIR}/utils/rsnapshotdb
${INSTALL_DATA} ${WRKSRC}/README ${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>