mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-05 02:50:46 +00:00
meta-openembedded: net-snmp: systemd support
Backported systemd-related commits from net-snmp's master branch (full description in the systemd-support.patch file). .service files slightly adapted from Fedora's. Signed-off-by: Mario Domenech Goulart <mario@ossystems.com.br> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
This commit is contained in:
committed by
Koen Kooi
parent
77238ff12b
commit
a2c1414b58
@@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=Simple Network Management Protocol (SNMP) Daemon.
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
Type=notify
|
||||
Environment=OPTIONS="-LS0-6d"
|
||||
EnvironmentFile=-/etc/default/snmpd
|
||||
ExecStart=/usr/sbin/snmpd $OPTIONS -f
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=Simple Network Management Protocol (SNMP) Trap Daemon.
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
Type=notify
|
||||
Environment=OPTIONS="-Lsd"
|
||||
EnvironmentFile=-/etc/default/snmptrapd
|
||||
ExecStart=/usr/sbin/snmptrapd $OPTIONS -f
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,17 +1,25 @@
|
||||
require net-snmp.inc
|
||||
PR = "${INC_PR}.2"
|
||||
inherit systemd
|
||||
|
||||
PR = "${INC_PR}.3"
|
||||
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"
|
||||
EXTRA_OECONF += "--disable-embedded-perl --with-perl-modules=no --with-systemd "
|
||||
EXTRA_OEMAKE = "INSTALL_PREFIX=${D}"
|
||||
|
||||
SYSTEMD_PACKAGES = "${PN}-server-systemd"
|
||||
SYSTEMD_SERVICE_${PN}-server-systemd = "snmpd.service snmptrapd.service"
|
||||
|
||||
do_configure_prepend() {
|
||||
gnu-configize -f
|
||||
# We better change sources and re-autoconf here, but
|
||||
@@ -26,3 +34,5 @@ CCACHE = ""
|
||||
|
||||
SRC_URI[md5sum] = "c95d08fd5d93df0c11a2e1bdf0e01e0b"
|
||||
SRC_URI[sha256sum] = "7c71c9650c65b715356547e20ca2dbe6313944278af8cc19c32a5337f46b181f"
|
||||
|
||||
RDEPENDS_${PN}-server-systemd = "${PN}-server"
|
||||
|
||||
Reference in New Issue
Block a user