actions.py 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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 -DSYSLOGD_PIDNAME=\\"syslogd.pid\\"')
  11. pisitools.ldflags.add("-pie -Wl,-z,relro -Wl,-z,now")
  12. autotools.configure("\
  13. --sbindir=/usr/bin \
  14. --disable-gui \
  15. --disable-mysql \
  16. --disable-pgsql \
  17. --disable-relp \
  18. --disable-gnutls \
  19. --disable-static \
  20. --disable-rfc3195 \
  21. --disable-omjournal \
  22. --disable-testbench \
  23. --disable-mmnormalize \
  24. --disable-gssapi-krb5 \
  25. --disable-generate-man-pages \
  26. --disable-uuid \
  27. --enable-mail \
  28. --enable-zlib \
  29. --enable-imdiag \
  30. --enable-imfile \
  31. --enable-imptcp \
  32. --enable-mmanon \
  33. --enable-omprog \
  34. --enable-mmaudit \
  35. --enable-pmsnare \
  36. --enable-impstats \
  37. --enable-omstdout \
  38. --enable-omuxsock \
  39. --enable-largefile \
  40. --enable-pmlastmsg \
  41. --enable-mmjsonparse \
  42. --enable-pmrfc3164sd \
  43. --enable-pmcisconames \
  44. --enable-sm_cust_bindcdr \
  45. --enable-unlimited-select \
  46. --enable-pmaixforwardedfrom \
  47. --enable-cached-man-pages \
  48. --with-systemdsystemunitdir=no \
  49. ")
  50. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  51. def build():
  52. autotools.make()
  53. def install():
  54. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  55. pisitools.dodoc("COPYING*", "README", "AUTHORS", "ChangeLog")
  56. # create needed directory
  57. pisitools.dodir("/var/spool/rsyslog")
  58. pisitools.dodir("/var/empty/dev")