actions.py 1.6 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 https://www.gnu.org/licenses/gpl-3.0.txt
  6. from pisi.actionsapi import mesontools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools, get
  9. def setup():
  10. shelltools.system("sed -i 's@systemd@elogind@' data/pam-lfs/gdm-launch-environment.pam")
  11. shelltools.system("sed -i 's@-session@session @' data/pam-lfs/gdm-launch-environment.pam")
  12. shelltools.system("sed -i 's@uid >= 1000@uid >= 0@g' data/pam-lfs/*.pam")
  13. shelltools.system("sed -e 's@systemd@elogind@' \
  14. -e '/elogind/isession required pam_loginuid.so' \
  15. -i data/pam-lfs/gdm-launch-environment.pam")
  16. mesontools.configure("--prefix=/usr \
  17. --localstatedir=/var \
  18. --buildtype=release \
  19. -Ddefault-pam-config=lfs \
  20. -Dplymouth=disabled \
  21. -Dpam-mod-dir=/lib/security \
  22. -Dgdm-xsession=true \
  23. -Dsystemd-journal=false \
  24. -Dsystemdsystemunitdir=no \
  25. -Dsystemduserunitdir=no \
  26. -Dlogind-provider=elogind \
  27. -Dselinux=disabled \
  28. -Dscreenshot-dir=/var/lib/gdm/greeter")
  29. def build():
  30. mesontools.build()
  31. def install():
  32. mesontools.install()
  33. pisitools.dodoc("NEWS", "README.md", "COPYING", "AUTHORS", "HACKING")