From owner-freebsd-ports Fri Aug 30 10: 0:35 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2B06037B400 for ; Fri, 30 Aug 2002 10:00:12 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id DFF6A43E3B for ; Fri, 30 Aug 2002 10:00:10 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7UH09JU086199 for ; Fri, 30 Aug 2002 10:00:09 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7UH09an086198; Fri, 30 Aug 2002 10:00:09 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2A43037B407 for ; Fri, 30 Aug 2002 09:52:54 -0700 (PDT) Received: from outpost.lukarcos.com (outpost.lukarcos.com [195.239.240.132]) by mx1.FreeBSD.org (Postfix) with SMTP id 34F7043E6E for ; Fri, 30 Aug 2002 09:52:51 -0700 (PDT) (envelope-from sgk@outpost.globcon.net) Received: (qmail 83242 invoked by uid 911); 30 Aug 2002 16:52:51 -0000 Message-Id: <20020830165251.83241.qmail@outpost.globcon.net> Date: 30 Aug 2002 16:52:51 -0000 From: Sergei Kolobov To: FreeBSD-gnats-submit@FreeBSD.org Cc: guy-ezmlm@rucus.ru.ac.za X-Send-Pr-Version: 3.113 Subject: ports/42218: <[synopsis of the problem (one line)]> Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 42218 >Category: ports >Synopsis: <[synopsis of the problem (one line)]> >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Fri Aug 30 10:00:08 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Sergei Kolobov >Release: FreeBSD 4.6-STABLE i386 >Organization: >Environment: System: FreeBSD outpost.globcon.net 4.6-STABLE FreeBSD 4.6-STABLE #0: Thu Aug 1 02:44:26 MSD 2002 sgk@outpost.globcon.net:/data/FreeBSD/obj/data/FreeBSD/src/sys/OUTPOST i386 >Description: - Make the port PREFIX-clean - Install examples and docs into standard directories - Do not depend on apache13 - it should run with other Web servers, too - Move all other dependencies to RUN_DEPENDS - Look for dependendcies (including ezmlm-idx) in LOCALBASE - Remove obsoleted patches and pkg-message - Add patch to fix typo in the config file - Bump PORTREVISION Maintainer cc'd. >How-To-Repeat: Patch included. >Fix: --- ezmlm-web-2.1_3.patch begins here --- diff -urN /usr/ports/mail/ezmlm-web/Makefile /home/sgk/ports/mail/ezmlm-web/Makefile --- /usr/ports/mail/ezmlm-web/Makefile Tue Oct 16 04:10:03 2001 +++ /home/sgk/ports/mail/ezmlm-web/Makefile Fri Aug 30 20:40:27 2002 @@ -7,42 +7,40 @@ PORTNAME= ezmlm-web PORTVERSION= 2.1 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= mail www MASTER_SITES= ftp://rucus.ru.ac.za/pub/mail/ezmlm/ MAINTAINER= guy-ezmlm@rucus.ru.ac.za -BUILD_DEPENDS= ${LOCALBASE}/${EZMLM_DIR}/bin/ezmlm-idx:${PORTSDIR}/mail/ezmlm-idx \ - ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Mail/Ezmlm.pm:${PORTSDIR}/mail/p5-Mail-Ezmlm -RUN_DEPENDS= ${LOCALBASE}/sbin/apachectl:${PORTSDIR}/www/apache13 \ - ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Mail/Address.pm:${PORTSDIR}/mail/p5-Mail-Tools - -# Change these to suit your setup. You can do this via the environment -# CGI_BIN is the location relative to ${PREFIX} of your webservers' cgi-bin -# EZMLM_DIR is the base relative to ${PREFIX} in which ezmlm was installed -# -CGI_BIN?= www/cgi-bin.default -EZMLM_DIR?= +RUN_DEPENDS= ezmlm-idx:${PORTSDIR}/mail/ezmlm-idx \ + ${SITE_PERL}/Mail/Ezmlm.pm:${PORTSDIR}/mail/p5-Mail-Ezmlm \ + ${SITE_PERL}/Mail/Address.pm:${PORTSDIR}/mail/p5-Mail-Tools -USE_PERL5= YES -PLIST_SUB= CGI_BIN=${CGI_BIN:S/$/\//:S/^\///} EZMLM_DIR=${EZMLM_DIR:S/$/\//:S/^\///} +USE_PERL5= yes +SITE_PERL= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER} + +DOCS= CHANGES README TODO UPGRADING +EXAMPLES= ezmlmwebrc htaccess.sample index.c webusers.sample do-build: - @cd ${WRKSRC}; ${MAKE} index; ${MV} index ezmlm-web + ${PERL} -pi.orig -e "s!/etc/ezmlm!${PREFIX}/etc/ezmlm!" \ + ${WRKSRC}/ezmlm-web.cgi ${WRKSRC}/ezmlmwebrc + ${PERL} -pi.orig -e "s!/usr/local!${PREFIX}!" ${WRKSRC}/index.c do-install: - ${MKDIR} ${PREFIX}/${CGI_BIN} ${PREFIX}/${EZMLM_DIR} - ${INSTALL_SCRIPT} ${WRKSRC}/ezmlm-web.cgi ${PREFIX}/${EZMLM_DIR}/bin - ${INSTALL_DATA} ${WRKSRC}/ezmlmwebrc ${PREFIX}/${EZMLM_DIR}/etc/ezmlm/ezmlmwebrc.sample - ${INSTALL_PROGRAM} -o alias -g qmail -m 4755 ${WRKSRC}/ezmlm-web ${PREFIX}/${CGI_BIN} - ${MKDIR} ${PREFIX}/share/ezmlm-web -.for file in CHANGES README index.c htaccess.sample webusers.sample - ${INSTALL_MAN} ${WRKSRC}/${file} ${PREFIX}/share/ezmlm-web + ${INSTALL_SCRIPT} ${WRKSRC}/ezmlm-web.cgi ${PREFIX}/bin + -${MKDIR} ${CONFIGDIR} + ${INSTALL_DATA} ${WRKSRC}/ezmlmwebrc ${PREFIX}/etc/ezmlm + ${MKDIR} ${EXAMPLESDIR} +.for file in ${EXAMPLES} + ${INSTALL_DATA} ${WRKSRC}/${file} ${EXAMPLESDIR} .endfor - -post-install: - @${SED} 's!%%PREFIX%%!${PREFIX}!g; s!%%EZMLM_DIR%%!${PREFIX}${EZMLM_DIR:S/^\///}!g' ${PKGMESSAGE} - @${ECHO} - +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} +.for file in ${DOCS} + ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} +.endfor +.endif + .include diff -urN /usr/ports/mail/ezmlm-web/files/patch-aa /home/sgk/ports/mail/ezmlm-web/files/patch-aa --- /usr/ports/mail/ezmlm-web/files/patch-aa Tue Oct 16 04:10:03 2001 +++ /home/sgk/ports/mail/ezmlm-web/files/patch-aa Thu Jan 1 03:00:00 1970 @@ -1,66 +0,0 @@ ---- ezmlm-web.cgi.orig Mon Sep 25 21:58:08 2000 -+++ ezmlm-web.cgi Wed Sep 19 09:19:05 2001 -@@ -76,6 +76,10 @@ - require "$opt_C"; # Command Line - } elsif(-e "$HOME_DIR/.ezmlmwebrc") { - require "$HOME_DIR/.ezmlmwebrc"; # User -+} elsif(-e "/usr/local/etc/ezmlm/ezmlmwebrc") { -+ require "/usr/local/etc/ezmlm/ezmlmwebrc"; # FreeBSD -+} elsif(-e "/usr/local/etc/ezmlmwebrc") { -+ require "/usr/local/etc/ezmlmwebrc"; # FreeBSD alt - } elsif(-e "/etc/ezmlm/ezmlmwebrc") { - require "/etc/ezmlm/ezmlmwebrc"; # System - } elsif(-e "./ezmlmwebrc") { -@@ -281,13 +285,13 @@ - print $q->startform; - print $q->hidden(-name=>'state', -default=>'select'); - print '
'; -- print $q->scrolling_list(-name=>'list', -size=>$scrollsize, -values=>\@lists) if defined(@lists); -+ print $q->scrolling_list(-name=>'list', -size=>$scrollsize, -values=>\@lists) if (@lists); - - print '', $LANGUAGE{'chooselistinfo'}; - -- print $q->submit(-name=>'action', -value=>"[$BUTTON{'create'}]"), ' ' if (!defined($opt_c)); -- print $q->submit(-name=>'action', -value=>"[$BUTTON{'edit'}]"), ' ' if(defined(@lists)); -- print $q->submit(-name=>'action', -value=>"[$BUTTON{'delete'}]") if(defined(@lists)); -+ print $q->submit(-name=>'action', -value=>"[$BUTTON{'create'}]"), ' ' if ($opt_c); -+ print $q->submit(-name=>'action', -value=>"[$BUTTON{'edit'}]"), ' ' if(@lists); -+ print $q->submit(-name=>'action', -value=>"[$BUTTON{'delete'}]") if(@lists); - print '
'; - print $q->endform; - } -@@ -332,10 +336,10 @@ - print '
'; - print $q->hidden(-name=>'state', -default=>'edit'); - print $q->hidden(-name=>'list', -default=>$Q::list); -- print $q->scrolling_list(-name=>'delsubscriber', -size=>$scrollsize, -values=>\@subscribers, -labels=>&pretty_names, -multiple=>'true') if defined(@subscribers); -+ print $q->scrolling_list(-name=>'delsubscriber', -size=>$scrollsize, -values=>\@subscribers, -labels=>&pretty_names, -multiple=>'true') if (@subscribers); - print ''; -- print ' ', ($#subscribers + 1), ' ', $LANGUAGE{'subscribers'}, '
' if defined(@subscribers); -- print $q->submit(-name=>'action', -value=>"[$BUTTON{'deleteaddress'}]"), '

