Various compilation scripts & patches for Linux programs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

43 lines
1.1 KiB

# 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"
}