net-wireless/osmocom: modernize
authorJason A. Donenfeld <zx2c4@gentoo.org>
Fri, 2 Sep 2016 16:18:11 +0000 (10:18 -0600)
committerJason A. Donenfeld <zx2c4@gentoo.org>
Fri, 2 Sep 2016 16:59:43 +0000 (10:59 -0600)
Package-Manager: portage-2.3.0

net-libs/libosmo-netif/libosmo-netif-9999.ebuild [new file with mode: 0644]
net-libs/libosmo-netif/metadata.xml [new file with mode: 0644]
net-misc/lcr/lcr-9999.ebuild
net-wireless/openbsc/openbsc-9999.ebuild
net-wireless/osmobts/osmobts-9999.ebuild

diff --git a/net-libs/libosmo-netif/libosmo-netif-9999.ebuild b/net-libs/libosmo-netif/libosmo-netif-9999.ebuild
new file mode 100644 (file)
index 0000000..2fb6bdf
--- /dev/null
@@ -0,0 +1,23 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit autotools eutils git-2
+
+DESCRIPTION="Utility functions for OsmocomBB, OpenBSC and related projects"
+HOMEPAGE="http://bb.osmocom.org/trac/wiki/"
+EGIT_REPO_URI="git://git.osmocom.org/${PN}.git"
+KEYWORDS=""
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE=""
+
+RDEPEND="net-libs/libosmocore net-libs/libosmo-abis"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+       eautoreconf
+}
diff --git a/net-libs/libosmo-netif/metadata.xml b/net-libs/libosmo-netif/metadata.xml
new file mode 100644 (file)
index 0000000..1570f89
--- /dev/null
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <maintainer type="project">
+               <email>radio@gentoo.org</email>
+               <name>Radio</name>
+       </maintainer>
+</pkgmetadata>
index fd6b40bedbd96322a22c01d5cf37407d32ec5cc7..8efd7d8fe05435683453c9300e1fae2435f92a15 100644 (file)
@@ -27,11 +27,12 @@ DEPEND="
 RDEPEND="${DEPEND}"
 
 src_prepare() {
+       sed -i 's:#!/usr/bin/env python:#!/usr/bin/env python2:' "${S}"/libgsmhr/fetch_sources.py
        eautoreconf
 }
 
 src_configure() {
-       econf \
+       CXXFLAGS="$CXXFLAGS -I./include" CFLAGS="$CFLAGS -I./include" econf \
                $(use_with asterisk) \
                $(use_with ssl) \
                $(use_with gsm-bs) \
index a8b11303a00ab7aad1dc69a15cbe56d8596e518c..8ba6088d63dbd23e1944b025b89e77982ad40705 100644 (file)
@@ -9,7 +9,6 @@ inherit autotools git-2 eutils
 DESCRIPTION="OpenBSC, OsmoSGSN, OsmoBSC and other programs"
 HOMEPAGE="http://openbsc.osmocom.org/trac/wiki/OpenBSC"
 EGIT_REPO_URI="git://git.osmocom.org/${PN}.git"
-EGIT_BRANCH="jolly/testing"
 
 LICENSE="GPL-2"
 SLOT="0"
index 7f7a4e9eeb8f00993fae688162be7ceba431ecce..40f564bb172f7d38dd5a5d46ef260f37f8e44af3 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -9,7 +9,6 @@ inherit autotools git-2
 DESCRIPTION="Osmocom BTS-Side code (Abis, scheduling)"
 HOMEPAGE="http://openbsc.osmocom.org/trac/wiki/OsmoBTS"
 EGIT_REPO_URI="git://git.osmocom.org/osmo-bts.git"
-EGIT_BRANCH="jolly/trx"
 
 LICENSE="GPL-2"
 SLOT="0"
@@ -20,12 +19,12 @@ DEPEND="net-libs/libosmocore net-libs/libosmo-abis"
 RDEPEND="${DEPEND}"
 
 src_prepare() {
-       mkdir -p ../openbsc/openbsc/include/openbsc ../openbsc/openbsc/src/libcommon/ || die
-       wget -O ../openbsc/openbsc/include/openbsc/gsm_data_shared.h http://cgit.osmocom.org/openbsc/plain/openbsc/include/openbsc/gsm_data_shared.h?h=jolly/testing || die
-       wget -O ../openbsc/openbsc/src/libcommon/gsm_data_shared.c http://cgit.osmocom.org/openbsc/plain/openbsc/src/libcommon/gsm_data_shared.c?h=jolly/testing || die
        eautoreconf
+       wget -O "${S}"/include/openbsc/gsm_data_shared.h http://cgit.osmocom.org/openbsc/plain/openbsc/include/openbsc/gsm_data_shared.h || die
+       wget -O "${S}"/src/common/gsm_data_shared.c http://cgit.osmocom.org/openbsc/plain/openbsc/src/libcommon/gsm_data_shared.c || die
+
 }
 
 src_configure() {
-       econf --enable-trx
+       econf --enable-trx --with-openbsc="${S}"/include/openbsc
 }