' if defined(@subscribers); -+ print ' ', ($#subscribers + 1), ' ', $LANGUAGE{'subscribers'}, '
' if (@subscribers); -+ print $q->submit(-name=>'action', -value=>"[$BUTTON{'deleteaddress'}]"), '

' if (@subscribers); - print $q->textfield(-name=>'addsubscriber', -size=>'40'), ' ', $HELPER{'addaddress'}, '
'; - print $q->filefield(-name=>'addfile', -size=>20, -maxlength=>100), ' ', $HELPER{'addaddressfile'}, '
' if ($FILE_UPLOAD); - print $q->submit(-name=>'action', -value=>"[$BUTTON{'addaddress'}]"), '

'; -@@ -447,7 +451,7 @@ - die "File upload must be of type text/*" unless($q->uploadInfo($q->param('addfile'))->{'Content-Type'} =~ m{^text/}); - - # Handle file uploads of addresses -- my($fh) = $q->upload('addfile'); -+ my($fh) = $q->param('addfile'); - return unless (defined($fh)); - while (<$fh>) { - next if (/^\s*$/ or /^#/); # blank, comments -@@ -563,9 +567,9 @@ - print '

'; - print $q->hidden(-name=>'state', -default=>$part); - print $q->hidden(-name=>'list', -default=>$Q::list), "\n"; -- print $q->scrolling_list(-name=>'delsubscriber', -size=>$scrollsize, -values=>\@subscribers, -multiple=>'true', -labels=>&pretty_names) if defined(@subscribers); -+ print $q->scrolling_list(-name=>'delsubscriber', -size=>$scrollsize, -values=>\@subscribers, -multiple=>'true', -labels=>&pretty_names) if (@subscribers); - print '
'; -- print $q->submit(-name=>'action', -value=>"[$BUTTON{'deleteaddress'}]"), '

