2 This device is for authorized users only. All traffic on this device
3 is monitored and will be used as evidence for prosecutions.
5 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
9 s.gsub(/(.{1,#{width}})(\s+|\Z)/, "\\1\n")
13 if nodeinfo.has_key?('nameinfo')
14 purp += wrap(nodeinfo['nameinfo']) + "\n\n"
17 purp += 'Welcome to ' + fqdn
18 if (nodeinfo['ldap'].has_key?('purpose'))
19 if nodeinfo['ldap']['purpose'].include?('buildd')
20 purp += ", the Debian "
21 if nodeinfo['ldap'].has_key?('architecture')
22 purp += nodeinfo['ldap']['architecture'][0]
24 purp += " build daemon\n"
25 elsif nodeinfo['ldap']['purpose'].include?('porterbox')
26 purp += ", the Debian "
27 if nodeinfo['ldap'].has_key?('architecture')
28 purp += nodeinfo['ldap']['architecture'][0]
30 purp += " porterbox\n"
32 purp += "See 'dchroot -l' for a list of available chroots.\n"
33 if nodeinfo['ldap'].has_key?('admin')
34 purp += "Please contact #{nodeinfo['ldap']['admin'][0]} for install requests,\n"
35 purp += "following the recommendations in <URL:http://dsa.debian.org/doc/install-req/>.\n"
38 purp += ", used for the following services:\n"
39 nodeinfo['ldap']['purpose'].sort.each do |l|
40 if l =~ /\[\[(\*|-)?(.*?)\]\]/
43 if l =~ /\[\[(.*?)\|(.*?)\]\]/
46 purp += "\t" + l + "\n"
53 if (nodeinfo['ldap'].has_key?('physicalHost'))
54 purp += "This virtual server runs on the physical host #{nodeinfo['ldap']['physicalHost'][0]}.\n"
57 if nodeinfo.has_key?('footer')
58 purp += "\n" + wrap(nodeinfo['footer']) + "\n"
63 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
68 # vim:set shiftwidth=2: