]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Managing rxvt-256color terminfo on squeeze
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 23 Mar 2014 20:15:13 +0000 (17:15 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 23 Mar 2014 20:15:13 +0000 (17:15 -0300)
files/terminfo/rxvt-256color [new file with mode: 0644]
manifests/subsystem/profile.pp

diff --git a/files/terminfo/rxvt-256color b/files/terminfo/rxvt-256color
new file mode 100644 (file)
index 0000000..c50b2f8
Binary files /dev/null and b/files/terminfo/rxvt-256color differ
index 33ddc6a73716a4a9711c1ec70fb25029b17b1f8b..802860f9fdd716c1345ec6e0aed4118f68b17c26 100644 (file)
@@ -35,4 +35,19 @@ class nodo::subsystem::profile {
   file { "/etc/profile.d/prompt.sh":
     ensure => absent,
   }
+
+  # See http://linuxforcynics.com/how-to/using-rxvt-unicode-with-screen
+  #     https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=630976
+  #     https://bbs.archlinux.org/viewtopic.php?id=50647
+  #     https://stackoverflow.com/questions/12345675/screen-cannot-find-terminfo-entry-for-xterm-256color
+  file { '/lib/terminfo/r/rxvt-256color':
+  source  => "puppet:///modules/nodo/terminfo/rxvt-256color",
+    owner  => root,
+    group  => root,
+    mode   => 0644,
+    ensure => ${::lsbdistcodename} ? {
+      'squeeze' => present,
+       default  => absent,
+    },
+  }
 }