blob: 936fc723f7344a96f01845c4b654812205ff3f61 [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001SUMMARY = "Advanced TFTP server and client"
2SECTION = "net"
3HOMEPAGE = "http://packages.debian.org/atftp"
4LICENSE = "GPLv2"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=94d55d512a9ba36caa9b7df079bae19f"
Patrick Williamsb48b7b42016-08-17 15:04:38 -05006
Andrew Geisslerac970dd2021-02-12 15:32:45 -06007SRCREV = "e56e8845f1070e89a4a6e509396b681688d03793"
Patrick Williamsb48b7b42016-08-17 15:04:38 -05008
9SRC_URI = "git://git.code.sf.net/p/atftp/code \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050010 file://atftpd.init \
Patrick Williamsddad1a12017-02-23 20:36:32 -060011 file://atftpd.service \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050012"
Patrick Williamsddad1a12017-02-23 20:36:32 -060013
Patrick Williamsb48b7b42016-08-17 15:04:38 -050014S = "${WORKDIR}/git"
15
Patrick Williamsddad1a12017-02-23 20:36:32 -060016inherit autotools update-rc.d systemd
Patrick Williamsb48b7b42016-08-17 15:04:38 -050017
18PACKAGECONFIG ??= "tcp-wrappers"
19PACKAGECONFIG[pcre] = "--enable-libpcre,--disable-libpcre,libpcre"
20PACKAGECONFIG[tcp-wrappers] = "--enable-libwrap,--disable-libwrap,tcp-wrappers"
21PACKAGECONFIG[readline] = "--enable-libreadline,--disable-libreadline,readline"
22
23INITSCRIPT_PACKAGES = "${PN}d"
24INITSCRIPT_NAME_${PN}d = "atftpd"
25INITSCRIPT_PARAMS_${PN}d = "defaults 80"
26
Patrick Williamsb48b7b42016-08-17 15:04:38 -050027
28EXTRA_OEMAKE = "CFLAGS='${CFLAGS} -std=gnu89'"
29
30do_install_append() {
31 install -d ${D}${sysconfdir}/init.d
32 install -m 0755 ${WORKDIR}/atftpd.init ${D}${sysconfdir}/init.d/atftpd
33
34 install -d ${D}/srv/tftp
35
36 rm ${D}${sbindir}/in.tftpd
Patrick Williamsddad1a12017-02-23 20:36:32 -060037
Patrick Williamsb48b7b42016-08-17 15:04:38 -050038 install -d ${D}${systemd_unitdir}/system
39 install -m 0644 ${WORKDIR}/atftpd.service ${D}${systemd_unitdir}/system
40}
41
42PACKAGES =+ "${PN}d"
43
44FILES_${PN} = "${bindir}/*"
45
46FILES_${PN}d = "${sbindir}/* \
47 ${sysconfdir} \
48 /srv/tftp \
49 ${systemd_unitdir}/system/atftpd.service \
50"
51
52SYSTEMD_PACKAGES = "${PN}d"
53SYSTEMD_SERVICE_${PN}d = "atftpd.service"
54RPROVIDES_${PN}d += "${PN}d-systemd"
55RREPLACES_${PN}d += "${PN}d-systemd"
56RCONFLICTS_${PN}d += "${PN}d-systemd"