aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-09-14 13:47:57 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2019-01-30 22:46:13 +0100
commitbaff81459b9b91506df970847abb681b3c66ff0b (patch)
tree6b4fe66d7c4b93b892e7204c822806cd8f1e81fd
parent501f34ef58c275267750f5160ed5ccce8559416b (diff)
osmo-iuh: handle systemd and cfg files through autotools
-rw-r--r--recipes-osmocom/osmo-iuh/osmo-iuh.inc13
1 files changed, 5 insertions, 8 deletions
diff --git a/recipes-osmocom/osmo-iuh/osmo-iuh.inc b/recipes-osmocom/osmo-iuh/osmo-iuh.inc
index 6dfb344..ab412ad 100644
--- a/recipes-osmocom/osmo-iuh/osmo-iuh.inc
+++ b/recipes-osmocom/osmo-iuh/osmo-iuh.inc
@@ -5,17 +5,14 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=73f1eb20517c55bf9493b7dd6e480788"
DEPENDS = "libosmocore libosmo-netif libosmo-sccp libasn1c"
-INC_PR="r0.${META_TELEPHONY_OSMO_INC}"
+INC_PR="r1.${META_TELEPHONY_OSMO_INC}"
inherit autotools pkgconfig systemd
-do_install_append() {
- install -d ${D}${systemd_system_unitdir}/
- install -d ${D}${sysconfdir}/osmocom/
-
- install -m 0644 ${S}/doc/examples/osmo-hnbgw.cfg ${D}${sysconfdir}/osmocom/
- install -m 0644 ${S}/contrib/systemd/osmo-hnbgw.service ${D}${systemd_system_unitdir}/
-}
+PACKAGECONFIG ??= "\
+ ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \
+ "
+PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_system_unitdir},--without-systemdsystemunitdir"
PACKAGES =+ "libosmo-ranap libosmo-ranap-dev osmo-hnbgw"
SYSTEMD_PACKAGES = "osmo-hnbgw"