Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Archlinux cjdns-git PKGBUILD patch

By: facecool on Jul 29th, 2013  |  syntax: Diff  |  size: 2.13 KB  |  views: 8  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. --- a/PKGBUILD  2013-07-29 11:14:00.536666670 +0300
  2. +++ b/PKGBUILD  2013-07-29 11:35:14.846657671 +0300
  3. @@ -4,13 +4,13 @@
  4.  
  5.  _pkgname=cjdns
  6.  pkgname=${_pkgname}-git
  7. -pkgver=0.3.1188
  8. +pkgver=0.3.1274
  9.  pkgrel=1
  10.  pkgdesc="A routing engine designed for security, scalability, speed and ease of use."
  11.  url="https://github.com/cjdelisle/${_pkgname}"
  12.  license="GPL3"
  13. -makedepends=('git')
  14. -optdepends=('python2: required by the python cjdnsadmin utilities')
  15. +makedepends=('git' 'python2' 'cmake')
  16. +depends=('python2')
  17.  arch=('i686' 'x86_64' 'armv6h' 'armv7h')
  18.  install=${pkgname}.install
  19.  backup=("etc/default/${_pkgname}")
  20. @@ -57,9 +57,12 @@ _package_sysvinit() {
  21.      install -D -m755 "${srcdir}"/${_pkgname}/scripts/${_pkgname}.sh "${pkgdir}"/usr/bin/${_pkgname}.sh
  22.  }
  23.  _package_pyutils() {
  24. -    install -D -m644 "${srcdir}"/${_pkgname}/contrib/python/cjdnsadmin/cjdnsadmin.py "${pkgdir}"/usr/lib/$(python2-config --libs | grep -o -E python2.*)/cjdnsadmin/cjdnsadmin.py
  25. -    install -D -m644 "${srcdir}"/${_pkgname}/contrib/python/cjdnsadmin/bencode.py "${pkgdir}"/usr/lib/$(python2-config --libs | grep -o -E python2.*)/cjdnsadmin/bencode.py
  26. -    install -D -m644 "${srcdir}"/${_pkgname}/contrib/python/cjdnsadmin/__init__.py "${pkgdir}"/usr/lib/$(python2-config --libs | grep -o -E python2.*)/cjdnsadmin/__init__.py
  27. +    pyutils_path=`python2 -c "import sys; print sys.path" | grep -oE "/\S+/site-packages'" | sed "s/'//"`
  28. +
  29. +    install -D -m644 "${srcdir}"/${_pkgname}/contrib/python/cjdnsadmin/cjdnsadmin.py "${pkgdir}""${pyutils_path}"/cjdnsadmin/cjdnsadmin.py
  30. +    install -D -m644 "${srcdir}"/${_pkgname}/contrib/python/cjdnsadmin/bencode.py "${pkgdir}""${pyutils_path}"/cjdnsadmin/bencode.py
  31. +    install -D -m644 "${srcdir}"/${_pkgname}/contrib/python/cjdnsadmin/__init__.py "${pkgdir}""${pyutils_path}"/cjdnsadmin/__init__.py
  32. +
  33.      install -D -m755 "${srcdir}"/${_pkgname}/contrib/python/cjdnslog "${pkgdir}"/usr/bin/cjdns-log
  34.      install -D -m755 "${srcdir}"/${_pkgname}/contrib/python/dumptable "${pkgdir}"/usr/bin/cjdns-dumptable
  35.      install -D -m755 "${srcdir}"/${_pkgname}/contrib/python/findnodes "${pkgdir}"/usr/bin/cjdns-findnodes