actions.py 574 B

123456789101112131415161718192021222324
  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 autotools, pisitools, get
  7. so = "MILTER_SOVER=1.0.2"
  8. j = ''.join([
  9. ' INCOWN=root INCGRP=root INCMODE=644',
  10. ' LIBOWN=root LIBGRP=root LIBMODE=644 UBINMODE=755 '
  11. ])
  12. def setup():
  13. pass
  14. def build():
  15. autotools.make("-C libmilter %s" % so)
  16. def install():
  17. pisitools.dodir("/usr/lib")
  18. autotools.rawInstall("-C libmilter DESTDIR=%s %s %s install" % (get.installDIR(), j, so))