summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Borzenkov2016-06-03 17:01:00 +0300
committerPavel Borzenkov2016-06-03 17:01:00 +0300
commit325033f2e25b4265b04162daa67ec7d220ffc3f2 (patch)
tree21b09ae1ef9b609d1c4779c7c5f97ccf7a772627
downloadaur-325033f2e25b4265b04162daa67ec7d220ffc3f2.tar.gz
ploop: initial package for version 7.0.35
Signed-off-by: Pavel Borzenkov <pavel@voidptr.ru>
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD29
-rw-r--r--ploop.install7
3 files changed, 55 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..737d8c3f753
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = ploop
+ pkgdesc = Disk loopback block device with many features like dynamic resize, snapshots, etc.
+ pkgver = 7.0.35
+ pkgrel = 1
+ url = https://openvz.org/Ploop
+ install = ploop.install
+ arch = x86_64
+ license = GPL2
+ license = LGPL2.1
+ makedepends = git
+ depends = libxml2
+ depends = python
+ depends = libutil-linux
+ depends = bash
+ source = git+https://src.openvz.org/scm/ovz/ploop.git#tag=v7.0.35
+ md5sums = SKIP
+
+pkgname = ploop
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..df08b6abe12
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Pavel Borzenkov <pavel@voidptr.ru>
+pkgname=ploop
+pkgver=7.0.35
+pkgrel=1
+pkgdesc="Disk loopback block device with many features like dynamic resize, snapshots, etc."
+url="https://openvz.org/Ploop"
+license=('GPL2' 'LGPL2.1')
+arch=("x86_64")
+source=("git+https://src.openvz.org/scm/ovz/ploop.git#tag=v${pkgver}")
+install=ploop.install
+depends=('libxml2' 'python' 'libutil-linux' 'bash')
+makedepends=('git')
+md5sums=('SKIP')
+
+build() {
+ cd "${srcdir}/${pkgname}"
+
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}"
+
+ make DESTDIR="$pkgdir/" LIBDIR="/usr/lib" SBINDIR="/usr/bin" USRSBINDIR="/usr/bin" \
+ install
+ mkdir -p $pkgdir/usr/lib/tmpfiles.d
+ echo "d /var/lock/ploop 0755 root root -" >$pkgdir/usr/lib/tmpfiles.d/ploop.conf
+ rm -rf $pkgdir/var
+}
diff --git a/ploop.install b/ploop.install
new file mode 100644
index 00000000000..d7227c05fca
--- /dev/null
+++ b/ploop.install
@@ -0,0 +1,7 @@
+post_install() {
+ systemd-tmpfiles --create ploop.conf
+}
+
+post_upgrade() {
+ systemd-tmpfiles --create ploop.conf
+}