Index: head/news/c-nocem/Makefile =================================================================== --- head/news/c-nocem/Makefile (revision 432715) +++ head/news/c-nocem/Makefile (revision 432716) @@ -1,45 +1,47 @@ # $FreeBSD$ PORTNAME= c-nocem PORTVERSION= 3.7 PORTREVISION= 4 CATEGORIES= news security MASTER_SITES= http://sites.inka.de/~bigred/sw/ \ ftp://ftp.dinoex.de/pub/FreeBSD/distfiles/ MAINTAINER= dinoex@FreeBSD.org COMMENT= NoCeM for C News and INN +LICENSE= PD + FETCH_DEPENDS= ${DISTDIR}/c-news/c-news.tar.Z:${CNEWS_PORT}:checksum BUILD_DEPENDS= ${CNEWSWRK}/conf/substitutions:${CNEWS_PORT}:configure BUILD_DEPENDS+= ${LOCALBASE}/lib/libcnews.a:${CNEWS_PORT} \ gpgv:security/gnupg1 USES= perl5 gmake GNU_CONFIGURE= yes CONFIGURE_ARGS+= --with-cnews=${CNEWSWRK} CONFIGURE_ENV+= PERL=${PERL} WRKSRC= ${WRKDIR}/c-nocem PLIST_SUB+= NEWSBIN=${NEWSBIN:S=${PREFIX}/==} PLIST_FILES= %%NEWSBIN%%/fastcancel %%NEWSBIN%%/c-nocem post-patch: ${REINPLACE_CMD} -e 's|@newsbin@|${STAGEDIR}@newsbin@|' \ ${WRKSRC}/Makefile.in pre-install: ${MKDIR} ${STAGEDIR}${NEWSBIN} post-install: ${STRIP_CMD} ${STAGEDIR}/${PREFIX}/libexec/cnews/fastcancel .include # CNEWS_PORT can be set in Makefile.local CNEWS_PORT?= news/cnews # ${.CURDIR}/../.. can be diffrent from ${PORTSDIR} CNEWSWRK!= ${MAKE} -C ${.CURDIR}/../../${CNEWS_PORT} -V WRKSRC NEWSBIN?= ${PREFIX}/libexec/cnews .include Index: head/news/c-nocem/files/patch-c-nocem.in =================================================================== --- head/news/c-nocem/files/patch-c-nocem.in (revision 432715) +++ head/news/c-nocem/files/patch-c-nocem.in (revision 432716) @@ -1,20 +1,20 @@ ---- c-nocem.in.orig 2000-05-23 11:39:01.000000000 +0200 -+++ c-nocem.in 2013-09-23 20:20:58.000000000 +0200 +--- c-nocem.in.orig 2000-05-23 09:39:01 UTC ++++ c-nocem.in @@ -1,4 +1,4 @@ -#!@PERL@ -w +#!@PERL@ # and once again for Emacs: -*-perl-*- # NoCeM in the spool for C News and INN - grand unified program -@@ -30,9 +30,9 @@ +@@ -30,9 +30,9 @@ $tmp="@newstmp@"; # create this director $logfile="@newslogfile@"; $ENV{'PATH'}="@newspath@"; -require "getopts.pl"; +use Getopt::Std qw(getopts); $opt_t=86400; $opt_l=$opt_a=""; -&Getopts("bc:t:nsd:klraz:C"); +&getopts("bc:t:nsd:klraz:C"); $storageapi=0; $opt_c=99999999 if ($opt_C); if ($opt_c) { Index: head/news/c-nocem/files/patch-configure =================================================================== --- head/news/c-nocem/files/patch-configure (revision 432715) +++ head/news/c-nocem/files/patch-configure (revision 432716) @@ -1,13 +1,13 @@ ---- configure.orig Sun Jun 13 18:58:35 1999 -+++ configure Tue Jun 15 08:15:07 1999 -@@ -1271,8 +1271,8 @@ +--- configure.orig 2001-05-22 12:49:44 UTC ++++ configure +@@ -1276,8 +1276,8 @@ if test "X$nsys" = "Xcnews" ; then #define CNEWS 1 EOF - CPPFLAGS="$CPPFLAGS -I$nsrc/libdbz" - LIBS="-L$nsrc -lcnews $LIBS" + CPPFLAGS="$CPPFLAGS -I$prefix/include" + LIBS="-L$prefix/lib -lcnews $LIBS" PROGS="fastcancel" - - newslib=`$AWK '/^'NEWSCTL'[^A-Z_]/ {print $'2'}' $nsrc/conf/substitutions` + echo $ac_n "checking for newslib""... $ac_c" 1>&6 + echo "configure:1284: checking for newslib" >&5 Index: head/news/c-nocem/pkg-descr =================================================================== --- head/news/c-nocem/pkg-descr (revision 432715) +++ head/news/c-nocem/pkg-descr (revision 432716) @@ -1,20 +1,22 @@ c-nocem - NoCeM for C News and INN This is a program for the easy and efficient application of the NoCeM protocol on the news spool. Which means, articles for which a NoCeM with "action=hide" is accepted, will be deleted from your news system as if they had been cancelled. With the installation described below, these will be processed as fast as possible and should work like real cancels. Unlike the standard implementation of NoCeM, this version is optimized for the most common case of "spam cancels". In fact, it can do nothing else. It can not be run by a normal user, it does not need or manipulate state like .newsrc files, it processes only "hide" actions, and that only by actually deleting the articles. c-nocem is designed for easy setup and fast run and needs no maintenance. +The software is in the public domain. + WWW: http://sites.inka.de/~bigred/sw/c-nocem.html