mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-05 02:50:46 +00:00
net-snmp: move systemd support to meta-systemd
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
This commit is contained in:
committed by
Koen Kooi
parent
46acf9d3b5
commit
9f2dd8c0ae
@@ -1,28 +1,18 @@
|
||||
require net-snmp.inc
|
||||
inherit systemd
|
||||
|
||||
PR = "${INC_PR}.3"
|
||||
PR = "${INC_PR}.4"
|
||||
LIC_FILES_CHKSUM = "file://README;beginline=3;endline=8;md5=7f7f00ba639ac8e8deb5a622ea24634e"
|
||||
|
||||
SRC_URI = "${SOURCEFORGE_MIRROR}/net-snmp/net-snmp-${PV}.tar.gz \
|
||||
file://sync-with-5.7-branch.patch \
|
||||
file://libnl-3-support.patch \
|
||||
file://systemd-support.patch \
|
||||
file://snmpd.service \
|
||||
file://snmptrapd.service \
|
||||
file://init \
|
||||
file://snmpd.conf \
|
||||
file://snmptrapd.conf"
|
||||
|
||||
EXTRA_OECONF += "--disable-embedded-perl --with-perl-modules=no --with-systemd "
|
||||
EXTRA_OECONF += "--disable-embedded-perl --with-perl-modules=no"
|
||||
EXTRA_OEMAKE = "INSTALL_PREFIX=${D}"
|
||||
|
||||
SYSTEMD_PACKAGES = "${PN}-server-snmpd-systemd \
|
||||
${PN}-server-snmptrapd-systemd"
|
||||
|
||||
SYSTEMD_SERVICE_${PN}-server-snmpd-systemd = "snmpd.service"
|
||||
SYSTEMD_SERVICE_${PN}-server-snmptrapd-systemd = "snmptrapd.service"
|
||||
|
||||
do_configure_prepend() {
|
||||
gnu-configize -f
|
||||
# We better change sources and re-autoconf here, but
|
||||
@@ -37,6 +27,3 @@ CCACHE = ""
|
||||
|
||||
SRC_URI[md5sum] = "c95d08fd5d93df0c11a2e1bdf0e01e0b"
|
||||
SRC_URI[sha256sum] = "7c71c9650c65b715356547e20ca2dbe6313944278af8cc19c32a5337f46b181f"
|
||||
|
||||
RDEPENDS_${PN}-server-snmpd-systemd = "${PN}-server-snmpd"
|
||||
RDEPENDS_${PN}-server-snmptrapd-systemd = "${PN}-server-snmptrapd"
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
|
||||
|
||||
PRINC := "${@int(PRINC) + 1}"
|
||||
|
||||
inherit systemd
|
||||
|
||||
SRC_URI += " \
|
||||
file://systemd-support.patch \
|
||||
file://snmpd.service \
|
||||
file://snmptrapd.service \
|
||||
"
|
||||
|
||||
EXTRA_OECONF += "--with-systemd"
|
||||
|
||||
SYSTEMD_PACKAGES = "${PN}-server-snmpd-systemd \
|
||||
${PN}-server-snmptrapd-systemd"
|
||||
|
||||
SYSTEMD_SERVICE_${PN}-server-snmpd-systemd = "snmpd.service"
|
||||
SYSTEMD_SERVICE_${PN}-server-snmptrapd-systemd = "snmptrapd.service"
|
||||
Reference in New Issue
Block a user