actions.py 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 \
  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-all-insults \
  25. --with-ldap \
  26. --enable-shell-sets-home \
  27. --without-selinux \
  28. --with-sendmail=/usr/sbin/sendmail")
  29. # fix unused direct dependency analysis
  30. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  31. def build():
  32. autotools.make()
  33. def install():
  34. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  35. pisitools.dodoc("README.LDAP*", "LICENSE*", "README*")