summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathon Fernyhough2018-04-29 16:12:43 +0100
committerJonathon Fernyhough2018-04-29 16:12:43 +0100
commitd9f9123e733351606f6bb039b2984f1781951eae (patch)
tree06a00aaba6aa8e4c8b8ba3bf6de363006f1d3459
parent0391b0531b116277db02e3aa3fcc3605726d85f7 (diff)
downloadaur-d9f9123e7333.tar.gz
trickle-1.07-11
[Jonathon Fernyhough] * PKGBUILD: add libtirpc to replace obsolete glibc "sunrpc" libraries
-rw-r--r--.SRCINFO1
-rw-r--r--PKGBUILD11
2 files changed, 8 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 5e60b5153e0..1abf3115f31 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -7,6 +7,7 @@ pkgbase = trickle
arch = x86_64
license = BSD
depends = libevent
+ depends = libtirpc
source = trickle-1.07.tar.gz::https://github.com/mariusae/trickle/archive/a2aeb9f30aa3c651580b9be9ba3c9c13bf51a416.tar.gz
source = fix-crasher.patch
sha256sums = b07ffdff831d11972dc802a4fc2d4000af844933b39ad7f88de20a2866a55f37
diff --git a/PKGBUILD b/PKGBUILD
index 096dab06917..df389658c78 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,12 +4,12 @@
pkgname=trickle
pkgver=1.07
-pkgrel=10
+pkgrel=11
pkgdesc="Lightweight userspace bandwidth shaper"
arch=('i686' 'x86_64')
url="https://github.com/mariusae/trickle"
license=('BSD')
-depends=('libevent')
+depends=('libevent' 'libtirpc')
_commit=a2aeb9f30aa3c651580b9be9ba3c9c13bf51a416 # "import of trickle 1.07"
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/mariusae/trickle/archive/${_commit}.tar.gz"
"fix-crasher.patch")
@@ -18,7 +18,7 @@ sha256sums=('b07ffdff831d11972dc802a4fc2d4000af844933b39ad7f88de20a2866a55f37'
prepare() {
cd "${srcdir}/${pkgname}-${_commit}"
-
+
# FS#27549
sed -i 's|^_select(int|select(int|' trickle-overload.c
@@ -28,7 +28,10 @@ prepare() {
build() {
cd "${srcdir}/${pkgname}-${_commit}"
-
+
+ CPPFLAGS+=" -I/usr/include/tirpc/"
+ LDFLAGS+=" -ltirpc"
+
./configure --prefix=/usr \
--mandir=/usr/share/man
sed -i "s|.*in_addr_t.*||g" config.h