actions.py 908 B

1234567891011121314151617181920212223242526272829303132333435
  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. #who knows pisitools.dosed :)
  12. cmd="sed -i '/gets is a security hole/d' gnu/stdio.in.h"
  13. shelltools.system(cmd)
  14. autotools.configure("--enable-nls \
  15. --bindir=/bin \
  16. --with-rmt=/usr/sbin/rmt \
  17. --disable-rpath")
  18. def build():
  19. autotools.make()
  20. def check():
  21. autotools.make("check")
  22. def install():
  23. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  24. pisitools.removeDir("/usr/share/man/man8")
  25. #pisitools.removeDir("/usr/libexec")
  26. pisitools.dodoc("ChangeLog", "NEWS", "README")