blob: 1ca011b8c382bd0e4e936bf00634b86366f28a03 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# $Id: PKGBUILD 78385 2012-10-17 16:23:33Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Allan Henriksen <allan.henriksen@gmail.com>
pkgname=ipsec-tools
pkgver=0.8.0
pkgrel=5
pkgdesc="KAME IPSec tools ported to Linux"
arch=('i686' 'x86_64')
url="http://ipsec-tools.sourceforge.net/"
depends=('readline' 'openssl' 'krb5')
makedepends=('linux-headers')
license=('GPL')
options=('!makeflags' '!libtool')
source=(http://downloads.sourceforge.net/sourceforge/ipsec-tools/$pkgname-$pkgver.tar.bz2
racoon.rc
ipsec.rc
racoon.service
ipsec.service)
md5sums=('b79aae3055a51f8de5c0f1b8ca6cf619'
'416b8e362d86987b8c55f7153cdafbeb'
'90d0810267cbd847383ae3101699b192'
'1632fce55ba5592dea1f8bf661106e7d'
'bc05a2b85e41bf89dac809657e857730')
build() {
cd $srcdir/$pkgname-$pkgver
sed -i 's#-Werror##' configure
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
--enable-security-context=no --enable-hybrid --enable-dpd --enable-natt \
--enable-adminport --enable-gssapi
make
}
package() {
cd $srcdir/$pkgname-$pkgver
make DESTDIR=$pkgdir install
install -Dm0755 $srcdir/racoon.rc $pkgdir/etc/rc.d/racoon
install -Dm0755 $srcdir/ipsec.rc $pkgdir/etc/rc.d/ipsec
install -Dm0644 $srcdir/racoon.service $pkgdir/usr/lib/systemd/system/racoon.service
install -Dm0644 $srcdir/ipsec.service $pkgdir/usr/lib/systemd/system/ipsec.service
}
|