summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMahdi Mokhtari <mmokhi@FreeBSD.org>2017-05-04 15:22:53 +0000
committerMahdi Mokhtari <mmokhi@FreeBSD.org>2017-05-04 15:22:53 +0000
commitf04f46a5ecccd2cb07d61a4e966b7d816556b68f (patch)
tree74c5a65e2324e16a010a271ed3196daee3c9bf5f
parent2249c203323e8487a65cb2526ba811f0bc8083ab (diff)
downloadfreebsd-ports-f04f46a5ecccd2cb07d61a4e966b7d816556b68f.zip
sysutils/vchanger: Add the port to the tree
Vchanger is a disk-based virtual autochanger that may be used with the Bacula Open Source network backup system to emulate a magazine-based tape autoloader PR: 219046 Reported by: ml@netfence.it Reviewed by: mat (mentor) mmokhi Approved by: mat (mentor) Differential Revision: https://reviews.freebsd.org/D10598
-rw-r--r--sysutils/Makefile1
-rw-r--r--sysutils/vchanger/Makefile22
-rw-r--r--sysutils/vchanger/distinfo3
-rw-r--r--sysutils/vchanger/files/patch-src_uuidlookup.c11
-rw-r--r--sysutils/vchanger/pkg-descr6
-rw-r--r--sysutils/vchanger/pkg-plist18
6 files changed, 61 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile
index b1051de64e6a..bb6c8e1c42c8 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -1208,6 +1208,7 @@
SUBDIR += utcount
SUBDIR += vagrant
SUBDIR += vbetool
+ SUBDIR += vchanger
SUBDIR += vcp
SUBDIR += videogen
SUBDIR += vii
diff --git a/sysutils/vchanger/Makefile b/sysutils/vchanger/Makefile
new file mode 100644
index 000000000000..2dcec1dd1e1b
--- /dev/null
+++ b/sysutils/vchanger/Makefile
@@ -0,0 +1,22 @@
+# $FreeBSD$
+
+PORTNAME= vchanger
+PORTVERSION= 1.0.0
+CATEGORIES= sysutils
+MASTER_SITES= SF
+
+MAINTAINER= freebsd@netfence.it
+COMMENT= Disk-based virtual autochanger for Bacula
+
+LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/COPYING
+
+WRKSRC= ${WRKDIR}/${PORTNAME}
+USES= shebangfix
+SHEBANG_FILES= scripts/vchanger-genudevrules \
+ scripts/vchanger-umount-uuid.sh \
+ scripts/vchanger-mount-uuid.sh
+GNU_CONFIGURE= yes
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.mk>
diff --git a/sysutils/vchanger/distinfo b/sysutils/vchanger/distinfo
new file mode 100644
index 000000000000..7f6e5d4f5cfa
--- /dev/null
+++ b/sysutils/vchanger/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1483717814
+SHA256 (vchanger-1.0.0.tar.gz) = 080a13e0ade75f7c3c7528c6958372e923c0289c2e0f3df0439443b4dbf27919
+SIZE (vchanger-1.0.0.tar.gz) = 218824
diff --git a/sysutils/vchanger/files/patch-src_uuidlookup.c b/sysutils/vchanger/files/patch-src_uuidlookup.c
new file mode 100644
index 000000000000..bf9080f81a93
--- /dev/null
+++ b/sysutils/vchanger/files/patch-src_uuidlookup.c
@@ -0,0 +1,11 @@
+--- src/uuidlookup.c.orig 2017-01-06 15:55:06 UTC
++++ src/uuidlookup.c
+@@ -215,7 +215,7 @@ static int GetDevMountpoint(char *mountp
+ for (n = 0; n < mcount; n++)
+ {
+ if (strcasecmp(devname, fs[n].f_mntfromname) == 0) {
+- strncpy(mountp, fs[n].f_mnttoname, mountp_sz);
++ strncpy(mountp, fs[n].f_mntonname, mountp_sz);
+ rc = 0;
+ }
+ }
diff --git a/sysutils/vchanger/pkg-descr b/sysutils/vchanger/pkg-descr
new file mode 100644
index 000000000000..488d9126e949
--- /dev/null
+++ b/sysutils/vchanger/pkg-descr
@@ -0,0 +1,6 @@
+Vchanger as a disk-based virtual autochanger may be used with the Bacula
+Open Source network backup system to emulate a magazine-based tape autoloader
+using disk partitions on fixed or removable disk drives as virtual magazines
+and files on those partitions as virtual tape volumes.
+
+WWW: https://vchanger.sourceforge.io
diff --git a/sysutils/vchanger/pkg-plist b/sysutils/vchanger/pkg-plist
new file mode 100644
index 000000000000..21c33e9c8511
--- /dev/null
+++ b/sysutils/vchanger/pkg-plist
@@ -0,0 +1,18 @@
+bin/vchanger
+bin/vchanger-genudevrules
+libexec/vchanger/vchanger-launch-mount.sh
+libexec/vchanger/vchanger-launch-umount.sh
+libexec/vchanger/vchanger-mount-uuid.sh
+libexec/vchanger/vchanger-umount-uuid.sh
+man/man5/vchanger.conf.5.gz
+man/man8/vchanger.8.gz
+%%PORTDOCS%%%%DOCSDIR%%-1.0.0/AUTHORS
+%%PORTDOCS%%%%DOCSDIR%%-1.0.0/COPYING
+%%PORTDOCS%%%%DOCSDIR%%-1.0.0/ChangeLog
+%%PORTDOCS%%%%DOCSDIR%%-1.0.0/INSTALL
+%%PORTDOCS%%%%DOCSDIR%%-1.0.0/NEWS
+%%PORTDOCS%%%%DOCSDIR%%-1.0.0/README
+%%PORTDOCS%%%%DOCSDIR%%-1.0.0/ReleaseNotes
+%%PORTDOCS%%%%DOCSDIR%%-1.0.0/example-vchanger-udev.rules
+%%PORTDOCS%%%%DOCSDIR%%-1.0.0/vchanger-example.conf
+%%PORTDOCS%%%%DOCSDIR%%-1.0.0/vchangerHowto.html