actions.py 776 B

1234567891011121314151617181920212223242526
  1. # -*- coding: utf-8 -*-
  2. #
  3. # Licensed under the GNU General Public License, version 3.
  4. # See the file http://www.gnu.org/licenses/gpl.txt
  5. from pisi.actionsapi import autotools
  6. from pisi.actionsapi import pisitools
  7. from pisi.actionsapi import get
  8. def build():
  9. pisitools.dosed("Makefile", "MANDIR = /usr/man", "MANDIR = /usr/share/man")
  10. autotools.make("-C po update-po")
  11. autotools.make()
  12. def install():
  13. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  14. pisitools.remove("/usr/sbin/ntsysv")
  15. pisitools.remove("/sbin/chkconfig")
  16. pisitools.remove("/usr/share/man/man8/chkconfig.8")
  17. pisitools.remove("/usr/share/man/man8/ntsysv.8")
  18. pisitools.removeDir("/usr/share/man/man5")
  19. pisitools.removeDir("/sbin")
  20. pisitools.dodoc("COPYING")