updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / sysusage / PKGBUILD
blob51517a5abb9c6096a25f5f10c788375c0adb3a9f
1 # Maintainer: Phillip Smith <fukawi2@NO-SPAM.gmail.com>
2 # http://github.com/fukawi2/aur-packages
4 ### I AM ONLY THE PACKAGER, NOT THE DEVELOPER
5 ### Please ask support questions about this software in one of:
6 ###   1) The AUR comments; OR
7 ###   2) Upstream forums/maillist etc; OR
8 ###   3) The ArchLinux forums
9 ### I do not always know enough about the software itself, or don't have the
10 ### time to promptly respond to direct emails.
11 ### If you have found a problem with the package/PKGBUILD (as opposed to
12 ### the software) then please do email me or post an AUR comment.
14 pkgname=sysusage
15 _PKGNAME=SysUsage-Sar
16 pkgver=5.0
17 pkgrel=1
18 pkgdesc="Monitor your systems informations and generate periodical graph reports using rrdtool. All reports are shown throught a web interface."
19 arch=('any')
20 url="http://sysusage.darold.net/"
21 license=('GPL3')
22 depends=('rrdtool' 'sysstat' 'perl')
23 backup=('etc/sysusage.cfg')
24 install="$pkgname.install"
25 source=("http://downloads.sourceforge.net/${pkgname}/$_PKGNAME-${pkgver}.tar.gz")
26 md5sums=('cdb50becafc0591ff0e3d7f018161ae7')
28 build() {
29   msg "Nothing to compile for $pkgname"
32 package() {
33   cd $srcdir/$_PKGNAME-$pkgver
34   
35   perl Makefile.PL \
36     BINDIR=/usr/bin \
37     CONFDIR=/etc \
38     PIDDIR=/var/run \
39     BASEDIR=/var/lib/$pkgname \
40     HTMLDIR=/srv/http/$pkgname \
41     MANDIR=/usr/share/man/man1 \
42     DOCDIR=/usr/share/doc/$pkgname
44   make
46         mkdir -p $pkgdir/var/lib/sysusage
47   
48   install -Dm644 Sar.pm $pkgdir/usr/share/perl5/vendor_perl/SysUsage/Sar.pm
49   install -Dm644 sysusage.cfg $pkgdir/etc/sysusage.cfg
50   install -Dm755 bin/sysusage $pkgdir/usr/bin/sysusage
51   install -Dm755 bin/sysusagegraph $pkgdir/usr/bin/sysusagegraph
52   install -Dm755 bin/sysusagewarn $pkgdir/usr/bin/sysusagewarn
53   install -Dm644 resources/sysusage-logo.png $pkgdir/srv/http/sysusage/sysusage-logo.png
54   install -Dm644 resources/sysusage.css $pkgdir/srv/http/sysusage/sysusage.css
55   install -Dm644 resources/sysusage.js $pkgdir/srv/http/sysusage/sysusage.js
56   install -Dm644 resources/sysusage_arrow.png $pkgdir/srv/http/sysusage/sysusage_arrow.png
57   install -Dm644 resources/favicon.ico $pkgdir/srv/http/sysusage/favicon.ico
58   install -Dm644 doc/sysusage.1 $pkgdir/usr/share/man/man1/sysusage.1
59   install -Dm644 README $pkgdir/usr/share/doc/sysusage/README
60   install -Dm644 ChangeLog $pkgdir/usr/share/doc/sysusage/ChangeLog
61   install -Dm755 plugins/plugin-sample1.pl $pkgdir/usr/share/doc/sysusage/plugins/plugin-sample1.pl
62   install -Dm755 plugins/plugin-sample2.pl $pkgdir/usr/share/doc/sysusage/plugins/plugin-sample2.pl
65 # vim:set ts=2 sw=2 et: