2d99ce66cb
--------------------------------- ===================================================== 02/21/2010 - SaraB version 1.0.0 ===================================================== * SaraB can now be installed and run with path names containing space characters * Corrected wrong samples for TOH backup schedules ===================================================== 02/15/2009 - SaraB version 0.2.7 ===================================================== Changes pointed out by Ivan Savcic <isavcic@gmail.com>: * added -Q option by default when executing DAR * DAR exit code variable fixed * DAR exit code 5 is treated as warning now * overall improved handling of warnings ===================================================== 11/28/2008 - SaraB version 0.2.6 ===================================================== * improvements to install.sh * DAR exit code 11 is treated as warning now * support for post backup script ===================================================== 08/30/2008 - SaraB version 0.2.5 ===================================================== * sarab.sh can be run via sudo (effective user id is checked) * fix to install.sh * install.sh now locates dar on path
70 lines
2 KiB
Makefile
70 lines
2 KiB
Makefile
# $NetBSD: Makefile,v 1.7 2016/05/14 21:06:11 mef Exp $
|
|
|
|
DISTNAME= sarab-1.0.0
|
|
CATEGORIES= archivers
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=sarab/}
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://sarab.sourceforge.net/
|
|
COMMENT= Schedule And Rotate Automatic Backups
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
DEPENDS+= dar-[0-9]*:../../archivers/dar
|
|
|
|
USE_TOOLS+= bash:run
|
|
PKG_SYSCONFSUBDIR= sarab
|
|
|
|
REPLACE_INTERPRETER+= bash
|
|
REPLACE.bash.old= /bin/bash
|
|
REPLACE.bash.new= ${TOOLS_PATH.bash}
|
|
REPLACE_FILES.bash= sarab.sh
|
|
|
|
EGDIR= ${PREFIX}/share/examples/sarab
|
|
CONF_FILES+= ${EGDIR}/rotation.schedule ${PKG_SYSCONFDIR}/rotation.schedule
|
|
CONF_FILES+= ${EGDIR}/sarab.conf ${PKG_SYSCONFDIR}/sarab.conf
|
|
CONF_FILES+= ${EGDIR}/sarab.dcf ${PKG_SYSCONFDIR}/sarab.dcf
|
|
|
|
SUBST_CLASSES+= dar
|
|
SUBST_STAGE.dar= post-patch
|
|
SUBST_MESSAGE.dar= Fix path to DAR utilities
|
|
SUBST_FILES.dar= etc/sarab.conf
|
|
SUBST_SED.dar= -e "s|/usr/local/bin/dar|${PREFIX}/bin/dar|"
|
|
|
|
# archivers/dar disables building "dar_static"
|
|
SUBST_CLASSES+= nocopy
|
|
SUBST_STAGE.nocopy= post-patch
|
|
SUBST_MESSAGE.nocopy= Do not copy dar_static
|
|
SUBST_FILES.nocopy= etc/sarab.conf
|
|
SUBST_SED.nocopy= -e "s|COPY_DAR=\"yes\"|COPY_DAR=\"no\"|"
|
|
|
|
SUBST_CLASSES+= conf
|
|
SUBST_STAGE.conf= post-patch
|
|
SUBST_MESSAGE.conf= Fix path to SaraB configuration files
|
|
SUBST_FILES.conf= sarab.sh etc/sarab.conf
|
|
SUBST_SED.conf= -e "s|/etc/sarab|${PKG_SYSCONFDIR}|"
|
|
|
|
# NetBSD has /kern, and does not have /sys. Other platforms might
|
|
# differ.
|
|
SUBST_CLASSES+= prune
|
|
SUBST_STAGE.prune= post-patch
|
|
SUBST_MESSAGE.prune= Prune /kern instead of /sys
|
|
SUBST_FILES.prune= etc/sarab.dcf
|
|
SUBST_SED.prune= -e "s|--prune sys|--prune kern|"
|
|
|
|
INSTALLATION_DIRS= bin ${EGDIR}
|
|
|
|
do-build: # do nothing
|
|
|
|
do-install:
|
|
set -e; \
|
|
for example in \
|
|
${WRKSRC}/etc/rotation.schedule.README \
|
|
${WRKSRC}/etc/rotation.schedule \
|
|
${WRKSRC}/etc/sarab.conf \
|
|
${WRKSRC}/etc/sarab.dcf \
|
|
${WRKSRC}/etc/examples/*; do \
|
|
${INSTALL_DATA} "$${example}" ${DESTDIR}${EGDIR}; \
|
|
done
|
|
${INSTALL_SCRIPT} ${WRKSRC}/sarab.sh ${DESTDIR}${PREFIX}/bin/sarab
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|