Review at https://gerrit.osmocom.org/4097
osmo-hlr: Introduce recipe Change-Id: Ie7f47dca8d7e5e50792104ae0c7cb557391542f7 --- A recipes-osmocom/osmo-hlr/osmo-hlr.inc A recipes-osmocom/osmo-hlr/osmo-hlr_git.bb 2 files changed, 35 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/meta-telephony refs/changes/97/4097/1 diff --git a/recipes-osmocom/osmo-hlr/osmo-hlr.inc b/recipes-osmocom/osmo-hlr/osmo-hlr.inc new file mode 100644 index 0000000..c70b83d --- /dev/null +++ b/recipes-osmocom/osmo-hlr/osmo-hlr.inc @@ -0,0 +1,28 @@ +DESCRITOPN = "Osmocom HLR implementation" +HOMEPAGE = "https://osmocom.org/" +LICENSE = "AGPLv3" +LIC_FILES_CHKSUM = "file://COPYING;md5=73f1eb20517c55bf9493b7dd6e480788" + +DEPENDS = "libdbi libtalloc libosmocore libosmo-abis sqlite3 sqlite3-native" + +INC_PR="r0.${META_TELEPHONY_OSMO_INC}" + +inherit autotools pkgconfig systemd + +RDEPENDS_${PN} = "libdbd-sqlite3" + +do_compile_append() { + sqlite3 ${WORKDIR}/hlr.db < ${S}/sql/hlr.sql +} + +do_install_append() { + install -d ${D}${systemd_system_unitdir}/ + install -d ${D}${sysconfdir}/osmocom/ + install -d ${D}${localstatedir}/lib/osmocom/ + + install -m 0644 ${S}/doc/examples/osmo-hlr.cfg ${D}${sysconfdir}/osmocom/ + install -m 0644 ${S}/contrib/systemd/osmo-hlr.service ${D}${systemd_system_unitdir}/ + install -m 0644 ${WORKDIR}/hlr.db ${D}${localstatedir}/lib/osmocom/hlr.db +} + +SYSTEMD_SERVICE_${PN} = "${PN}.service" diff --git a/recipes-osmocom/osmo-hlr/osmo-hlr_git.bb b/recipes-osmocom/osmo-hlr/osmo-hlr_git.bb new file mode 100644 index 0000000..8a08d94 --- /dev/null +++ b/recipes-osmocom/osmo-hlr/osmo-hlr_git.bb @@ -0,0 +1,7 @@ +require ${PN}.inc + +S = "${WORKDIR}/git" +SRCREV = "05c8b465ab2fe13edb67c95210a9b475f91ebeb3" +SRC_URI = "git://git.osmocom.org/osmo-hlr.git;protocol=git" +PV = "0.0.1+gitr${SRCPV}" +PR = "${INC_PR}.0" -- To view, visit https://gerrit.osmocom.org/4097 To unsubscribe, visit https://gerrit.osmocom.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ie7f47dca8d7e5e50792104ae0c7cb557391542f7 Gerrit-PatchSet: 1 Gerrit-Project: meta-telephony Gerrit-Branch: 201705 Gerrit-Owner: Pau Espin Pedrol <pes...@sysmocom.de>