summaryrefslogtreecommitdiff
path: root/www/kannel
diff options
context:
space:
mode:
authorrh <rh>2000-05-30 12:46:19 +0000
committerrh <rh>2000-05-30 12:46:19 +0000
commitee190617b1c784d62dd8a95a5a8171c301dfa4e8 (patch)
tree93d92602e740caa0d3b2104f0d217e8f0ba17720 /www/kannel
parent9a7b71427f44ec2167c98cbadd7250f05bbd29ba (diff)
downloadpkgsrc-ee190617b1c784d62dd8a95a5a8171c301dfa4e8.tar.gz
Initial import of kannel-0.8, an open source WAP and SMS to HTTP gateway.
Diffstat (limited to 'www/kannel')
-rw-r--r--www/kannel/Makefile22
-rw-r--r--www/kannel/files/md53
-rw-r--r--www/kannel/files/patch-sum5
-rw-r--r--www/kannel/patches/patch-aa86
-rw-r--r--www/kannel/patches/patch-ab22
-rw-r--r--www/kannel/patches/patch-ac13
-rw-r--r--www/kannel/pkg/COMMENT1
-rw-r--r--www/kannel/pkg/DESCR9
-rw-r--r--www/kannel/pkg/PLIST9
9 files changed, 170 insertions, 0 deletions
diff --git a/www/kannel/Makefile b/www/kannel/Makefile
new file mode 100644
index 00000000000..58e39d6adba
--- /dev/null
+++ b/www/kannel/Makefile
@@ -0,0 +1,22 @@
+# $NetBSD: Makefile,v 1.1.1.1 2000/05/30 12:46:19 rh Exp $
+#
+
+DISTNAME= gateway-0.8
+PKGNAME= kannel-0.8
+CATEGORIES= FILLTHISINPLEASE
+MASTER_SITES= http://www.kannel.org/download/0.8/
+
+MAINTAINER= rh@netbsd.org
+HOMEPAGE= http://www.kannel.org/
+
+DEPENDS+= libxml>=1.8.7:../../textproc/libxml
+DEPENDS+= pth>=1.3.5:../../devel/pth
+
+USE_PERL5= YES
+USE_GMAKE= YES
+GNU_CONFIGURE= YES
+CONFIGURE_ENV+= CFLAGS="${CFLAGS} -I${PREFIX}/include"
+CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS} -I${PREFIX}/include"
+CONFIGURE_ARGS+=--disable-docs
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/www/kannel/files/md5 b/www/kannel/files/md5
new file mode 100644
index 00000000000..222905dfef8
--- /dev/null
+++ b/www/kannel/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1.1.1 2000/05/30 12:46:19 rh Exp $
+
+MD5 (gateway-0.8.tar.gz) = 107313aa61335d1441d2351806039dec
diff --git a/www/kannel/files/patch-sum b/www/kannel/files/patch-sum
new file mode 100644
index 00000000000..ea3a239e9d5
--- /dev/null
+++ b/www/kannel/files/patch-sum
@@ -0,0 +1,5 @@
+$NetBSD: patch-sum,v 1.1.1.1 2000/05/30 12:46:19 rh Exp $
+
+MD5 (patch-aa) = e7eb881340aa694cd3902a18d3d7c2c9
+MD5 (patch-ab) = b4870273bb49245581f6f7b980c8fe88
+MD5 (patch-ac) = cf28392f1268ea47e0415ce1f98a842f
diff --git a/www/kannel/patches/patch-aa b/www/kannel/patches/patch-aa
new file mode 100644
index 00000000000..6d409f817ba
--- /dev/null
+++ b/www/kannel/patches/patch-aa
@@ -0,0 +1,86 @@
+$NetBSD: patch-aa,v 1.1.1.1 2000/05/30 12:46:19 rh Exp $
+
+--- utils/start-stop-daemon.c.orig Wed Apr 12 19:06:22 2000
++++ utils/start-stop-daemon.c Tue May 30 12:32:29 2000
+@@ -33,8 +33,13 @@
+ #elif defined(__sparc__)
+ #define OSsunos
+ #else
++#include <sys/param.h>
++#if (defined(BSD) && BSD >= 199306)
++#define OSBSD
++#else
+ #error Unknown architecture - cannot build start-stop-daemon
+ #endif
++#endif
+
+ #ifdef HAVE_HURH_H
+ #include <hurd.h>
+@@ -570,6 +575,46 @@
+ #endif /*OSsunos*/
+
+
++#if defined(BSD)
++/*
++pid_is_user, takes the pid and a uid, normally ours, but can be someone
++elses, to allow you to identify the process' owner. returns zero on success,
++and either true or the uid of the owner on failure (this may be undefined,
++or I may be misremembering.
++*/
++static int
++pid_is_user(int pid, int uid)
++{
++ struct stat sb;
++ char buf[32];
++
++ sprintf(buf, "/proc/%d", pid);
++ if (stat(buf, &sb) != 0)
++ return 0; /*I can stat it so it seems to be mine...*/
++ return ((int) sb.st_uid == uid);
++}
++
++/*
++pid_is_cmd, takes a pid, and a string representing the process' (supposed)
++name. Compares the process' supposed name with the name reported by the
++system. Returns zero on failure, and nonzero on success.
++*/
++static int
++pid_is_cmd(int pid, const char *name)
++{
++ char buf[64];
++ FILE *f;
++
++ sprintf(buf, "/proc/%d/status", pid);
++ f = fopen(buf, "r");
++ if (!f)
++ return 0;
++ fread(buf,sizeof(buf),1,f);
++ return (strncmp(buf, name, strlen(name)) == 0 && buf[strlen(name)] == ' ');
++}
++#endif /*OSBSD*/
++
++
+ static void
+ check(int pid)
+ {
+@@ -604,7 +649,7 @@
+
+ /* WTA: this needs to be an autoconf check for /proc/pid existance.
+ */
+-#if defined(OSLinux) || defined (OSsunos)
++#if defined(OSLinux) || defined (OSsunos) || defined(OSBSD)
+ static void
+ do_procinit(void)
+ {
+@@ -822,7 +867,11 @@
+ close(fd);
+ chdir("/");
+ umask(022); /* set a default for dumb programs */
++#ifdef OSBSD
++ setpgid(0, getpid()); /* set the process group */
++#else
+ setpgrp(); /* set the process group */
++#endif
+ fd=open("/dev/null", O_RDWR); /* stdin */
+ dup(fd); /* stdout */
+ dup(fd); /* stderr */
diff --git a/www/kannel/patches/patch-ab b/www/kannel/patches/patch-ab
new file mode 100644
index 00000000000..54f20d0b5a9
--- /dev/null
+++ b/www/kannel/patches/patch-ab
@@ -0,0 +1,22 @@
+$NetBSD: patch-ab,v 1.1.1.1 2000/05/30 12:46:19 rh Exp $
+
+--- Makefile.in.orig Sun Apr 9 19:45:02 2000
++++ Makefile.in Tue May 30 12:49:32 2000
+@@ -90,7 +90,7 @@
+
+ # Set this to something if you want all installed binaries to have a suffix.
+ # Version number if common.
+-suffix = -$(VERSION)
++suffix =
+
+ #
+ # You probably don't need to touch anything below this, if you're just
+@@ -180,7 +180,7 @@
+ install: all
+ $(INSTALL) -d $(bindir)
+ for prog in $(progs); do \
+- $(INSTALL) $$prog $(bindir)/`basename $$prog`$(suffix); \
++ ${BSD_INSTALL_PROGRAM} $$prog $(bindir)/`basename $$prog`${suffix}; \
+ done
+
+ install-docs:
diff --git a/www/kannel/patches/patch-ac b/www/kannel/patches/patch-ac
new file mode 100644
index 00000000000..2542abb321d
--- /dev/null
+++ b/www/kannel/patches/patch-ac
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.1.1.1 2000/05/30 12:46:20 rh Exp $
+
+--- configure.orig Sun Apr 23 22:41:16 2000
++++ configure Tue May 30 12:43:39 2000
+@@ -542,7 +542,7 @@
+
+
+
+-docdir='${prefix}/doc/kannel'
++docdir='${prefix}/share/doc/kannel'
+
+
+ # Extract the first word of "gcc", so it can be a program name with args.
diff --git a/www/kannel/pkg/COMMENT b/www/kannel/pkg/COMMENT
new file mode 100644
index 00000000000..672283da89f
--- /dev/null
+++ b/www/kannel/pkg/COMMENT
@@ -0,0 +1 @@
+open source WAP and SMS gateway
diff --git a/www/kannel/pkg/DESCR b/www/kannel/pkg/DESCR
new file mode 100644
index 00000000000..bce14bb651a
--- /dev/null
+++ b/www/kannel/pkg/DESCR
@@ -0,0 +1,9 @@
+Kannel is an open source WAP gateway. It attempts to provide this
+essential part of the WAP infrastructure freely to everyone so that
+the market potential for WAP services, both from wireless operators
+and specialized service providers, will be realized as efficiently
+as possible.
+
+ Kannel also works as an SMS gateway for GSM networks. Almost all
+GSM phones can send and receive SMS messages, so this is a way to
+serve many more clients than just those using a new WAP phone.
diff --git a/www/kannel/pkg/PLIST b/www/kannel/pkg/PLIST
new file mode 100644
index 00000000000..e7bec5dec9d
--- /dev/null
+++ b/www/kannel/pkg/PLIST
@@ -0,0 +1,9 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2000/05/30 12:46:19 rh Exp $
+bin/bearerbox
+bin/smsbox
+bin/wapbox
+bin/wmlsc
+bin/wmlsdasm
+bin/seewbmp
+bin/run_kannel_box
+bin/start-stop-daemon