mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-13 11:51:38 +01:00
40 lines
1.2 KiB
Plaintext
40 lines
1.2 KiB
Plaintext
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
|
|
pkgname=libreswan
|
|
pkgver=3.5
|
|
pkgrel=2
|
|
pkgdesc="IPsec implementation for Linux"
|
|
url="https://libreswan.org"
|
|
arch="all"
|
|
license="GPLv2"
|
|
depends="nss-tools"
|
|
depends_dev="gmp-dev linux-pam-dev nss-dev unbound-dev libcap-ng-dev curl-dev nspr-dev"
|
|
makedepends="$depends_dev bison flex pkgconf coreutils bash"
|
|
subpackages="$pkgname-doc"
|
|
source="https://download.libreswan.org/libreswan-$pkgver.tar.gz"
|
|
|
|
_builddir="$srcdir"/$pkgname-$pkgver
|
|
build() {
|
|
cd "$_builddir"
|
|
make INC_RCDEFAULT=/etc/init.d \
|
|
INC_USRLOCAL=/usr \
|
|
FINALBINDIR=/usr/libexec/ipsec \
|
|
FINALLIBEXECDIR=/usr/libexec/ipsec \
|
|
programs || return 1
|
|
}
|
|
|
|
package() {
|
|
cd "$_builddir"
|
|
make INC_MANDIR=share/man \
|
|
INC_RCDEFAULT=/etc/init.d \
|
|
INC_USRLOCAL=/usr \
|
|
DESTDIR="$pkgdir" \
|
|
INSTCONFFLAGS=-m644 \
|
|
FINALBINDIR=/usr/libexec/ipsec \
|
|
FINALLIBEXECDIR=/usr/libexec/ipsec \
|
|
install || return 1
|
|
}
|
|
md5sums="7dbf9dbd79836b567e3231006eed3109 libreswan-3.5.tar.gz"
|
|
sha256sums="0115f84c0171908b5c9b8b7d59aba42933bd50f2cb88483f752f72e16f2fd880 libreswan-3.5.tar.gz"
|
|
sha512sums="bed9c56118b141e2054c7eead027df4aabbd2ff996d329e4c59411d418e70f35f329142a5ceb0f047cd2dafea2f45d5e0933f57c84b09387990b3d364ae81462 libreswan-3.5.tar.gz"
|