summaryrefslogtreecommitdiffstats
path: root/main/lsof
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-01-28 07:31:17 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-01-28 07:31:17 +0000
commit892cf8a9b794cfb02970ccbcb4d36359b0963b68 (patch)
treee52eb9927fe24d3a8fdda9511af47ab4f644bad0 /main/lsof
parent63c09958c1d5dbf70aad18d5fec417fd278088db (diff)
downloadaports-892cf8a9b794cfb02970ccbcb4d36359b0963b68.tar.bz2
aports-892cf8a9b794cfb02970ccbcb4d36359b0963b68.tar.xz
main/lsof: upgrade to 4.83
Diffstat (limited to 'main/lsof')
-rw-r--r--main/lsof/APKBUILD23
1 files changed, 17 insertions, 6 deletions
diff --git a/main/lsof/APKBUILD b/main/lsof/APKBUILD
index f5285d487..b5f0018df 100644
--- a/main/lsof/APKBUILD
+++ b/main/lsof/APKBUILD
@@ -1,6 +1,6 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=lsof
-pkgver=4.82
+pkgver=4.83
pkgrel=0
pkgdesc="LiSt Open Files"
url="http://people.freebsd.org/~abe/"
@@ -10,17 +10,28 @@ depends=
makedepends=""
source="ftp://sunsite.ualberta.ca/pub/Mirror/$pkgname/${pkgname}_$pkgver.tar.bz2"
-build ()
-{
- cd "$srcdir"/${pkgname}_$pkgver
+_builddir="$srcdir"/${pkgname}_${pkgver}/${pkgname}_${pkgver}_src
+
+prepare() {
+ # theres a tarball in teh tarball...
+ cd "$srcdir"/${pkgname}_${pkgver}
tar -xf ${pkgname}_${pkgver}_src.tar
- cd ${pkgname}_${pkgver}_src
+
+ cd "$_builddir"
sed -e "s|/\* #define\tHASSECURITY\t1 \*/|#define\tHASSECURITY\t1|" \
-i dialects/linux/machine.h
+}
+
+build () {
+ cd "$_builddir"
./Configure -n linux
make || return 1
+}
+
+package() {
+ cd "$_builddir"
install -D -m0755 -o root -g root lsof "$pkgdir"/usr/sbin/lsof
install -D -m0644 -o root -g root lsof.8 \
"$pkgdir"/usr/share/man/man8/lsof.8
}
-md5sums="5518a0c16fc937523b3d1a946cf59e5b lsof_4.82.tar.bz2"
+md5sums="8f731a6251b8c0143d585df0d5ca779e lsof_4.83.tar.bz2"