actions.py 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Copyright 2018 TUBITAK/UEKAE
  5. # Licensed under the GNU General Public License, version 2.
  6. # See the file http://www.gnu.org/copyleft/gpl.txt.
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import shelltools
  10. from pisi.actionsapi import get
  11. def setup():
  12. shelltools.system("env NOCONFIGURE=1 ./autogen.sh")
  13. autotools.configure("--disable-silent-rules \
  14. --without-selinux \
  15. --with-openssl \
  16. --disable-static \
  17. --enable-trivial-httpd-cmdline \
  18. --disable-http2 \
  19. --without-dracut \
  20. --without-mkinitcpio")
  21. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  22. def build():
  23. autotools.make()
  24. def install():
  25. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  26. pisitools.removeDir("/etc/grub.d")
  27. pisitools.dodoc("TODO", "README*")