bf33aa2ef0
spotted by Stephan A. Rickauer, thanks!
52 lines
1.4 KiB
Makefile
52 lines
1.4 KiB
Makefile
# $OpenBSD: Makefile,v 1.6 2009/02/12 08:43:08 ajacoutot Exp $
|
|
|
|
COMMENT= remote filesystem snapshot utility
|
|
|
|
DISTNAME= rsnapshot-1.3.1
|
|
PKGNAME= ${DISTNAME}p0
|
|
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}
|
|
|
|
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>
|