updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / nufw / PKGBUILD
blobe617f6d4c6435a059acfddf33d0ea24742a8484d
1 # Contributor: Celos <celos94(AT)gmail(DOT)com>
3 pkgname=nufw
4 pkgver=2.4.3
5 pkgrel=1
6 pkgdesc="NuFW - An authentificating firewall"
7 arch=('i686' 'x86_64')
8 url="http://www.nufw.org/"
9 license=('GPL3')
10 depends=('glib2' 'gnutls' 'libsasl' 'libnetfilter_queue' 'python-ipy')
11 # 'libgpg-error' 'libgcrypt' 'cyrus-sasl' 'gdbm' 'pam'
12 backup=('etc/nufw/nuauth.conf' 'etc/nufw/nufw-cert.pem' 'etc/nufw/nufw-key.pem' 'etc/nufw/nuauth-cert.pem' 'etc/nufw/nuauth-key.pem' 'etc/nufw/NuFW-cacert.pem' 'etc/nufw/periods.xml' 'etc/nufw/acls.schema')
13 options=('!libtool')
14 source=(http://www.nufw.org/attachments/download/175/$pkgname-$pkgver.tar.bz2)
15 md5sums=('e264ddc6e314df1d2c7b4cd0f0a4eb64')
17 build(){
18   cd "$startdir/src/$pkgname-$pkgver"
20   ./configure --prefix=/usr --sysconfdir=/etc/nufw --with-ldap
21   
22   # --with-gdbm --with-ident --with-debug
23   make || return 1
24   make prefix="$startdir/pkg/usr" install || return 1
27   ## Install nuauth config file
28   install -D -m644 $startdir/src/$pkgname-$pkgver/conf/nuauth.conf $startdir/pkg/etc/nufw/nuauth.conf 
30   ## Install certificates available in the sources
31   install -D -m644 $startdir/src/$pkgname-$pkgver/conf/certs/nufw-cert.pem $startdir/pkg/etc/nufw/nufw-cert.pem
32   install -D -m644 $startdir/src/$pkgname-$pkgver/conf/certs/nufw-key.pem $startdir/pkg/etc/nufw/nufw-key.pem
33   install -D -m644 $startdir/src/$pkgname-$pkgver/conf/certs/nuauth-cert.pem $startdir/pkg/etc/nufw/nuauth-cert.pem
34   install -D -m644 $startdir/src/$pkgname-$pkgver/conf/certs/nuauth-key.pem $startdir/pkg/etc/nufw/nuauth-key.pem
35   install -D -m644 $startdir/src/$pkgname-$pkgver/conf/certs/NuFW-cacert.pem $startdir/pkg/etc/nufw/NuFW-cacert.pem
37   # Install acls files
38   install -D -m644 $startdir/src/$pkgname-$pkgver/conf/acls.nufw $startdir/pkg/etc/nufw/acls.nufw
39   install -D -m644 $startdir/src/$pkgname-$pkgver/conf/acls.schema $startdir/pkg/etc/nufw/acls.schema
40   install -D -m644 $startdir/src/$pkgname-$pkgver/conf/periods.xml $startdir/pkg/etc/nufw/periods.xml
42   ## Editing nuauth.conf file to make it work with PAM user list and acls.nufw file
43   sed -i \
44     -e 's:^\(nuauth_user_check_module=\)"plaintext":\1"system":' \
45     -e 's:^\(nuauth_get_user_id_module=\)"plaintext":\1"system":' \
46     -e 's:^\(nuauth_get_user_groups_module=\)"plaintext":\1"system":' \
47     -e 's:^\(nuauth_acl_check_module=\)"libplaintext":\1"plaintext":' \
48     $startdir/pkg/etc/nufw/nuauth.conf
51 # vim:set ts=2 sw=2 et: