diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-wireless/yatebts |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-wireless/yatebts')
-rw-r--r-- | net-wireless/yatebts/Manifest | 12 | ||||
-rw-r--r-- | net-wireless/yatebts/files/yatebts-4.0.0-dont-mess-with-cflags.patch | 13 | ||||
-rw-r--r-- | net-wireless/yatebts/files/yatebts-5.0.0-gcc6.patch | 31 | ||||
-rw-r--r-- | net-wireless/yatebts/files/yatebts-bladeRF-transceiver_revert_init_order.patch | 86 | ||||
-rw-r--r-- | net-wireless/yatebts/files/yatebts-sgsnggsn-inetutils-hostname-fix.diff | 14 | ||||
-rw-r--r-- | net-wireless/yatebts/metadata.xml | 14 | ||||
-rw-r--r-- | net-wireless/yatebts/yatebts-4.0.0-r3.ebuild | 49 | ||||
-rw-r--r-- | net-wireless/yatebts/yatebts-5.0.0.ebuild | 53 | ||||
-rw-r--r-- | net-wireless/yatebts/yatebts-9999.ebuild | 48 |
9 files changed, 320 insertions, 0 deletions
diff --git a/net-wireless/yatebts/Manifest b/net-wireless/yatebts/Manifest new file mode 100644 index 000000000000..4689c533e023 --- /dev/null +++ b/net-wireless/yatebts/Manifest @@ -0,0 +1,12 @@ +AUX yatebts-4.0.0-dont-mess-with-cflags.patch 434 SHA256 7acf78c645b5c797dce66d51d017aa6c26e228343651f998a0f3bd52a4fe6718 SHA512 9a8ce2aaaa3e5183a4d77b4ece5f53d71b2c1c59856d1f3054a8a552a547624585674f8d67cc068eb6546279a87a14e8471d99ca79fc7025c989e94aa03a3d25 WHIRLPOOL 9496ca5c1cf6090302f30ee25f1523295dc6be3cbe1664902f3e9eb50d7ba5ed8b8ecebf13f625a371d166cf1adf3ba0b5783742f018682029997f703ca89ee5 +AUX yatebts-5.0.0-gcc6.patch 1125 SHA256 3a31a8ee5880e4d171f7c4d88f8d5a4f19152ca3236c03b5724d4b57c8cf0c3a SHA512 e2a575d1e4a31f884b2af95439ce077a811d655cfcb646b20652638a353a9e730999134128003829a538b880ca07ea23e125a9b21073e46a7aae05b1eeb9baf1 WHIRLPOOL cc9d0beb223e69d2711d5fb942b798aa5062ccd2d16e57fdf3a4bafd1a8b955b48c67f9ecda2274b628d41b2d5136574594be70c0c639efd50c150c3b56fc0f1 +AUX yatebts-bladeRF-transceiver_revert_init_order.patch 2636 SHA256 edf6738af36e8c1dd50e7492c2b7042430ef4917eb00cff8535712e87930af43 SHA512 30e59e6e6f565c74d2ed15c70aee09c783cc710701de3b2d5e2f6530486dcde0dc63b03e4475d8e525e83e6612b13015e5d901e76061394afb6179987f3efa80 WHIRLPOOL 7635e8dc08336da156ce595eefd52a508ae1365aba01ef2bca4b8673bbc75d2a82a737054c800e3182e983d1f695dc177cf6b3cc72183327a097ca845884365e +AUX yatebts-sgsnggsn-inetutils-hostname-fix.diff 487 SHA256 b1b52354a5d8e7bb5baf2d2e8e552ef20c5c7b6ff30015a74ff3fb52c50d4ee5 SHA512 55a9ad165e00e8c9b5556c1f29e244286d3cdf425cdb94f1a3e49c1d27962c302bedbbec37e5ce4ce44867b7bd17587887dfe6cfd5fabffdba32066799bd86c6 WHIRLPOOL 5e230d4a47c81022f0baf956d92ceb36689f5b53a77d444f69c312faceda87c539ba6be0fbb022113c1437f780bc297882f6f39e0009b090cb4bd57c4d99cbe2 +DIST yate-bts-4.0.0-1.tar.gz 3311644 SHA256 0cf40839e81e1600b3bd7a184404249cca387d9a7413dda1db02f92d3b501c31 SHA512 802e765fb5dd1702b71c6e7a68f671dcfb82431d7c6defc4fea1494558b8824c0a4b61dc9b7b787bc8badf09752b12efb531d7435d6d32db60edd96fe32f850d WHIRLPOOL 67b983de759b0cf87ded1673c2fe41fef6f10ccb0848a5816cb37c9f20c48c6e11667f4098469d8b381a5e9a50d00c623d494d623227f879e0bf32e11bd447d3 +DIST yate-bts-5.0.0-1.tar.gz 3352942 SHA256 02d6b883f1c65a44f377d678ca56ec1b46a85672779589b184597d64553da8f8 SHA512 d893072f715f77dfe53e2d0a4332a02ffa441afb995a7280201d4ffb509b51d16888c961d753517f471915efdf03ec329707cd9d54f8bde6ecb9b2405d602939 WHIRLPOOL 56d01ec0fa60cb0a16c8ffff35e1ff5d0eb91c94889ee1427b1768f1779b3cbe9252085b38e98befbb5958d5b746ec6fd46ead8f74bc7b185c8c557fd5b6e3d0 +EBUILD yatebts-4.0.0-r3.ebuild 1167 SHA256 cf50f0a7e6073e3c5dea4a3bccb301c31377a0403e0a7675d0652c176b388972 SHA512 d1c0265d91797fcf917d76d8b7bf39a422e67a136bff6d79e73163598093e6faaea7203635ba3fb89ae083948564aa42eb3ba61500a80d2358d04704f16d34a2 WHIRLPOOL 411b4624f62efa84cc6c4c755ce4146092928b3c74b37c5ec2975eeb7a2ad16f522b8ccd13e80fdaf670f094825e4c01b3df49cf6cdcc1fadca432980d860e1d +EBUILD yatebts-5.0.0.ebuild 1253 SHA256 917cae095dbee5c8c55e3b00a301893438256edfe3d39eea444256cb6944abaa SHA512 009a384d5ac89b9d01ac7e111fe0f162e5633804904495829c54bcb3f3010f92d1fa98cd41eb535c72dc9731ad1ee9270f6ff7e22d9c2b5d86c39512df3cefaa WHIRLPOOL 47d5f13ce71752ee885f38812c119ac816bdf29ca1dd716da8196cb03e99eb58f8ab5cc217d90517f30c1df56693d3b915979c6a017bbdbd3b0d562ce8ad33bb +EBUILD yatebts-9999.ebuild 1133 SHA256 d15965c0b3f05c4b22cf4644423b2d58c68bbe2163c81394f523eecd89c61151 SHA512 e4b6e3754ea7cd06ffa67e20d4340eda83a7eb1c79c15b576d3051a60692f054e724825fcb46d7adf91ceda692e1a04755444f83381731bc35d93670da16cfdb WHIRLPOOL e0308320dfc3b25db5db01f4011ea0ce467dbb9a42e6cc70e0d9d46d18065a1ef28b65c49e0b9b395db107ad11c36b00581349aba5373a223d492f95b84dfe9a +MISC ChangeLog 3692 SHA256 a1945e5cc6c024983c4214ce9ffe7abe60aa91bcedf0a8d6ef6ca23d89420145 SHA512 ae558fd31cc47f8cd43ddad39ef8a211b09196dc65d701d25d00501fc7f6e20051f3b88f20b6d9b799d2cdbca1410480143809f694a2ed9a06dd17c706e65cab WHIRLPOOL f828f1ad7d1c080963d2d7e685eed9697c4969627355b143a4b551d086b032a2c8b3a5b886261854d78aedb6c3b6571b490bf96a65afe901be48f478a6013c01 +MISC ChangeLog-2015 1943 SHA256 48b6a6a2e6b45304df5080439668714a775858f86eee71c0e54a5bb9932fb3a7 SHA512 a6554c8bb5cdd18eec362c76d6d6d4c2cd6ddcb74fc5ef421876517f37baf90cc6271df093b4239271320a3700d69efbb9027b105be2c0a8fdd109249ebe2040 WHIRLPOOL f80644015a0c724859f3be41fe508653032831efffdc316fd76ffd217ae38c66eaf5006100e60dac4996a536d50f197d06a073df6c798420ef6cf30b74b6671a +MISC metadata.xml 459 SHA256 178cd3bfc4e9e2a8c889fa485c2fd4f8b62fed7d472c9573a231107451d7affb SHA512 e5cb7b858684817bfc6f4ce03dc6ad7c3743d649d96dc8bc2c68aa663a834593cb81081d72e7775bdafed38c932684985e37a7af82c39bd38d72e01dd8b30b60 WHIRLPOOL f74acedfae4592cd5c55310c9b459fd6c3124f9ffb0bdd4bd5b43c8f1bb4b8d9e5170079cf072345db6f70d980bfdcabb1a607366a2021006707dfbc991271d6 diff --git a/net-wireless/yatebts/files/yatebts-4.0.0-dont-mess-with-cflags.patch b/net-wireless/yatebts/files/yatebts-4.0.0-dont-mess-with-cflags.patch new file mode 100644 index 000000000000..b10eb57237ef --- /dev/null +++ b/net-wireless/yatebts/files/yatebts-4.0.0-dont-mess-with-cflags.patch @@ -0,0 +1,13 @@ +diff -Naur yate-bts/configure.in yate-bts-sane/configure.in +--- yate-bts/configure.in 2014-07-25 10:28:44.000000000 -0400 ++++ yate-bts-sane/configure.in 2014-07-25 17:38:23.550069064 -0400 +@@ -36,9 +36,6 @@ + AC_PROG_CC + AC_PROG_AWK + +-# Delete -g as we handle debug info at build time +-CFLAGS=`echo "$CFLAGS" | sed 's/-g[[0-9]]* *//' 2>/dev/null` +- + # Helper to check by pkgconfig including local paths + function pkgconfig_check() + { diff --git a/net-wireless/yatebts/files/yatebts-5.0.0-gcc6.patch b/net-wireless/yatebts/files/yatebts-5.0.0-gcc6.patch new file mode 100644 index 000000000000..988ca2d4f73f --- /dev/null +++ b/net-wireless/yatebts/files/yatebts-5.0.0-gcc6.patch @@ -0,0 +1,31 @@ +--- a/mbts/GPRS/MSInfo.cpp ++++ b/mbts/GPRS/MSInfo.cpp +@@ -638,7 +638,7 @@ + if (msPCHDowns.size() > 1) { + std::ostringstream os; + msDumpChannels(os); +- GPRSLOG(INFO,GPRS_MSG|GPRS_CHECK_OK) << "Multislot assignment for "<<this<<os; ++ GPRSLOG(INFO,GPRS_MSG|GPRS_CHECK_OK) << "Multislot assignment for "<<this<<(!os.fail()); + } + + } else { +--- a/mbts/SGSNGGSN/Sgsn.cpp ++++ b/mbts/SGSNGGSN/Sgsn.cpp +@@ -149,7 +149,7 @@ + clearConn(GprsConnNone,SigConnLost); + std::ostringstream ss; + sgsnInfoDump(this,ss); +- SGSNLOGF(INFO,GPRS_OK|GPRS_MSG,"SGSN","Removing SgsnInfo:"<<ss); ++ SGSNLOGF(INFO,GPRS_OK|GPRS_MSG,"SGSN","Removing SgsnInfo:"<<(!ss.fail())); + sSgsnInfoList.remove(this); + GmmInfo *gmm = getGmm(); + if (gmm && (gmm->getSI() == this)) { +@@ -252,7 +252,7 @@ + { + std::ostringstream ss; + gmmInfoDump(gmm,ss,0); +- SGSNLOGF(INFO,GPRS_OK|GPRS_MSG,"SGSN","Removing gmm:"<<ss); ++ SGSNLOGF(INFO,GPRS_OK|GPRS_MSG,"SGSN","Removing gmm:"<<(!ss.fail())); + SgsnInfo *si; + RN_FOR_ALL(SgsnInfoList_t,sSgsnInfoList,si) { + // The second test here should be redundant. diff --git a/net-wireless/yatebts/files/yatebts-bladeRF-transceiver_revert_init_order.patch b/net-wireless/yatebts/files/yatebts-bladeRF-transceiver_revert_init_order.patch new file mode 100644 index 000000000000..83da1d58d29d --- /dev/null +++ b/net-wireless/yatebts/files/yatebts-bladeRF-transceiver_revert_init_order.patch @@ -0,0 +1,86 @@ +diff --git a/mbts/TransceiverRAD1/bladeRFDevice.cpp b/mbts/TransceiverRAD1/bladeRFDevice.cpp +index a2a3346..cfdb977 100644 +--- a/mbts/TransceiverRAD1/bladeRFDevice.cpp ++++ b/mbts/TransceiverRAD1/bladeRFDevice.cpp +@@ -35,7 +35,6 @@ + + #include <Logger.h> + +- + #define MIN_OVERSAMPLING 4 + + #define HEALTH_BAD 10 +@@ -128,7 +127,36 @@ bool bladeRFDevice::open(const std::string &args, bool) + << "." << ver.patch << " (" << ver.describe << ")"; + + uint32_t val = 0; +- bladerf_config_gpio_read(bdev, &val); ++ ++ status = bladerf_sync_config(bdev, ++ BLADERF_MODULE_RX, ++ BLADERF_FORMAT_SC16_Q11, ++ DEFAULT_STREAM_RX_BUFFERS, ++ DEFAULT_STREAM_SAMPLES, ++ DEFAULT_STREAM_RX_XFERS, ++ DEFAULT_STREAM_TIMEOUT ++ ); ++ ++ if (status < 0) { ++ LOG(CRIT) << "Failed to intialize RX sync handle: " << bladerf_strerror(status); ++ checkHealth(mRxHealth, false); ++ } ++ ++ status = bladerf_sync_config(bdev, ++ BLADERF_MODULE_TX, ++ BLADERF_FORMAT_SC16_Q11, ++ DEFAULT_STREAM_TX_BUFFERS, ++ DEFAULT_STREAM_SAMPLES, ++ DEFAULT_STREAM_TX_XFERS, ++ DEFAULT_STREAM_TIMEOUT ++ ); ++ ++ if (status < 0) { ++ LOG(CRIT) << "Failed to intialize TX sync handle: " << bladerf_strerror(status); ++ checkHealth(mTxHealth, false); ++ } ++ ++ bladerf_config_gpio_read(bdev, &val); + val |= 0x10000; //enable timestamps, clears and resets everything on write + bladerf_config_gpio_write(bdev, val); + bladerf_config_gpio_read(bdev, &val); +@@ -185,34 +213,6 @@ bool bladeRFDevice::open(const std::string &args, bool) + else + LOG(INFO) << "Actual bandwidth " << bw; + +- status = bladerf_sync_config(bdev, +- BLADERF_MODULE_RX, +- BLADERF_FORMAT_SC16_Q11, +- DEFAULT_STREAM_RX_BUFFERS, +- DEFAULT_STREAM_SAMPLES, +- DEFAULT_STREAM_RX_XFERS, +- DEFAULT_STREAM_TIMEOUT +- ); +- +- if (status < 0) { +- LOG(CRIT) << "Failed to intialize RX sync handle: " << bladerf_strerror(status); +- checkHealth(mRxHealth, false); +- } +- +- status = bladerf_sync_config(bdev, +- BLADERF_MODULE_TX, +- BLADERF_FORMAT_SC16_Q11, +- DEFAULT_STREAM_TX_BUFFERS, +- DEFAULT_STREAM_SAMPLES, +- DEFAULT_STREAM_TX_XFERS, +- DEFAULT_STREAM_TIMEOUT +- ); +- +- if (status < 0) { +- LOG(CRIT) << "Failed to intialize TX sync handle: " << bladerf_strerror(status); +- checkHealth(mTxHealth, false); +- } +- + mRxGain1 = BLADERF_RXVGA1_GAIN_MAX; + mDcCorrect = true; + mRxMaxOffset = RX_OFFSET_ERROR * RX_AVERAGE_DAMPING; + diff --git a/net-wireless/yatebts/files/yatebts-sgsnggsn-inetutils-hostname-fix.diff b/net-wireless/yatebts/files/yatebts-sgsnggsn-inetutils-hostname-fix.diff new file mode 100644 index 000000000000..46b4b1d1ba4d --- /dev/null +++ b/net-wireless/yatebts/files/yatebts-sgsnggsn-inetutils-hostname-fix.diff @@ -0,0 +1,14 @@ +diff --git a/mbts/SGSNGGSN/iputils.cpp b/mbts/SGSNGGSN/iputils.cpp +index 979ae3a..49bb0ff 100644 +--- a/mbts/SGSNGGSN/iputils.cpp ++++ b/mbts/SGSNGGSN/iputils.cpp +@@ -466,7 +466,7 @@ EXPORT uint32_t *ip_findmyaddr() + const int maxaddrs = 5; + static uint32_t addrs[maxaddrs+1]; + int n = 0; +- int fd = runcmd("|/bin/hostname","hostname","-I", NULL); ++ int fd = runcmd("|/bin/hostname","hostname","-i", NULL); + if (fd < 0) { + failed: + addrs[0] = (unsigned) -1; // converts to all 1s + diff --git a/net-wireless/yatebts/metadata.xml b/net-wireless/yatebts/metadata.xml new file mode 100644 index 000000000000..ccc13aaa52f7 --- /dev/null +++ b/net-wireless/yatebts/metadata.xml @@ -0,0 +1,14 @@ +<?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> + <use> + <flag name="rad1">Build RAD1 transceiver</flag> + <flag name="usrp1">Build USRP1 transceiver</flag> + <flag name="uhd">Build UHD transceiver</flag> + <flag name="bladerf">Build bladeRF transceiver</flag> + </use> +</pkgmetadata> diff --git a/net-wireless/yatebts/yatebts-4.0.0-r3.ebuild b/net-wireless/yatebts/yatebts-4.0.0-r3.ebuild new file mode 100644 index 000000000000..0f975f7cca82 --- /dev/null +++ b/net-wireless/yatebts/yatebts-4.0.0-r3.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils autotools + +DESCRIPTION="The Yate GSM base station" +HOMEPAGE="http://www.yatebts.com/" +ESVN_REPO_URI="http://voip.null.ro/svn/yatebts/trunk" + +LICENSE="GPL-2" +SLOT="0" +IUSE="rad1 usrp1 uhd +bladerf cpu_flags_x86_sse3 cpu_flags_x86_sse4_1" + +RDEPEND=" + =net-voip/yate-5.4.0-r1:=[gsm] + bladerf? ( net-wireless/bladerf:= ) + uhd? ( net-wireless/uhd ) + virtual/libusb:1" +DEPEND="virtual/pkgconfig + ${RDEPEND}" + +if [[ ${PV} == "9999" ]] ; then + inherit subversion + KEYWORDS="" +else + KEYWORDS="~amd64 ~arm ~x86" + SRC_URI="http://yate.null.ro/tarballs/${PN}4/yate-bts-${PV}-1.tar.gz" + S="${WORKDIR}/yate-bts" +fi + +src_prepare() { + epatch "${FILESDIR}"/${P}-dont-mess-with-cflags.patch + epatch "${FILESDIR}"/${PN}-sgsnggsn-inetutils-hostname-fix.diff + epatch "${FILESDIR}"/${PN}-bladeRF-transceiver_revert_init_order.patch + eautoreconf +} + +src_configure() { + econf \ + $(use_enable rad1) \ + $(use_enable usrp1) \ + $(use_enable uhd) \ + $(use_enable bladerf) \ + $(use_enable cpu_flags_x86_sse3 sse3) \ + $(use_enable cpu_flags_x86_sse4_1 sse41) + +} diff --git a/net-wireless/yatebts/yatebts-5.0.0.ebuild b/net-wireless/yatebts/yatebts-5.0.0.ebuild new file mode 100644 index 000000000000..fe1cf3ba12c8 --- /dev/null +++ b/net-wireless/yatebts/yatebts-5.0.0.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils autotools flag-o-matic + +DESCRIPTION="The Yate GSM base station" +HOMEPAGE="http://www.yatebts.com/" +ESVN_REPO_URI="http://voip.null.ro/svn/yatebts/trunk" + +LICENSE="GPL-2" +SLOT="0" +IUSE="rad1 usrp1 uhd +bladerf cpu_flags_x86_sse3 cpu_flags_x86_sse4_1" + +RDEPEND=" + =net-voip/yate-5.5.0-r1:=[gsm] + bladerf? ( net-wireless/bladerf:= ) + uhd? ( net-wireless/uhd ) + virtual/libusb:1" +DEPEND="virtual/pkgconfig + ${RDEPEND}" + +if [[ ${PV} == "9999" ]] ; then + inherit subversion + KEYWORDS="" +else + KEYWORDS="~amd64 ~arm ~x86" + SRC_URI="http://yate.null.ro/tarballs/${PN}5/yate-bts-${PV}-1.tar.gz" + S="${WORKDIR}/yate-bts" +fi + +src_prepare() { + replace-flags -ggdb -g + replace-flags -ggdb3 -g + replace-flags -ggdb2 -g + replace-flags -ggdb1 -g + #epatch "${FILESDIR}"/${PN}-4.0.0-dont-mess-with-cflags.patch + epatch "${FILESDIR}"/${PN}-sgsnggsn-inetutils-hostname-fix.diff + epatch "${FILESDIR}"/${P}-gcc6.patch + eautoreconf +} + +src_configure() { + econf \ + $(use_enable rad1) \ + $(use_enable usrp1) \ + $(use_enable uhd) \ + $(use_enable bladerf) \ + $(use_enable cpu_flags_x86_sse3 sse3) \ + $(use_enable cpu_flags_x86_sse4_1 sse41) + +} diff --git a/net-wireless/yatebts/yatebts-9999.ebuild b/net-wireless/yatebts/yatebts-9999.ebuild new file mode 100644 index 000000000000..b06623ca8e60 --- /dev/null +++ b/net-wireless/yatebts/yatebts-9999.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils autotools + +DESCRIPTION="The Yate GSM base station" +HOMEPAGE="http://www.yatebts.com/" +ESVN_REPO_URI="http://voip.null.ro/svn/yatebts/trunk" + +LICENSE="GPL-2" +SLOT="0" +IUSE="rad1 usrp1 uhd +bladerf cpu_flags_x86_sse3 cpu_flags_x86_sse4_1" + +RDEPEND=" + =net-voip/yate-${PV}:=[gsm] + bladerf? ( net-wireless/bladerf:= ) + uhd? ( net-wireless/uhd ) + virtual/libusb:1" +DEPEND="virtual/pkgconfig + ${RDEPEND}" + +if [[ ${PV} == "9999" ]] ; then + inherit subversion + KEYWORDS="" +else + KEYWORDS="~amd64 ~arm ~x86" + SRC_URI="http://yate.null.ro/tarballs/${PN}4/yate-bts-${PV}-1.tar.gz" + S="${WORKDIR}/yate-bts" +fi + +src_prepare() { + #we need more patches or configure flags because things install in really wrong places per FHS + epatch "${FILESDIR}"/${PN}-sgsnggsn-inetutils-hostname-fix.diff + eautoreconf +} + +src_configure() { + econf \ + $(use_enable rad1) \ + $(use_enable usrp1) \ + $(use_enable uhd) \ + $(use_enable bladerf) \ + $(use_enable cpu_flags_x86_sse3 sse3) \ + $(use_enable cpu_flags_x86_sse4_1 sse41) + +} |