diff options
author | Baptiste Jonglez | 2015-09-19 10:48:48 +0200 |
---|---|---|
committer | Baptiste Jonglez | 2015-09-19 10:48:48 +0200 |
commit | d446ffe03ceb02e716a4ef8a47e7f420eda7b418 (patch) | |
tree | 1a8bcd1148dbef47de5a437f0f77143e20df85d1 | |
download | aur-d446ffe03ceb02e716a4ef8a47e7f420eda7b418.tar.gz |
net-tools-mptcp: Initial upload
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 49 |
2 files changed, 67 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..8e46b8abdf9d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = net-tools-mptcp + pkgdesc = Configuration tools for Linux networking, with Multipath TCP support + pkgver = 0.90.585.1830361 + pkgrel = 1 + url = http://multipath-tcp.org/pmwiki.php/Users/Tools + arch = i686 + arch = x86_64 + license = GPL2 + makedepends = git + depends = glibc + provides = net-tools + conflicts = mptcp-net-tools + options = !makeflags + source = git://github.com/multipath-tcp/net-tools#branch=mptcp_v0.90 + sha1sums = SKIP + +pkgname = net-tools-mptcp + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..7dde40639a3e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,49 @@ +# Maintainer: Baptiste Jonglez <baptiste--aur at jonglez dot org> +# Adapted for the net-tools package in [core]. +pkgname=net-tools-mptcp +_srcname=net-tools +_mptcpv=0.90 +pkgver=0.90.585.1830361 +pkgrel=1 +pkgdesc="Configuration tools for Linux networking, with Multipath TCP support" +arch=('i686' 'x86_64') +license=('GPL2') +url="http://multipath-tcp.org/pmwiki.php/Users/Tools" +depends=('glibc') +makedepends=('git') +provides=('net-tools') +# Old AUR package +conflicts=('mptcp-net-tools') +# Build fails with -jX for X > 1. Force sequential build +options=(!makeflags) +source=("git://github.com/multipath-tcp/net-tools#branch=mptcp_v${_mptcpv}") +sha1sums=('SKIP') + +pkgver() { + cd "${srcdir}/${_srcname}" + echo ${_mptcpv}.$(git rev-list --count HEAD).$(git rev-parse --short HEAD) +} + +prepare() { + cd "${srcdir}/${_srcname}" + sed -i "s#/sbin#/bin#" Makefile + sed -i "s#/usr##" man/Makefile +} + +build() { + cd "${srcdir}/${_srcname}" + yes "" | make +} + +package() { + cd "${srcdir}/${_srcname}" + make DESTDIR=${pkgdir}/usr update + + # the following is provided by yp-tools + #rm "${pkgdir}"/usr/bin/{nis,yp}domainname + rm "${pkgdir}"/usr/share/man/man1/{nis,yp}domainname.1 + + # hostname is provided by inetutils + #rm "${pkgdir}"/usr/bin/{hostname,dnsdomainname,domainname} + rm -rf "${pkgdir}"/usr/share/man/man1 +} |