upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / munin / trunk / PKGBUILD
blob6cdfd5503f47ba4d5700f006df5ba1da03c5dcd0
1 # Maintainer: Dan McGee <dan@archlinux.org>
2 # Contributor: Evan LeCompte <evanlec@gmail.com>
4 pkgname=('munin' 'munin-node')
5 pkgbase=munin
6 pkgver=2.0.72
7 pkgrel=1
8 pkgdesc="A distributed monitoring/graphing tool"
9 arch=('any')
10 url="http://munin-monitoring.org/"
11 license=("GPL")
12 makedepends=('perl' 'rrdtool' 'perl-log-log4perl' 'perl-html-template'
13              'perl-date-manip' 'perl-io-socket-inet6' 'perl-net-snmp'
14              'perl-net-ssleay' 'perl-net-server' 'perl-file-copy-recursive'
15              'perl-fcgi' 'perl-uri' 'perl-module-build')
16 source=(munin-$pkgver.tar.gz::https://github.com/munin-monitoring/munin/archive/$pkgver.tar.gz
17         Makefile.config
18         munin-cron-entry
19         logrotate.munin
20         logrotate.munin-node
21         munin.tmpfiles
22         munin-node.service
23         munin-async.service
24         munin-graph.{service,socket}
25         munin-html.{service,socket}
26         08-munin-font-dir.conf
27         munin.sysusers)
30 sha256sums=('cda0bbd1af142c000e5c1177ffe5b03c4771062e32324fcaf6e94e466fcf2876'
31             'b607fa4c6be885e87de0bc475ea83491bfd79445d8c3af393bf929c300958f04'
32             '535097acbaf9876b11e3308f1cdd314e632a9275192dd1eb58414b7f77da49de'
33             '7029a87044bb2850c1f55aad42867dacc52d1491a777b36e6a2a2901cb63ff27'
34             'e72933e468a70ec5c14a48ececfbe19aa569732fc91c3f69d3d34b87474278a4'
35             '706009977d8a92584193360e2eca0cca8214d9f099b3ffe8540974a003d4b598'
36             '1b5789ce92bf2566fbbe30a01b7cfafed8dcab45e78bfa509aacc05ca777bd52'
37             'aae98da712ac9e0be8a7a37d2c36a5191a22179ad75e1c8da250f06db704b000'
38             '25016515d04555b774f565e52bc1a70a2fd4b7881f75a325b1f95467592b541b'
39             '6fc45060633d243212a9be6cedfd31cc8cbd4001398006650e6754af235ab373'
40             '5873a40f0510e53f8ad774884491991e9eef85f88e73dbb42b6f1a9afe533c05'
41             '42f6f59b449805aec47f151e47125298aee575dcaf2caf56008220d1c22c9ce1'
42             '939af8dd5ff7f0a70b17c9692c0512440f2748d7d9fed1d531eec8d922a078a6'
43             'd91198ceda04700d991c92f0b773112ef92d40f1037bf0cc56532477a79b9b10')
45 build() { 
46         cd "$srcdir/munin-$pkgver"
48         sed -i -e 's#/sbin/ip6tables#/usr/sbin/ip6tables#' plugins/node.d.linux/ip_.in
50         cp ../Makefile.config .
51         # multithreading wrecks havoc on the build, should probably report this
52         PERL_USE_UNSAFE_INC=1 \
53         make -j1 PREFIX=''
54         make -j1 PREFIX='' common/blib/lib/Munin/Common/Defaults.pm
57 package_munin() {
58         depends=('perl' 'rrdtool' 'perl-html-template' 'perl-date-manip'
59              'perl-log-log4perl' 'perl-io-socket-inet6'
60              'perl-file-copy-recursive' 'perl-fcgi' 'perl-uri' 'munin-node')
61         optdepends=("perl-cgi-fast: Required by munin-cgi-html")
62         backup=(etc/munin/munin.conf etc/logrotate.d/munin)
63         install=munin.install
66         cd "$srcdir/munin-$pkgver"
67         PERL5LIB=. make DESTDIR="$pkgdir" install-master-prime
68         install -D -m644 ../munin-cron-entry "$pkgdir"/etc/munin/munin-cron-entry
69         install -D -m644 ../logrotate.munin "$pkgdir"/etc/logrotate.d/munin
70         install -D -m644 ../munin.tmpfiles "$pkgdir"/usr/lib/tmpfiles.d/munin.conf
71         install -D -m644 ../munin-graph.service "$pkgdir"/usr/lib/systemd/system/munin-graph.service
72         install -D -m644 ../munin-graph.socket "$pkgdir"/usr/lib/systemd/system/munin-graph.socket
73         install -D -m644 ../munin-html.service "$pkgdir"/usr/lib/systemd/system/munin-html.service
74         install -D -m644 ../munin-html.socket "$pkgdir"/usr/lib/systemd/system/munin-html.socket
75         install -D -m644 ../08-munin-font-dir.conf "$pkgdir"/usr/share/fontconfig/conf.avail/08-munin-font-dir.conf
76         install -D -m644 ../munin.sysusers "$pkgdir"/usr/lib/sysusers.d/munin.conf
77         rm -rf "$pkgdir/run"
78         install -d "$pkgdir"/usr/share/fontconfig/conf.default
79         ln -s ../conf.avail/08-munin-font-dir.conf "$pkgdir"/usr/share/fontconfig/conf.default/08-munin-font-dir.conf
82 package_munin-node() {
83         depends=('perl' 'perl-net-server' 'perl-io-socket-inet6')
84         optdepends=('perl-net-snmp: for SNMP plugins'
85                     'perl-net-ssleay: for SSL/TLS support'
86                     'perl-dbi: for database monitoring plugins'
87                     'python: for some plugins'
88                     'ruby: for some plugins')
89         backup=(etc/munin/munin-node.conf etc/logrotate.d/munin-node)
90         install=munin-node.install
92         cd "$srcdir/munin-$pkgver"
93         PERL5LIB=. make DESTDIR="$pkgdir" install-common-prime install-node-prime install-plugins-prime install-async-prime
94         install -D -m644 ../logrotate.munin-node "$pkgdir"/etc/logrotate.d/munin-node
95         install -D -m644 ../munin.tmpfiles "$pkgdir"/usr/lib/tmpfiles.d/munin-node.conf
96         install -D -m644 ../munin-node.service "$pkgdir"/usr/lib/systemd/system/munin-node.service
97         install -D -m644 ../munin-async.service "$pkgdir"/usr/lib/systemd/system/munin-async.service
98         install -D -m644 ../munin.sysusers "$pkgdir"/usr/lib/sysusers.d/munin-node.conf
99         rm -rf "$pkgdir/run/"
100         chmod 775 "$pkgdir/var/lib/munin/plugin-state"