From owner-svn-ports-head@freebsd.org Sat Oct 17 16:55:34 2015 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 33293A17532; Sat, 17 Oct 2015 16:55:34 +0000 (UTC) (envelope-from pi@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 06E69663; Sat, 17 Oct 2015 16:55:33 +0000 (UTC) (envelope-from pi@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t9HGtX3Q004548; Sat, 17 Oct 2015 16:55:33 GMT (envelope-from pi@FreeBSD.org) Received: (from pi@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t9HGtWH0004537; Sat, 17 Oct 2015 16:55:32 GMT (envelope-from pi@FreeBSD.org) Message-Id: <201510171655.t9HGtWH0004537@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pi set sender to pi@FreeBSD.org using -f From: Kurt Jaeger Date: Sat, 17 Oct 2015 16:55:32 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r399543 - in head/net: . openbsc openbsc/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Oct 2015 16:55:34 -0000 Author: pi Date: Sat Oct 17 16:55:31 2015 New Revision: 399543 URL: https://svnweb.freebsd.org/changeset/ports/399543 Log: New port: net/openbsc OpenBSC is a minimalistic implementation of the GSM Network, with particular emphasis on the functionality typically provided by the BSC, MSC, HLR, VLR and SMSC. WWW: http://openbsc.osmocom.org/trac/ PR: 197784 Submitted by: Nikola Kolev Added: head/net/openbsc/ head/net/openbsc/Makefile (contents, props changed) head/net/openbsc/distinfo (contents, props changed) head/net/openbsc/files/ head/net/openbsc/files/patch-include-openbsc-mgcp.h (contents, props changed) head/net/openbsc/files/patch-include-openbsc-rtp.h (contents, props changed) head/net/openbsc/files/patch-src-libmsc-meas_feed.h (contents, props changed) head/net/openbsc/files/patch-src-libtrau-rtp_proxy.c (contents, props changed) head/net/openbsc/files/patch-src-utils-Makefile.am (contents, props changed) head/net/openbsc/files/patch-src-utils-meas_udp2db.c (contents, props changed) head/net/openbsc/pkg-descr (contents, props changed) head/net/openbsc/pkg-plist (contents, props changed) Modified: head/net/Makefile Modified: head/net/Makefile ============================================================================== --- head/net/Makefile Sat Oct 17 16:41:29 2015 (r399542) +++ head/net/Makefile Sat Oct 17 16:55:31 2015 (r399543) @@ -463,6 +463,7 @@ SUBDIR += opal SUBDIR += openafs SUBDIR += openbgpd + SUBDIR += openbsc SUBDIR += opendpi SUBDIR += openggsn SUBDIR += openh323 Added: head/net/openbsc/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/openbsc/Makefile Sat Oct 17 16:55:31 2015 (r399543) @@ -0,0 +1,38 @@ +# $FreeBSD$ + +PORTNAME= openbsc +PORTVERSION= 0.14.0 +CATEGORIES= net +MASTER_SITES= http://git.osmocom.org/${PORTNAME}/snapshot/ \ + http://chaosophia.net/downloads/osmocom/${PORTNAME}/ + +MAINTAINER= koue@chaosophia.net +COMMENT= GSM network in a box software + +LICENSE= GPLv3 + +LIB_DEPENDS= libdbi.so:${PORTSDIR}/databases/libdbi \ + libosmocore.so:${PORTSDIR}/devel/libosmocore \ + libosmoabis.so:${PORTSDIR}/devel/libosmo-abis \ + libosmonetif.so:${PORTSDIR}/devel/libosmo-netif \ + libdbi.so:${PORTSDIR}/databases/libdbi + +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/${PORTNAME} + +USES= autoreconf compiler:c11 gmake pkgconfig +GNU_CONFIGURE=yes +AUTOMAKE_ARGS= --gnu --add-missing --copy +CONFIGURE_ARGS+= CFLAGS="-I${LOCALBASE}/include" + +OPTIONS_DEFINE= SQLITE +OPTIONS_DEFAULT= + +OPTIONS_SUB= yes +SQLITE_LIB_DEPENDS= libsqlite.so:${PORTSDIR}/databases/sqlite3 + +post-patch: + ${REINPLACE_CMD} -e 's|pkgconfigdir.*|pkgconfigdir = ${PREFIX}/libdata/pkgconfig|g' \ + ${WRKSRC}/Makefile.am + ${ECHO_CMD} ${PORTVERSION} > ${WRKSRC}/.tarball-version + +.include Added: head/net/openbsc/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/openbsc/distinfo Sat Oct 17 16:55:31 2015 (r399543) @@ -0,0 +1,2 @@ +SHA256 (openbsc-0.14.0.tar.gz) = ae8f1b7ee89ea730492f790ca8c42bada1f863cf8867a853bae5f00f9e53aea0 +SIZE (openbsc-0.14.0.tar.gz) = 724745 Added: head/net/openbsc/files/patch-include-openbsc-mgcp.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/openbsc/files/patch-include-openbsc-mgcp.h Sat Oct 17 16:55:31 2015 (r399543) @@ -0,0 +1,14 @@ +--- include/openbsc/mgcp.h.orig 2015-02-10 22:03:25 UTC ++++ include/openbsc/mgcp.h +@@ -31,6 +31,11 @@ + + #include + ++#ifdef __FreeBSD__ ++#include ++#include ++#endif ++ + #define RTP_PORT_DEFAULT 4000 + #define RTP_PORT_NET_DEFAULT 16000 + Added: head/net/openbsc/files/patch-include-openbsc-rtp.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/openbsc/files/patch-include-openbsc-rtp.h Sat Oct 17 16:55:31 2015 (r399543) @@ -0,0 +1,15 @@ +--- include/openbsc/rtp.h.orig 2015-02-10 22:03:25 UTC ++++ include/openbsc/rtp.h +@@ -10,6 +10,12 @@ + # define __BYTE_ORDER __DARWIN_BYTE_ORDER + # define __LITTLE_ENDIAN __DARWIN_LITTLE_ENDIAN + # define __BIG_ENDIAN __DARWIN_BIG_ENDIAN ++# elif defined(__FreeBSD__) ++# if __FreeBSD_version < 1000000 ++# include ++# else ++# include ++# endif + # else + # error "__BYTE_ORDER should be defined by someone" + # endif Added: head/net/openbsc/files/patch-src-libmsc-meas_feed.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/openbsc/files/patch-src-libmsc-meas_feed.h Sat Oct 17 16:55:31 2015 (r399543) @@ -0,0 +1,13 @@ +--- src/libmsc/meas_feed.h.orig 2015-02-10 22:03:25 UTC ++++ src/libmsc/meas_feed.h +@@ -3,6 +3,10 @@ + + #include + ++#ifdef __FreeBSD__ ++#include ++#endif ++ + int meas_feed_cfg_set(const char *dst_host, uint16_t dst_port); + void meas_feed_cfg_get(char **host, uint16_t *port); + Added: head/net/openbsc/files/patch-src-libtrau-rtp_proxy.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/openbsc/files/patch-src-libtrau-rtp_proxy.c Sat Oct 17 16:55:31 2015 (r399543) @@ -0,0 +1,15 @@ +--- src/libtrau/rtp_proxy.c.orig 2015-02-10 22:03:25 UTC ++++ src/libtrau/rtp_proxy.c +@@ -47,6 +47,12 @@ + # define __BYTE_ORDER __DARWIN_BYTE_ORDER + # define __LITTLE_ENDIAN __DARWIN_LITTLE_ENDIAN + # define __BIG_ENDIAN __DARWIN_BIG_ENDIAN ++# elif defined(__FreeBSD__) ++# if __FreeBSD_version < 1000000 ++# include ++# else ++# include ++# endif + # else + # error "__BYTE_ORDER should be defined by someone" + # endif Added: head/net/openbsc/files/patch-src-utils-Makefile.am ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/openbsc/files/patch-src-utils-Makefile.am Sat Oct 17 16:55:31 2015 (r399543) @@ -0,0 +1,25 @@ +--- src/utils/Makefile.am.orig 2015-02-10 22:03:25 UTC ++++ src/utils/Makefile.am +@@ -6,7 +6,8 @@ noinst_HEADERS = meas_db.h + + bin_PROGRAMS = bs11_config isdnsync + if HAVE_SQLITE3 +-bin_PROGRAMS += osmo-meas-pcap2db osmo-meas-udp2db ++#bin_PROGRAMS += osmo-meas-pcap2db osmo-meas-udp2db ++bin_PROGRAMS += osmo-meas-udp2db + endif + if HAVE_LIBCDK + bin_PROGRAMS += meas_vis +@@ -32,9 +33,9 @@ meas_vis_SOURCES = meas_vis.c + meas_vis_LDADD = $(LIBOSMOCORE_LIBS) $(LIBOSMOGSM_LIBS) -lcdk -lncurses + meas_vis_CFLAGS = $(LIBOSMOCORE_CFLAGS) $(LIBOSMOGSM_CFLAGS) + +-osmo_meas_pcap2db_SOURCES = meas_pcap2db.c meas_db.c +-osmo_meas_pcap2db_LDADD = $(LIBOSMOCORE_LIBS) $(LIBOSMOGSM_LIBS) -lpcap $(SQLITE3_LIBS) +-osmo_meas_pcap2db_CFLAGS = $(LIBOSMOCORE_CFLAGS) $(LIBOSMOGSM_CFLAGS) ++#osmo_meas_pcap2db_SOURCES = meas_pcap2db.c meas_db.c ++#osmo_meas_pcap2db_LDADD = $(LIBOSMOCORE_LIBS) $(LIBOSMOGSM_LIBS) -lpcap $(SQLITE3_LIBS) ++#osmo_meas_pcap2db_CFLAGS = $(LIBOSMOCORE_CFLAGS) $(LIBOSMOGSM_CFLAGS) + + osmo_meas_udp2db_SOURCES = meas_udp2db.c meas_db.c + osmo_meas_udp2db_LDADD = $(LIBOSMOCORE_LIBS) $(LIBOSMOGSM_LIBS) $(SQLITE3_LIBS) Added: head/net/openbsc/files/patch-src-utils-meas_udp2db.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/openbsc/files/patch-src-utils-meas_udp2db.c Sat Oct 17 16:55:31 2015 (r399543) @@ -0,0 +1,13 @@ +--- src/utils/meas_udp2db.c.orig 2015-02-10 22:03:25 UTC ++++ src/utils/meas_udp2db.c +@@ -37,6 +37,10 @@ + + #include + ++#ifdef __FreeBSD__ ++#include ++#endif ++ + #include "meas_db.h" + + static struct osmo_fd udp_ofd; Added: head/net/openbsc/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/openbsc/pkg-descr Sat Oct 17 16:55:31 2015 (r399543) @@ -0,0 +1,5 @@ +OpenBSC is a minimalistic implementation of the GSM Network, with +particular emphasis on the functionality typically provided by the BSC, +MSC, HLR, VLR and SMSC. + +WWW: http://openbsc.osmocom.org/trac/ Added: head/net/openbsc/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/openbsc/pkg-plist Sat Oct 17 16:55:31 2015 (r399543) @@ -0,0 +1,27 @@ +bin/osmo-nitb +bin/osmo-bsc_mgcp +bin/bs11_config +bin/isdnsync +bin/ipaccess-find +bin/ipaccess-config +bin/ipaccess-proxy +bin/osmo-gbproxy +%%SQLITE%%bin/osmo-meas-udp2db +include/openbsc/gsm_04_08.h +include/openbsc/meas_rep.h +include/openbsc/bsc_api.h +libdata/pkgconfig/openbsc.pc +share/doc/openbsc/examples/osmo-bsc/osmo-bsc.cfg +share/doc/openbsc/examples/osmo-bsc_mgcp/mgcp.cfg +share/doc/openbsc/examples/osmo-bsc_nat/black-list.cfg +share/doc/openbsc/examples/osmo-bsc_nat/osmo-bsc_nat.cfg +share/doc/openbsc/examples/osmo-gbproxy/osmo-gbproxy.cfg +share/doc/openbsc/examples/osmo-nitb/bs11/openbsc-1bts-2trx-hopping.cfg +share/doc/openbsc/examples/osmo-nitb/bs11/openbsc-1bts-2trx.cfg +share/doc/openbsc/examples/osmo-nitb/bs11/openbsc-2bts-2trx.cfg +share/doc/openbsc/examples/osmo-nitb/bs11/openbsc.cfg +share/doc/openbsc/examples/osmo-nitb/nanobts/openbsc-multitrx.cfg +share/doc/openbsc/examples/osmo-nitb/nanobts/openbsc.cfg +share/doc/openbsc/examples/osmo-nitb/nokia/openbsc_nokia_3trx.cfg +share/doc/openbsc/examples/osmo-nitb/rbs2308/openbsc.cfg +share/doc/openbsc/examples/osmo-sgsn/osmo-sgsn.cfg