' if defined(@subscribers); -+ print $q->submit(-name=>'action', -value=>"[$BUTTON{'deleteaddress'}]"), '

' if (@subscribers); - print $q->textfield(-name=>'addsubscriber', -size=>'40'), ' ', $HELPER{'addaddress'}, '
'; - print $q->filefield(-name=>'addfile', -size=>20, -maxlength=>100), ' ', $HELPER{'addaddressfile'}, '
' if ($FILE_UPLOAD); - print $q->submit(-name=>'action', -value=>"[$BUTTON{'addaddress'}]"), '

'; diff -urN /usr/ports/mail/ezmlm-web/files/patch-ezmlmwebrc /home/sgk/ports/mail/ezmlm-web/files/patch-ezmlmwebrc --- /usr/ports/mail/ezmlm-web/files/patch-ezmlmwebrc Thu Jan 1 03:00:00 1970 +++ /home/sgk/ports/mail/ezmlm-web/files/patch-ezmlmwebrc Fri Aug 30 20:36:45 2002 @@ -0,0 +1,11 @@ +--- ezmlmwebrc.orig Fri Aug 30 20:35:19 2002 ++++ ezmlmwebrc Fri Aug 30 20:36:00 2002 +@@ -254,7 +254,7 @@ + listoptions => 'List Options', + allowedtoedit => 'Users allowed to edit this list', + editconfiguration => 'Edit the List Configuration', +- prefix => 'Subject prefex for outgoing messages', ++ prefix => 'Subject prefix for outgoing messages', + headerremove => 'Headers to strip from all outgoing mail', + headeradd => 'Headers to add to all outgoing mail', + mimeremove => 'Mime types to strip from all outgoing mail', diff -urN /usr/ports/mail/ezmlm-web/pkg-message /home/sgk/ports/mail/ezmlm-web/pkg-message --- /usr/ports/mail/ezmlm-web/pkg-message Tue Nov 28 18:54:23 2000 +++ /home/sgk/ports/mail/ezmlm-web/pkg-message Thu Jan 1 03:00:00 1970 @@ -1,19 +0,0 @@ - -NB!! By default no security is enabled on ezmlm-web. - -The effectively means that at the moment, anyone can go to - http:///cgi-bin/ezmlm-web -and alter any of your primary mailing lists. - -If this is not what you want (and it probably isn't :), you need to -either create a directive in you apache configuration, or -use a .htaccess file, or provide some other means of security. - -Have a look at the README file in %%PREFIX%%/share/ezmlm-web for -more information. There are also some sample files there. - -In order to make ezmlm-web work properly, you will have to create -a configuration file for it in %%EZMLM_DIR%%/etc/ezmlm. -A sample ezmlmwebrc (ezmlmwebrc.sample) file is provided in that -directory. This sample will work `as is', but allows you to customise -ezmlm-web to your liking. At a minimum just cp ezmlmwebrc.sample ezmlmwebrc diff -urN /usr/ports/mail/ezmlm-web/pkg-plist /home/sgk/ports/mail/ezmlm-web/pkg-plist --- /usr/ports/mail/ezmlm-web/pkg-plist Tue Nov 28 18:54:23 2000 +++ /home/sgk/ports/mail/ezmlm-web/pkg-plist Fri Aug 30 20:24:37 2002 @@ -1,9 +1,12 @@ -share/ezmlm-web/CHANGES -share/ezmlm-web/README -share/ezmlm-web/index.c -share/ezmlm-web/htaccess.sample -share/ezmlm-web/webusers.sample -@dirrm share/ezmlm-web -%%EZMLM_DIR%%bin/ezmlm-web.cgi -%%EZMLM_DIR%%etc/ezmlm/ezmlmwebrc.sample -%%CGI_BIN%%ezmlm-web +bin/ezmlm-web.cgi +etc/ezmlm/ezmlmwebrc +%%PORTDOCS%%share/doc/ezmlm-web/CHANGES +%%PORTDOCS%%share/doc/ezmlm-web/README +%%PORTDOCS%%share/doc/ezmlm-web/TODO +%%PORTDOCS%%share/doc/ezmlm-web/UPGRADING +%%PORTDOCS%%@dirrm share/doc/ezmlm-web +share/examples/ezmlm-web/ezmlmwebrc +share/examples/ezmlm-web/htaccess.sample +share/examples/ezmlm-web/index.c +share/examples/ezmlm-web/webusers.sample +@dirrm share/examples/ezmlm-web --- ezmlm-web-2.1_3.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message