SHARE
TWEET

Untitled

a guest Feb 27th, 2015 225 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Contributor: Marti Raudsepp <marti@juffo.org>
  2. # Maintainer: mutantmonkey <aur@mutantmonkey.in>
  3. # Patched 2/27/15
  4.  
  5. pkgname=tcpcrypt-git
  6. _gitname=tcpcrypt
  7. pkgver=308.bb990b1
  8. pkgrel=1
  9. pkgdesc="Transparent user space implementation for the tcpcrypt TCP extensions"
  10. arch=(i686 x86_64)
  11. url="http://tcpcrypt.org/"
  12. license=('BSD')
  13. depends=('libnetfilter_queue' 'openssl' 'iptables')
  14. makedepends=('git' 'sed')
  15. provides=('tcpcrypt')
  16. conflicts=('tcpcrypt')
  17. source=('git+https://github.com/scslab/tcpcrypt.git')
  18. sha256sums=('SKIP')
  19.  
  20. pkgver() {
  21.   cd $_gitname
  22.   echo $(git rev-list --count master).$(git rev-parse --short master)
  23. }
  24.  
  25. prepare() {
  26.   cd $_gitname
  27. ## TO-DO Reinsert patch for systemd here.
  28. }
  29.  
  30. build() {
  31.   cd $srcdir/$_gitname
  32.   ./bootstrap.sh
  33.   ./configure
  34.   make
  35. }
  36.  
  37. package() {
  38.   cd $srcdir/tcpcrypt
  39.     ##Makes it so we can use the cool new launcher script in /usr/local/bin as well.
  40.  sed -i 's.TCPCRYPTD=`dirname $0`/src/tcpcryptd.TCPCRYPTD=/usr/local/bin/tcpcryptd.g' launch_tcpcryptd.sh
  41.   make DESTDIR=$pkgdir install
  42.  
  43.   install -Dm644 $srcdir/$_gitname/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
  44.   install -Dm644 $srcdir/$_gitname/launch_tcpcryptd.sh $pkgdir/usr/local/bin/launch_tcpcryptd.sh
  45. }
  46.  
  47. # vim:set ts=2 sw=2 et:
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top