actions.py 888 B

1234567891011121314151617181920212223242526272829
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. # Licensed under the GNU General Public License, version 3.
  4. # See the file http://www.gnu.org/copyleft/gpl.txt
  5. from pisi.actionsapi import get
  6. from pisi.actionsapi import autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. def build():
  10. autotools.make("SUBDIRS=mozilla")
  11. def install():
  12. pisitools.dodir("usr/share/ca-certificates/mozilla")
  13. pisitools.dodir("usr/sbin")
  14. autotools.install("SUBDIRS=mozilla DESTDIR=%s" % get.installDIR())
  15. pisitools.doman("sbin/update-ca-certificates.8")
  16. shelltools.cd("%s/usr/share/ca-certificates" % get.installDIR())
  17. shelltools.system("find . -name '*.crt' | sort | cut -b3- > ca-certificates.conf")
  18. pisitools.insinto("/etc/", "ca-certificates.conf")
  19. pisitools.dodir("/etc/ca-certificates/update.d")
  20. pisitools.dodir("etc/ssl/certs")