diff options
author | tmpfile <tmpfile@users.noreply.github.com> | 2017-05-14 12:39:57 -0300 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-06-09 11:51:45 +0000 |
commit | c67d03cea077fc1ebd7079b8c0215ae1ef6acf37 (patch) | |
tree | 8d8649f3850e145fadb4b29306765fe274e68ad2 | |
parent | 4a5bf568fc2d0443b725c195694c068c7433c4d3 (diff) | |
download | aports-c67d03cea077fc1ebd7079b8c0215ae1ef6acf37.tar.bz2 aports-c67d03cea077fc1ebd7079b8c0215ae1ef6acf37.tar.xz |
main/ipsec-tools: modernize abuild
-rw-r--r-- | main/ipsec-tools/APKBUILD | 41 |
1 files changed, 8 insertions, 33 deletions
diff --git a/main/ipsec-tools/APKBUILD b/main/ipsec-tools/APKBUILD index 1a77577b22..7bf8d0febb 100644 --- a/main/ipsec-tools/APKBUILD +++ b/main/ipsec-tools/APKBUILD @@ -21,20 +21,16 @@ source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz fix-yywrap.patch " -_builddir="$srcdir"/$pkgname-$pkgver -prepare() { - cd "$_builddir" - update_config_sub || return 1 - for i in ../*.patch; do - msg "Applying $i..." - patch -p1 -i $i || return 1 - done +builddir="$srcdir"/$pkgname-$pkgver +prepare() { + update_config_sub + default_prepare sed -i 's:-Werror::g' configure } build() { - cd "$_builddir" + cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ @@ -50,39 +46,18 @@ build() { --enable-frag \ --enable-hybrid \ --enable-ipv6 \ - --enable-natt \ - || return 1 - make || return 1 + --enable-natt + make } package() { - cd "$_builddir" + cd "$builddir" make DESTDIR="$pkgdir" install install -D -m755 ../racoon.initd "$pkgdir"/etc/init.d/racoon install -D -m644 ../racoon.confd "$pkgdir"/etc/conf.d/racoon } -md5sums="8c222aedb897820e946aac203113b650 ipsec-tools-0.8.2.tar.gz -11e4d3084b997674cdbefadac08e16d6 racoon.initd -2d00250cf72da7f2f559c91b65a48747 racoon.confd -a6efed1359bde30ea3652fdbe76d89c0 20-grekey-support.patch -f97205eea3dc68d2437a2ad8720f4520 50-reverse-connect.patch -94773c94233e14cdce0fa02ff780a43e 70-defer-isakmp-ident-handling.patch -2d5d24c4a3684a38584f88720f71c7d6 75-racoonctl-rcvbuf.patch -1d0d8ef21c65138d40f902502412da9c 90-dead-on-initial-contact.patch -88717d561b52a30a6598d3d02e6df20a musl-cdefs.patch -de8e67611ae61b9138d5f59af334d894 fix-yywrap.patch" -sha256sums="5e702549103d4cffb73d5bcd3a9b4cb75c398e7988f2421b2901cc0e15915785 ipsec-tools-0.8.2.tar.gz -f40a95eb73c71d7515b6b70daafbfdc53b17bc1d2a8fe167f98d85079710b1d2 racoon.initd -b97aecfe8c7263487934801a588426693e1c441a77144374d7d8f84af4ce83f5 racoon.confd -ac505943c53fe26ef67b1f2e5543de785f0e6cbb8279f3045cb1b0e324baea0a 20-grekey-support.patch -04fa15dbce53099e59b03e8fa1dab2da42b82743b1d88aaafc34b6bdfefc170c 50-reverse-connect.patch -bad8fc8d4e5c50295d4e2f5e9c1cfcb6f5d018b801e0618ccf9d6ecbf6b3ab06 70-defer-isakmp-ident-handling.patch -c07a9569ef19199e13c1d2f7b761c3354edf81b928194ac6e8cf911586f7cd25 75-racoonctl-rcvbuf.patch -8ea20cc244f9a8d0b819e773a4e5dd12c70639aa7f0fb78c797a394cf4ad72f2 90-dead-on-initial-contact.patch -39a04a52e89bdf541b94cb5728e9f0957bb5bfc68a8d6a1552bfd04c5ac6fc61 musl-cdefs.patch -40f0c50fc55316e58bb3c0dd9a0b26ea19576e354f53b0098a9e441c0ec268c8 fix-yywrap.patch" sha512sums="6cf4f1da7b461127e75f87fba8349f46b879f8bca179ae1cb27b2e011045753460c5edddbe8ba5892d6a28a021a0a01a9ff9fdb0f5da451519859570d748b9f2 ipsec-tools-0.8.2.tar.gz 2a5e723779be12dce45fc315a948b440fbf7fba9547b7c0a019d31a529a52d694b09ab823af8bd36aa15b6ad5c059fdd7650620ed6647f1b730fdf6a105b7ca6 racoon.initd 61c285e63a21e4162efa058d91cc061ad0a8387a7e6f654151f31bac757cdd250247c1be6776e1f04edea223dfb56d015285459ab5bbfd6218bfe3e51b861576 racoon.confd |