mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-19 07:31:35 +01:00
As lib/libswan/nss_copies.c says: /* * The NSS function CERT_CompareAVA() appears in the NSS header files, * but the library does not actually export the function. This is a copy * of that function until upstream NSS is fixed and the fix available in * the common Linux distributions. This workaround is enabled using * NSS_REQ_AVA_COPY=true * * See also: * https://bugzilla.mozilla.org/show_bug.cgi?id=1336487 * https://bugzilla.mozilla.org/show_bug.cgi?id=294538 */ So disable the work-around on Alpine since main/nss is new enough. This is also a build fix for mips* as nss_copies.c expects that libc provides <sgidefs.h> in the standard location.
49 lines
1.5 KiB
Plaintext
49 lines
1.5 KiB
Plaintext
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
|
|
pkgname=libreswan
|
|
pkgver=3.27
|
|
pkgrel=1
|
|
pkgdesc="IPsec implementation for Linux"
|
|
url="https://libreswan.org"
|
|
arch="all"
|
|
license="GPL-2.0"
|
|
depends="nss-tools iproute2"
|
|
provides="openswan"
|
|
makedepends="bison flex coreutils bash xmlto
|
|
gmp-dev linux-pam-dev nss-dev unbound-dev libcap-ng-dev
|
|
curl-dev nspr-dev bsd-compat-headers ldns-dev
|
|
"
|
|
subpackages="$pkgname-doc"
|
|
source="https://download.libreswan.org/libreswan-$pkgver.tar.gz
|
|
fix-includes.patch
|
|
|
|
Makefile.inc.local"
|
|
|
|
builddir="$srcdir"/$pkgname-$pkgver
|
|
|
|
build() {
|
|
cp $srcdir/Makefile.inc.local $builddir
|
|
cd "$builddir"
|
|
make WERROR_CFLAGS="" \
|
|
INC_RCDEFAULT=/etc/init.d \
|
|
INC_USRLOCAL=/usr \
|
|
FINALBINDIR=/usr/libexec/ipsec \
|
|
FINALLIBEXECDIR=/usr/libexec/ipsec \
|
|
programs
|
|
}
|
|
|
|
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
|
|
}
|
|
sha512sums="b92ecfd08b9d19dc801032176eff3dd07f625223d4f0dd07ff10f639644573430a55f7aebfcc8b9d2424e194ca9d06b17ad5a13dad5dc6f659d19bc5d32520f5 libreswan-3.27.tar.gz
|
|
df503e349661a029f8f6569ea65b4ecceb67f18c0a133d4818d390c0e6e719c2c793c483881778685f1eedaa210ea815ae4f77a94fa84a1acb63a9ad5e8db501 fix-includes.patch
|
|
36415fae9b6674d66b7728fbc1df4bb3c4fcb16f0bbe88ead1f23e553bb51a9deb288a8659a0050a3fb1e14c3dbb8fb8524e9ef48fb6842dc94b11b758349c58 Makefile.inc.local"
|