actions.py 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. shelltools.export("CFLAGS", "%s -fpie" % get.CFLAGS())
  11. shelltools.export("LDFLAGS", "%s -fpie" % get.LDFLAGS())
  12. def setup():
  13. autotools.autoreconf("-vfi")
  14. ## glibc provides rpcinfo in /usr/sbin, so move it to /sbin, thus bindir=/sbin
  15. autotools.configure("--bindir=/usr/bin \
  16. --enable-warmstarts \
  17. --with-statedir=/var/lib/rpcbind \
  18. --with-rpcuser=rpc \
  19. --with-systemdsystemunitdir=no \
  20. --enable-libwrap")
  21. def build():
  22. autotools.make()
  23. def install():
  24. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  25. pisitools.dodir("/var/lib/rpcbind")
  26. # glibc has rpcinfo.8, so avoid conflict with glibc
  27. pisitools.insinto("/usr/share/man/man8", "man/rpcinfo.8", "rpcbind-rpcinfo.8")
  28. pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING", "NEWS", "README")