summaryrefslogtreecommitdiff
path: root/news/newsx
diff options
context:
space:
mode:
authorYen-Ming Lee <leeym@FreeBSD.org>2003-05-18 05:50:16 +0000
committerYen-Ming Lee <leeym@FreeBSD.org>2003-05-18 05:50:16 +0000
commita0cb0b0d0cdf17ae03421bb861cc26e7a5cc2808 (patch)
tree002165ce633c4810c6f1c50ac578efdc1b938442 /news/newsx
parentUpgrading www/tidy-devel to the latest version (diff)
upgrading to 1.6-pre and unbreaking with inn-2.4.0
PR: 52385 Submitted by: Thierry Thomas <thierry@pompo.net>
Notes
Notes: svn path=/head/; revision=81195
Diffstat (limited to 'news/newsx')
-rw-r--r--news/newsx/Makefile17
-rw-r--r--news/newsx/distinfo2
-rw-r--r--news/newsx/files/patch-aclocal.m411
-rw-r--r--news/newsx/files/patch-configure31
-rw-r--r--news/newsx/files/patch-configure.in20
-rw-r--r--news/newsx/files/patch-src_logmsg.c74
-rw-r--r--news/newsx/files/patch-src_putarticle.c14
7 files changed, 54 insertions, 115 deletions
diff --git a/news/newsx/Makefile b/news/newsx/Makefile
index 930d3dcae1c2..0b789bafb670 100644
--- a/news/newsx/Makefile
+++ b/news/newsx/Makefile
@@ -6,10 +6,11 @@
#
PORTNAME= newsx
-PORTVERSION= 1.4.8
+PORTVERSION= 1.6
CATEGORIES= news
-MASTER_SITES= ftp://ftp.kvaleberg.com/pub/
-DISTNAME= ${PORTNAME}-${PORTVERSION:S/.8/pl6/}
+#MASTER_SITES= ftp://ftp.kvaleberg.com/pub/
+MASTER_SITES= http://home.powertech.no/egilkv/
+DISTNAME= ${PORTNAME}-${PORTVERSION:S/$/pre/}
MAINTAINER= thierry@pompo.net
COMMENT= A program to fetch news from and post news to a remote NNTP server
@@ -20,22 +21,17 @@ BUILD_DEPENDS= ${LOCALBASE}/news/lib/libcnews.a:${PORTSDIR}/news/cnews
BUILD_DEPENDS= ${LOCALBASE}/news/lib/libinn.a:${PORTSDIR}/news/inn
.endif
-USE_AUTOMAKE= yes
USE_REINPLACE= yes
-CONFIGURE_ENV= PATH="${PATH}:${LOCALBASE}/news/bin"
.if !defined(WITH_CNEWS)
.if !defined(WITHOUT_INN_2-X)
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/news/include"
-CONFIGURE_ARGS= --with-newslib=${LOCALBASE}/news/lib
.endif
.endif
-HDR_DIR= ${LOCALBASE}/news/include
-
DOCS= AUTHORS COPYING ChangeLog FAQ INSTALL NEWS README TODO
post-patch:
- @${REINPLACE_CMD} -e "s:%%LOCALBASE%%:${LOCALBASE}:" ${WRKSRC}/configure.in
+ @${REINPLACE_CMD} -e "s:%%LOCALBASE%%:${LOCALBASE}:g" ${WRKSRC}/configure
pre-configure:
@${ECHO} "*********************************************************"
@@ -45,6 +41,9 @@ pre-configure:
@${ECHO} "again."
@${ECHO} "*********************************************************"
+pre-install:
+ @${STRIP_CMD} ${WRKSRC}/src/newsx
+
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
diff --git a/news/newsx/distinfo b/news/newsx/distinfo
index 3492cb847368..9d5201c36b61 100644
--- a/news/newsx/distinfo
+++ b/news/newsx/distinfo
@@ -1 +1 @@
-MD5 (newsx-1.4pl6.tar.gz) = bbd6fcd33cdc9469b81f1e168fb2478c
+MD5 (newsx-1.6pre.tar.gz) = f22bc3e86bf1cc6f4c1a8368a477df9d
diff --git a/news/newsx/files/patch-aclocal.m4 b/news/newsx/files/patch-aclocal.m4
deleted file mode 100644
index 5ff957faf21e..000000000000
--- a/news/newsx/files/patch-aclocal.m4
+++ /dev/null
@@ -1,11 +0,0 @@
---- aclocal.m4.orig Tue Jan 29 21:32:47 2002
-+++ aclocal.m4 Sun Jul 7 18:21:47 2002
-@@ -39,7 +39,7 @@
- AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
- AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
- AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
--AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
-+AM_MISSING_PROG(AUTOHEADER, autoheader213, $missing_dir)
- AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
- AC_REQUIRE([AC_PROG_MAKE_SET])])
-
diff --git a/news/newsx/files/patch-configure b/news/newsx/files/patch-configure
new file mode 100644
index 000000000000..f3a6207ea0f1
--- /dev/null
+++ b/news/newsx/files/patch-configure
@@ -0,0 +1,31 @@
+--- configure.orig Wed Jan 22 09:15:31 2003
++++ configure Sat May 17 23:22:41 2003
+@@ -253,7 +253,7 @@
+ #
+ # Initializations.
+ #
+-ac_default_prefix=/usr/local
++ac_default_prefix=%%LOCALBASE%%
+ ac_config_libobj_dir=.
+ cross_compiling=no
+ subdirs=
+@@ -1710,15 +1710,15 @@
+
+
+ VISIT="/usr/lib/news /var/news/etc /usr/spool/news /usr/share/news \
+- /var/db/news /usr/local/news/control /usr/local/news /local/news /etc/news \
+- /usr/local/news/bin/control /usr/local/lib/news /news /usr/local/inn \
++ /var/db/news %%LOCALBASE%%/news/control %%LOCALBASE%%/news /local/news /etc/news \
++ %%LOCALBASE%%/news/bin/control %%LOCALBASE%%/lib/news /news %%LOCALBASE%%/inn \
+ /var/lib/news /usr/lib /var/spool/news"
+
+ NEWSUMASK=002
+ INN_EXTENDEDDBZ=0
+
+-RNEWS_PATH=/usr/bin/rnews
+-INEWS_PATH=/usr/bin/inews
++RNEWS_PATH=%%LOCALBASE%%/news/bin/rnews
++INEWS_PATH=%%LOCALBASE%%/news/bin/inews
+
+
+ # Check whether --with-newshome or --without-newshome was given.
diff --git a/news/newsx/files/patch-configure.in b/news/newsx/files/patch-configure.in
deleted file mode 100644
index 9761110db814..000000000000
--- a/news/newsx/files/patch-configure.in
+++ /dev/null
@@ -1,20 +0,0 @@
---- configure.in.orig Tue Jan 29 20:15:19 2002
-+++ configure.in Mon Jul 15 21:46:55 2002
-@@ -167,7 +167,7 @@
- dnl
- AC_INIT(FAQ)
-
--AM_INIT_AUTOMAKE(newsx, 1.4pl6)
-+AM_INIT_AUTOMAKE(newsx, 1.4pl8)
- AM_CONFIG_HEADER(config.h)
- dnl Only most recent year required:
- COPYRIGHT="Copyright 2002 Egil Kvaleberg <egil@kvaleberg.no>"
-@@ -189,7 +189,7 @@
- dnl Default list of locations to visit in search of the
- dnl news configuration file
- dnl
--VISIT="/usr/lib/news /var/news/etc /usr/spool/news /usr/share/news \
-+VISIT="%%LOCALBASE%%/news/lib /usr/lib/news /var/news/etc /usr/spool/news /usr/share/news \
- /var/db/news /usr/local/news/control /usr/local/news /local/news /etc/news \
- /usr/local/news/bin/control /usr/local/lib/news /news /usr/local/inn \
- /var/lib/news /usr/lib"
diff --git a/news/newsx/files/patch-src_logmsg.c b/news/newsx/files/patch-src_logmsg.c
deleted file mode 100644
index d230610b5b0e..000000000000
--- a/news/newsx/files/patch-src_logmsg.c
+++ /dev/null
@@ -1,74 +0,0 @@
---- src/logmsg.c.orig Wed Feb 14 07:55:40 2001
-+++ src/logmsg.c Mon Jul 15 21:38:30 2002
-@@ -1,4 +1,4 @@
--/* VER 079 TAB P $Id: logmsg.c,v 1.10.2.1 2001/02/14 06:55:40 egil Exp $
-+/* VER 080 TAB P $Id: logmsg.c,v 1.10.2.1 2001/02/14 06:55:40 egil Exp $
- *
- * handle error messages and such...
- *
-@@ -60,9 +60,9 @@
- /*
- * try to make a surrogate
- * we assume that on those architectures where this trick
-- * doesn't work there we will surely have stdarg.h or varargs.h
-+ * doesn't work there we will surely be stdarg.h or varargs.h
- */
--#define vsprintf(buf, fmt, ap) sprintf(buf, fmt, arg1, arg2, arg3, arg4)
-+#define vsnprintf(buf,siz,fmt,ap) snprintf(buf,siz,fmt, arg1,arg2,arg3,arg4)
- #define vfprintf(file, fmt, ap) fprintf(file, fmt, arg1, arg2, arg3, arg4)
- #endif
-
-@@ -156,7 +156,7 @@
- #endif
- {
- int e;
-- char buf[BUFSIZ]; /* BUG: do we risk overwriting it? */
-+ char buf[BUFSIZ];
-
- #if HAVE_VPRINTF
- va_list ap;
-@@ -176,34 +176,33 @@
- case L_ERRno:
- case L_ERR:
- e = errno;
-- vsprintf(buf, fmt, ap);
-- if (type == L_ERRno) {
-- sprintf(buf + strlen (buf), ": %s", str_error(e));
-- }
-- strcat(buf, "\n");
-+ vsnprintf(buf, sizeof(buf), fmt, ap);
- #if HAVE_SYSLOG_H
- if (!debug_opt) {
-- syslog(LOG_ERR, buf);
-+ syslog(LOG_ERR, "%s%s%s\n", buf,
-+ ((type==L_ERRno) ? ": ":""),
-+ ((type==L_ERRno) ? str_error(e):""));
- } else
- #endif
- {
- clean_line();
-- fprintf(stderr, "%s: %s", pname, buf);
-+ fprintf(stderr, "%s: %s%s%s\n", pname, buf,
-+ ((type==L_ERRno) ? ": ":""),
-+ ((type==L_ERRno) ? str_error(e):""));
- fflush(stderr);
- }
- break;
-
- case L_INFO:
-- vsprintf(buf, fmt, ap);
-- strcat(buf, "\n");
-+ vsnprintf(buf, sizeof(buf), fmt, ap);
- #if HAVE_SYSLOG_H
- if (!debug_opt) {
-- syslog(LOG_INFO, buf);
-+ syslog(LOG_INFO, "%s\n", buf);
- } else
- #endif
- {
- clean_line();
-- fprintf(stderr, "%s", buf);
-+ fprintf(stderr, "%s\n", buf);
- fflush(stderr);
- }
- break;
diff --git a/news/newsx/files/patch-src_putarticle.c b/news/newsx/files/patch-src_putarticle.c
new file mode 100644
index 000000000000..70f34aab44f4
--- /dev/null
+++ b/news/newsx/files/patch-src_putarticle.c
@@ -0,0 +1,14 @@
+--- src/putarticle.c.orig Wed Jan 22 08:30:59 2003
++++ src/putarticle.c Sat May 17 21:43:03 2003
+@@ -128,6 +128,11 @@
+ #define MAILFOLDER_TAG "From "
+ #define MAILFOLDER_TAG_LEN 5
+
++/*
++ * fix for inn-2.4.0 (it has been removed from inn/config.h)
++ */
++typedef int BOOL;
++
+ /* for log etc. */
+ static char msgid[NNTP_STRLEN];
+ static char msgsender[NNTP_STRLEN];