hdup is a little, spiffy, backup tool

This commit is contained in:
Sergey Matveychuk 2005-03-13 17:11:48 +00:00
parent 38b13ce6f1
commit db56baf148
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=131111
8 changed files with 148 additions and 0 deletions

View file

@ -195,6 +195,7 @@
SUBDIR += gtoaster
SUBDIR += gupsc
SUBDIR += hammerhead
SUBDIR += hdup
SUBDIR += healthd
SUBDIR += heirloom
SUBDIR += hourglass

61
sysutils/hdup/Makefile Normal file
View file

@ -0,0 +1,61 @@
# New ports collection makefile for: hdup
# Date created: 6 March 2005
# Whom: Sergey Matveychuk <sem@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= hdup
PORTVERSION= 2.0.6
CATEGORIES= sysutils
MASTER_SITES= http://www.miek.nl/projects/hdup2/
MAINTAINER= sem@FreeBSD.org
COMMENT= The little, spiffy, backup tool
WRKSRC= ${WRKDIR}/hdup2
OPTIONS= GNUTAR_PORT "Build with the newest GNU tar from ports" no
BUILD_DEPENDS= mcrypt:${PORTSDIR}/security/mcrypt
RUN_DEPENDS= mcrypt:${PORTSDIR}/security/mcrypt \
gpg:${PORTSDIR}/security/gnupg \
lzop:${PORTSDIR}/archivers/lzop
USE_REINPLACE= yes
USE_BZIP2= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
USE_GNOME= glib20
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_AUTOCONF_VER= 259
MAN1= hdup.1
MAN5= hdup.conf.5
.include <bsd.port.pre.mk>
.if defined(WITH_GNUTAR_PORT)
BUILD_DEPENDS+= ${LOCALBASE}/gtar:${PORTSDIR}/archivers/gtar
RUN_DEPENDS+= ${LOCALBASE}/gtar:${PORTSDIR}/archivers/gtar
GNUTAR= ${LOCALBASE}/bin/gtar
.elif ${OSVERSION} < 502110
GNUTAR= /usr/bin/tar
.else
# bsdtar appeared
GNUTAR= /usr/bin/gtar
.endif
post-configure:
@${REINPLACE_CMD} -e 's#%%GNUTAR%%#${GNUTAR}#g' ${WRKSRC}/src/hdup.h
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}; \
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}; \
${INSTALL_DATA} ${WRKSRC}/doc/FAQ.html ${DOCSDIR}; \
${MKDIR} ${EXAMPLESDIR}; \
${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
.endif
.include <bsd.port.post.mk>

2
sysutils/hdup/distinfo Normal file
View file

@ -0,0 +1,2 @@
MD5 (hdup-2.0.6.tar.bz2) = c2e7fb2bad775a4a6f196074b6971061
SIZE (hdup-2.0.6.tar.bz2) = 82727

View file

@ -0,0 +1,20 @@
--- configure.ac.orig Sun Mar 13 17:27:59 2005
+++ configure.ac Sun Mar 13 17:38:11 2005
@@ -12,13 +12,13 @@
AC_PROG_CC
AC_PROG_MAKE_SET
# my own checks
-AC_PATH_PROG(tar, tar, "/bin/tar")
-AC_PATH_PROG(mcrypt, mcrypt,"/usr/bin/mcrypt")
-AC_PATH_PROG(gpg, gpg,"/usr/bin/gpg")
+AC_PATH_PROG(tar, tar, "/usr/bin/tar")
+AC_PATH_PROG(mcrypt, mcrypt,"/usr/local/bin/mcrypt")
+AC_PATH_PROG(gpg, gpg,"/usr/local/bin/gpg")
AC_PATH_PROG(ssh, ssh, "/usr/bin/ssh")
AC_PATH_PROG(bzip, bzip2, "/usr/bin/bzip2")
AC_PATH_PROG(gzip, gzip, "/bin/gzip")
-AC_PATH_PROG(lzop, lzop, "/bin/lzop")
+AC_PATH_PROG(lzop, lzop, "/usr/local/bin/lzop")
AC_PATH_PROG(split, split, "/usr/bin/split")
AC_PATH_PROG(cat, cat, "/bin/cat")

View file

@ -0,0 +1,20 @@
--- src/Makefile.in.orig Sat Jan 29 15:19:00 2005
+++ src/Makefile.in Sun Mar 13 18:22:35 2005
@@ -16,7 +16,7 @@
exec_prefix = @exec_prefix@
sbindir = @sbindir@
mandir = @mandir@
-sysconfdir = /etc
+sysconfdir = @sysconfdir@
######################################
######################################
.PHONY: clean install all uninstall
@@ -54,7 +54,7 @@
@mkdir -p ${sysconfdir}/hdup
@mkdir -p ${mandir}/man1
@mkdir -p ${mandir}/man5
- @[ -f ${sysconfdir}/hdup/hdup.conf ] || ${INSTALL} -m 600 ../hdup.conf.distr ${sysconfdir}/hdup/hdup.conf
+ @${INSTALL} -m 600 ../hdup.conf.distr ${sysconfdir}/hdup/hdup.conf-dist
@${INSTALL} hdup ${sbindir}/hdup
@${INSTALL_DATA} ../doc/hdup.1 ${mandir}/man1/hdup.1
@${INSTALL_DATA} ../doc/hdup.conf.5 ${mandir}/man5/hdup.conf.5

View file

@ -0,0 +1,20 @@
--- src/hdup.h.in.orig Sat Jan 29 15:16:57 2005
+++ src/hdup.h.in Sun Mar 13 19:57:25 2005
@@ -11,7 +11,7 @@
#include "config.h"
-#define TAR "@tar@"
+#define TAR "%%GNUTAR%%"
#define MCRYPT "@mcrypt@"
#define GPG "@gpg@"
#define DEFAULT_PROTO "@ssh@"
@@ -22,7 +22,7 @@
#define LZOP_PROG "@lzop@"
#define SPLIT_PROG "@split@"
#define UNSPLIT_PROG "@cat@"
-#define ETCFILE "/etc/hdup/hdup.conf"
+#define ETCFILE "@prefix@/etc/hdup/hdup.conf"
/* /usr/local/etc#"/etc/hdup/hdup.conf") */
#define REMOTE_HDUP "@prefix@/sbin/hdup"
#define REMOTE_HDUP_OPT "" /* default is empty */

15
sysutils/hdup/pkg-descr Normal file
View file

@ -0,0 +1,15 @@
hdup is a little, spiffy, backup tool.
Features are:
- simple to use
- small and versatile backup program
- support for incremental backups
- support for backups over the network (with ssh)
- support for network restore (with ssh)
- support for encrypted backups (using mcrypt, gnupg)
- support for split up archives (called chunks)
- support for .nobackup files (to exclude certain directories)
- flexible regular expression based include/exclude mechanism
- designed to be run from cron
WWW: http://www.miek.nl/projects/hdup2

9
sysutils/hdup/pkg-plist Normal file
View file

@ -0,0 +1,9 @@
etc/hdup/hdup.conf-dist
sbin/hdup
%%DOCSDIR%%/README
%%DOCSDIR%%/FAQ.html
%%EXAMPLESDIR%%/hdup.cron
%%EXAMPLESDIR%%/no-history-post-run.sh
@unexec rmdir %D/etc/hdup 2> /dev/null || true
@dirrm %%DOCSDIR%%
@dirrm %%EXAMPLESDIR%%