aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorValery Kartel <valery.kartel@gmail.com>2016-02-02 18:10:00 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2016-02-04 10:49:49 +0000
commitfb4292589ac71706a0e79248041e6fd830c9d920 (patch)
treeae402c1618021cb40886ad84f5e9a87c2f8cf1a4 /main
parentab78d1c858b624e29bcb36a0d7113e55be6e1c43 (diff)
downloadaports-fb4292589ac71706a0e79248041e6fd830c9d920.tar.bz2
aports-fb4292589ac71706a0e79248041e6fd830c9d920.tar.xz
main/rrdtool: split to subpackages
Diffstat (limited to 'main')
-rw-r--r--main/rrdtool/APKBUILD55
-rw-r--r--main/rrdtool/rrdcached.initd17
2 files changed, 68 insertions, 4 deletions
diff --git a/main/rrdtool/APKBUILD b/main/rrdtool/APKBUILD
index fac8bca591..0523f3158c 100644
--- a/main/rrdtool/APKBUILD
+++ b/main/rrdtool/APKBUILD
@@ -11,11 +11,13 @@ depends="font-sony-misc"
makedepends="libart-lgpl-dev libpng-dev freetype-dev perl-dev cairo-dev libxml2-dev
pango-dev lua lua-dev python-dev groff
autoconf automake libtool"
-subpackages="$pkgname-dev $pkgname-doc perl-rrd:perl_rrd lua-rrd:lua_rrd py-rrd:py_rrd"
+subpackages="$pkgname-dev $pkgname-doc perl-rrd:perl_rrd lua-rrd:lua_rrd py-rrd:py_rrd
+ $pkgname-cached $pkgname-cgi $pkgname-utils librrd-th:libth librrd:libs"
source="http://oss.oetiker.ch/$pkgname/pub/$pkgname-$pkgver.tar.gz
lua-install-cmod.patch
libm-underlinking.patch
no-posix-fallocate.patch
+ rrdcached.initd
"
_builddir="$srcdir"/$pkgname-$pkgver
@@ -62,6 +64,7 @@ dev() {
}
perl_rrd() {
+ depends=
pkgdesc="Perl interface for rrdtool"
mkdir -p "$subpkgdir"/usr/lib \
"$pkgdir"/usr/share
@@ -70,26 +73,70 @@ perl_rrd() {
}
lua_rrd() {
+ depends=
pkgdesc="Lua interface for rrdtool"
mkdir -p "$subpkgdir"/usr/lib/
mv "$pkgdir"/usr/lib/lua "$subpkgdir"/usr/lib/
}
py_rrd() {
+ depends=
pkgdesc="Python interface for rrdtool"
mkdir -p "$subpkgdir"/usr/lib/
mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/
}
+cached() {
+ depends=
+ pkgdesc="RRDtool data caching daemon"
+ mkdir -p "$subpkgdir"/usr/sbin \
+ "$subpkgdir"/var/lib/rrdcached/db \
+ "$subpkgdir"/var/lib/rrdcached/journal
+ mv "$pkgdir"/usr/bin/rrdcached "$subpkgdir"/usr/sbin
+ install -Dm755 "$srcdir"/rrdcached.initd "$subpkgdir"/etc/init.d/rrdcached
+}
+
+cgi() {
+ depends=
+ pkgdesc="create web pages containing RRD graphs based on templates"
+ mkdir -p "$subpkgdir"/usr/bin
+ mv "$pkgdir"/usr/bin/rrdcgi "$subpkgdir"/usr/bin
+}
+
+utils() {
+ depends=
+ pkgdesc="RRDtool standalone create,update,info utilities"
+ mkdir -p "$subpkgdir"/usr/bin
+ mv "$pkgdir"/usr/bin/rrdinfo \
+ "$pkgdir"/usr/bin/rrdcreate \
+ "$pkgdir"/usr/bin/rrdupdate \
+ "$subpkgdir"/usr/bin
+}
+
+libth() {
+ depends=
+ pkgdesc="$pkgdesc (multi-threaded libraries)"
+ mkdir -p "$subpkgdir"/usr/lib
+ mv "$pkgdir"/usr/lib/librrd_th.so* "$subpkgdir"/usr/lib
+}
+
+libs() {
+ depends=
+ default_libs
+}
+
md5sums="d8b3dcb3d193c2d6ad0a282bde69ee11 rrdtool-1.5.5.tar.gz
f94e916381af48dcf5687aa046b35aac lua-install-cmod.patch
ab92a2b87f71d59e3830dac3b227c357 libm-underlinking.patch
-e14d13f10fa575733e791bcb8b0711fe no-posix-fallocate.patch"
+e14d13f10fa575733e791bcb8b0711fe no-posix-fallocate.patch
+d1a4b08c484b9dfd120c9691f8204919 rrdcached.initd"
sha256sums="3a286d449c05d657e3fc3adcaa5cb4f0cfac8f465324b14f364a45d4ff8ca6f6 rrdtool-1.5.5.tar.gz
1e49eeca4561d29da3975f84e06b27f0f305e566bb26922397d938eede678b71 lua-install-cmod.patch
0495bd122941bcd635ca2a2b7c3f01a6eb3ca3e00b7e40c257862b7071b7738a libm-underlinking.patch
-8b32dcf1b8c7f9967934e25ab05ef6a9384cb6096d32dd5d63046bafd7cac1ad no-posix-fallocate.patch"
+8b32dcf1b8c7f9967934e25ab05ef6a9384cb6096d32dd5d63046bafd7cac1ad no-posix-fallocate.patch
+b05b61a7d2ef4db480b276c1351b50eea5d73c9d0c0223d32ab548d6476926f7 rrdcached.initd"
sha512sums="07fb0edb5fbc0b491f8a40844d4a914f26c6269b2d07ab91f4d54fdcfeb7899348362044ac632223341f30fc10e6748a59863977496801530f5cdd2d61f0e88c rrdtool-1.5.5.tar.gz
0be4ebb864233cf32fa70c872f5421b2da50ad39d6a265c2f5869337b40647c0b88011ccf41fe17a8d35de915ca1c38d04d67696118e1e32ff774221b1816ab6 lua-install-cmod.patch
94449972ccc7d1a057c2b827c041a16de1667c280a47ef30c1323ec9168812a96374704cc42dd832a30b8cc08d7fad94da44ff3695c66f3a0d324a87158fc23c libm-underlinking.patch
-00d079161551a75f8d4fe5085741d45d9c6b06be0a5163090143c6ab47710e29633414bee4dd68bbf950bf0ba1796bf4623b4f307477265a48f49514c8b790ab no-posix-fallocate.patch"
+00d079161551a75f8d4fe5085741d45d9c6b06be0a5163090143c6ab47710e29633414bee4dd68bbf950bf0ba1796bf4623b4f307477265a48f49514c8b790ab no-posix-fallocate.patch
+c0c27b2c2dfa8e7ec1cb1160d2bda8d7996bbea67f4ce7779da029f583c35e5e415cf46e2a1e5cb8ed2e63d2c58a68fd7471ee6bd820db4c0f4eeeb5c252f8a3 rrdcached.initd"
diff --git a/main/rrdtool/rrdcached.initd b/main/rrdtool/rrdcached.initd
new file mode 100644
index 0000000000..6459d1ff96
--- /dev/null
+++ b/main/rrdtool/rrdcached.initd
@@ -0,0 +1,17 @@
+#!/sbin/openrc-run
+
+description="RRDtool data caching daemon"
+pidfile=${pidfile:-/run/rrdcached/rrdcached.pid}
+socket=${socket:-unix:/run/rrdcached/rrdcached.sock}
+command="/usr/sbin/rrdcached"
+command_args="-l $socket -j /var/lib/rrdcached/journal/ -F -b /var/lib/rrdcached/db/ -B -p $pidfile"
+start_stop_daemon_args="--quiet"
+
+depend() {
+ need localmount net
+ use logger
+}
+
+start_pre() {
+ checkpath --directory ${pidfile%/*}
+}