actions.py 794 B

12345678910111213141516171819202122232425262728293031
  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 shelltools
  9. from pisi.actionsapi import get
  10. # WorkDir = "lsof_%s_src" % get.srcVERSION()
  11. def setup():
  12. shelltools.export("LINUX_BASE", "/proc")
  13. shelltools.export("LSOF_LDFLAGS", get.LDFLAGS())
  14. shelltools.touch(".neverInv")
  15. shelltools.system("./Configure -n linux")
  16. def build():
  17. autotools.make('CC="%s" DEBUG="%s" all' % (get.CC(), get.CFLAGS()))
  18. def install():
  19. pisitools.dosbin("lsof")
  20. pisitools.insinto("/usr/share/lsof/scripts", "scripts/*")
  21. pisitools.doman("Lsof.8")
  22. pisitools.dodoc("00*")