Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Jan 2003 05:31:30 +0900
From:      KATO Tsuguru <tkato@prontomail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/47332: Update port: www/kannel to 1.2.1
Message-ID:  <20030122053130.181cbae2.tkato@prontomail.com>

next in thread | raw e-mail | index | archive | help

>Number:         47332
>Category:       ports
>Synopsis:       Update port: www/kannel to 1.2.1
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 21 12:40:10 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 4.7-RELEASE-p2 i386
>Organization:
>Environment:
>Description:
- Update to version 1.2.1

Remove file:
files/patch-aa
files/patch-ac
files/patch-ag

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/www/kannel/Makefile www/kannel/Makefile
--- /usr/ports/www/kannel/Makefile	Mon Jan  6 16:08:56 2003
+++ www/kannel/Makefile	Sun Jan 19 03:48:57 2003
@@ -5,37 +5,38 @@
 # $FreeBSD: ports/www/kannel/Makefile,v 1.14 2003/01/02 18:18:45 dinoex Exp $
 
 PORTNAME=	kannel
-PORTVERSION=	1.0.3
+PORTVERSION=	1.2.1
 CATEGORIES=	www
-MASTER_SITES=	http://www.kannel.3glab.org/download/${PORTVERSION}/
+MASTER_SITES=	http://www.kannel.3glab.org/download/%SUBDIR%/
+MASTER_SITE_SUBDIR=	${PORTVERSION}
 DISTNAME=	gateway-${PORTVERSION}
 
 MAINTAINER=	ports@FreeBSD.org
 
-LIB_DEPENDS=	xml2:${PORTSDIR}/textproc/libxml2
+LIB_DEPENDS=	xml2.5:${PORTSDIR}/textproc/libxml2
 
-USE_AUTOCONF=	yes
+USE_REINPLACE=	yes
 USE_GMAKE=	yes
-WRKSRC=		${WRKDIR}/${DISTNAME}/
-CFLAGS+=	${PTHREAD_LIBS}
-CONFIGURE_ARGS+=	--with-malloc=native
-
-do-install:
-.if !defined(NOPORTDOCS)
-	@cd ${WRKSRC} && make install-docs
-.endif
-	@cd ${WRKSRC} && make install
-	${INSTALL_DATA} ${WRKSRC}/gw/wapkannel.conf ${PREFIX}/etc/
-	${INSTALL_DATA} ${WRKSRC}/gw/smskannel.conf ${PREFIX}/etc/
+GNU_CONFIGURE=	yes
+CONFIGURE_ENV=	CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
+CONFIGURE_ARGS=	--with-malloc=native --enable-start-stop-daemon=no
+
+MAN1=		seewbmp.1 wmlsc.1 wmlsdasm.1
+MAN8=		kannel.8 run_kannel_box.8
+
+post-patch:
+	@${REINPLACE_CMD} -e \
+		's|-lc_r|${PTHREAD_LIBS:S/"//g}|g' ${WRKSRC}/configure
 
-.if !defined(NOPORTDOCS)
 post-install:
