actions.py 737 B

12345678910111213141516171819202122232425262728293031
  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 perlmodules, shelltools, pisitools, get
  7. shelltools.export("CONTACT_ADDRESS", "root@localhost")
  8. shelltools.export("ENABLE_SSL", "yes")
  9. shelltools.export("PERL_USE_UNSAFE_INC", "1")
  10. shelltools.export("CFLAGS", "%s -DSPAMC_SSL -lssl -lcrypto" % get.CFLAGS())
  11. def setup():
  12. perlmodules.configure()
  13. #shelltools.cd("spamc")
  14. #shelltools.system("./configure.pl && ./configure --enable-ssl=yes")
  15. def build():
  16. perlmodules.make()
  17. def check():
  18. pass
  19. # perlmodules.make("test")
  20. def install():
  21. perlmodules.install()
  22. pisitools.dodir("/var/lib/spamd")