actions.py 1.4 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 shelltools
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import get
  10. def setup():
  11. autotools.configure("--enable-shadowgrp \
  12. --without-selinux \
  13. --without-audit \
  14. --without-libcrack \
  15. --with-libpam \
  16. --with-sha-crypt \
  17. --enable-nls \
  18. --with-group-name-max-length=32 \
  19. --disable-shared")
  20. def build():
  21. # Rebuild gmo catalogs
  22. autotools.make("-C po update-gmo")
  23. autotools.make()
  24. def install():
  25. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  26. pisitools.insinto("/etc/", "etc/login.access")
  27. shelltools.chmod("%s/etc/login.access" % get.installDIR(), 0600)
  28. pisitools.insinto("/etc/", "etc/limits")
  29. shelltools.chmod("%s/etc/limits" % get.installDIR(), 0644)
  30. # groups come from coreutils package
  31. pisitools.remove("/usr/share/man/man1/groups.1")
  32. pisitools.remove("/bin/groups")
  33. # Conflicts with man-pages
  34. pisitools.remove("/usr/share/man/man3/getspnam.3")
  35. pisitools.remove("/usr/share/man/man5/passwd.5")
  36. pisitools.dodoc("ChangeLog","README","NEWS")