<p>Pau Espin Pedrol has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/12755">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">openbsc: handle systemd and cfg files through autotools<br><br>Change-Id: Ie6e6855cd34dd171e7e550646b8e37d606fc5653<br>---<br>M recipes-osmocom/openbsc/openbsc.inc<br>1 file changed, 6 insertions(+), 15 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/meta-telephony refs/changes/55/12755/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/recipes-osmocom/openbsc/openbsc.inc b/recipes-osmocom/openbsc/openbsc.inc</span><br><span>index ca3b124..71921b7 100644</span><br><span>--- a/recipes-osmocom/openbsc/openbsc.inc</span><br><span>+++ b/recipes-osmocom/openbsc/openbsc.inc</span><br><span>@@ -6,30 +6,21 @@</span><br><span> </span><br><span> RDEPENDS_osmo-nitb = "libdbd-sqlite3"</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-INC_PR = "r3.${META_TELEPHONY_OSMO_INC}"</span><br><span style="color: hsl(120, 100%, 40%);">+INC_PR = "r4.${META_TELEPHONY_OSMO_INC}"</span><br><span> </span><br><span> EXTRA_OECONF += "--enable-nat --enable-osmo-bsc --enable-smpp --enable-mgcp-transcoding --with-g729"</span><br><span> </span><br><span> inherit autotools systemd pkgconfig</span><br><span> </span><br><span> do_install_append() {</span><br><span style="color: hsl(0, 100%, 40%);">-  install -d ${D}${sysconfdir}/osmocom</span><br><span style="color: hsl(0, 100%, 40%);">-    install -m 0660 ${S}/doc/examples/osmo-nitb/nanobts/openbsc.cfg ${D}${sysconfdir}/osmocom/osmo-nitb.cfg</span><br><span style="color: hsl(0, 100%, 40%);">- install -m 0660 ${S}/doc/examples/osmo-bsc-sccplite/osmo-bsc-sccplite.cfg ${D}${sysconfdir}/osmocom/osmo-bsc-sccplite.cfg</span><br><span style="color: hsl(0, 100%, 40%);">-       install -m 0644 ${S}/doc/examples/osmo-bsc_nat/osmo-bsc_nat.cfg ${D}${sysconfdir}/osmocom/osmo-bsc-nat.cfg</span><br><span style="color: hsl(0, 100%, 40%);">-      install -m 0644 ${S}/doc/examples/osmo-bsc_mgcp/mgcp.cfg ${D}${sysconfdir}/osmocom/osmo-bsc-mgcp.cfg</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-    # Install systemd files and enable on sysinit</span><br><span style="color: hsl(0, 100%, 40%);">-   install -d ${D}${systemd_system_unitdir}/</span><br><span style="color: hsl(0, 100%, 40%);">-       install -m 0644 ${S}/contrib/systemd/osmo-nitb.service ${D}${systemd_system_unitdir}/</span><br><span style="color: hsl(0, 100%, 40%);">-   install -m 0644 ${S}/contrib/systemd/osmo-bsc-sccplite.service ${D}${systemd_system_unitdir}/</span><br><span style="color: hsl(0, 100%, 40%);">-   install -m 0644 ${S}/contrib/systemd/osmo-bsc-nat.service ${D}${systemd_system_unitdir}/</span><br><span style="color: hsl(0, 100%, 40%);">-        install -m 0644 ${S}/contrib/systemd/osmo-bsc-mgcp.service ${D}${systemd_system_unitdir}/</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span>    install -d ${D}/var/lib/osmocom</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span> }</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+PACKAGECONFIG ??= "\</span><br><span style="color: hsl(120, 100%, 40%);">+    ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \</span><br><span style="color: hsl(120, 100%, 40%);">+    "</span><br><span style="color: hsl(120, 100%, 40%);">+PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_system_unitdir},--without-systemdsystemunitdir"</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> PACKAGES =+ "osmo-bsc-nat osmo-bsc-sccplite osmo-nitb osmo-bsc-mgcp"</span><br><span> SYSTEMD_PACKAGES = "osmo-bsc-nat osmo-bsc-sccplite osmo-nitb osmo-bsc-mgcp"</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/12755">change 12755</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/12755"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: meta-telephony </div>
<div style="display:none"> Gerrit-Branch: 201705 </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Ie6e6855cd34dd171e7e550646b8e37d606fc5653 </div>
<div style="display:none"> Gerrit-Change-Number: 12755 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Pau Espin Pedrol <pespin@sysmocom.de> </div>