1 # Contributor: Celos <celos94(AT)gmail(DOT)com>
6 pkgdesc="NuFW - An authentificating firewall"
8 url="http://www.nufw.org/"
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')
14 source=(http://www.nufw.org/attachments/download/175/$pkgname-$pkgver.tar.bz2)
15 md5sums=('e264ddc6e314df1d2c7b4cd0f0a4eb64')
18 cd "$startdir/src/$pkgname-$pkgver"
20 ./configure --prefix=/usr --sysconfdir=/etc/nufw --with-ldap
22 # --with-gdbm --with-ident --with-debug
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
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
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: