This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

PKGBUILD

By: a guest on Sep 21st, 2010  |  syntax: Bash  |  size: 1.11 KB  |  views: 103  |  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. # $Id: PKGBUILD 1 2010-09-201 22:44:55Z al $
  2. # Maintainer: Alexandr Leykin <al@instrument.pl.ua>
  3.  
  4. pkgname=mongoose
  5. pkgver=2.10
  6. pkgrel=4
  7. pkgdesc="small HTTP(S) server with PHP/GCI support"
  8. arch=('i686' 'x86_64')
  9. url="http://code.google.com/p/mongoose/"
  10. license=('MIT')
  11. optdepends=('php-cgi : for use php-scripts')
  12. makedepends=('gcc' 'make')
  13. backup=('etc/mongoose/mongoose.conf')
  14. options=(strip zipman)
  15. source=(http://mongoose.googlecode.com/files/mongoose-$pkgver.tgz mongoose.conf mongoose)
  16. md5sums=('291765d92f686e5051050c6617f17490' 'b2419b6487105e0f1ca33d26903745fc' 'ccecba370f36c486b9120f42b9e6a3cf')
  17. build() {
  18.   cd $srcdir/$pkgname
  19.   make linux
  20.  
  21. install -d  $pkgdir/etc/mongoose
  22. install -d  $pkgdir/etc/rc.d
  23. install -d  $pkgdir/usr/sbin
  24. install -d  $pkgdir/usr/share/man/man1
  25. install -d  $pkgdir/usr/sbin
  26. install -d  $pkgdir/srv/http
  27.  
  28. install -D -m755 $pkgdir/../mongoose.conf $pkgdir/etc/mongoose/
  29. install -D -m755 $pkgdir/../mongoose $pkgdir/etc/rc.d/
  30. install -D -m755  $srcdir/$pkgname/mongoose $pkgdir/usr/sbin/
  31. install -D -m755  $srcdir/$pkgname/mongoose.1 $pkgdir/usr/share/man/man1/
  32.  
  33.  
  34. }
clone this paste RAW Paste Data