PKGBUILD 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # Maintainer(Arch): Felix Yan <felixonmars@archlinux.org>
  2. # Contributor: Cedric Girard <girard.cedric@gmail.com>
  3. # Maintainer: Sagar Acharya <sagar@hyperbola.info>
  4. pkgname=proxychains-ng
  5. pkgver=4.14
  6. pkgrel=1
  7. pkgdesc="A hook preloader that allows to redirect TCP traffic of existing dynamically linked programs through one or more SOCKS or HTTP proxies"
  8. arch=('x86_64')
  9. url="https://github.com/rofl0r/proxychains-ng"
  10. license=('GPL-2')
  11. provides=('proxychains')
  12. replaces=('proxychains')
  13. conflicts=('proxychains')
  14. depends=('glibc')
  15. makedepends=('quilt')
  16. backup=('etc/proxychains.conf')
  17. source=("http://ftp.barfooze.de/pub/sabotage/tarballs/$pkgname-$pkgver.tar.xz"
  18. "series"
  19. "0001-Use-proper-library-version-for-libproxychains.patch"
  20. "0002-Install-conffile-as-proxychains4.conf.patch")
  21. sha512sums=('75a1a4629d2b7ebac9b909a694b395339cf669fa4e23bfcc57938e46377b5619f31c9651d2bc457d1ad10ec1be7747981106392bf8bf65999cb7bb9c748d7e95'
  22. '2cb27314579b099aa87ea02926838064bc61965ff75e6c3dd5d6e0a01a1f1e2f7eb2b4ea46cc9ba877c6eb1568cc17722390e60dfb0985e2b257aaec1a75ee84'
  23. 'e52c9a5db04ed3e9281b40fcedb902a0a0a6d3cea28a7e4236a33e08a0002002066052e0699ad4978b808c352d6fd81df98c1063688a0b9bc4061319e3c2c719'
  24. 'b0ab1a62a9e3a4d5750d7a7bc40181db070052481b055b088ce1849ca0c51b0ab203ca3c2cd5edf7c69317911daab46edbc1bb177d0f16065b2d54f11a642aa6')
  25. prepare() {
  26. cd $pkgname-$pkgver
  27. mkdir ./patches
  28. cp ${srcdir}/series ./patches
  29. cp ${srcdir}/*.patch ./patches
  30. export QUILT_PATCHES=patches
  31. export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index'
  32. export QUILT_DIFF_ARGS='--no-timestamps'
  33. quilt push -av
  34. }
  35. build() {
  36. cd $pkgname-$pkgver
  37. ./configure --prefix=/usr --sysconfdir=/etc
  38. make
  39. }
  40. package() {
  41. cd $pkgname-$pkgver
  42. make DESTDIR="$pkgdir/" install install-config
  43. ln -s proxychains4 "$pkgdir/usr/bin/proxychains"
  44. install -Dm644 COPYING -t "$pkgdir"/usr/share/licenses/$pkgname/
  45. }