Date: Fri, 10 Mar 2000 08:35:12 +0100 (CET) From: dirk.meyer@dinoex.sub.org To: FreeBSD-gnats-submit@freebsd.org Subject: ports/17302: New Port c-nocem Message-ID: <200003100735.IAA61032@home.dinoex.sub.org>
next in thread | raw e-mail | index | archive | help
>Number: 17302 >Category: ports >Synopsis: New Port c-nocem >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Mar 10 09:30:00 PST 2000 >Closed-Date: >Last-Modified: >Originator: Dirk Meyer >Release: FreeBSD 3.4-STABLE i386 >Organization: privat >Environment: FreeBSD 2.2.8, FreeBSD 3.2, FreeBSD 3.3, FreeBSD 3.4 cnews Installed. >Description: C-nocem is a fast filter to remove spam. WWW: http://sites.inka.de/~bigred/ >How-To-Repeat: this is a port that works only for cnews. INN is neither detected or supported here. >Fix: commit this shar archive # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # c-nocem-3.5 # c-nocem-3.5/pkg # c-nocem-3.5/pkg/COMMENT # c-nocem-3.5/pkg/DESCR # c-nocem-3.5/pkg/PLIST # c-nocem-3.5/files # c-nocem-3.5/files/md5 # c-nocem-3.5/Makefile # c-nocem-3.5/patches # c-nocem-3.5/patches/patch-configure # c-nocem-3.5/patches/patch-fastcancel.c # echo c - c-nocem-3.5 mkdir -p c-nocem-3.5 > /dev/null 2>&1 echo c - c-nocem-3.5/pkg mkdir -p c-nocem-3.5/pkg > /dev/null 2>&1 echo x - c-nocem-3.5/pkg/COMMENT sed 's/^X//' >c-nocem-3.5/pkg/COMMENT << 'END-of-c-nocem-3.5/pkg/COMMENT' XNoCeM for C News and INN END-of-c-nocem-3.5/pkg/COMMENT echo x - c-nocem-3.5/pkg/DESCR sed 's/^X//' >c-nocem-3.5/pkg/DESCR << 'END-of-c-nocem-3.5/pkg/DESCR' X X c-nocem - NoCeM for C News and INN X X This is a program for the easy and efficient application of the NoCeM X protocol on the news spool. Which means, articles for which a NoCeM X with "action=hide" is accepted, will be deleted from your news system X as if they had been cancelled. With the installation described below, X these will be processed as fast as possible and should work like real X cancels. X X Unlike the standard implementation of NoCeM, this version is optimized X for the most common case of "spam cancels". In fact, it can do nothing X else. It can not be run by a normal user, it does not need or X manipulate state like .newsrc files, it processes only "hide" actions, X and that only by actually deleting the articles. X X c-nocem is designed for easy setup and fast run and needs no X maintenance. X XWWW: http://sites.inka.de/~bigred/ END-of-c-nocem-3.5/pkg/DESCR echo x - c-nocem-3.5/pkg/PLIST sed 's/^X//' >c-nocem-3.5/pkg/PLIST << 'END-of-c-nocem-3.5/pkg/PLIST' Xlibexec/cnews/fastcancel Xlibexec/cnews/c-nocem END-of-c-nocem-3.5/pkg/PLIST echo c - c-nocem-3.5/files mkdir -p c-nocem-3.5/files > /dev/null 2>&1 echo x - c-nocem-3.5/files/md5 sed 's/^X//' >c-nocem-3.5/files/md5 << 'END-of-c-nocem-3.5/files/md5' XMD5 (c-nocem-3.5.tar.gz) = f979b760a07d8f38b97ebb5d465bc167 END-of-c-nocem-3.5/files/md5 echo x - c-nocem-3.5/Makefile sed 's/^X//' >c-nocem-3.5/Makefile << 'END-of-c-nocem-3.5/Makefile' X# New ports collection makefile for: pgpmoose X# Version required: Dez 1997 X# Date created: 19.May 1999 X# Whom: dirk.meyer@dinoex.sub.org X# X# $FreeBSD: $ X XDISTNAME= c-nocem-3.5 XCATEGORIES= news security XMASTER_SITES= http://sites.inka.de/~bigred/sw/ \ X ftp://ftp.lan-ks.de/pub/FreeBSD/distfiles/ X XMAINTAINER= dirk.meyer@dinoex.sub.org X XWRKSRC= ${WRKDIR}/c-nocem XUSE_GMAKE= yes XGNU_CONFIGURE= yes XCONFIGURE_ARGS+= --prefix=${PREFIX} XCONFIGURE_ARGS+= --with-cnews=${WRKDIRPREFIX}/src/local/cnews-cr.g/work X X.include <bsd.port.mk> END-of-c-nocem-3.5/Makefile echo c - c-nocem-3.5/patches mkdir -p c-nocem-3.5/patches > /dev/null 2>&1 echo x - c-nocem-3.5/patches/patch-configure sed 's/^X//' >c-nocem-3.5/patches/patch-configure << 'END-of-c-nocem-3.5/patches/patch-configure' X--- configure.orig Sun Jun 13 18:58:35 1999 X+++ configure Tue Jun 15 08:15:07 1999 X@@ -1271,8 +1271,8 @@ X #define CNEWS 1 X EOF X X- CPPFLAGS="$CPPFLAGS -I$nsrc/libdbz" X- LIBS="-L$nsrc -lcnews $LIBS" X+ CPPFLAGS="$CPPFLAGS -I$prefix/include" X+ LIBS="-L$prefix/lib -lcnews $LIBS" X PROGS="fastcancel" X X newslib=`$AWK '/^'NEWSCTL'[^A-Z_]/ {print $'2'}' $nsrc/conf/substitutions` END-of-c-nocem-3.5/patches/patch-configure echo x - c-nocem-3.5/patches/patch-fastcancel.c sed 's/^X//' >c-nocem-3.5/patches/patch-fastcancel.c << 'END-of-c-nocem-3.5/patches/patch-fastcancel.c' X--- fastcancel.c.orig Wed Nov 3 00:47:28 1999 X+++ fastcancel.c Fri Mar 10 08:22:55 2000 X@@ -243,6 +243,7 @@ X ++sdela; X } X X+#ifdef INN2 X #ifdef HAVE_DBZFETCH_2 X #define DBZfetch(k,v) dbzfetch(k,v) X #else X@@ -254,6 +255,7 @@ X *value=val; X return TRUE; X } X+#endif X #endif X X /* Process one Message-ID. */ END-of-c-nocem-3.5/patches/patch-fastcancel.c exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200003100735.IAA61032>