blob: 946784bb97b491663ad23d3992de9d5042bcc140 [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 Pedrol2f80c972018-09-07 16:35:06 +02008INC_PR="r1.${META_TELEPHONY_OSMO_INC}"
Pau Espin Pedrol8554d8a2017-09-26 14:29:24 +02009
10inherit autotools pkgconfig systemd
11
12do_compile_append() {
Pau Espin Pedrol806e58e2018-12-19 15:55:13 +010013 rm -f ${WORKDIR}/hlr.db
Pau Espin Pedrol8554d8a2017-09-26 14:29:24 +020014 sqlite3 ${WORKDIR}/hlr.db < ${S}/sql/hlr.sql
15}
16
17do_install_append() {
18 install -d ${D}${systemd_system_unitdir}/
19 install -d ${D}${sysconfdir}/osmocom/
20 install -d ${D}${localstatedir}/lib/osmocom/
21
22 install -m 0644 ${S}/doc/examples/osmo-hlr.cfg ${D}${sysconfdir}/osmocom/
23 install -m 0644 ${S}/contrib/systemd/osmo-hlr.service ${D}${systemd_system_unitdir}/
24 install -m 0644 ${WORKDIR}/hlr.db ${D}${localstatedir}/lib/osmocom/hlr.db
25}
26
Pau Espin Pedrol2f80c972018-09-07 16:35:06 +020027PACKAGES =+ "libosmo-gsup-client libosmo-gsup-client-dev osmo-hlr-utils"
28
29FILES_libosmo-gsup-client = "${libdir}/libosmo-gsup-client${SOLIBS}"
30FILES_libosmo-gsup-client-dev = " \
31 ${includedir}/osmocom/gsupclient \
32 ${libdir}/pkgconfig/libosmo-gsup-client.pc \
33 ${libdir}/libosmo-gsup-client${SOLIBSDEV} \
34 "
35
36FILES_osmo-hlr-utils = " \
37 ${bindir}/osmo-hlr-db-tool \
38 ${bindir}/osmo-euse-demo \
39 "
40
Pau Espin Pedrol8554d8a2017-09-26 14:29:24 +020041SYSTEMD_SERVICE_${PN} = "${PN}.service"
Pau Espin Pedrol71ac7c02017-12-04 18:37:22 +010042CONFFILES_osmo-hlr = "\
43 ${sysconfdir}/osmocom/osmo-hlr.cfg \
44 ${localstatedir}/lib/osmocom/hlr.db \
45 "