Import tarsnapper-0.4.0 from Michael Reed, tweaks from jca@ and myself

ok jca@

Tarsnapper is a wrapper around tarsnap which:

- Lets you define "backup jobs" (tarsnap invocations) in a config file, though
  on it's own this has little advantage over just using a a shell script.

- Lets you expire old backups using a Grandfather-father-son backup scheme.
  This feature can be used in conjunction with tarsnapper backup jobs, or
  standalone, to be applied to any existing set of tarsnap backup archives,
  regardless of how they have been created.
This commit is contained in:
danj 2017-08-12 19:17:14 +00:00
parent ea8711bed2
commit 01dcd0f8ea
6 changed files with 95 additions and 0 deletions

View File

@ -0,0 +1,33 @@
# $OpenBSD: Makefile,v 1.1.1.1 2017/08/12 19:17:14 danj Exp $
COMMENT = tarsnap wrapper which automatically expires backups
MODPY_EGG_VERSION = 0.4.0
DISTNAME = tarsnapper-${MODPY_EGG_VERSION}
CATEGORIES = sysutils
MAINTAINER = Michael Reed <m.reed@excitingdomainname.com>
# BSD
PERMIT_PACKAGE_CDROM = Yes
MODULES = lang/python
MODPY_PI = Yes
MODPY_SETUPTOOLS = Yes
MODPY_VERSION = ${MODPY_DEFAULT_VERSION_3}
RUN_DEPENDS = devel/py-dateutil${MODPY_FLAVOR} \
devel/py-pexpect${MODPY_FLAVOR} \
textproc/py-yaml${MODPY_FLAVOR} \
sysutils/tarsnap
TEST_DEPENDS = ${RUN_DEPENDS} \
devel/py-nose${MODPY_FLAVOR}
do-test:
cd ${WRKSRC} && \
${SETENV} ${MAKE_ENV} ${LOCALBASE}/bin/nosetests${MODPY_BIN_SUFFIX}
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (tarsnapper-0.4.0.tar.gz) = Wv5IRuQWhu+LWwuQyu6xerwaM3zuwK4JgGjiTuTbbFI=
SIZE (tarsnapper-0.4.0.tar.gz) = 18395

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-setup_py,v 1.1.1.1 2017/08/12 19:17:14 danj Exp $
argparse is already included in python3.6
Index: setup.py
--- setup.py.orig
+++ setup.py
@@ -45,6 +45,6 @@ setup(name='tarsnapper',
url='http://github.com/miracle2k/tarsnapper',
license='BSD',
packages=['tarsnapper'],
- install_requires = ['argparse>=1.1', 'pyyaml>=3.09', 'python-dateutil>=2.4.0', 'pexpect>=3.1'],
+ install_requires = ['pyyaml>=3.09', 'python-dateutil>=2.4.0', 'pexpect>=3.1'],
**kw
)

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-tarsnapper_egg-info_requires_txt,v 1.1.1.1 2017/08/12 19:17:14 danj Exp $
argparse is already included in python3.6
Index: tarsnapper.egg-info/requires.txt
--- tarsnapper.egg-info/requires.txt.orig
+++ tarsnapper.egg-info/requires.txt
@@ -1,4 +1,3 @@
-argparse>=1.1
pyyaml>=3.09
python-dateutil>=2.4.0
-pexpect>=3.1
\ No newline at end of file
+pexpect>=3.1

View File

@ -0,0 +1,9 @@
Tarsnapper is a wrapper around tarsnap which:
- Lets you define "backup jobs" (tarsnap invocations) in a config file, though
on it's own this has little advantage over just using a a shell script.
- Lets you expire old backups using a Grandfather-father-son backup scheme.
This feature can be used in conjunction with tarsnapper backup jobs, or
standalone, to be applied to any existing set of tarsnap backup archives,
regardless of how they have been created.

View File

@ -0,0 +1,22 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2017/08/12 19:17:14 danj Exp $
bin/tarsnapper
lib/python${MODPY_VERSION}/site-packages/tarsnapper/
lib/python${MODPY_VERSION}/site-packages/tarsnapper-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/
lib/python${MODPY_VERSION}/site-packages/tarsnapper-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO
lib/python${MODPY_VERSION}/site-packages/tarsnapper-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/SOURCES.txt
lib/python${MODPY_VERSION}/site-packages/tarsnapper-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/dependency_links.txt
lib/python${MODPY_VERSION}/site-packages/tarsnapper-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/entry_points.txt
lib/python${MODPY_VERSION}/site-packages/tarsnapper-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/not-zip-safe
lib/python${MODPY_VERSION}/site-packages/tarsnapper-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/requires.txt
lib/python${MODPY_VERSION}/site-packages/tarsnapper-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt
lib/python${MODPY_VERSION}/site-packages/tarsnapper/__init__.py
lib/python${MODPY_VERSION}/site-packages/tarsnapper/${MODPY_PYCACHE}/
lib/python${MODPY_VERSION}/site-packages/tarsnapper/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/tarsnapper/${MODPY_PYCACHE}config.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/tarsnapper/${MODPY_PYCACHE}expire.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/tarsnapper/${MODPY_PYCACHE}script.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/tarsnapper/${MODPY_PYCACHE}test.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/tarsnapper/config.py
lib/python${MODPY_VERSION}/site-packages/tarsnapper/expire.py
lib/python${MODPY_VERSION}/site-packages/tarsnapper/script.py
lib/python${MODPY_VERSION}/site-packages/tarsnapper/test.py