aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/hdup
diff options
context:
space:
mode:
authorsem <sem@FreeBSD.org>2005-03-14 01:11:48 +0800
committersem <sem@FreeBSD.org>2005-03-14 01:11:48 +0800
commite4cf8453a9825c71da0368baa33df51a249134fa (patch)
treeefdfada36b316b218d7fe511cf6021ef6300318a /sysutils/hdup
parent472f1c88e90ab90c5c2bd6908e60cd27a8b2322c (diff)
downloadfreebsd-ports-graphics-e4cf8453a9825c71da0368baa33df51a249134fa.tar.gz
freebsd-ports-graphics-e4cf8453a9825c71da0368baa33df51a249134fa.tar.zst
freebsd-ports-graphics-e4cf8453a9825c71da0368baa33df51a249134fa.zip
hdup is a little, spiffy, backup tool
Diffstat (limited to 'sysutils/hdup')
-rw-r--r--sysutils/hdup/Makefile61
-rw-r--r--sysutils/hdup/distinfo2
-rw-r--r--sysutils/hdup/files/patch-configure.ac20
-rw-r--r--sysutils/hdup/files/patch-src::Makefile.in20
-rw-r--r--sysutils/hdup/files/patch-src::hdup.h.in20
-rw-r--r--sysutils/hdup/pkg-descr15
-rw-r--r--sysutils/hdup/pkg-plist9
7 files changed, 147 insertions, 0 deletions
diff --git a/sysutils/hdup/Makefile b/sysutils/hdup/Makefile
new file mode 100644
index 00000000000..fac45fd7c2b
--- /dev/null
+++ b/sysutils/hdup/Makefile
@@ -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>
diff --git a/sysutils/hdup/distinfo b/sysutils/hdup/distinfo
new file mode 100644
index 00000000000..313c3682bd7
--- /dev/null
+++ b/sysutils/hdup/distinfo
@@ -0,0 +1,2 @@
+MD5 (hdup-2.0.6.tar.bz2) = c2e7fb2bad775a4a6f196074b6971061
+SIZE (hdup-2.0.6.tar.bz2) = 82727
diff --git a/sysutils/hdup/files/patch-configure.ac b/sysutils/hdup/files/patch-configure.ac
new file mode 100644
index 00000000000..7d857f655a3
--- /dev/null
+++ b/sysutils/hdup/files/patch-configure.ac
@@ -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")
+
diff --git a/sysutils/hdup/files/patch-src::Makefile.in b/sysutils/hdup/files/patch-src::Makefile.in
new file mode 100644
index 00000000000..57b644d3a35
--- /dev/null
+++ b/sysutils/hdup/files/patch-src::Makefile.in
@@ -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
diff --git a/sysutils/hdup/files/patch-src::hdup.h.in b/sysutils/hdup/files/patch-src::hdup.h.in
new file mode 100644
index 00000000000..173520bc19b
--- /dev/null
+++ b/sysutils/hdup/files/patch-src::hdup.h.in
@@ -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 */
diff --git a/sysutils/hdup/pkg-descr b/sysutils/hdup/pkg-descr
new file mode 100644
index 00000000000..72aee899722
--- /dev/null
+++ b/sysutils/hdup/pkg-descr
@@ -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
diff --git a/sysutils/hdup/pkg-plist b/sysutils/hdup/pkg-plist
new file mode 100644
index 00000000000..67e5e3175d1
--- /dev/null
+++ b/sysutils/hdup/pkg-plist
@@ -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%%