From ce1a8b55636fb2fc8980d1cb9364acd2cba55864 Mon Sep 17 00:00:00 2001 From: jakob Date: Wed, 15 Jan 2003 17:24:17 +0000 Subject: [PATCH] SIP Express Router (SER) is free VoIP server based on the session initiation protocol (SIP RFC2543-bis). --- net/ser/Makefile | 41 ++++++++++++++++ net/ser/distinfo | 3 ++ net/ser/patches/patch-Makefile | 20 ++++++++ net/ser/patches/patch-Makefile_defs | 44 +++++++++++++++++ net/ser/patches/patch-modules_jabber_Makefile | 13 +++++ net/ser/patches/patch-modules_mysql_Makefile | 17 +++++++ net/ser/pkg/DESCR | 11 +++++ net/ser/pkg/PLIST | 49 +++++++++++++++++++ 8 files changed, 198 insertions(+) create mode 100644 net/ser/Makefile create mode 100644 net/ser/distinfo create mode 100644 net/ser/patches/patch-Makefile create mode 100644 net/ser/patches/patch-Makefile_defs create mode 100644 net/ser/patches/patch-modules_jabber_Makefile create mode 100644 net/ser/patches/patch-modules_mysql_Makefile create mode 100644 net/ser/pkg/DESCR create mode 100644 net/ser/pkg/PLIST diff --git a/net/ser/Makefile b/net/ser/Makefile new file mode 100644 index 00000000000..548750dec6a --- /dev/null +++ b/net/ser/Makefile @@ -0,0 +1,41 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2003/01/15 17:24:17 jakob Exp $ + +COMMENT= SIP Express Router + +VERSION= 0.8.10 +DISTNAME= ser-${VERSION}_src +PKGNAME= ser-${VERSION} +CATEGORIES= net + +MASTER_SITES+= ftp://ftp.berlios.de/pub/ser/${VERSION}/src/ + +HOMEPAGE= http://www.iptel.org/ser/ + +MAINTAINER= Jakob Schlyter + +# GPL +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +# This port currently only works with archs supporting dynamic loading +ONLY_FOR_ARCHS= alpha i386 m68k powerpc sparc sparc64 + +WRKDIST= ${WRKDIR}/ser-${VERSION} + +USE_GMAKE= Yes + +ALL_TARGET= all ser.cfg + +LIB_DEPENDS= mysqlclient.10:mysql-client-3.23.*:databases/mysql \ + expat.2::textproc/expat + +do-install: + cd ${WRKDIST}; ${MAKE_PROGRAM} PREFIX=${WRKINST}${TRUEPREFIX} install + +post-install: + ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/ser + ${INSTALL_DATA} ${WRKDIST}/ser.cfg ${PREFIX}/share/examples/ser + +.include diff --git a/net/ser/distinfo b/net/ser/distinfo new file mode 100644 index 00000000000..ffb1e1dce9c --- /dev/null +++ b/net/ser/distinfo @@ -0,0 +1,3 @@ +MD5 (ser-0.8.10_src.tar.gz) = a3a06a9bc15f82321a6d9bc31d582c33 +RMD160 (ser-0.8.10_src.tar.gz) = f804e319d719a9e8b4146fc981bd403200b31d93 +SHA1 (ser-0.8.10_src.tar.gz) = d3e88ff5eccf1c77b5b21637dd7c1ad3068ae89d diff --git a/net/ser/patches/patch-Makefile b/net/ser/patches/patch-Makefile new file mode 100644 index 00000000000..d878f48ff99 --- /dev/null +++ b/net/ser/patches/patch-Makefile @@ -0,0 +1,20 @@ +$OpenBSD: patch-Makefile,v 1.1.1.1 2003/01/15 17:24:17 jakob Exp $ +--- Makefile.orig Wed Jan 1 14:25:44 2003 ++++ Makefile Wed Jan 1 14:26:47 2003 +@@ -156,11 +156,12 @@ $(man-prefix)/$(man-dir)/man8: + $(man-prefix)/$(man-dir)/man5: + mkdir -p $(man-prefix)/$(man-dir)/man5 + +-install-cfg: $(cfg-prefix)/$(cfg-dir) ++ser.cfg: + sed -e "s#/usr/lib/ser/modules/#$(modules-target)#g" \ +- < etc/ser.cfg > $(cfg-prefix)/$(cfg-dir)ser.cfg +- chmod 644 $(cfg-prefix)/$(cfg-dir)ser.cfg +-# $(INSTALL-CFG) etc/ser.cfg $(cfg-prefix)/$(cfg-dir) ++ < etc/ser.cfg > ser.cfg ++ ++install-cfg: $(cfg-prefix)/$(cfg-dir) ++ $(INSTALL-CFG) ser.cfg $(cfg-prefix)/$(cfg-dir) + + install-bin: $(bin-prefix)/$(bin-dir) utils/gen_ha1/gen_ha1 + $(INSTALL-BIN) ser $(bin-prefix)/$(bin-dir) diff --git a/net/ser/patches/patch-Makefile_defs b/net/ser/patches/patch-Makefile_defs new file mode 100644 index 00000000000..4cb1c6479f3 --- /dev/null +++ b/net/ser/patches/patch-Makefile_defs @@ -0,0 +1,44 @@ +$OpenBSD: patch-Makefile_defs,v 1.1.1.1 2003/01/15 17:24:17 jakob Exp $ +--- Makefile.defs.orig Tue Nov 12 18:21:28 2002 ++++ Makefile.defs Wed Jan 15 18:13:13 2003 +@@ -25,7 +25,7 @@ prefix = $(PREFIX) + # prefix=/usr/local + basedir = + # install prefixes for various stuff +-cfg-prefix = $(basedir)$(prefix) ++cfg-prefix = + bin-prefix = $(basedir)$(prefix) + modules-prefix = $(basedir)$(prefix) + doc-prefix = $(basedir)$(prefix) +@@ -33,19 +33,19 @@ man-prefix = $(basedir)$(prefix) + ut-prefix = $(basedir)$(prefix) + + # dirs +-cfg-dir = etc/ser/ ++cfg-dir = /etc/ + bin-dir = sbin/ + modules-dir = lib/ser/modules/ + ifeq ($(OS), linux) + doc-dir = share/doc/ser/ + man-dir = share/man/ + else +- doc-dir=doc/ser/ ++ doc-dir=share/doc/ser/ + man-dir=man/ + endif + ut-prefix = bin/ + # target dirs for various stuff +-cfg-target = $(prefix)/$(cfg-dir) ++cfg-target = $(cfg-dir) + modules-target = $(prefix)/$(modules-dir) + + +@@ -58,7 +58,7 @@ INSTALL = install + TAR= tar + endif + +-# INSTALL-CFG = $(INSTALL) -m 644 ++INSTALL-CFG = $(INSTALL) -m 644 + INSTALL-BIN = $(INSTALL) -m 755 + INSTALL-MODULES = $(INSTALL) -m 755 + INSTALL-DOC = $(INSTALL) -m 644 diff --git a/net/ser/patches/patch-modules_jabber_Makefile b/net/ser/patches/patch-modules_jabber_Makefile new file mode 100644 index 00000000000..ec676a240e9 --- /dev/null +++ b/net/ser/patches/patch-modules_jabber_Makefile @@ -0,0 +1,13 @@ +$OpenBSD: patch-modules_jabber_Makefile,v 1.1.1.1 2003/01/15 17:24:17 jakob Exp $ +--- modules/jabber/Makefile.orig Wed Jan 1 14:01:57 2003 ++++ modules/jabber/Makefile Wed Jan 1 14:02:25 2003 +@@ -8,7 +8,7 @@ + auto_gen= + NAME=jabber.so + # expat.h location +-DEFS+=-I/usr/local/include +-LIBS=-L/usr/local/lib -lexpat ++DEFS+=-I${LOCALBASE}/include ++LIBS=-L${LOCALBASE}/lib -lexpat + + include ../../Makefile.modules diff --git a/net/ser/patches/patch-modules_mysql_Makefile b/net/ser/patches/patch-modules_mysql_Makefile new file mode 100644 index 00000000000..49fc6f08c8c --- /dev/null +++ b/net/ser/patches/patch-modules_mysql_Makefile @@ -0,0 +1,17 @@ +$OpenBSD: patch-modules_mysql_Makefile,v 1.1.1.1 2003/01/15 17:24:17 jakob Exp $ +--- modules/mysql/Makefile.orig Wed Jan 1 13:47:47 2003 ++++ modules/mysql/Makefile Wed Jan 1 13:49:01 2003 +@@ -5,11 +5,9 @@ + auto_gen= + NAME=mysql.so + # mysql.h locations (freebsd,openbsd solaris) +-DEFS +=-I/usr/local/include -I/usr/local/mysql/include \ ++DEFS +=-I${LOCALBASE}/include + # libmysqlclient locations on RH/Suse, Solaris /OpenBSD, FreeBSD + # (Debian does the right thing and puts it in /usr/lib) +-LIBS=-L/usr/lib/mysql -L /usr/local/lib -L/usr/local/lib/mysql \ +- -L/usr/local/mysql/lib/mysql/ \ +- -lmysqlclient -lz ++LIBS=-L${LOCALBASE}/lib -lmysqlclient -lz + + include ../../Makefile.modules diff --git a/net/ser/pkg/DESCR b/net/ser/pkg/DESCR new file mode 100644 index 00000000000..0b64c2fb8d6 --- /dev/null +++ b/net/ser/pkg/DESCR @@ -0,0 +1,11 @@ +SIP Express Router (SER) is an industrial-strength, free VoIP server based +on the session initiation protocol (SIP RFC2543-bis). It is engineered to +power IP telephony infrastructures up to large scale. The server keeps +track of users, sets up VoIP sessions, relays instant messages and creates +space for new plug-in applications. Its proven interoperability guarantees +seamless integration with components from other vendors, eliminating the +risk of a single-vendor trap. It has successfully participated in various +interoperability tests in which it worked with the products of other +leading SIP vendors. + +WWW: ${HOMEPAGE} diff --git a/net/ser/pkg/PLIST b/net/ser/pkg/PLIST new file mode 100644 index 00000000000..44c7624a59d --- /dev/null +++ b/net/ser/pkg/PLIST @@ -0,0 +1,49 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2003/01/15 17:24:17 jakob Exp $ +lib/ser/modules/acc.so +lib/ser/modules/auth.so +lib/ser/modules/exec.so +lib/ser/modules/im.so +lib/ser/modules/jabber.so +lib/ser/modules/maxfwd.so +lib/ser/modules/msilo.so +lib/ser/modules/mysql.so +lib/ser/modules/pike.so +lib/ser/modules/print.so +lib/ser/modules/registrar.so +lib/ser/modules/rr.so +lib/ser/modules/sl.so +lib/ser/modules/sms.so +lib/ser/modules/textops.so +lib/ser/modules/tm.so +lib/ser/modules/usrloc.so +man/man5/ser.cfg.5 +man/man8/ser.8 +sbin/gen_ha1 +sbin/ser +sbin/ser_mysql.sh +sbin/serctl +share/doc/ser/AUTHORS +share/doc/ser/INSTALL +share/doc/ser/README +share/doc/ser/README-MODULES +share/doc/ser/README.acc +share/doc/ser/README.auth +share/doc/ser/README.cfg +share/doc/ser/README.exec +share/doc/ser/README.im +share/doc/ser/README.jabber +share/doc/ser/README.maxfwd +share/doc/ser/README.pike +share/doc/ser/README.print +share/doc/ser/README.registrar +share/doc/ser/README.rr +share/doc/ser/README.sl +share/doc/ser/README.sms +share/doc/ser/README.textops +share/doc/ser/README.tm +share/doc/ser/README.usrloc +share/examples/ser/ser.cfg +@dirrm share/examples/ser +@dirrm share/doc/ser +@dirrm lib/ser/modules +@dirrm lib/ser