User_Alias NOC=%adm
User_Alias WEBUSERS=%webusers
User_Alias REALUSERS=%realusers
Cmnd_Alias READLOG=/usr/local/sbin/showlog, \
/usr/local/sbin/showlog [a-zA-Z0-9]*, \
/usr/local/sbin/showlog [a-zA-Z0-9 ]*
Cmnd_Alias ROOTLOG=/usr/local/sbin/showlog system*
Cmnd_Alias USERMOD=/usr/local/sbin/user-mailaddr, \
/usr/local/sbin/user-mailaddr [a-zA-Z0-9]*, \
/usr/sbin/adduser [a-zA-Z0-9]*, \
/usr/sbin/deluser [a-zA-Z0-9]*, \
/usr/bin/passwd [a-zA-Z0-9]*, \
/usr/bin/chfn [a-zA-Z0-9]*
Cmnd_Alias ROOTMOD=/usr/bin/passwd root, \
/usr/sbin/userdel root, \
/usr/sbin/userdel -r root,\
/usr/sbin/adduser root
Cmnd_Alias RESTART=/etc/init.d/named restart
WEBUSERS ALL=READLOG,!ROOTLOG
REALUSERS ALL=READLOG,!ROOTLOG
NOC ALL=READLOG,USERMOD,!ROOTMOD,RESTART
root ALL=(ALL) ALL
s='main'>index : ledger-smb
blob: fa2014f02a42ae633469303251dd3a6127b25703 (
plain)
- #!/usr/bin/perl -w
- =head1 NAME
- find-use
- =head1 EXAMPLE
- ~/ledgersmb # utils/devel/find-use
- 0.000000 : HTML::Entities
- 0.000000 : Locale::Maketext::Lexicon
- 0.000000 : Module::Build
- ...
- =head1 EXPLINATION
- This util is useful for package builders to identify all the CPAN dependencies we've made. It required Module::CoreList (which is core, but is not yet in any stable
- release of perl) to determine if a module is distributed with perl or not. The output reports which version of perl the module is in. If it reports 0.000000, then the
- module is not in core perl, and needs to be installed before LedgerSMB will operate.
- =head1 AUTHOR
- http://www.ledgersmb.org/ - The LedgerSMB team
- =head1 LICENSE
- Distributed under the terms of the LedgerSMB code.
- =cut
- use strict;
- use warnings;
- open GREP, "grep -r '^use ' . |";
- use Module::CoreList;
- my %uselines;
- while(<GREP>) {
- next if /LedgerSMB::/;
- next if /use warnings/;
- next if /use strict/;
- next if /use vars/;
- chomp;
- my ($file, $useline) = m/^([^:]+):use\s(.*?)$/;
- $uselines{$useline}||=[];
- push @{$uselines{$useline}}, $file;
- }
- my %modules;
- foreach my $useline (keys %uselines) {
- my ($module) = grep { $_ } $useline =~ /(?:base ['"]([a-z:]+)|([a-z:]+)(?:\s|;))/i;
- my $version = Module::CoreList->first_release($module);
- $modules{$module} = $version||0;
- }
- foreach my $mod (sort { $modules{$a} == 0 ? -1 : $modules{$b} == 0 ? 1 : 0 or $a cmp $b } keys %modules) {
|