From dm@home.dinoex.sub.org  Fri Mar 10 09:16:11 2000
Return-Path: <dm@home.dinoex.sub.org>
Received: from mail.dinoex.sub.org (mail.dinoex.sub.de [195.243.29.14])
	by hub.freebsd.org (Postfix) with ESMTP id 9891937BBE0
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 10 Mar 2000 09:16:08 -0800 (PST)
	(envelope-from dm@home.dinoex.sub.org)
Received: (from uucp@localhost)
	by mail.dinoex.sub.org (8.9.3/8.9.3) with UUCP id SAA11953
	for FreeBSD-gnats-submit@freebsd.org; Fri, 10 Mar 2000 18:16:05 +0100 (CET)
Received: (from uucp@localhost)
	by net2.dinoex.sub.org (8.9.3/8.9.3) with UUCP id JAA01747
	for FreeBSD-gnats-submit@freebsd.org; Fri, 10 Mar 2000 09:34:34 +0100 (CET)
Received: (from dm@localhost)
	by home.dinoex.sub.org (8.9.3/8.9.3) id IAA61032;
	Fri, 10 Mar 2000 08:35:12 +0100 (CET)
Message-Id: <200003100735.IAA61032@home.dinoex.sub.org>
Date: Fri, 10 Mar 2000 08:35:12 +0100 (CET)
From: dirk.meyer@dinoex.sub.org
Sender: dm@home.dinoex.sub.org
Reply-To: dirk.meyer@dinoex.sub.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: New Port c-nocem
X-Send-Pr-Version: 3.2

>Number:         17302
>Category:       ports
>Synopsis:       new port: news/c-nocem
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    dinoex
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 10 09:30:00 PST 2000
>Closed-Date:    Wed Aug 2 04:14:18 PDT 2000
>Last-Modified:  Tue Aug 20 23:30:24 PDT 2002
>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:

From: dirk.meyer@dinoex.sub.org (Dirk Meyer)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/17302: New Port c-nocem
Date: Sat, 13 May 2000 10:52:29 +0200

 Due to changes in the ports,
 her is an updated shar archive
 
 kind regards Dirk
 
 - Dirk Meyer, Im Grund 4, 34317 Habichtswald, Germany
 - Tel. +49-5606-6512
 
 # 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
 #	c-nocem-3.5/patches/patch-c-nocem.in
 #
 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:	c-nocem
 X# Date created:		19.May 1999
 X# Whom:			dirk.meyer@dinoex.sub.org
 X#
 X# $FreeBSD: $
 X
 XPORTNAME=	c-nocem
 XPORTVERSION=	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
 echo x - c-nocem-3.5/patches/patch-c-nocem.in
 sed 's/^X//' >c-nocem-3.5/patches/patch-c-nocem.in << 'END-of-c-nocem-3.5/patches/patch-c-nocem.in'
 X--- c-nocem.in.orig	Wed Nov  3 00:47:28 1999
 X+++ c-nocem.in	Sat Mar 11 12:07:58 2000
 X@@ -1,4 +1,4 @@
 X-#!@PERL@ -w
 X+#!@PERL@
 X # and once again for Emacs: -*-perl-*-
 X 
 X # NoCeM in the spool for C News and INN - grand unified program
 END-of-c-nocem-3.5/patches/patch-c-nocem.in
 exit
 
 
State-Changed-From-To: open->closed 
State-Changed-By: nbm 
State-Changed-When: Wed Aug 2 04:14:18 PDT 2000 
State-Changed-Why:  
Added, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=17302 
>Unformatted:
