openbsd-ports/net/rsnapshot/Makefile
alek caf814c891 Import rsnapshot 1.2.0
rsnapshot is a filesystem snapshot utility. It can take incremental
snapshots of local and remote filesystems for any number of machines.

Local filesystem snapshots are handled with rsync(1). Secure remote
connections are handled with rsync over ssh(1), while anonymous rsync
connections simply use an rsync server. Both remote and local transfers
depend on rsync.

From Sigfred Haversen <bsdlist@mumak.com>

help & ok mbalmer@
2005-02-21 16:08:06 +00:00

56 lines
1.5 KiB
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2005/02/21 16:08:06 alek Exp $
COMMENT= "remote filesystem snapshot utility"
DISTNAME= rsnapshot-1.2.0
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
${INSTALL_PROGRAM} ${WRKBUILD}/rsnapshot ${PREFIX}/bin
${INSTALL_MAN} ${WRKBUILD}/rsnapshot.1 ${PREFIX}/man/man1
${INSTALL_DATA} ${WRKBUILD}/rsnapshot.conf.default ${SAMPLES_DIR}
${INSTALL_DATA} ${WRKBUILD}/README ${SAMPLES_DIR}
${INSTALL_DATA} ${WRKSRC}/utils/* ${SAMPLES_DIR}/utils
.include <bsd.port.mk>