Browse Source

sockstat: Add PKGBUILD

master
Pekka Helenius 6 years ago
committed by GitHub
parent
commit
59928ffb6b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 43 additions and 0 deletions
  1. +43
    -0
      sockstat/PKGBUILD

+ 43
- 0
sockstat/PKGBUILD View File

@ -0,0 +1,43 @@
# Maintainer: Pekka Helenius <fincer89 [at] hotmail [dot] com>
# Patches:
# 10_fix-CHAR-BIT-missing.patch
# 20_add-GCC-hardening.patch
#
# Source: https://launchpad.net/ubuntu/+source/sockstat/0.3-2
pkgname=sockstat
pkgver=0.3
pkgrel=1
pkgdesc="View information of open connections"
url="http://nenolod.net/sockstat"
arch=(any)
license=(GPL)
makedepends=(glibc)
source=("https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/${pkgname}/${pkgver}-2/${pkgname}_${pkgver}.orig.tar.gz"
10_fix-CHAR-BIT-missing.patch
20_add-GCC-hardening.patch
30_add_err-headers.patch)
md5sums=('7006cba7a2a193a684e7241067ed4563'
'23b2bf442a632224718b8637d8c8f76e'
'cfb5f5bb8ba54c42bfc3dcdfb3a14d68'
'8544e65d4858c4a1177ec135b18b3e00')
prepare() {
cd "$srcdir/$pkgname-$pkgver/"
patch -Np1 < ../10_fix-CHAR-BIT-missing.patch
patch -Np1 < ../20_add-GCC-hardening.patch
patch -Np1 < ../30_add_err-headers.patch
}
build() {
cd "$srcdir/$pkgname-$pkgver/"
make
}
package() {
cd "$srcdir/$pkgname-$pkgver/"
mkdir -p "$pkgdir/usr/bin/"
make DESTDIR="$pkgdir" install
install -Dm755 "$srcdir/$pkgname-$pkgver"/sockstat "$pkgdir/usr/bin/sockstat"
}

Loading…
Cancel
Save