actions.py 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #!/usr/bin/env python3
  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 inary.actionsapi import shelltools
  7. from inary.actionsapi import autotools
  8. from inary.actionsapi import inarytools
  9. from inary.actionsapi import get
  10. def setup():
  11. autotools.configure('--prefix=/usr \
  12. --sysconfdir=/etc \
  13. --mandir=/usr/share/man \
  14. --infodir=/usr/share/info \
  15. --localstatedir=/var \
  16. --disable-nls \
  17. --enable-man \
  18. --with-libpam \
  19. --without-audit \
  20. --without-selinux \
  21. --without-acl \
  22. --without-attr \
  23. --without-tcb \
  24. --without-nscd \
  25. --with-group-name-max-length=32')
  26. def build():
  27. # Rebuild gmo catalogs
  28. autotools.make("-C po update-gmo")
  29. autotools.make()
  30. def check():
  31. autotools.make("check")
  32. def install():
  33. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  34. inarytools.insinto("/etc/", "etc/login.access")
  35. shelltools.chmod("%s/etc/login.access" % get.installDIR(), 0o600)
  36. inarytools.insinto("/etc/", "etc/limits")
  37. shelltools.chmod("%s/etc/limits" % get.installDIR(), 0o644)
  38. # groups come from coreutils package
  39. inarytools.remove("/usr/share/man/man1/groups.1")
  40. inarytools.remove("/bin/groups")
  41. # Conflicts with man-pages
  42. inarytools.remove("/usr/share/man/man3/getspnam.3")
  43. inarytools.remove("/usr/share/man/man5/passwd.5")
  44. inarytools.dodoc("ChangeLog","README","NEWS")