actions.py 925 B

123456789101112131415161718192021222324252627282930
  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 shelltools
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import get
  10. WorkDir = "sysvinit-%s" % get.srcVERSION()
  11. def build():
  12. # These files conflict with util-linux
  13. #pisitools.dosed("src/Makefile", "MNTPOINT=", "MNTPOINT= yes")
  14. autotools.make("-C src CC=\"%s\" CFLAGS=\"%s -D_GNU_SOURCE\" LCRYPT=\"-lcrypt\"" % (get.CC(), get.CFLAGS()))
  15. def install():
  16. shelltools.cd("src")
  17. autotools.rawInstall("ROOT='%s' STRIP=/bin/true" % get.installDIR())
  18. pisitools.remove("/bin/pidof")
  19. # These files conflict with e2fsprogs
  20. pisitools.remove("/sbin/logsave")
  21. pisitools.remove("/usr/share/man/man8/logsave.8")
  22. pisitools.dosym("killall5", "/sbin/pidof")