actions.py 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. shelltools.system("NOCONFIGURE=1 ./autogen.sh")
  12. autotools.autoreconf("-fi")
  13. autotools.configure("--disable-static \
  14. --sbindir=/usr/bin \
  15. --with-mountutildir=/usr/bin \
  16. --prefix=/usr \
  17. --without-selinux \
  18. --sysconfdir=/etc \
  19. --localstatedir=/var \
  20. --mandir=/usr/share/man \
  21. --libexecdir=/usr/lib \
  22. --with-tmpfilesdir=/usr/lib/tmpfiles.d \
  23. --enable-gnfs")
  24. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  25. def build():
  26. autotools.make()
  27. def check():
  28. autotools.make("check")
  29. def install():
  30. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  31. pisitools.dodir("/usr/lib/sysusers.d")
  32. shelltools.move("%s/usr/lib/tmpfiles.d/gluster.conf" % get.installDIR(), "%s/usr/lib/sysusers.d" % get.installDIR())
  33. pisitools.dodoc("AUTHORS", "COPYING*", "README*")