actions.py 885 B

1234567891011121314151617181920212223242526272829303132
  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 mesontools
  8. from pisi.actionsapi import autotools
  9. from pisi.actionsapi import pisitools
  10. from pisi.actionsapi import get
  11. def setup():
  12. mesontools.configure("-DBUILD_MANS=false \
  13. -DBUILD_HTML_MANS=false")
  14. def build():
  15. mesontools.build()
  16. def install():
  17. shelltools.cd("build")
  18. pisitools.dobin("ping/ping")
  19. for app in ["clockdiff", "arping", "tracepath"]:
  20. pisitools.dosbin(app)
  21. # We will not need these if we set cap on postInstall like Fedora
  22. shelltools.chmod("%s/usr/bin/ping" % get.installDIR(), 04711)
  23. #shelltools.chmod("%s/usr/bin/ping6" % get.installDIR(), 04711)
  24. pisitools.dodoc("../README.md")