aboutsummaryrefslogtreecommitdiffstats
path: root/main/lsof
diff options
context:
space:
mode:
authorprspkt <prspkt@protonmail.com>2018-03-15 06:38:02 +0000
committerJakub Jirutka <jakub@jirutka.cz>2018-03-26 19:49:47 +0200
commitb2256e9ce006f2a7fbc38d255376a7915370d48c (patch)
tree9250ac0856c454ff153565aead083c1843ab228e /main/lsof
parentbcf52377ea1d828271c274bd3baa36bd9db07dcb (diff)
downloadaports-b2256e9ce006f2a7fbc38d255376a7915370d48c.tar.gz
aports-b2256e9ce006f2a7fbc38d255376a7915370d48c.tar.bz2
aports-b2256e9ce006f2a7fbc38d255376a7915370d48c.tar.xz
main/lsof: upgrade to 4.90, modernize abuild
Diffstat (limited to 'main/lsof')
-rw-r--r--main/lsof/APKBUILD43
1 files changed, 18 insertions, 25 deletions
diff --git a/main/lsof/APKBUILD b/main/lsof/APKBUILD
index f26588e788..784908b0c5 100644
--- a/main/lsof/APKBUILD
+++ b/main/lsof/APKBUILD
@@ -1,46 +1,39 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=lsof
-pkgver=4.89
-pkgrel=1
+pkgver=4.90
+pkgrel=0
pkgdesc="LiSt Open Files"
-url="https://people.freebsd.org/~abe/"
+url="https://people.freebsd.org/~abe"
arch="all"
license="custom"
subpackages="$pkgname-doc"
-depends=
makedepends="linux-headers"
-source="http://distfiles.alpinelinux.org/distfiles/${pkgname}_$pkgver.tar.bz2"
-
-_builddir="$srcdir"/${pkgname}_${pkgver}/${pkgname}_${pkgver}_src
+source="https://fossies.org/linux/misc/${pkgname}_${pkgver}_src.tar.xz"
+builddir="$srcdir/${pkgname}_${pkgver}_src"
prepare() {
- # theres a tarball in teh tarball...
- cd "$srcdir"/${pkgname}_${pkgver}
- tar -xf ${pkgname}_${pkgver}_src.tar
-
- cd "$_builddir"
- sed -e "s|/\* #define\tHASSECURITY\t1 \*/|#define\tHASSECURITY\t1|" \
- -i dialects/linux/machine.h
+ default_prepare
+ cd "$builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
+ sed -i "s|/\* #define\tHASSECURITY\t1 \*/|#define\tHASSECURITY\t1|" \
+ dialects/linux/machine.h
+ sed -n 6,30p lsof.h > COPYING
}
build () {
- cd "$_builddir"
+ cd "$builddir"
+
./Configure -n linux
- make || return 1
+ make
}
package() {
- cd "$_builddir"
+ cd "$builddir"
+
install -D -m0755 -o root -g root lsof "$pkgdir"/usr/bin/lsof
install -D -m0644 -o root -g root lsof.8 \
"$pkgdir"/usr/share/man/man8/lsof.8
+ install -D -m644 COPYING "$pkgdir"/usr/share/licenses/lsof/COPYING
}
-md5sums="1b9cd34f3fb86856a125abbf2be3a386 lsof_4.89.tar.bz2"
-sha256sums="81ac2fc5fdc944793baf41a14002b6deb5a29096b387744e28f8c30a360a3718 lsof_4.89.tar.bz2"
-sha512sums="cafb0209143c7863e5cebe7efc33a2520d36f9e26222350e4edfa18debbcfb5c81f42f71469e5913fb21f49a7562bbe761b72dfc8f297dadf75ac619cdcb318c lsof_4.89.tar.bz2"
+
+sha512sums="b6715ce934f5a3237620e84d0d28562d00e0cbb293a1c8aa89bd9cdce0248a12dffe15f2f429bc4ec87f94d820e7b05f19a9bb26d4b184e8cf686498095083c6 lsof_4.90_src.tar.xz"