blob: 91fe607829a370be41a6711c0f14c2e0fe67f87d (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# $Id: pkgbuild-mode.el,v 1.23 2007/10/20 16:02:14 juergen Exp $
# Maintainer: Alexandre BIQUE <bique.alexandre@gmail.com>
pkgname=libreswan
pkgver=3.14
pkgrel=1
pkgdesc="IPsec implementation with IKEv1 and IKEv2 keying protocols"
arch=('i686' 'x86_64')
url="https://libreswan.org/"
license=('GPLv2')
groups=()
depends=(unbound nss libcap-ng curl)
makedepends=()
checkdepends=()
optdepends=()
provides=()
conflicts=('freeswan' 'openswan' 'ipsec-tools')
replaces=()
backup=('etc/ipsec.conf' 'etc/pam.d/pluto')
options=()
install=
changelog=
source=(https://download.libreswan.org/${pkgname}-${pkgver}.tar.gz
tmpfiles.conf)
md5sums=('da7a410afcfc2673f14f33f69fefca1f'
'77399a739ee99f8bc54837684d7c39d5')
prepare() {
cd $pkgname-$pkgver
# Change install paths to Arch defaults
sed -i 's|)/sbin|)/bin|' Makefile.inc
sed -i 's|)/sbin|)/bin|' mk/config.mk
}
build() {
cd $pkgname-$pkgver
make \
USE_XAUTH=true USE_LIBCAP_NG=true INC_USRLOCAL=/usr \
USE_LEAK_DETECTIVE=false INC_MANDIR=share/man \
programs
}
# check() {
# cd $pkgname-$pkgver
# make -k check
# }
package() {
cd $pkgname-$pkgver
make DESTDIR="$pkgdir/" \
USE_XAUTH=true USE_LIBCAP_NG=true INC_USRLOCAL=/usr \
USE_LEAK_DETECTIVE=false INC_MANDIR=share/man \
install
sed -i '1s|python|python2|' $pkgdir/usr/libexec/ipsec/verify
install -D -m644 ${srcdir}/tmpfiles.conf ${pkgdir}/usr/lib/tmpfiles.d/libreswan.conf
rm -rf ${pkgdir}/var
}
# vim:set ts=2 sw=2 et:
|