updated on Wed Jan 11 04:01:16 UTC 2012
[aur-mirror.git] / ipwatchd / PKGBUILD
blob28fa737c14b470e6c604ffc5b56729908e9128ae
1 # This is an example PKGBUILD file. Use this as a start to creating your own,
2 # and remove these comments. For more information, see 'man PKGBUILD'.
3 # NOTE: Please fill out the license field for your package! If it is unknown,
4 # then please put 'unknown'.
6 # Maintainer: Alex Merry <dev@randomguy3.me.uk>
7 pkgname=ipwatchd
8 pkgver=1.2
9 pkgrel=1
10 pkgdesc="Monitors for IP address conflicts"
11 arch=(i686 x86_64)
12 url="http://ipwatchd.sourceforge.net/"
13 license=('GPL')
14 depends=(libpcap libnet libnotify)
15 backup=("etc/conf.d/ipwatchd")
16 source=($pkgname-$pkgver.tar.gz ipwatchd.conf ipwatchd)
18 build() {
19   cd "$srcdir/$pkgname-$pkgver/src"
21   make
24 package() {
25   cd "$srcdir/$pkgname-$pkgver/src"
27   install -d -m755 "$pkgdir/etc/init.d"
28   make DESTDIR="$pkgdir/" install
29   rm -rf "$pkgdir/etc/init.d"
31   cd "$srcdir"
32   install -d -m755 "$pkgdir/etc/rc.d"
33   install -d -m755 "$pkgdir/etc/conf.d"
34   install -m755 ipwatchd "$pkgdir/etc/rc.d/"
35   install -m755 ipwatchd.conf "$pkgdir/etc/conf.d/ipwatchd"
38 # vim:set ts=2 sw=2 et:
39 md5sums=('8485c98d7539b2f8b5bad370d523fdc3'
40          'd8f95e61835da11a2fa2ba7901c3c87d'
41          '7e31bf788a6445a722e8f4f3fa87e206')