actions.py 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # -*- coding: utf-8 -*-
  2. #
  3. # Licensed under the GNU General Public License, version 3.
  4. # See the file http://www.gnu.org/licenses/gpl.txt
  5. from pisi.actionsapi import autotools
  6. from pisi.actionsapi import pisitools
  7. from pisi.actionsapi import shelltools
  8. from pisi.actionsapi import libtools
  9. from pisi.actionsapi import get
  10. def setup():
  11. libtools.libtoolize()
  12. autotools.aclocal("-I m4")
  13. autotools.autoreconf("-vif")
  14. autotools.configure("--sysconfdir=/etc/snort \
  15. --enable-sourcefire \
  16. --enable-zlib \
  17. --enable-gre \
  18. --enable-mpls \
  19. --enable-targetbased \
  20. --enable-ppm \
  21. --enable-perfprofiling \
  22. --enable-active-response \
  23. --enable-normalizer \
  24. --enable-reload \
  25. --enable-react \
  26. --enable-flexresp3 \
  27. --enable-shared-rep \
  28. --disable-react \
  29. --enable-non-ether-decoders \
  30. --enable-ha \
  31. --disable-corefiles \
  32. --with-daq-libraries=/usr/lib/ \
  33. --with-daq-includes=/usr/include \
  34. --enable-gdb \
  35. --enable-inline-init-failopen \
  36. --enable-linux-smp-stats \
  37. --enable-side-channel \
  38. --enable-control-socket")
  39. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  40. def build():
  41. autotools.make()
  42. def install():
  43. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  44. shelltools.move("%s/rules" % get.workDIR(),"%s/etc/snort/rules" % get.installDIR())
  45. pisitools.dodoc("ChangeLog", "COPYING", "LICENSE", "RELEASE.NOTES")