actions.py 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 get
  6. from pisi.actionsapi import autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. def setup():
  10. shelltools.system("sh makeconf.sh")
  11. # Disable device node creation during build/install
  12. pisitools.dosed("util/Makefile.in", "mknod", "echo Disabled: mknod ")
  13. autotools.configure("--disable-static \
  14. --disable-rpath \
  15. --enable-lib \
  16. --enable-util \
  17. --exec-prefix=/ \
  18. --bindir=/bin")
  19. def build():
  20. autotools.make()
  21. def install():
  22. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  23. pisitools.removeDir("/dev")
  24. pisitools.removeDir("/etc")
  25. # Make compat symlinks into /usr/bin
  26. pisitools.dosym("/bin/fusermount", "/usr/bin/fusermount")
  27. pisitools.dosym("/bin/ulockmgr_server", "/usr/bin/ulockmgr_server")
  28. # Move pkgconfig file to /usr/lib
  29. pisitools.domove("/lib/pkgconfig", "/usr/lib/")
  30. pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING", "NEWS", "README.NFS")