actions.py 933 B

1234567891011121314151617181920212223242526272829303132
  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 autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. from pisi.actionsapi import get
  10. def setup():
  11. #for i in ["mtools.texi"]:
  12. # pisitools.dosed(i, "/usr/local/etc", "/etc")
  13. shelltools.export("INSTALL_PROGRAM", "install")
  14. autotools.autoreconf("-fi")
  15. autotools.configure("--prefix=/usr \
  16. --sysconfdir=/etc/mtools \
  17. --includedir=/usr/src/linux/include")
  18. def build():
  19. autotools.make()
  20. pisitools.dosed("mtools.conf","SAMPLE FILE","#SAMPLE FILE")
  21. def install():
  22. autotools.rawInstall('-j1 DESTDIR="%s"' % get.installDIR())
  23. pisitools.insinto("/etc/mtools","mtools.conf")
  24. pisitools.dodoc("COPYING", "README*", "Release.notes")