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.2 KiB

  1. # Maintainer: Pekka Helenius <fincer89 [at] hotmail [dot] com>
  2. # Patches:
  3. # 10_fix-CHAR-BIT-missing.patch
  4. # 20_add-GCC-hardening.patch
  5. #
  6. # Source: https://launchpad.net/ubuntu/+source/sockstat/0.3-2
  7. pkgname=sockstat
  8. pkgver=0.3
  9. pkgrel=1
  10. pkgdesc="View information of open connections"
  11. url="http://nenolod.net/sockstat"
  12. arch=('any')
  13. license=('GPL')
  14. makedepends=('glibc')
  15. source=("https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/${pkgname}/${pkgver}-2/${pkgname}_${pkgver}.orig.tar.gz"
  16. 10_fix-CHAR-BIT-missing.patch
  17. 20_add-GCC-hardening.patch
  18. 30_add_err-headers.patch)
  19. md5sums=('7006cba7a2a193a684e7241067ed4563'
  20. '23b2bf442a632224718b8637d8c8f76e'
  21. 'cfb5f5bb8ba54c42bfc3dcdfb3a14d68'
  22. '8544e65d4858c4a1177ec135b18b3e00')
  23. prepare() {
  24. cd "${srcdir}/${pkgname}-${pkgver}/"
  25. patch -Np1 < ../10_fix-CHAR-BIT-missing.patch
  26. patch -Np1 < ../20_add-GCC-hardening.patch
  27. patch -Np1 < ../30_add_err-headers.patch
  28. }
  29. build() {
  30. cd "${srcdir}/${pkgname}-${pkgver}/"
  31. make
  32. }
  33. package() {
  34. cd "${srcdir}/${pkgname}-${pkgver}/"
  35. mkdir -p "${pkgdir}/usr/bin/"
  36. make DESTDIR="${pkgdir}" install
  37. install -Dm755 "${srcdir}/${pkgname}-${pkgver}"/sockstat "${pkgdir}/usr/bin/sockstat"
  38. }