~ubuntu-branches/ubuntu/quantal/sudo/quantal

« back to all changes in this revision

Viewing changes to doc/sudo.man.pl

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2011-11-20 12:07:45 UTC
  • mfrom: (1.3.17 sid)
  • Revision ID: package-import@ubuntu.com-20111120120745-o3qpklobmygytndc
Tags: 1.8.3p1-1ubuntu1
* Merge from debian/testing, remaining changes:
  - debian/patches/keep_home_by_default.patch:
    + Set HOME in initial_keepenv_table. (rebased for 1.8.3p1)
  - debian/patches/enable_badpass.patch: turn on "mail_badpass" by default:
    + attempting sudo without knowing a login password is as bad as not
      being listed in the sudoers file, especially if getting the password
      wrong means doing the access-check-email-notification never happens
      (rebased for 1.8.3p1)
  - debian/rules:
    + compile with --without-lecture --with-tty-tickets (Ubuntu specific)
    + install man/man8/sudo_root.8 (Ubuntu specific)
    + install apport hooks
    + The ubuntu-sudo-as-admin-successful.patch was taken upstream by
      Debian however it requires a --enable-admin-flag configure flag to
      actually enable it.
  - debian/sudoers: 
    + grant admin group sudo access
  - debian/sudo-ldap.dirs, debian/sudo.dirs: 
    + add usr/share/apport/package-hooks
  - debian/sudo.preinst:
    + avoid conffile prompt by checking for known default /etc/sudoers
      and if found installing the correct default /etc/sudoers file

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/perl -p
 
2
 
 
3
BEGIN {
 
4
    %tags = ( 'a', 'BA', 'c', 'LC', 'r', 'SL', 't', 'SL');
 
5
    $cond = -1;
 
6
}
 
7
 
 
8
# Initialize the numeric register we use for conditionals
 
9
if ($cond == -1) {
 
10
    $_ = ".nr SL \@SEMAN\@\n.nr BA \@BAMAN\@\n.nr LC \@LCMAN\@\n.nr PT \@password_timeout\@\n.\\\"\n$_";
 
11
    $cond = 0;
 
12
}
 
13
 
 
14
# Add conditionals
 
15
if (/^\.IP.*-([acrt])/) {
 
16
    $_ = ".if \\n($tags{$1} \\{\\\n$_";
 
17
    $cond = 1;
 
18
} elsif ($cond && /^\.(Sh|SS|IP|PP)/) {
 
19
    $_ = "\\}\n$_";
 
20
    $cond = 0;
 
21
}
 
22
 
 
23
if (/-a.*auth_type/) {
 
24
    $_ = ".if \\n($tags{'a'} $_";
 
25
} elsif (/(-c.*class.*\||login_cap)/) {
 
26
    $_ = ".if \\n($tags{'c'} $_";
 
27
} elsif (/-r.*role.*-t.*type/) {
 
28
    $_ = ".if \\n($tags{'r'} $_";
 
29
}
 
30
 
 
31
# Fix up broken pod2man formatting of F<@foo@/bar>
 
32
s/\\fI\\f(\(C)?I\@([^\@]*)\\fI\@/\\fI\@$2\@/g;
 
33
 
 
34
# Try to deal sensibly with password_timeout being set to 0 by default
 
35
s/([^ ]*\@password_timeout\@[^ ]* minutes.$)/\n.ie \\n(PT $1\n.el unlimited./;