Don't like ads? PRO users don't see any ads ;-)
Guest

systemd-reworked

By: a guest on Jun 22nd, 2010  |  syntax: None  |  size: 1.40 KB  |  hits: 117  |  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. # Contributor: Dave Reisner <d@falconindy.com>
  2. pkgname=systemd-git
  3. pkgver=20100622
  4. pkgrel=1
  5. pkgdesc="systems Session and Startup manager"
  6. arch=('i686' 'x86_64')
  7. url="http://www.freedesktop.org/wiki/Software/systemd"
  8. license=('GPL')
  9. depends=('dbus-core' 'dbus-glib' 'kernel26-zen' 'glibc' 'libcgroup-git' 'udev>=154' 'libcap')
  10. makedepends=('git' 'vala' 'gtk2' 'docbook-xsl')
  11. optdepends=('gtk2: for systemadm GUI')
  12. provides=('sysvinit')
  13. source=(patch)
  14. md5sums=('0de81e6c32bcc3880d56896660cc3329')
  15. _gitroot="git://anongit.freedesktop.org/systemd"
  16. _gitname="systemd"
  17.  
  18. build() {
  19.   cd "$srcdir"
  20.  
  21.   msg "Connecting to GIT server...."
  22.  
  23.   if [ -d $_gitname ] ; then
  24.     cd $_gitname && git pull origin
  25.     msg "The local files are updated."
  26.   else
  27.     git clone $_gitroot $_gitname
  28.   fi
  29.  
  30.   msg "GIT checkout done or server timeout"
  31.   msg "Starting make..."
  32.  
  33.   rm -rf "$srcdir/$_gitname-build"
  34.   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
  35.   cd "$srcdir/$_gitname-build"
  36.  
  37.   # If gtk2 is found on the system, the graphical utilities will be
  38.   # built. This can be explicitly disabled with --disable-gtk.
  39.   ./bootstrap.sh --with-distro=arch  || return 1
  40.   patch -p0 -i ../patch
  41.   make || return 1
  42. }
  43.  
  44. package() {
  45.   cd "$srcdir/$_gitname-build"
  46.   make DESTDIR="$pkgdir" install || return 1
  47.   cd "$pkgdir"
  48.   mkdir -p cgroup/{debug,cpuset,ns,net_cls,cpu,cpuacct,memory,devices,freezer}
  49. }