-	@cd ${WRKSRC}/doc && \
-		for a in `/usr/bin/find . -type f | ${SED} -e 's:^\./::g'` ; \
-			do ${ECHO_CMD} share/doc/kannel/$$a >> ${TMPPLIST} ; done
-	@${ECHO_CMD} "@dirrm share/doc/kannel/arch" >> ${TMPPLIST}
-	@${ECHO_CMD} "@dirrm share/doc/kannel/userguide" >> ${TMPPLIST}
-	@${ECHO_CMD} "@dirrm share/doc/kannel" >> ${TMPPLIST}
-.endif
+.for file in gw/wapkannel.conf gw/smskannel.conf
+	${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/etc
+.endfor
+.for file in seewbmp wmlsc wmlsdasm
+	@${STRIP_CMD} ${PREFIX}/bin/${file}
+.endfor
+.for file in bearerbox run_kannel_box smsbox wapbox
+	@${STRIP_CMD} ${PREFIX}/sbin/${file}
+.endfor
 
 .include <bsd.port.mk>
diff -urN /usr/ports/www/kannel/distinfo www/kannel/distinfo
--- /usr/ports/www/kannel/distinfo	Wed Mar 28 22:09:06 2001
+++ www/kannel/distinfo	Sun Jan 19 02:43:13 2003
@@ -1 +1 @@
-MD5 (gateway-1.0.3.tar.gz) = 04f12df08c5960c446562ef5d7f579f5
+MD5 (gateway-1.2.1.tar.gz) = 52e187024cb371bb0c662ede8844be00
diff -urN /usr/ports/www/kannel/files/patch-aa www/kannel/files/patch-aa
--- /usr/ports/www/kannel/files/patch-aa	Wed Mar 28 22:09:09 2001
+++ www/kannel/files/patch-aa	Thu Jan  1 09:00:00 1970
@@ -1,22 +0,0 @@
---- configure.in.orig	Tue Mar 27 18:23:16 2001
-+++ configure.in	Wed Mar 28 09:23:20 2001
-@@ -15,7 +15,7 @@
- dnl Target installation directory for documentation
- 
- AC_SUBST(docdir)
--docdir='${prefix}/doc/kannel'
-+docdir='${prefix}/share/doc/kannel'
- 
- dnl Checks for programs.
- 
-@@ -25,10 +25,6 @@
- AC_PROG_YACC
- AC_PROG_LEX
- AC_PATH_PROG(PERL, perl)
--
--AC_CHECK_FILE(/sbin/start-stop-daemon, , 
--		STARTSTOPDAEMONSRC="utils/start-stop-daemon.c")
--AC_SUBST(STARTSTOPDAEMONSRC)
- 
- dnl Checks for libraries.
- 
diff -urN /usr/ports/www/kannel/files/patch-ac www/kannel/files/patch-ac
--- /usr/ports/www/kannel/files/patch-ac	Mon Feb 26 13:45:29 2001
+++ www/kannel/files/patch-ac	Thu Jan  1 09:00:00 1970
@@ -1,58 +0,0 @@
---- Makefile.in.orig	Tue Feb 13 14:12:02 2001
-+++ Makefile.in	Tue Feb 13 21:09:12 2001
-@@ -72,7 +72,7 @@
- LIBSRCS=$(LIBOBJS:.o=.c)
- 
- LIBS=@LIBS@
--CFLAGS=-D_REENTRANT=1 -I. @CFLAGS@
-+CFLAGS=-D_REENTRANT=1 -I. @CFLAGS@ -I@prefix@/include
- LDFLAGS=@LDFLAGS@
- 
- MKDEPEND=$(CC) $(CFLAGS) -MM
-@@ -87,7 +87,7 @@
- 
- # Set this to something if you want all installed binaries to have a suffix.
- # Version number is common.
--suffix = -$(VERSION)
-+# suffix = -$(VERSION)
- 
- #
- # You probably don't need to touch anything below this, if you're just
-@@ -104,7 +104,7 @@
- 	wmlscript/wmlsdasm.c \
- 	utils/seewbmp.c \
- 	utils/run_kannel_box.c \
--	$(STARTSTOPDAEMONSRC)
-+
- progobjs = $(progsrcs:.c=.o)
- progs = $(progsrcs:.c=)
- 
-@@ -137,6 +137,8 @@
- docs = $(docsrcs:.xml=.html) $(docsrcs:.xml=.ps)
- DOCSTARGET=@DOCSTARGET@
- 
-+alldocs = doc/ $(shell ls [A-Z]*) 
-+
- figsrcs = $(shell echo doc/*/*.fig)
- figs = $(figsrcs:.fig=.png)  $(figsrcs:.fig=.ps)
- 
-@@ -182,7 +184,9 @@
- check: all
- 	utils/run-checks $(checks)
- 
--install: all
-+install: install-main install-docs
-+
-+install-main: all
- 	$(INSTALL) -d $(bindir)
- 	for prog in $(progs); do \
- 		$(INSTALL) $$prog $(bindir)/`basename $$prog`$(suffix); \
-@@ -190,7 +194,7 @@
- 
- install-docs:
- 	$(INSTALL) -d $(docdir)
--	cp -r $(docs) $(docsrcs) $(figs) $(figsrcs) $(docdir)
-+	cp -r $(alldocs) $(docdir)
- 
- clean:
- 	rm -f core $(progs) $(testprogs) $(checkprogs) $(objs) $(docs) *.a
diff -urN /usr/ports/www/kannel/files/patch-af www/kannel/files/patch-af
--- /usr/ports/www/kannel/files/patch-af	Thu Jul 20 16:32:29 2000
+++ www/kannel/files/patch-af	Sun Jan 19 03:05:48 2003
@@ -1,59 +1,45 @@
-*** gwlib/gwthread-pthread.c.orig	Tue Jul 18 15:08:24 2000
---- gwlib/gwthread-pthread.c	Wed Jul 19 13:23:39 2000
-***************
-*** 58,63 ****
---- 58,68 ----
-  pthread_key_t tsd_key;
-  
-  pthread_mutex_t threadtable_lock;
-+ /*
-+  * Thread creation parameters.
-+  */
-+ static pthread_attr_t	thread_attr;
-+ #define MIN_THREAD_STACK_SIZE	(256 * 1024)
-  
-  static void lock(void) {
-  	int ret;
-***************
-*** 172,177 ****
---- 177,183 ----
-  void gwthread_init(void) {
-  	int ret;
-  	int i;
-+ 	int stack_size;
-  
-  	pthread_mutex_init(&threadtable_lock, NULL);
-  
-***************
-*** 184,189 ****
---- 190,202 ----
-  		threadtable[i] = NULL;
-  	}
-  	active_threads = 0;
-+ /*
-+  * Make sure that thread stack is large enough.
-+  */
-+ 	pthread_attr_init(&thread_attr);
-+ 	pthread_attr_getstacksize(&thread_attr, &stack_size);
-+ 	if (stack_size < MIN_THREAD_STACK_SIZE)
-+ 		pthread_attr_setstacksize(&thread_attr, MIN_THREAD_STACK_SIZE);
-  
-  	create_threadinfo_main();
-  }
-***************
-*** 285,291 ****
-  		return -1;
-  	}
-  
-! 	ret = pthread_create(&id, NULL, &new_thread, p);
-  	if (ret != 0) {
-  		unlock();
-  		error(ret, "Could not create new thread.");
---- 298,304 ----
-  		return -1;
-  	}
-  
-! 	ret = pthread_create(&id, &thread_attr, &new_thread, p);
-  	if (ret != 0) {
-  		unlock();
-  		error(ret, "Could not create new thread.");
+--- gwlib/gwthread-pthread.c.orig	Wed Sep  4 18:11:06 2002
++++ gwlib/gwthread-pthread.c	Sun Jan 19 03:05:30 2003
+@@ -68,6 +68,11 @@
+ pthread_key_t tsd_key;
+ 
+ pthread_mutex_t threadtable_lock;
++/*
++ * Thread creation parameters.
++ */
++static pthread_attr_t thread_attr;
++#define MIN_THREAD_STACK_SIZE (256 * 1024)
+ 
+ static void lock(void)
+ {
+@@ -205,6 +210,7 @@
+ {
+     int ret;
+     int i;
++    int stack_size;
+ 
+     pthread_mutex_init(&threadtable_lock, NULL);
+ 
+@@ -217,6 +223,13 @@
+         threadtable[i] = NULL;
+     }
+     active_threads = 0;
++/*
++ * Make sure that thread stack is large enough.
++ */
++    pthread_attr_init(&thread_attr);
++    pthread_attr_getstacksize(&thread_attr, &stack_size);
++    if (stack_size < MIN_THREAD_STACK_SIZE)
++            pthread_attr_setstacksize(&thread_attr, MIN_THREAD_STACK_SIZE);
+ 
+     create_threadinfo_main();
+ }
+@@ -380,7 +393,7 @@
+         return -1;
+     }
+ 
+-    ret = pthread_create(&id, NULL, &new_thread, p);
++    ret = pthread_create(&id, &thread_attr, &new_thread, p);
+     if (ret != 0) {
+         unlock();
+         error(ret, "Could not create new thread.");
diff -urN /usr/ports/www/kannel/files/patch-ag www/kannel/files/patch-ag
--- /usr/ports/www/kannel/files/patch-ag	Sun Mar 31 15:08:08 2002
+++ www/kannel/files/patch-ag	Thu Jan  1 09:00:00 1970
@@ -1,17 +0,0 @@
---- gw/wml_compiler.c.orig	Sat Mar 30 22:08:15 2002
-+++ gw/wml_compiler.c	Sat Mar 30 22:08:44 2002
-@@ -21,10 +21,10 @@
- #include <string.h>
- #include <math.h>
- 
--#include <xmlmemory.h>
--#include <parser.h>
--#include <tree.h>
--#include <debugXML.h>
-+#include <libxml/xmlmemory.h>
-+#include <libxml/parser.h>
-+#include <libxml/tree.h>
-+#include <libxml/debugXML.h>
- 
- #include "gwlib/gwlib.h"
- #include "wml_compiler.h"
diff -urN /usr/ports/www/kannel/pkg-plist www/kannel/pkg-plist
--- /usr/ports/www/kannel/pkg-plist	Fri Jul 21 15:42:46 2000
+++ www/kannel/pkg-plist	Sun Jan 19 03:18:36 2003
@@ -1,9 +1,9 @@
-bin/bearerbox
-bin/smsbox
-bin/wapbox
+bin/seewbmp
 bin/wmlsc
 bin/wmlsdasm
-bin/seewbmp
-bin/run_kannel_box
-etc/wapkannel.conf
 etc/smskannel.conf
+etc/wapkannel.conf
+sbin/bearerbox
+sbin/run_kannel_box
+sbin/smsbox
+sbin/wapbox
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030122053130.181cbae2.tkato>