actions.py 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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("LC_ALL", "POSIX")
  11. def setup():
  12. autotools.configure("--enable-pam \
  13. --with-socket-dir=/run/screen \
  14. --with-sys-screenrc=/etc/screenrc \
  15. --with-pty-mode=0620 \
  16. --with-pty-group=5 \
  17. --enable-rxvt_osc \
  18. --enable-colors256")
  19. def build():
  20. autotools.make()
  21. def install():
  22. pisitools.dobin("screen")
  23. pisitools.dodir("/run/screen")
  24. pisitools.dodir("/etc/pam.d")
  25. pisitools.insinto("/usr/share/terminfo", "terminfo/screencap")
  26. pisitools.insinto("/usr/share/screen/utf8encodings", "utf8encodings/??")
  27. shelltools.chmod("%s/run/screen" % get.installDIR(), 0775)
  28. pisitools.doman("doc/screen.1")
  29. pisitools.dodoc("README", "ChangeLog", "TODO", "NEWS*", "doc/FAQ", "doc/README.DOTSCREEN")