updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / mod_nss / PKGBUILD
blobb828ecc34f7752c76cbd0b47cfba3e234bd35736
1 # Maintainer: Sergio A. Morales <sergiomorales@archlinux.cl>
2 # Contributor: Sergio A. Morales <sergiomorales@archlinux.cl>
3 pkgname=mod_nss
4 pkgver=1.0.8
5 pkgrel=1
6 pkgdesc="SSL/TLS module for the Apache HTTP server"
7 arch=('i686' 'x86_64')
8 url="http://directory.fedoraproject.org/"
9 license=(GPL)
10 depends=('apache' 'nss' 'nspr')
11 source=("http://directory.fedoraproject.org/sources/$pkgname-$pkgver.tar.gz")
12 md5sums=("32458d91ce909260a6081cce58004e2f")
14 build() {
15         cd $startdir/src/$pkgname-$pkgver
16         [ "${CARCH}" == "x86_64" ] && export USE_64=1
17         ./configure --disable-rpath --prefix=/usr --sysconfdir=/etc --with-adminutil=/usr
19         make || return 1
20         mkdir -p $pkgdir/usr/lib/httpd/modules
21         mkdir -p $pkgdir/etc/httpd/conf/extra
22         mkdir -p $pkgdir/usr/sbin
23         
24         install -m 644 nss.conf $pkgdir/etc/httpd/conf/extra
25         install -m 755 .libs/libmodnss.so $pkgdir/usr/lib/httpd/modules
26         install -m 755 nss_pcache $pkgdir/usr/sbin
27         install -m 755 gencert $pkgdir/usr/sbin
29         perl -pi -e "s:/usr/lib:/usr/bin:" $pkgdir/usr/sbin/gencert
30         }