atftp: move systemd support from meta-systemd back to meta-oe

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
Martin Jansa
2013-04-13 14:49:10 +02:00
parent 1e29c4586e
commit fe76f1ab77
3 changed files with 17 additions and 21 deletions
@@ -1,10 +0,0 @@
[Unit]
Description=Advanced TFTP Server
After=syslog.target network.target
[Service]
Type=forking
ExecStart=/usr/sbin/atftpd --daemon --port 69
[Install]
WantedBy=multi-user.target
@@ -1,19 +0,0 @@
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
PRINC := "${@int(PRINC) + 2}"
inherit systemd
SRC_URI += "file://atftpd.service"
SYSTEMD_PACKAGES = "${PN}d"
SYSTEMD_SERVICE_${PN}d = "atftpd.service"
FILES_${PN}d += "${systemd_unitdir}/system/atftpd.service"
RPROVIDES_${PN}d += "${PN}d-systemd"
RREPLACES_${PN}d += "${PN}d-systemd"
RCONFLICTS_${PN}d += "${PN}d-systemd"
do_install_append() {
install -d ${D}${systemd_unitdir}/system
install -m 0644 ${WORKDIR}/atftpd.service ${D}${systemd_unitdir}/system
}