actions.py 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 shelltools
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import get
  10. def setup():
  11. #autotools.autoreconf("-fi")
  12. autotools.configure("--with-pam-module-dir=/lib/security/ \
  13. --with-os-type=pardus \
  14. --with-mozjs=mozjs-17.0 \
  15. --with-dbus \
  16. --enable-examples \
  17. --enable-introspection \
  18. --enable-libsystemd-login=no \
  19. --with-systemdsystemunitdir=no \
  20. --disable-man-pages \
  21. --disable-gtk-doc \
  22. --disable-static")
  23. pisitools.dosed("libtool"," -shared ", " -Wl,--as-needed -shared ")
  24. def build():
  25. shelltools.export('HOME', get.workDIR())
  26. autotools.make()
  27. def install():
  28. autotools.rawInstall("DESTDIR=%s/" % get.installDIR())
  29. pisitools.dodir("/var/lib/polkit-1")
  30. shelltools.chmod("%s/var/lib/polkit-1" % get.installDIR(), mode=00700)
  31. shelltools.chmod("%s/etc/polkit-1/rules.d" % get.installDIR(), mode=00700)
  32. shelltools.chown("%s/etc/polkit-1/rules.d" % get.installDIR(),"polkitd","root") #yada? "polkitd","root"
  33. shelltools.chown("%s/var/lib/polkit-1" % get.installDIR(),"polkitd","polkitd")
  34. shelltools.chown("%s/usr/share/polkit-1" % get.installDIR(),"polkitd","root") #yada? "polkitd","root"
  35. pisitools.dodoc("AUTHORS", "NEWS", "README", "HACKING", "COPYING")