1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-15 07:56:36 +00:00
freebsd-ports/sysutils/feather/Makefile
Greg Larkin eb17f2dda4 Feather is a tarsnap wrapper script that performs and maintains a
set of backups as defined by a YAML configuration file.

Features:
 - Dynamic scheduling
 - Keep an arbitrary number of backups of each schedule type
 - Restrict schedules based on time of day
 - Restrict feather run to a certain amount of wall time (max_runtime)
 - Multiple backup paths per tarsnap
 - Multiple exclude list per tarsnap

WWW:	https://github.com/danrue/feather

Feature safe:	yes
2011-11-30 22:20:54 +00:00

50 lines
1.3 KiB
Makefile

# New ports collection makefile for: feather
# Date created: 2011-11-30
# Whom: Greg Larkin <glarkin@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= feather
PORTVERSION= 1.0
CATEGORIES= sysutils python
MASTER_SITES= http://www.sourcehosting.net/freebsd/distfiles/ \
LOCAL/glarkin
MAINTAINER= glarkin@FreeBSD.org
COMMENT= A Python script for managing tarsnap backups
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}yaml>=0:${PORTSDIR}/devel/py-yaml \
tarsnap>=0:${PORTSDIR}/sysutils/tarsnap
USE_PYTHON= 2.5+
NO_BUILD= yes
NO_INSTALL= yes
STRIP=
SUB_FILES= pkg-message
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/feather ${PREFIX}/bin
@${INSTALL_DATA} ${WRKSRC}/feather.yaml.dist ${PREFIX}/etc
.if !defined(NOPORTDOCS)
@${INSTALL} -d ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
post-install:
@${CAT} ${PKGMESSAGE}
x-generate-tarball:
${SETENV} ${FETCH_ENV} ${FETCH_BINARY} -m -o ${PORTNAME}.tar.gz \
https://github.com/danrue/${PORTNAME}/tarball/master
target=`${TAR} -tvf ${PORTNAME}.tar.gz | head -n 1`; \
dir=`${ECHO} $${target} | ${AWK} '{print $$9}' | ${SED} -e 's|/$$||'`; \
${TAR} -zxf ${PORTNAME}.tar.gz; \
${RM} ${PORTNAME}.tar.gz; \
${MV} $${dir} ${PORTNAME}-${PORTVERSION}; \
${TAR} -zcf ${PORTNAME}-${PORTVERSION}.tar.gz ${PORTNAME}-${PORTVERSION}; \
${RM} -r ${PORTNAME}-${PORTVERSION}
.include <bsd.port.mk>