updated on Fri Jan 13 20:02:10 UTC 2012
[aur-mirror.git] / sks / PKGBUILD
blob00cd464101dd4bf1be7136d858ed08031aa7957b
1 pkgname=sks
2 pkgver=1.1.2
3 _patchver=1.1.1
4 pkgrel=2
5 arch=('i686' 'x86_64')
6 license=('GPL')
7 pkgdesc="Synchronizing OpenPGP Key Server"
8 depends=('glibc')
9 makedepends=('ocaml-cryptokit' 'db4.6')
10 url="https://code.google.com/p/sks-keyserver/"
11 install=sks.install
12 backup=(etc/conf.d/sks etc/sks/sksconf etc/sks/forward.exim etc/sks/forward.postfix etc/sks/mailsync etc/sks/membership etc/sks/procmail)
13 source=(http://sks-keyserver.googlecode.com/files/$pkgname-$pkgver.tgz
14         sks.conf.d
15         sks.init
16         http://archive.ubuntu.com/ubuntu/pool/universe/s/sks/${pkgname}_$_patchver+dpkgv3-6.debian.tar.gz
17         http://wiresphere.de/files/sks_web.tar.gz)
19 md5sums=('d09b73763cfc83ab08fcf72218606302'
20          '04cf445e39de1446e604aca204832fc7'
21          '81602c740f236f6090309dfbf1262aa9'
22          '9eac82d726d62043f5db3edf701f89d7'
23          '8d421d71ef3e4add73c30ba8ad7f5b25')
25 build() {
26   cd $srcdir/$pkgname-$pkgver
28   cp Makefile.local.unused Makefile.local
29   sed -i -e 's#/usr/include#/usr/include/db4.6#g' Makefile.local
30   sed -i -e "s#/usr/local#$pkgdir/usr#g" Makefile.local
31   sed -i -e "s#/usr/share/man#$pkgdir/usr/share/man#g" Makefile.local
33   patch -p1 -i ../debian/patches/500_debian_fhs.patch
35   make || sleep 1
37   make
38   make PREFIX="$pkgdir/usr" MANDIR="$pkgdir/usr/share/man" install
40   install -m755 -D $srcdir/${pkgname}.init $pkgdir/etc/rc.d/$pkgname || return 1
41   install -m644 -D $srcdir/${pkgname}.conf.d $pkgdir/etc/conf.d/$pkgname || return 1
43   mkdir -p $pkgdir/etc/sks $pkgdir/var/lib/sks
44   cp $srcdir/debian/debcfg/* $pkgdir/etc/sks
45   sed -i -e "s#/usr/lib/sendmail#/usr/sbin/sendmail#g" $pkgdir/etc/sks/sksconf
47   cp -R $srcdir/www $pkgdir/var/lib/sks