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

util-vserver new PKGBUILD

By: a guest on Jan 2nd, 2011  |  syntax: None  |  size: 1.74 KB  |  views: 74  |  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: Jonathan Liu <net147@gmail.com>
  2. pkgname=util-vserver
  3. pkgver=0.30.216_pre2926
  4. _realpkgver=${pkgver/_/-}
  5. pkgrel=1
  6. pkgdesc="Provides tools for kernels with the security context patch"
  7. arch=('i686' 'x86_64')
  8. url="http://savannah.nongnu.org/projects/util-vserver/"
  9. license=('GPL2')
  10. depends=('perl' 'nss')
  11.  
  12. makedepends=('autoconf>=2.61' 'automake>=1.10.1' 'beecrypt' 'dietlibc' 'iproute2' 'iptables' 'vconfig')
  13. #source=("http://ftp.linux-vserver.org/pub/utils/util-vserver/${pkgname}-${_realpkgver}.tar.bz2")
  14. source=("http://people.linux-vserver.org/~dhozac/t/uv-testing/${pkgname}-${_realpkgver}.tar.bz2"
  15.         "vserver-build-pacman.patch"
  16.         "vserver-build.rpm.patch")
  17. md5sums=('236c0ef54b94f8c116afaf7b78396a58'
  18.          '672bd744ce4483936acd92598655dcba'
  19.          'e7453251105ab2705783723f0ec3b8a1')
  20.  
  21. build() {
  22.   # expanding path for dietlibc
  23.   export PATH="${PATH}:/opt/diet/bin"
  24.   cd "${srcdir}/${pkgname}-${_realpkgver}"
  25.  
  26.   patch -Np1 -i "${srcdir}/vserver-build-pacman.patch" || return 1
  27.   patch -Np1 -i "${srcdir}/vserver-build.rpm.patch" || return 1
  28.   aclocal -I . -I m4 || return 1
  29.   autoconf
  30.   automake Makefile distrib/Makefile || return 1
  31.  
  32.   ./configure --prefix=/usr --sysconfdir=/etc --with-initrddir=/etc/rc.d --localstatedir=/var --enable-beecrypt --enable-dietlibc
  33.   sed -i 's/ECHO/echo/g' libtool
  34.   make || return 1
  35.   make DESTDIR="${pkgdir}" install || return 1
  36.   make DESTDIR="${pkgdir}" install-distribution || return 1
  37.   # Move the v_* scripts out of the init dir, as Arch does not support SYSV style init scripts
  38.   install -m755 -d "${pkgdir}/usr/libexec/vserver"
  39.   mv "${pkgdir}/etc/rc.d"/v_* "${pkgdir}/usr/libexec/vserver"
  40.   find "${pkgdir}" -name '*.la' -exec rm {} \;
  41. }
  42.  
  43. # vim:set ts=2 sw=2 et: