actions.py 766 B

1234567891011121314151617181920212223
  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 build():
  10. autotools.make("CC=%s" %get.CC())
  11. def install():
  12. #rename netcat binary to differentiate it from gnu version
  13. pisitools.insinto("/usr/bin/", "nc", "netcat-openbsd")
  14. #insert a symlink as nc so that applications expecting nc command can run it
  15. pisitools.dosym("./netcat-openbsd", "/usr/bin/nc")
  16. # copy the man stuff and create a symlink for both command possibilities
  17. pisitools.doman("nc.1")
  18. pisitools.dosym("./nc.1", "/usr/share/man/man1/netcat-openbsd.1")