diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-09-14 14:30:48 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2019-01-30 22:47:10 +0100 |
commit | ea0eb26644814d81704324c9e12f464349050a54 (patch) | |
tree | 6a7749871324d6e2c0e5342800e7f8df13443e41 | |
parent | 1944ca24da99af734942f21152e929baf0f49650 (diff) |
osmo-ggsn: handle systemd and cfg files through autotools
Change-Id: I3c220c11f58793c644d750040c7fad347500bb8a
-rw-r--r-- | recipes-osmocom/osmo-ggsn/osmo-ggsn.inc | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/recipes-osmocom/osmo-ggsn/osmo-ggsn.inc b/recipes-osmocom/osmo-ggsn/osmo-ggsn.inc index fe0170f..0aaf418 100644 --- a/recipes-osmocom/osmo-ggsn/osmo-ggsn.inc +++ b/recipes-osmocom/osmo-ggsn/osmo-ggsn.inc @@ -5,21 +5,18 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b" DEPENDS = "libosmocore" -INC_PR="r1.${META_TELEPHONY_OSMO_INC}" - -PACKAGES =+ " libgtp libgtp-dev libgtp-staticdev osmo-sgsnemu" -RDEPENDS_${PN} += "iptables" -RRECOMMENDS_${PN} += "kernel-module-ipt-masquerade kernel-module-tun" +INC_PR="r2.${META_TELEPHONY_OSMO_INC}" inherit autotools pkgconfig systemd -do_install_append() { - install -d ${D}${systemd_system_unitdir}/ - install -d ${D}/${sysconfdir}/osmocom/ +PACKAGECONFIG ??= "\ + ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \ + " +PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_system_unitdir},--without-systemdsystemunitdir" - install -m 0644 ${S}/contrib/osmo-ggsn.service ${D}${systemd_system_unitdir}/ - install -m 0644 ${S}/doc/examples/osmo-ggsn.cfg ${D}${sysconfdir}/osmocom/ -} +PACKAGES =+ " libgtp libgtp-dev libgtp-staticdev osmo-sgsnemu" +RDEPENDS_${PN} += "iptables" +RRECOMMENDS_${PN} += "kernel-module-ipt-masquerade kernel-module-tun" SYSTEMD_SERVICE_osmo-ggsn = "osmo-ggsn.service" |