diff options
author | Sören Tempel <soeren+git@soeren-tempel.net> | 2016-04-01 15:50:49 +0200 |
---|---|---|
committer | Sören Tempel <soeren+git@soeren-tempel.net> | 2016-04-01 15:55:12 +0200 |
commit | afadf4a7c8983f5885a211f023d1f78254787a18 (patch) | |
tree | f006ce518af27cde9054e96e34855a75a9b95cb8 /testing/fastd | |
parent | 401caa4d2ae0881ea8e91ec8874514c3472b810b (diff) | |
download | aports-afadf4a7c8983f5885a211f023d1f78254787a18.tar.bz2 aports-afadf4a7c8983f5885a211f023d1f78254787a18.tar.xz |
testing/fastd: upgrade to 18
Diffstat (limited to 'testing/fastd')
-rw-r--r-- | testing/fastd/APKBUILD | 52 |
1 files changed, 23 insertions, 29 deletions
diff --git a/testing/fastd/APKBUILD b/testing/fastd/APKBUILD index 8956f4dcb8..5e19633d58 100644 --- a/testing/fastd/APKBUILD +++ b/testing/fastd/APKBUILD @@ -1,37 +1,25 @@ # Contributor: Johannes Matheis <jomat+alpinebuild@jmt.gr> # Maintainer: Johannes Matheis <jomat+alpinebuild@jmt.gr> pkgname=fastd -pkgver=17 -pkgrel=2 +pkgver=18 +pkgrel=0 pkgdesc="Fast and Secure Tunneling Daemon" url="https://projects.universe-factory.net/projects/fastd" arch="all" license="BSD" depends="" depends_dev="" -makedepends="$depends_dev cmake doxygen bison bsd-compat-headers linux-headers - libsodium-dev libcap-dev libuecc-dev json-c-dev" +makedepends="$depends_dev cmake doxygen bison bsd-compat-headers + linux-headers libsodium-dev libcap-dev libuecc-dev json-c-dev" install="" subpackages="$pkgname-doc" source="http://git.universe-factory.net/${pkgname}/snapshot/${pkgname}-${pkgver}.tar fastd.conf fastd.initd" -_builddir="$srcdir/${pkgname}-${pkgver}" -prepare() { - local i - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done -} - +builddir="$srcdir/${pkgname}-${pkgver}" build() { - cd "$_builddir" - mkdir build - cd build + mkdir "$builddir"/build && cd "$builddir"/build cmake \ -D CMAKE_AR=/usr/bin/ar \ -D CMAKE_RANLIB=/usr/bin/ranlib \ @@ -39,25 +27,31 @@ build() { -D CMAKE_INSTALL_PREFIX=/usr \ -D ENABLE_SYSTEMD=OFF \ .. - make + make || return 1 } package() { - cd "$_builddir/build" - make install DESTDIR="${pkgdir}" - install -Dm644 "$srcdir/${pkgname}-${pkgver}/COPYRIGHT" "${pkgdir}/usr/share/licenses/${pkgname}/COPYRIGHT" - install -Dm644 "$srcdir/${pkgname}-${pkgver}/doc/fastd.1" "${pkgdir}/usr/share/man/man1/fastd.1" - install -D -m600 ${srcdir}/fastd.conf "${pkgdir}"/etc/fastd/fastd.conf - install -D -m755 ${srcdir}/fastd.initd "${pkgdir}"/etc/init.d/fastd - install -d -m700 "${pkgdir}"/etc/fastd/peers/ + cd "$builddir" + make -C build install DESTDIR="$pkgdir" || return 1 + + install -Dm644 COPYRIGHT \ + "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt + install -Dm644 doc/fastd.1 \ + "$pkgdir"/usr/share/man/man1/fastd.1 + + install -dm700 "$pkgdir"/etc/fastd/peers/ + install -Dm600 "$srcdir"/fastd.conf \ + "$pkgdir"/etc/fastd/fastd.conf || return 1 + install -Dm755 "$srcdir"/fastd.initd \ + "$pkgdir"/etc/init.d/fastd || return 1 } -md5sums="40c9efd2c7eaba42b9b93add4a462b17 fastd-17.tar +md5sums="8a8a436b6627d74f128d335f9a519cd7 fastd-18.tar 383a11cb8d804e6d91c2c66eb07b4246 fastd.conf 12acdd1bd9b4181d913823575f4c1a78 fastd.initd" -sha256sums="20390fc2110929ebf37feebe1bcce68d7920a5efd42c369bd2d886c6781966dc fastd-17.tar +sha256sums="dce99ee057f43e3d732a120fb0cb60acb3b86e8231d3dd64ab72fc1254c2491a fastd-18.tar 6c7821e9c6b85ee2baf2d5e2e7b1eb28d3ceebe876e3cb6686b3c1cb6649db68 fastd.conf 1d8ebb8e2d6f5201ca6ebe11c0c3e2e124dfafa6f66ebac03a0b27f920f318dc fastd.initd" -sha512sums="152e9b6a2df39375061aedee2e2ac586916ae634cd57ee8902f152d86a27db5d6353f411e038139721073caf35696c349aed2c09165578d81fe47daebead18e8 fastd-17.tar +sha512sums="b732e8c083a5a35b7995f511673a3637d1f2b4893824867338dbeb06a73d8b7fd5658a7e459d1f44f1f247f06850c7720e2674c5a78a6b188334b35be352b2d0 fastd-18.tar 3e6c3a77f93a1e670e8f018833c499e8ec57b8240a6f472da03254ad9a7e6fed2c3459fa47b06c97e42afcfe6f0adfaaec39bce6b6a286a1ce7ef3585853b118 fastd.conf e64b0c548cf063624ac0b632bac672c5f204586aa03aa9b06afc46f48645f1458e2400e98ee993c74aa5da3a9e86c4151e2e29c634ee59941cd81a216cea308a fastd.initd" |