blob: 7dd6234f13f5b06dbd12ae6414b782aff06cc970 [file] [log] [blame]
Pau Espin Pedrol8554d8a2017-09-26 14:29:24 +02001DESCRIPTION = "Osmocom HLR implementation"
2HOMEPAGE = "https://osmocom.org/projects/osmo-hlr"
3LICENSE = "AGPLv3"
4LIC_FILES_CHKSUM = "file://COPYING;md5=73f1eb20517c55bf9493b7dd6e480788"
5
6DEPENDS = "libtalloc libosmocore libosmo-abis sqlite3 sqlite3-native"
7
Pau Espin Pedrol71ac7c02017-12-04 18:37:22 +01008INC_PR="r1.${META_TELEPHONY_OSMO_INC}"
Pau Espin Pedrol8554d8a2017-09-26 14:29:24 +02009
10inherit autotools pkgconfig systemd
11
12do_compile_append() {
13 sqlite3 ${WORKDIR}/hlr.db < ${S}/sql/hlr.sql
14}
15
16do_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
26SYSTEMD_SERVICE_${PN} = "${PN}.service"
Pau Espin Pedrol71ac7c02017-12-04 18:37:22 +010027CONFFILES_osmo-hlr = "\
28 ${sysconfdir}/osmocom/osmo-hlr.cfg \
29 ${localstatedir}/lib/osmocom/hlr.db \
30 "