actions.py 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import get
  9. def setup():
  10. autotools.autoreconf("-vif")
  11. autotools.configure("--with-libcap-ng=yes \
  12. --enable-gssapi-krb5=no \
  13. --enable-systemd=no \
  14. --with-python=yes \
  15. --disable-static")
  16. def build():
  17. autotools.make()
  18. def check():
  19. autotools.make("-j1 check")
  20. def install():
  21. autotools.rawInstall('DESTDIR="%s"' % get.installDIR())
  22. # remove RH specific bits
  23. pisitools.removeDir("/etc/sysconfig")
  24. pisitools.removeDir("/etc/rc.d")
  25. # Create data directories
  26. pisitools.dodir("/var/log/audit")
  27. pisitools.dodir("/var/spool/audit")
  28. # Disable zos-remote plugin to get rid of deps. like cyrus-sasl
  29. pisitools.remove("/usr/share/man/man8/audispd-zos-remote.8")
  30. pisitools.remove("/usr/share/man/man5/zos-remote.conf.5")
  31. pisitools.dodoc("AUTHORS", "ChangeLog", "THANKS", "TODO", "README", "COPYING")