summaryrefslogtreecommitdiff
path: root/net/openser
diff options
context:
space:
mode:
Diffstat (limited to 'net/openser')
-rw-r--r--net/openser/Makefile174
-rw-r--r--net/openser/distinfo2
-rw-r--r--net/openser/files/patch-Makefile76
-rw-r--r--net/openser/files/patch-Makefile.defs43
-rw-r--r--net/openser/files/pkg-deinstall.in24
-rw-r--r--net/openser/files/pkg-install.in12
-rw-r--r--net/openser/pkg-descr13
7 files changed, 0 insertions, 344 deletions
diff --git a/net/openser/Makefile b/net/openser/Makefile
deleted file mode 100644
index 85ccbd348f4b..000000000000
--- a/net/openser/Makefile
+++ /dev/null
@@ -1,174 +0,0 @@
-# Created by: jesusr
-# $FreeBSD$
-
-PORTNAME= openser
-PORTVERSION= 1.2.3
-PORTREVISION= 3
-CATEGORIES= net
-MASTER_SITES= http://openser.org/pub/openser/${PORTVERSION}/src/
-DISTNAME= ${PORTNAME}-${PORTVERSION}-tls_src
-
-MAINTAINER= ports@FreeBSD.org
-COMMENT= Fast and configurable SIP proxy with TLS support
-
-LIB_DEPENDS= libradiusclient-ng.so:${PORTSDIR}/net/radiusclient
-
-WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}-tls
-
-USES= gmake
-USE_GNOME= libxml2
-MAKE_ENV= CC_EXTRA_OPTS="${CFLAGS}" \
- PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
- PTHREAD_LIBS="${PTHREAD_LIBS}"
-
-PLIST_FILES= sbin/openser sbin/openserctl sbin/openserunix \
- lib/openser/openserctl/openserctl.base lib/openser/openserctl/openserctl.ctlbase \
- lib/openser/openserctl/openserctl.fifo lib/openser/openserctl/openserctl.sqlbase \
- lib/openser/openserctl/openserctl.unixsock \
- etc/openser/openserctlrc
-
-PLIST_DIRS= lib/openser/modules lib/openser/openserctl lib/openser
-
-MODULES= acc alias_db auth auth_db avpops cpl-c dbtext \
- dialog dispatcher diversion domain domainpolicy enum exec flatstore \
- gflags group imc lcr mangler maxfwd mediaproxy mi_fifo msilo \
- nathelper options pa path pdt permissions pike \
- registrar rr siptrace sl sms speeddial sst statistics \
- textops tm uac uac_redirect uri \
- uri_db usrloc xlog
-
-RC_FILES= acc/radiusclient.conf \
- acc/servers \
- dictionary.radius \
- openser.cfg
-RC_DIRS= acc
-
-ONLY_FOR_ARCHS= i386
-
-MAN5= openser.cfg.5
-MAN8= openser.8 \
- openserctl.8 \
- openserunix.8
-
-PORTDOCS= *
-
-SUB_FILES= pkg-install pkg-deinstall
-SUB_LIST= RC_DIRS="${RC_DIRS}" RC_FILES="${RC_FILES}"
-
-OPTIONS_DEFINE= MYSQL PGSQL UNIXODBC TLS SNMPSTATS AUTHRADIUS
-OPTIONS_DEFAULT= MYSQL
-SNMPSTATS_DESC= SNMPStats support
-AUTHRADIUS_DESC= auth_radius module
-
-NO_STAGE= yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MMYSQL}
-USE_MYSQL= yes
-MODULES+= mysql
-PLIST_FILES+= lib/openser/openserctl/openserctl.mysql sbin/openser_mysql.sh
-.else
-MAKE_ENV+= MYSQL=mysql
-.endif
-
-.if ${PORT_OPTIONS:MPGSQL}
-USE_PGSQL= yes
-MODULES+= postgres
-PLIST_FILES+= lib/openser/openserctl/openserctl.pgsql sbin/openser_postgresql.sh
-.else
-MAKE_ENV+= POSTGRESQL=postgres
-.endif
-
-.if ${PORT_OPTIONS:MUNIXODBC}
-LIB_DEPENDS+= libodbc.so:${PORTSDIR}/databases/unixODBC
-MODULES+= unixodbc
-.else
-MAKE_ENV+= UNIXODBC=unixodbc
-.endif
-
-.if ${PORT_OPTIONS:MTLS}
-MODULES+= tlsops
-.include "${PORTSDIR}/Mk/bsd.openssl.mk"
-TLS_RC_FILES= tls/rootCA/cacert.pem \
- tls/rootCA/certs/01.pem \
- tls/rootCA/index.txt \
- tls/rootCA/private/cakey.pem \
- tls/rootCA/serial \
- tls/user/user-calist.pem \
- tls/user/user-cert.pem \
- tls/user/user-cert_req.pem \
- tls/user/user-privkey.pem \
- tls/README \
- tls/ca.conf \
- tls/request.conf \
- tls/user.conf
-RC_FILES+= ${TLS_RC_FILES}
-TLS_RC_DIRS= tls/user \
- tls/rootCA/certs \
- tls/rootCA/private \
- tls/rootCA \
- tls
-RC_DIRS+= ${TLS_RC_DIRS}
-.else
-MAKE_ENV+= TLSOPS=tlsops
-MAKE_ARGS+= TLS=""
-.endif
-
-.if ${PORT_OPTIONS:MSNMPSTATS}
-RUN_DEPENDS+= snmpcheck:${PORTSDIR}/net-mgmt/net-snmp
-MODULES+= snmpstats
-.else
-MAKE_ENV+= SNMPSTATS=snmpstats
-.endif
-
-.if ${PORT_OPTIONS:MAUTHRADIUS}
-MODULES+= auth_radius
-PLIST_FILES+= lib/openser/modules/auth_radius.so
-.else
-MAKE_ENV+= AUTHRADIUS=auth_radius
-.endif
-
-PLIST_FILES+= ${MODULES:S|^|lib/openser/modules/|:S|$|.so|} \
- ${RC_FILES:S|^|etc/openser/|:S|$|.default|}
-
-post-patch:
-.if ! ${PORT_OPTIONS:MDOCS}
- @${REINPLACE_CMD} -e 's|install-doc install-man|install-man|' \
- ${WRKSRC}/Makefile
-.endif
- @${REINPLACE_CMD} -e 's|-g -O9 ||' -e 's|-O9 ||' ${WRKSRC}/Makefile.defs
- @${REINPLACE_CMD} -e 's|/usr/local/etc/ser|${PREFIX}/etc/openser|' \
- ${WRKSRC}/scripts/sc.dbtext \
- ${WRKSRC}/modules/dispatcher/README
- @${REINPLACE_CMD} -e 's|/etc/openser|${PREFIX}/etc/openser|' \
- ${WRKSRC}/modules/mediaproxy/README \
- ${WRKSRC}/modules/cpl-c/README \
- ${WRKSRC}/INSTALL
- @${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|' \
- ${WRKSRC}/etc/openser.cfg \
- ${WRKSRC}/scripts/mysqldb.sh \
- ${WRKSRC}/scripts/postgresqldb.sh \
- ${WRKSRC}/scripts/sc.dbtext \
- ${WRKSRC}/modules/speeddial/README
- @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
- ${WRKSRC}/modules/acc/etc/radiusclient.conf
- @${REINPLACE_CMD} -e 's|/usr/local/etc/radiusclient|${PREFIX}/etc/openser/acc|' \
- ${WRKSRC}/modules/acc/acc_mod.c ${WRKSRC}/modules/acc/README
-
-post-install:
- ${INSTALL_DATA} ${WRKSRC}/etc/openser.cfg \
- ${PREFIX}/etc/openser/openser.cfg.default
- ${MKDIR} ${PREFIX}/etc/openser/acc
- ${INSTALL_DATA} ${WRKSRC}/modules/acc/etc/radiusclient.conf \
- ${PREFIX}/etc/openser/acc/radiusclient.conf.default
- ${INSTALL_DATA} ${WRKSRC}/modules/acc/etc/servers \
- ${PREFIX}/etc/openser/acc/servers.default
-.for d in ${TLS_RC_DIRS}
- ${MKDIR} ${PREFIX}/etc/openser/${d}
-.endfor
-.for f in ${TLS_RC_FILES}
- ${INSTALL_DATA} ${WRKSRC}/etc/${f} ${PREFIX}/etc/openser/${f}.default
-.endfor
- @PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
-
-.include <bsd.port.mk>
diff --git a/net/openser/distinfo b/net/openser/distinfo
deleted file mode 100644
index 456d3a20d85d..000000000000
--- a/net/openser/distinfo
+++ /dev/null
@@ -1,2 +0,0 @@
-SHA256 (openser-1.2.3-tls_src.tar.gz) = 58baf7558e5ad9f19be3e47c007b67e38e4eec645ef8e180e3bbf6e5ea63900e
-SIZE (openser-1.2.3-tls_src.tar.gz) = 3325798
diff --git a/net/openser/files/patch-Makefile b/net/openser/files/patch-Makefile
deleted file mode 100644
index 9da825037641..000000000000
--- a/net/openser/files/patch-Makefile
+++ /dev/null
@@ -1,76 +0,0 @@
---- Makefile.orig Wed Jan 30 14:50:03 2008
-+++ Makefile Wed Jan 30 16:41:05 2008
-@@ -47,10 +47,10 @@
- skip_modules?=
-
- # if not set on the cmd. line or the env, exclude this modules:
--exclude_modules?= jabber cpl-c mysql pa postgres osp unixodbc \
-- avp_radius auth_radius group_radius uri_radius xmpp \
-- presence pua pua_mi pua_usrloc seas\
-- mi_xmlrpc perl snmpstats
-+exclude_modules?= $(MYSQL) $(POSTGRESQL) $(SNMPSTATS) $(TLSOPS) $(UNIXODBC) \
-+ $(AUTHRADIUS) avp_radius group_radius uri_radius xmpp \
-+ presence pua pua_mi pua_usrloc seas mi_xmlrpc perl \
-+ snmpstats jabber osp auth_diameter
- ifeq ($(TLS),)
- exclude_modules+= tlsops
- endif
-@@ -343,21 +343,9 @@
-
- # note: on solaris 8 sed: ? or \(...\)* (a.s.o) do not work
- install-cfg: $(cfg-prefix)/$(cfg-dir)
-- sed -e "s#/usr/.*lib/$(NAME)/modules/#$(modules-target)#g" \
-- < etc/$(NAME).cfg > $(cfg-prefix)/$(cfg-dir)$(NAME).cfg.sample0
-- sed -e "s#/usr/.*etc/$(NAME)/tls/#$(cfg-target)tls/#g" \
-- < $(cfg-prefix)/$(cfg-dir)$(NAME).cfg.sample0 \
-- > $(cfg-prefix)/$(cfg-dir)$(NAME).cfg.sample
-- rm -fr $(cfg-prefix)/$(cfg-dir)$(NAME).cfg.sample0
-- chmod 644 $(cfg-prefix)/$(cfg-dir)$(NAME).cfg.sample
-- if [ -z "${skip_cfg_install}" -a \
-- ! -f $(cfg-prefix)/$(cfg-dir)$(NAME).cfg ]; then \
-- mv -f $(cfg-prefix)/$(cfg-dir)$(NAME).cfg.sample \
-- $(cfg-prefix)/$(cfg-dir)$(NAME).cfg; \
-- fi
- # radius dictionary
- $(INSTALL_TOUCH) $(cfg-prefix)/$(cfg-dir)/dictionary.radius
-- $(INSTALL_CFG) etc/dictionary.radius $(cfg-prefix)/$(cfg-dir)
-+ $(INSTALL_CFG) etc/dictionary.radius $(cfg-prefix)/$(cfg-dir)/dictionary.radius.default
- # openserctl config
- $(INSTALL_TOUCH) $(cfg-prefix)/$(cfg-dir)/openserctlrc.sample
- $(INSTALL_CFG) scripts/openserctlrc \
-@@ -391,7 +379,7 @@
- sed -e "s#/usr/local/lib/openser#$(lib-target)#g" | \
- sed -e "s#/usr/local/etc/openser#$(cfg-target)#g" >/tmp/openserctl
- $(INSTALL_TOUCH) $(bin-prefix)/$(bin-dir)/openserctl
-- $(INSTALL_BIN) /tmp/openserctl $(bin-prefix)/$(bin-dir)
-+ $(BSD_INSTALL_SCRIPT) /tmp/openserctl $(bin-prefix)/$(bin-dir)
- rm -fr /tmp/openserctl
- sed -e "s#/usr/local/sbin#$(bin-target)#g" \
- < scripts/openserctl.base > /tmp/openserctl.base
-@@ -456,7 +444,7 @@
- sed -e "s#PATH:/usr/local/sbin#PATH:$(bin-target)#g" \
- < scripts/mysqldb.sh > /tmp/$(NAME)_mysql.sh ; \
- $(INSTALL_TOUCH) $(bin-prefix)/$(bin-dir)/$(NAME)_mysql.sh ; \
-- $(INSTALL_BIN) /tmp/$(NAME)_mysql.sh $(bin-prefix)/$(bin-dir) ; \
-+ $(BSD_INSTALL_SCRIPT) /tmp/$(NAME)_mysql.sh $(bin-prefix)/$(bin-dir) ; \
- rm -fr /tmp/$(NAME)_mysql.sh ; \
- fi
- if [ "$(PGSQLON)" = "yes" ]; then \
-@@ -469,7 +457,7 @@
- sed -e "s#PATH:/usr/local/sbin#PATH:$(bin-target)#g" \
- < scripts/postgresqldb.sh > /tmp/$(NAME)_postgresql.sh ; \
- $(INSTALL_TOUCH) $(bin-prefix)/$(bin-dir)/$(NAME)_postgresql.sh ; \
-- $(INSTALL_BIN) /tmp/$(NAME)_postgresql.sh \
-+ $(BSD_INSTALL_SCRIPT) /tmp/$(NAME)_postgresql.sh \
- $(bin-prefix)/$(bin-dir) ; \
- rm -fr /tmp/$(NAME)_postgresql.sh ; \
- fi
-@@ -494,8 +482,6 @@
- if [ -f modules/"$$r"/README ]; then \
- $(INSTALL_TOUCH) $(doc-prefix)/$(doc-dir)/README ; \
- $(INSTALL_DOC) modules/"$$r"/README \
-- $(doc-prefix)/$(doc-dir)/README ; \
-- mv -f $(doc-prefix)/$(doc-dir)/README \
- $(doc-prefix)/$(doc-dir)/README."$$r" ; \
- fi ; \
- fi ; \
diff --git a/net/openser/files/patch-Makefile.defs b/net/openser/files/patch-Makefile.defs
deleted file mode 100644
index 7899cece0d0a..000000000000
--- a/net/openser/files/patch-Makefile.defs
+++ /dev/null
@@ -1,43 +0,0 @@
---- Makefile.defs.orig Thu Dec 20 13:34:23 2007
-+++ Makefile.defs Wed Jan 30 14:58:46 2008
-@@ -131,7 +131,7 @@
- ifeq ($(ARCH_B),64b)
- LIBDIR ?= lib64
- else
-- LIBDIR ?= lib
-+ LIBDIR = lib
- # assume 32b - it is not really used further
- ARCH_B=32b
- endif
-@@ -211,13 +211,13 @@
- TAR ?= tar
- endif
-
--INSTALL_TOUCH = touch # used to create the file first (good to
-- # make solaris install work)
--INSTALL_CFG = $(INSTALL) -m 644
--INSTALL_BIN = $(INSTALL) -m 755
--INSTALL_MODULES = $(INSTALL) -m 755
--INSTALL_DOC = $(INSTALL) -m 644
--INSTALL_MAN = $(INSTALL) -m 644
-+INSTALL_TOUCH = : # used to create the file first (good to
-+ # make solaris install work)
-+INSTALL_CFG = $(BSD_INSTALL_DATA)
-+INSTALL_BIN = $(BSD_INSTALL_PROGRAM)
-+INSTALL_MODULES = $(BSD_INSTALL_PROGRAM)
-+INSTALL_DOC = $(BSD_INSTALL_DATA)
-+INSTALL_MAN = $(BSD_INSTALL_MAN)
-
- #set some vars from the environment (and not make builtins)
- CC := $(shell echo "$${CC}")
-@@ -1205,8 +1205,8 @@
-
- #add libssl if needed
- ifneq ($(TLS),)
--DEFS+= -I$(LOCALBASE)/ssl/include -I$(LOCALBASE)/include
--LIBS+= -L$(LOCALBASE)/lib -L$(LOCALBASE)/ssl/lib -lssl -lcrypto
-+DEFS+= -I$(OPENSSLINC)
-+LIBS+= -L$(OPENSSLLIB) -lssl -lcrypto
- endif
-
- ifneq ($(found_lock_method), yes)
diff --git a/net/openser/files/pkg-deinstall.in b/net/openser/files/pkg-deinstall.in
deleted file mode 100644
index 5ca38f0f45b0..000000000000
--- a/net/openser/files/pkg-deinstall.in
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/bin/sh
-
-rc_dir=$PKG_PREFIX/etc/openser
-
-if [ "$2" = DEINSTALL ]; then
- for f in %%RC_FILES%%; do
- if /usr/bin/cmp -s $rc_dir/$f.default $rc_dir/$f; then
- /bin/rm -f $rc_dir/$f
- fi
- done
-elif [ "$2" = POST-DEINSTALL ]; then
- rc_dirs=`for d in %%RC_DIRS%%; do echo $d; done | /usr/bin/sort -r`
-
- for d in $rc_dirs ""; do
- /bin/rmdir $rc_dir/$d 2>/dev/null || /usr/bin/true
- done
-
- if [ -e $rc_dir ]; then
- echo "==============================================================================="
- echo "If you are permanently removing this port, you should manually remove the"
- echo "$rc_dir directory."
- echo "==============================================================================="
- fi
-fi
diff --git a/net/openser/files/pkg-install.in b/net/openser/files/pkg-install.in
deleted file mode 100644
index 79e885fcf5fc..000000000000
--- a/net/openser/files/pkg-install.in
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/bin/sh
-
-[ "$2" != POST-INSTALL ] && exit
-
-rc_dir=$PKG_PREFIX/etc/openser
-
-for f in %%RC_FILES%%; do
- if ! [ -e $rc_dir/$f ]; then
- /usr/bin/install -o root -g wheel -m 644 \
- $rc_dir/$f.default $rc_dir/$f
- fi
-done
diff --git a/net/openser/pkg-descr b/net/openser/pkg-descr
deleted file mode 100644
index 999c8e06889a..000000000000
--- a/net/openser/pkg-descr
+++ /dev/null
@@ -1,13 +0,0 @@
-OpenSER is a very fast and flexible SIP (RFC3261)
-proxy server. Written entirely in C, openser can handle thousands calls
-per second even on low-budget hardware. A C Shell like scripting language
-provides full control over the server's behaviour. It's modular
-architecture allows only required functionality to be loaded.
-Currently the following modules are available: digest authentication,
-CPL scripts, instant messaging, MySQL and UNIXODBC support, a presence agent,
-radius authentication, record routing, an SMS gateway, a jabber gateway, a
-transaction and dialog module, OSP module, statistics support,
-registrar and user location, SIMPLE Presence, Perl programming interface,
-SNMP and Java SIP Servlet.
-
-WWW: http://www.openser.org/