actions.py 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  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 shelltools
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import get
  10. def setup():
  11. pisitools.dosed("data/configs/*.service.in", "SystemdService", deleteLine=True)
  12. autotools.configure("--disable-static \
  13. --sysconfdir=/etc \
  14. --disable-schemas-compile \
  15. --with-dhcp-config='/etc/dhcp/dhcpd.conf' \
  16. --with-systemduserunitdir=no \
  17. --with-systemdsystemunitdir=no \
  18. --enable-pulseaudio \
  19. --enable-polkit")
  20. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  21. def build():
  22. autotools.make()
  23. def install():
  24. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  25. shelltools.chmod(get.installDIR() + "/usr/share/polkit-1/rules.d")
  26. pisitools.dodoc("CHANGELOG.*", "COPYING")