Pau Espin Pedrol | 8554d8a | 2017-09-26 14:29:24 +0200 | [diff] [blame] | 1 | DESCRIPTION = "Osmocom HLR implementation" |
| 2 | HOMEPAGE = "https://osmocom.org/projects/osmo-hlr" |
| 3 | LICENSE = "AGPLv3" |
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=73f1eb20517c55bf9493b7dd6e480788" |
| 5 | |
| 6 | DEPENDS = "libtalloc libosmocore libosmo-abis sqlite3 sqlite3-native" |
| 7 | |
| 8 | INC_PR="r0.${META_TELEPHONY_OSMO_INC}" |
| 9 | |
| 10 | inherit autotools pkgconfig systemd |
| 11 | |
| 12 | do_compile_append() { |
| 13 | sqlite3 ${WORKDIR}/hlr.db < ${S}/sql/hlr.sql |
| 14 | } |
| 15 | |
| 16 | do_install_append() { |
| 17 | install -d ${D}${systemd_system_unitdir}/ |
| 18 | install -d ${D}${sysconfdir}/osmocom/ |
| 19 | install -d ${D}${localstatedir}/lib/osmocom/ |
| 20 | |
| 21 | install -m 0644 ${S}/doc/examples/osmo-hlr.cfg ${D}${sysconfdir}/osmocom/ |
| 22 | install -m 0644 ${S}/contrib/systemd/osmo-hlr.service ${D}${systemd_system_unitdir}/ |
| 23 | install -m 0644 ${WORKDIR}/hlr.db ${D}${localstatedir}/lib/osmocom/hlr.db |
| 24 | } |
| 25 | |
| 26 | SYSTEMD_SERVICE_${PN} = "${PN}.service" |