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

Untitled

By: a guest on Oct 18th, 2011  |  syntax: None  |  size: 1.52 KB  |  views: 55  |  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. # Maintainer: veox <veox at wre dot ath dot cx>
  2. # Contributor: Rorschach <r0rschach@lavabit.com>
  3. # Contributor: Cedric Chabanois <cchabanois@gmail.com>
  4.  
  5. pkgname=i2p
  6. pkgver=0.8.9
  7. pkgrel=1
  8. pkgdesc="A distributed anonymous network"
  9. url="http://www.i2p2.de"
  10. license=('GPL')
  11. depends=('bash' 'java-runtime')
  12. makedepends=('apache-ant' 'java-environment')
  13. conflicts=('i2p-bin')
  14. replaces=('i2p-source')
  15. arch=('i686' 'x86_64')
  16. install=i2p.install
  17. source=("http://mirror.i2p2.de/i2psource_${pkgver}.tar.bz2" 'i2prouter')
  18. md5sums=('f4dbbdd0fc3558d631ff695ef2e1c9f1'
  19.          'ac9fa57b32f786f371bdf4dbd4931105')
  20.  
  21. build() {
  22.   # add apache ant to PATH
  23.   . /etc/profile.d/apache-ant.sh
  24.  
  25.   cd $srcdir/${pkgname}-${pkgver}
  26.   cat > install.properties << EOC
  27. INSTALL_PATH=$pkgdir/opt/i2p
  28. EOC
  29.   # yes, download jetty (version 5)
  30.   echo "y" | ant pkg
  31. }
  32.  
  33. package() {
  34.   cd $srcdir/${pkgname}-${pkgver}
  35.  
  36.   java -jar install.jar -options install.properties
  37.  
  38.   sed -i "s|$pkgdir/opt/i2p|/opt/i2p|g" \
  39.     $pkgdir/opt/i2p/i2prouter \
  40.     $pkgdir/opt/i2p/wrapper.config \
  41.     $pkgdir/opt/i2p/runplain.sh \
  42.     $pkgdir/opt/i2p/eepget
  43.   sed -i 's/#RUN_AS_USER=/RUN_AS_USER=i2p/' \
  44.     $pkgdir/opt/i2p/i2prouter
  45.  
  46.   rm $pkgdir/opt/i2p/.installationinformation
  47.   rm -r $pkgdir/opt/i2p/Uninstaller
  48.   install -Dm755 $srcdir/i2prouter $pkgdir/etc/rc.d/i2prouter
  49.   install -Dm644 $srcdir/i2prouter.service $pkgdir/lib/systemd/system/i2prouter.service
  50. }
  51. md5sums=('320a14bcf6ea5363390c694d422c2ec6'
  52.          'ac9fa57b32f786f371bdf4dbd4931105')
  53.