diff options
Diffstat (limited to 'mail/sympa/patches/patch-ab')
-rw-r--r-- | mail/sympa/patches/patch-ab | 54 |
1 files changed, 41 insertions, 13 deletions
diff --git a/mail/sympa/patches/patch-ab b/mail/sympa/patches/patch-ab index e1ba1a2feaa..9fe490bcdd9 100644 --- a/mail/sympa/patches/patch-ab +++ b/mail/sympa/patches/patch-ab @@ -1,13 +1,41 @@ -$NetBSD: patch-ab,v 1.1.1.1 2003/01/22 15:56:33 manu Exp $ ---- Makefile.in.orig Mon Jan 13 15:05:58 2003 -+++ Makefile.in Mon Jan 13 15:06:08 2003 -@@ -545,9 +545,8 @@ - echo "Installing sample config file $$cfile..."; \ - $(PERL) -I $(DESTDIR)$(SBINDIR) $(DESTDIR)$(SBINDIR)/sympa_wizard.pl -c $$cfile; \ - chown $(USER) $(DESTDIR)$(CONFDIR)/$$cfile; \ - chgrp $(GROUP) $(DESTDIR)$(CONFDIR)/$$cfile; \ -- INITCONF='1'; \ - fi \ - done; \ - if [ "$$INITCONF" ] ; then \ - echo "###############################################"; \ +$NetBSD: patch-ab,v 1.2 2004/09/26 20:13:34 seb Exp $ + +--- check_perl_modules.pl.orig 2004-04-19 13:07:29.000000000 +0000 ++++ check_perl_modules.pl +@@ -156,35 +156,7 @@ sub check_modules { + # Install a CPAN module + ##---------------------- + sub install_module { +- my ($module, $default) = @_; +- +- unless ($ENV{'FTP_PASSIVE'} eq 1) { +- $ENV{'FTP_PASSIVE'} = 1; +- print "Setting FTP Passive mode\n"; +- } +- +- ## This is required on RedHat 9 for DBD::mysql installation +- my $lang = $ENV{'LANG'}; +- $ENV{'LANG'} = 'C' if ($ENV{'LANG'} eq 'en_US.UTF-8'); +- +- unless ($> == 0) { +- print "\#\# You need root privileges to install $module module. \#\#\n"; +- print "\#\# Press the Enter key to continue checking modules. \#\#\n"; +- my $t = <STDIN>; +- return undef; +- } +- +- printf "Description: %s\n", $opt_features{$module}; +- print "Install module $module ? [$default]"; +- my $answer = <STDIN>; chomp $answer; +- $answer ||= $default; +- next unless ($answer =~ /^y$/i); +- CPAN::Shell->conf('inactivity_timeout', 4); +- CPAN::Shell->install($module); +- +- ## Restore lang +- $ENV{'LANG'} = $lang if (defined $lang); +- ++ 1; + } + + ###-------------------------- |