actions.py 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 get
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools
  9. def setup():
  10. pisitools.cflags.add("-fpie")
  11. pisitools.ldflags.add("-pie -Wl,-z,relro -Wl,-z,now")
  12. autotools.autoreconf("-fi")
  13. autotools.configure("--libexecdir=/usr/libexec/sudo \
  14. --with-rundir=/run/sudo \
  15. --with-noexec=/usr/libexec/sudo/sudo_noexec.so \
  16. --with-logging=syslog \
  17. --with-logfac=authpriv \
  18. --with-pam \
  19. --with-pam-login \
  20. --with-linux-audit \
  21. --with-env-editor \
  22. --with-ignore-dot \
  23. --with-tty-tickets \
  24. --with-ldap \
  25. --enable-shell-sets-home \
  26. --without-selinux \
  27. --without-rpath")
  28. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  29. def build():
  30. autotools.make()
  31. def install():
  32. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  33. pisitools.dodoc("README.LDAP", "README")