actions.py 989 B

123456789101112131415161718192021222324252627
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. # Licensed under the GNU General Public License, version 3.
  4. # See the file http://www.gnu.org/copyleft/gpl.txt
  5. from pisi.actionsapi import shelltools
  6. from pisi.actionsapi import autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import get
  9. def setup():
  10. shelltools.system("sed -i 's/python2.4/python2.7/g' conf.h")
  11. shelltools.system("sed -i 's/python2.4/python2.7/g' configure.ac")
  12. autotools.autoreconf("-ivf")
  13. autotools.configure("CPPFLAGS=-Ilorcon/usr/include LDFLAGS=-Llorcon/usr/lib LIBS=-lcrypto --libdir=/usr/lib")
  14. def build():
  15. autotools.make()
  16. def install():
  17. pisitools.dobin("airpwn")
  18. pisitools.dobin("wep_keygen")
  19. pisitools.dosbin("ma*.sh")
  20. shelltools.copytree("conf/", "%s/usr/share/airpwn/conf/" % get.installDIR())
  21. shelltools.copytree("content/", "%s/usr/share/airpwn/" % get.installDIR())
  22. shelltools.copytree("pyscripts/", "%s/usr/share/airpwn/" % get.installDIR())