yp-tools, ypbind-mt: move systemd support from meta-systemd back to meta-networking

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
Martin Jansa
2013-04-13 13:49:05 +02:00
parent 4188d72551
commit 5f26b00964
6 changed files with 34 additions and 43 deletions
@@ -1,12 +0,0 @@
[Unit]
Description=NIS Domainname
[Service]
Type=oneshot
EnvironmentFile=/etc/nisdomainname
ExecStart=/usr/bin/domainname $NISDOMAINNAME
RemainAfterExit=true
[Install]
WantedBy=multi-user.target
@@ -1,14 +0,0 @@
[Unit]
Description=YP Bind
Requires=domainname.service
After=domainname.service network.target
Before=systemd-user-sessions.service
[Service]
Type=forking
PIDFile=/var/run/ypbind.pid
ExecStart=/usr/sbin/ypbind
[Install]
WantedBy=multi-user.target
@@ -1,19 +0,0 @@
inherit systemd
PRINC := "${@int(PRINC) + 2}"
# look for files in the layer first
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
SRC_URI += "file://domainname.service"
RPROVIDES_${PN} += "${PN}-systemd"
RREPLACES_${PN} += "${PN}-systemd"
RCONFLICTS_${PN} += "${PN}-systemd"
SYSTEMD_SERVICE_${PN} = "domainname.service"
do_install_append() {
install -d ${D}${systemd_unitdir}/system
install -m 0644 ${WORKDIR}/domainname.service ${D}${systemd_unitdir}/system
}
@@ -1,17 +0,0 @@
inherit systemd
PRINC := "${@int(PRINC) + 2}"
# look for files in the layer first
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
SRC_URI += "file://ypbind.service"
RPROVIDES_${PN} += "${PN}-systemd"
RREPLACES_${PN} += "${PN}-systemd"
RCONFLICTS_${PN} += "${PN}-systemd"
SYSTEMD_SERVICE_${PN} = "ypbind.service"
do_install_append() {
install -d ${D}${systemd_unitdir}/system
install -m 0644 ${WORKDIR}/ypbind.service ${D}${systemd_unitdir}/system
}