actions.py 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Copyright 2005-2010 TUBITAK/UEKAE
  5. # Licensed under the GNU General Public License, version 2.
  6. # See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.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. autotools.configure()
  13. #shelltools.export("CFLAGS", "%s -O2 -DIP_MAX_MEMBERSHIPS=20" % get.CFLAGS())
  14. #autotools.autoreconf("-vfi")
  15. #autotools.configure("--enable-ipv6 \
  16. # --with-ssl \
  17. # --with-smi \
  18. # --enable-ipv6 \
  19. # --disable-smb \
  20. # --mandir=/usr/share/man")
  21. def build():
  22. autotools.make()
  23. def check():
  24. autotools.make("check")
  25. def install():
  26. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  27. pisitools.remove("/usr/bin/tcpdump.4.99.1")
  28. #pisitools.dosbin("tcpdump")
  29. #pisitools.doman("tcpdump.1")
  30. #pisitools.dodoc("CHANGES", "LICENSE", "README", "CREDITS", "PLATFORMS", "VERSION", "*.awk")