actions.py 825 B

1234567891011121314151617181920212223242526
  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 build():
  11. autotools.make("USE_NETTLE=no USE_GNUTLS=no CCOPT='%s -fpie' CC=%s" % (get.CFLAGS(), get.CC()))
  12. def install():
  13. pisitools.dobin("ping")
  14. for app in ["clockdiff", "rarpd", "tftpd", "arping", "rdisc", "tracepath", "traceroute6"]:
  15. pisitools.dosbin(app)
  16. # We will not need these if we set cap on postInstall like Fedora
  17. shelltools.chmod("%s/usr/bin/ping" % get.installDIR(), 04711)
  18. #shelltools.chmod("%s/usr/bin/ping6" % get.installDIR(), 04711)
  19. pisitools.dodoc("RELNOTES")