diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2018-06-12 17:18:43 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2018-06-12 17:13:08 +0200 |
commit | c6e511e503e4988bde78c78a3af6b4f1bd016256 (patch) | |
tree | 3ea5a622117df90d075c11f68e049723ab87f4e3 /testing/csync2 | |
parent | d45c0ae4c362d94ec6ad647ed775b20b7ae159c8 (diff) | |
download | aports-c6e511e503e4988bde78c78a3af6b4f1bd016256.tar.bz2 aports-c6e511e503e4988bde78c78a3af6b4f1bd016256.tar.xz |
testing/csync2: new aport
http://oss.linbit.com/csync2/
Cluster synchronization tool
Diffstat (limited to 'testing/csync2')
-rw-r--r-- | testing/csync2/APKBUILD | 44 | ||||
-rw-r--r-- | testing/csync2/csync2.initd | 6 |
2 files changed, 50 insertions, 0 deletions
diff --git a/testing/csync2/APKBUILD b/testing/csync2/APKBUILD new file mode 100644 index 0000000000..6fdbb2ae25 --- /dev/null +++ b/testing/csync2/APKBUILD @@ -0,0 +1,44 @@ +# Contributor: Jakub Jirutka <jakub@jirutka.cz> +# Maintainer: Jakub Jirutka <jakub@jirutka.cz> +pkgname=csync2 +pkgver=2.0 +pkgrel=0 +pkgdesc="Cluster synchronization tool" +url="http://oss.linbit.com/csync2/" +arch="all" +license="GPL-2.0-or-later" +options="!check" # tests needs to modify system's network config +makedepends="autoconf automake bison flex gnutls-dev librsync-dev sqlite-dev" +subpackages="$pkgname-doc $pkgname-openrc" +source="https://github.com/LINBIT/$pkgname/archive/$pkgname-$pkgver.tar.gz + $pkgname.initd" +builddir="$srcdir/$pkgname-$pkgname-$pkgver" + +prepare() { + default_prepare + + cd "$builddir" + sh ./autogen.sh +} + +build() { + cd "$builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc/csync2 \ + --mandir=/usr/share/man \ + --localstatedir=/var + make +} + +package() { + cd "$builddir" + + make DESTDIR="$pkgdir" install + install -m 755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname +} + +sha512sums="7555e2d958d6213e29cfa8b3b7415eea9a9868036865c519d724ae404006d913fba4aeeb61a916d3fc95669a6ca12160d4f52dc7d15bd59403e8a7de50ee8094 csync2-2.0.tar.gz +e2df7f2993781709dadd0ce24bc31e16259382c8b3c432c47c3790f78b37124d38fb5036e87a06747538d864fdf68b8984bf2d4bce09158cddd58c10f4411d9f csync2.initd" diff --git a/testing/csync2/csync2.initd b/testing/csync2/csync2.initd new file mode 100644 index 0000000000..c16522e926 --- /dev/null +++ b/testing/csync2/csync2.initd @@ -0,0 +1,6 @@ +#!/sbin/openrc-run + +command="/usr/sbin/csync2" +command_args="-ii ${command_args:-}" +command_background="yes" +pidfile="/run/$RC_SVCNAME.pid" |