actions.py 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. def build():
  11. shelltools.cd("wpa_supplicant")
  12. #Enable syslog output
  13. cflags = get.CFLAGS() + " -DCONFIG_DEBUG_SYSLOG"
  14. shelltools.export("CFLAGS", cflags)
  15. autotools.make("LIBDIR=/usr/lib BINDIR=/usr/sbin V=1")
  16. # autotools.make("eapol_test")
  17. autotools.make("LIBDIR=/usr/lib BINDIR=/usr/sbin eapol_test")
  18. def install():
  19. shelltools.cd("wpa_supplicant")
  20. autotools.rawInstall("LIBDIR=/usr/lib BINDIR=/usr/sbin eapol_test DESTDIR=%s" % get.installDIR())
  21. # for bin in ["wpa_supplicant", "wpa_cli", "wpa_passphrase", "eapol_test"]:
  22. for bin in ["eapol_test"]:
  23. pisitools.dosbin(bin)
  24. # Install dbus files
  25. pisitools.insinto("/usr/share/dbus-1/system-services", "dbus/*.service")
  26. pisitools.insinto("/etc/dbus-1/system.d", "dbus/dbus-wpa_supplicant.conf", "wpa_supplicant.conf")
  27. pisitools.doman("doc/docbook/*.5")
  28. pisitools.doman("doc/docbook/*.8")
  29. pisitools.newdoc("wpa_supplicant.conf", "wpa_supplicant.conf.example")
  30. pisitools.dodoc("ChangeLog", "../COPYING", "eap_testing.txt", "../README", "todo.txt")