actions.py 810 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 https://www.gnu.org/licenses/gpl-3.0.txt
  6. from pisi.actionsapi import autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import get
  9. def setup():
  10. autotools.configure("--sbindir=/usr/sbin")
  11. def build():
  12. autotools.make()
  13. def install():
  14. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  15. for bin in "mkfs", "fsck":
  16. pisitools.remove("/usr/sbin/%s.jfs" % bin)
  17. pisitools.dosym("jfs_%s" % bin, "/usr/sbin/%s.jfs" % bin)
  18. manfile = "/%s/man8/%s.jfs.8" % (get.manDIR(), bin)
  19. pisitools.remove(manfile)
  20. pisitools.dosym("jfs_%s.8" % bin, manfile)
  21. pisitools.dodoc("ChangeLog", "AUTHORS", "NEWS", "README*", "COPYING")