aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjylefort <jylefort@FreeBSD.org>2005-06-08 19:49:24 +0800
committerjylefort <jylefort@FreeBSD.org>2005-06-08 19:49:24 +0800
commit33016bbc2e7e157d1652d13790d45ac38aca405b (patch)
tree4b77119a4e84bb6047a54f7922c1835afae952c0
parent170defcf271d8f14a354dc156a2590cf216d8de1 (diff)
downloadfreebsd-ports-gnome-33016bbc2e7e157d1652d13790d45ac38aca405b.tar.gz
freebsd-ports-gnome-33016bbc2e7e157d1652d13790d45ac38aca405b.tar.zst
freebsd-ports-gnome-33016bbc2e7e157d1652d13790d45ac38aca405b.zip
- Add a missing runtime dependency on rsync
- Add sample configuration files PR: ports/81825 Submitted by: maintainer
-rw-r--r--sysutils/dirvish/Makefile6
-rw-r--r--sysutils/dirvish/files/default.conf.dist4
-rw-r--r--sysutils/dirvish/files/master.conf.dist30
-rw-r--r--sysutils/dirvish/pkg-plist5
4 files changed, 42 insertions, 3 deletions
diff --git a/sysutils/dirvish/Makefile b/sysutils/dirvish/Makefile
index b440fdeeac17..849c6f7563e5 100644
--- a/sysutils/dirvish/Makefile
+++ b/sysutils/dirvish/Makefile
@@ -7,6 +7,7 @@
PORTNAME= dirvish
PORTVERSION= 1.2
+PORTREVISION= 1
CATEGORIES= sysutils archivers
MASTER_SITES= http://www.dirvish.org/
DISTNAME= ${PORTNAME}_${PORTVERSION}.orig
@@ -15,7 +16,8 @@ MAINTAINER= lorenl@alzatex.com
COMMENT= Network backup system based off of rsync
RUN_DEPENDS= ${SITE_PERL}/Time/ParseDate.pm:${PORTSDIR}/devel/p5-Time-modules \
- ${SITE_PERL}/Time/Period.pm:${PORTSDIR}/devel/p5-Time-Period
+ ${SITE_PERL}/Time/Period.pm:${PORTSDIR}/devel/p5-Time-Period \
+ rsync:${PORTSDIR}/net/rsync
MAN5= dirvish.conf.5
MAN8= dirvish.8 dirvish-expire.8 dirvish-locate.8 dirvish-runall.8
@@ -28,5 +30,7 @@ USE_PERL5_RUN= yes
do-install:
@(cd ${INSTALL_WRKSRC} && ${SH} install.sh < /dev/null)
${MKDIR} ${PREFIX}/etc/dirvish
+ ${INSTALL_DATA} ${FILESDIR}/master.conf.dist ${PREFIX}/etc/dirvish
+ ${INSTALL_DATA} ${FILESDIR}/default.conf.dist ${PREFIX}/etc/dirvish
.include <bsd.port.mk>
diff --git a/sysutils/dirvish/files/default.conf.dist b/sysutils/dirvish/files/default.conf.dist
new file mode 100644
index 000000000000..d81eb2b0f154
--- /dev/null
+++ b/sysutils/dirvish/files/default.conf.dist
@@ -0,0 +1,4 @@
+client: sttng359@bsd.ddns
+tree: /home/sttng359/all
+xdev: 0
+
diff --git a/sysutils/dirvish/files/master.conf.dist b/sysutils/dirvish/files/master.conf.dist
new file mode 100644
index 000000000000..d9c890377e41
--- /dev/null
+++ b/sysutils/dirvish/files/master.conf.dist
@@ -0,0 +1,30 @@
+#rsh: ssh -C
+
+#image-default: %Y%m%d
+
+log: text
+#log: gzip
+#log:bzip2
+
+index: none
+
+xdev: 1
+
+exclude:
+ /dev
+ /proc
+ /compat/linux/proc
+ /etc/mtab
+ /usr/obj
+ .kde/share/cache/*
+ lost+found/
+
+expire-default: +30 days
+
+bank:
+ /usr/snapshot/bank0
+
+Runall:
+ vault0 23:00
+ vault1
+
diff --git a/sysutils/dirvish/pkg-plist b/sysutils/dirvish/pkg-plist
index 035abdd46c85..ba956e789a54 100644
--- a/sysutils/dirvish/pkg-plist
+++ b/sysutils/dirvish/pkg-plist
@@ -2,5 +2,6 @@ sbin/dirvish
sbin/dirvish-expire
sbin/dirvish-locate
sbin/dirvish-runall
-@exec mkdir -p %D/etc/dirvish
-@dirrm etc/dirvish
+etc/dirvish/default.conf.dist
+etc/dirvish/master.conf.dist
+@unexec rmdir %D/etc/dirvish 2>/dev/null || true