diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2014-09-01 21:25:59 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2014-09-01 21:25:59 +0000 |
commit | 8003ba152f15aa82aaadd76fcd6b669cc0cc9981 (patch) | |
tree | 7842527232644d8f0fc76639a38e9596a910d381 /mail/majordomo/scripts | |
parent | Convert to USES=libtool and add INSTALL_TARGET=install-strip (diff) |
Remove non staged ports without pending PR from ma*
Notes
Notes:
svn path=/head/; revision=366959
Diffstat (limited to 'mail/majordomo/scripts')
-rw-r--r-- | mail/majordomo/scripts/adaptwrapper | 76 | ||||
-rw-r--r-- | mail/majordomo/scripts/configure | 29 | ||||
-rw-r--r-- | mail/majordomo/scripts/makeseed | 14 |
3 files changed, 0 insertions, 119 deletions
diff --git a/mail/majordomo/scripts/adaptwrapper b/mail/majordomo/scripts/adaptwrapper deleted file mode 100644 index c21ef64c67a4..000000000000 --- a/mail/majordomo/scripts/adaptwrapper +++ /dev/null @@ -1,76 +0,0 @@ -#! /bin/sh -# anders@FreeBSD.org, 2002-02-08 - -if [ -z "$1" ] -then - prefix=/usr/local/majordomo -else - if [ -d "$1/majordomo" ] - then - prefix=$1/majordomo - else - echo "Could not find the majordomo dir." - echo - echo "Usage: $0 <install prefix>" - exit 1 - fi -fi -tempfile=`/usr/bin/mktemp -t radiolist` - -/usr/bin/dialog --title "Making the majordomo wrapper run" --clear --radiolist "We need to make the majordomo wrapper program executable by your Mail\nDelivery Agent, but do not want it executable for all users due\nto security reasons.\n\n(This script can be re-executed from\n/usr/ports/mail/majordomo/scripts/adaptwrapper.)\n\nAdapt to the MDA of:" -1 -1 5 \ -Sendmail "(add users daemon/mailnull to the majordom group)" ON \ -Postfix "(change group ownership of wrapper to nobody)" OFF \ -2>$tempfile - -if [ "$?" = "1" ] -then - echo "Cancel pressed. You will need to make wrapper executable yourself." -fi - -choice=`cat $tempfile` -rm -f $tempfile -if [ -z "$choice" ] -then - echo "Empty selection." - exit 1 -fi - -addmember() { -# $1: group $2: user - if !(pw groupmod $1 -m $2 >/dev/null 2>&1) - then - echo "Error: Could not add user $2 to group $1." - exit 1 - fi -} - -changegroup() { -# $1: group - mywrapper=$prefix/wrapper - if !(chgrp $1 $mywrapper >/dev/null 2>&1) - then - echo "Error: Could not change group ownership of" - echo "$mywrapper" - echo "to group $1." - exit 1 - fi -} - -case $choice in -'Sendmail') - addmember majordom daemon - if (pw usershow mailnull >/dev/null 2>&1) - then - addmember majordom mailnull - fi - ;; -'Postfix') - changegroup nobody - ;; -'None') - echo "Fine. I see you want to make wrapper executable yourself." - ;; -*) - echo "Unknown MTA specified." - ;; -esac diff --git a/mail/majordomo/scripts/configure b/mail/majordomo/scripts/configure deleted file mode 100644 index 68dc3d105de9..000000000000 --- a/mail/majordomo/scripts/configure +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/perl -# - -eval '(exit $?0)' && eval 'exec /usr/bin/perl -S $0 ${1+"$@"}' -& eval 'exec /usr/bin/perl -S $0 $argv:q' -if 0; - -if( getpwnam( "majordom" ) ) { - ( $null, $null, $mjUID ) = getpwnam( "majordom" ); -} else { - print "\nMajordomo user not found - aborting!\n\n"; - exit 1; -} - -if( getgrnam( "majordom" ) ) { - ( $null, $null, $mjGID ) = getgrnam( "majordom" ); -} else { - print "\nMajordomo group not found - aborting!\n\n"; - exit 1; -} - -chop( $hostname = `hostname` ); - -system( "/usr/bin/perl -pi -e 's|%%MJUID%%|$mjUID|g' $ENV{'WRKSRC'}/Makefile" ); -system( "/usr/bin/perl -pi -e 's|%%MJGID%%|$mjGID|g' $ENV{'WRKSRC'}/Makefile" ); -system( "/usr/bin/perl -pi -e 's|%%HOSTNAME%%|$hostname|g' $ENV{'WRKSRC'}/sample.cf $ENV{'WRKSRC'}/aliases.majordomo" ); -foreach $file( "bounce-remind", "contrib/archive_mh.pl", "archive2.pl", "digest", "contrib/digest.num", "contrib/new-list", "contrib/sequencer", "majordomo", "medit", "request-answer", "resend", "sample.cf" ) { - system( "/usr/bin/perl -pi -e 's|%%PREFIX%%|$ENV{'PREFIX'}|g' $ENV{'WRKSRC'}/$file" ); -} diff --git a/mail/majordomo/scripts/makeseed b/mail/majordomo/scripts/makeseed deleted file mode 100644 index ae11e9cf900e..000000000000 --- a/mail/majordomo/scripts/makeseed +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/perl -my $file = $ARGV[0]; -my $seed = ''; -my $i; -my $patt = "./0123456789abcdefghijklmnopqrstuvwxyzQWERTYUIOPASDFGHJKLZXCVBNM"; -die unless $file; -srand; -for( $i = 1; $i <= 40; $i++ ) { - $seed = $seed . substr( $patt, int( rand() * 64 ), 1 ); -} -open OUT, ">>$file" || die "Cannot open output file"; -print OUT "\n## Set cookie_seed to value generated during install\n"; -printf OUT '$cookie_seed="%s";'."\n", $seed; -close( OUT ); |