Removed support for OpenBSD < 4.9

This commit is contained in:
Ossi Salmi 2013-05-04 16:33:46 +03:00
parent 93906963d9
commit e8b2422265
7 changed files with 55 additions and 223 deletions

View file

@ -13,8 +13,8 @@ class cups::client {
mode => "0644",
owner => root,
group => $::operatingsystem ? {
openbsd => wheel,
default => lp,
"openbsd" => "wheel",
default => "lp",
},
require => Package["cups"],
}
@ -22,10 +22,7 @@ class cups::client {
case $::operatingsystem {
"openbsd": {
exec { "cups-enable":
command => $::operatingsystemrelease ? {
/4\.[1-8]/ => "echo y | cups-enable",
default => "sh -c '. /etc/rc.d/cupsd check ; rc_pre'",
},
command => "sh -c '. /etc/rc.d/cupsd check ; rc_pre'",
path => "/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin",
user => "root",
creates => "/usr/bin/lpr.pre-cups",