diff options
Diffstat (limited to 'meta-networking/recipes-daemons/atftp/atftp_git.bb')
| -rw-r--r-- | meta-networking/recipes-daemons/atftp/atftp_git.bb | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/meta-networking/recipes-daemons/atftp/atftp_git.bb b/meta-networking/recipes-daemons/atftp/atftp_git.bb new file mode 100644 index 0000000000..09451bc7ab --- /dev/null +++ b/meta-networking/recipes-daemons/atftp/atftp_git.bb | |||
| @@ -0,0 +1,55 @@ | |||
| 1 | SUMMARY = "Advanced TFTP server and client" | ||
| 2 | SECTION = "network" | ||
| 3 | HOMEPAGE = "http://packages.debian.org/atftp" | ||
| 4 | LICENSE = "GPLv2" | ||
| 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=94d55d512a9ba36caa9b7df079bae19f" | ||
| 6 | PV = "0.7.1+git${SRCPV}" | ||
| 7 | PR = "r3" | ||
| 8 | |||
| 9 | SRCREV = "be3291a18c069ae23a124ffdc56d64a5ff0bbec7" | ||
| 10 | |||
| 11 | SRC_URI = "git://atftp.git.sourceforge.net/gitroot/atftp/atftp;protocol=git \ | ||
| 12 | file://atftpd-0.7_circumvent_tftp_size_restrictions.patch \ | ||
| 13 | file://atftpd-0.7_unprotected_assignments_crash.patch \ | ||
| 14 | file://atftpd.init \ | ||
| 15 | file://atftpd.service \ | ||
| 16 | " | ||
| 17 | S = "${WORKDIR}/git" | ||
| 18 | |||
| 19 | inherit autotools update-rc.d useradd systemd | ||
| 20 | |||
| 21 | INITSCRIPT_PACKAGES = "${PN}d" | ||
| 22 | INITSCRIPT_NAME_${PN}d = "atftpd" | ||
| 23 | INITSCRIPT_PARAMS_${PN}d = "defaults 80" | ||
| 24 | |||
| 25 | USERADD_PACKAGES = "${PN}d" | ||
| 26 | USERADD_PARAM_${PN}d = "--system --no-create-home --shell /bin/false \ | ||
| 27 | --user-group nobody" | ||
| 28 | |||
| 29 | do_install_append() { | ||
| 30 | install -d ${D}${sysconfdir}/init.d | ||
| 31 | install -m 0755 ${WORKDIR}/atftpd.init ${D}${sysconfdir}/init.d/atftpd | ||
| 32 | |||
| 33 | install -d ${D}/srv/tftp | ||
| 34 | |||
| 35 | rm ${D}${sbindir}/in.tftpd | ||
| 36 | |||
| 37 | install -d ${D}${systemd_unitdir}/system | ||
| 38 | install -m 0644 ${WORKDIR}/atftpd.service ${D}${systemd_unitdir}/system | ||
| 39 | } | ||
| 40 | |||
| 41 | PACKAGES =+ "${PN}d" | ||
| 42 | |||
| 43 | FILES_${PN} = "${bindir}/*" | ||
| 44 | |||
| 45 | FILES_${PN}d = "${sbindir}/* \ | ||
| 46 | ${sysconfdir}/init.d/* \ | ||
| 47 | /srv/tftp \ | ||
| 48 | ${systemd_unitdir}/system/atftpd.service \ | ||
| 49 | " | ||
| 50 | |||
| 51 | SYSTEMD_PACKAGES = "${PN}d" | ||
| 52 | SYSTEMD_SERVICE_${PN}d = "atftpd.service" | ||
| 53 | RPROVIDES_${PN}d += "${PN}d-systemd" | ||
| 54 | RREPLACES_${PN}d += "${PN}d-systemd" | ||
| 55 | RCONFLICTS_${PN}d += "${PN}d-systemd" | ||
