From 64d471cf53a1cd35b763b41dfe1f4918d658a37a Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Fri, 6 Nov 2020 01:09:50 +0300 Subject: [PATCH] Add simple Debian packaging --- debian/changelog | 5 +++++ debian/control | 17 +++++++++++++++++ debian/copyright | 20 ++++++++++++++++++++ debian/install | 3 +++ debian/rules | 9 +++++++++ debian/source/format | 1 + debian/substvars | 2 ++ mon/mon-main.js | 0 8 files changed, 57 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/install create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 debian/substvars mode change 100644 => 100755 mon/mon-main.js diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 00000000..7e5216a9 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +vitastor (0.5-1) unstable; urgency=medium + + * First packaging for Debian + + -- Vitaliy Filippov Thu, 05 Nov 2020 02:20:59 +0300 diff --git a/debian/control b/debian/control new file mode 100644 index 00000000..d7a20be6 --- /dev/null +++ b/debian/control @@ -0,0 +1,17 @@ +Source: vitastor +Section: admin +Priority: optional +Maintainer: Vitaliy Filippov +Build-Depends: debhelper-compat (= 13), liburing-dev (>= 0.6), g++ (>= 9), libstdc++6 (>= 9), linux-libc-dev, libgoogle-perftools-dev +Standards-Version: 4.5.0 +Homepage: https://vitastor.io/ +Rules-Requires-Root: no + +Package: vitastor +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, fio (= ${dep:fio}), qemu (= ${dep:qemu}), nodejs (>= 12), node-sprintf-js, node-ws (>= 7) +Description: Vitastor, a fast software-defined clustered block storage + Vitastor is a small, simple and fast clustered block storage (storage for VM drives), + architecturally similar to Ceph which means strong consistency, primary-replication, + symmetric clustering and automatic data distribution over any number of drives of any + size with configurable redundancy (replication or erasure codes/XOR). diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 00000000..70b0b166 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,20 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: vitastor +Upstream-Contact: Vitaliy Filippov +Source: https://vitastor.io + +Files: * +Copyright: 2019+ Vitaliy Filippov +License: Multiple licenses VNPL-1.0 and/or GPL-2.0+ + All server-side code (OSD, Monitor and so on) is licensed under the terms of + Vitastor Network Public License 1.0 (VNPL 1.0), a copyleft license based on + GNU GPLv3.0 with the additional "Network Interaction" clause which requires + opensourcing all programs directly or indirectly interacting with Vitastor + through a computer network ("Proxy Programs"). Proxy Programs may be made public + not only under the terms of the same license, but also under the terms of any + GPL-Compatible Free Software License, as listed by the Free Software Foundation. + This is a stricter copyleft license than the Affero GPL. + . + Client libraries (cluster_client and so on) are dual-licensed under the same + VNPL 1.0 and also GNU GPL 2.0 or later to allow for compatibility with GPLed + software like QEMU and fio. diff --git a/debian/install b/debian/install new file mode 100644 index 00000000..6b760e17 --- /dev/null +++ b/debian/install @@ -0,0 +1,3 @@ +VNPL-1.0.txt usr/share/doc/vitastor +GPL-2.0.txt usr/share/doc/vitastor +mon usr/lib/vitastor diff --git a/debian/rules b/debian/rules new file mode 100755 index 00000000..22f54d68 --- /dev/null +++ b/debian/rules @@ -0,0 +1,9 @@ +#!/usr/bin/make -f +export DH_VERBOSE = 1 + +%: + dh $@ + +override_dh_installdeb: + cat debian/substvars >> debian/vitastor.substvars + dh_installdeb diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/substvars b/debian/substvars new file mode 100644 index 00000000..1b37a2c3 --- /dev/null +++ b/debian/substvars @@ -0,0 +1,2 @@ +dep:fio=3.16-1 +dep:qemu=1:5.1+dfsg-4+vitastor1 diff --git a/mon/mon-main.js b/mon/mon-main.js old mode 100644 new mode 100755