actions.py 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file http://www.gnu.org/licenses/gpl.txt
  6. from pisi.actionsapi import get
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import shelltools
  10. def setup():
  11. # /var/run => /run
  12. #pisitools.dosed("configure.ac", "^(\s+CONSOLE_KIT_PID_FILE=)\$\{localstatedir\}(\/run\/ConsoleKit\/pid)", r"\1\2")
  13. #pisitools.dosed("src/Makefile.am", "\$\(localstatedir\)(\/run\/ConsoleKit)", r"\1")
  14. #shelltools.system("sed -i -e '/SystemdService/d' data/org.freedesktop.ConsoleKit.service.in")
  15. #autotools.autoreconf("-fi")
  16. shelltools.system("sh ./autogen.sh")
  17. autotools.configure("--prefix=/usr \
  18. --sysconfdir=/etc \
  19. --sbindir=/usr/sbin \
  20. --with-rundir=/run \
  21. --libexecdir=/usr/libexec/ConsoleKit \
  22. --localstatedir=/var \
  23. --enable-polkit \
  24. --enable-pam-module \
  25. --enable-udev-acl \
  26. --enable-docbook-docs \
  27. --disable-static \
  28. --with-dbus-services=/usr/share/dbus-1/services \
  29. --with-xinitrc-dir=/etc/X11/xinit/xinitrc.d \
  30. --with-pam-module-dir=/lib/security \
  31. --with-systemdsystemunitdir=no \
  32. XMLTO_FLAGS='--skip-validation' \
  33. ")
  34. def build():
  35. autotools.make()
  36. def install():
  37. autotools.rawInstall("DESTDIR=%s/" % get.installDIR())
  38. pisitools.removeDir("/run")
  39. pisitools.dodoc("AUTHORS", "README", "COPYING", "HACKING", "NEWS", "TODO")