updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / postfwd / PKGBUILD
blob752574977eced37082a5f08baf2778ac24ce1c55
1 # Maintainer: Phillip Smith <fukawi2@NO-SPAM.gmail.com>
2 # http://github.com/fukawi2/aur-packages
4 pkgname=postfwd
5 pkgver=1.18
6 pkgrel=2
7 pkgdesc="Combines complex postfix restrictions in a ruleset similar to those of the most firewalls"
8 arch=(any)
9 url="http://postfwd.org/"
10 license=('bsd')
11 depends=('perl')
12 source=("http://postfwd.org/$pkgname-$pkgver.tar.gz")
13 md5sums=('f921180e0ebefcf74ad3ccfa6611a7f9')
15 build() {
16   msg "Nothing to compile for $pkgname"
19 package() {
20   cd $srcdir/$pkgname-$pkgver
22   mkdir -p $pkgdir/{etc/$pkgname,usr/{bin,sbin,share/{man,$pkgname}}}
24   cp -ra etc/*    $pkgdir/etc/$pkgname/
25   cp -ra bin/*    $pkgdir/usr/bin/
26   cp -ra sbin/*   $pkgdir/usr/sbin/
27   cp -ra man/*    $pkgdir/usr/share/man/
28   cp -ra tools/*  $pkgdir/usr/share/$pkgname/
29   cp -ra doc/*    $pkgdir/usr/share/$pkgname/
31   mkdir $pkgdir/etc/rc.d/
32   mv $pkgdir/usr/bin/postfwd-script.sh $pkgdir/etc/rc.d/$pkgname
34   mkdir -p $pkgdir/usr/share/licenses/$pkgname
35   mv $pkgdir/usr/share/$pkgname/LICENSE $pkgdir/usr/share/licenses/$pkgname
38 # vim:set ts=2 sw=2 et: