From a7c02babb6df4c0b88c81980261e6e5b2e8c2761 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Sommer?= Date: Thu, 18 Jun 2026 20:37:12 +0200 Subject: [PATCH] atftp: Rework recipe and use libpcre2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Debian package page is not the appropriate homepage. And we can add the bug tracker URL and a description. Configure has some more options we can expose as PACKAGECONFIG. In INSTALL file in the source repository states that libpcre2 (instead of libpcre) should be used. And std=gnu89 is no longer needed. Signed-off-by: Jörg Sommer Signed-off-by: Khem Raj --- .../recipes-daemons/atftp/atftp_0.8.1.bb | 24 ++++++++++++------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/meta-networking/recipes-daemons/atftp/atftp_0.8.1.bb b/meta-networking/recipes-daemons/atftp/atftp_0.8.1.bb index ecd55684f5..be40302a3b 100644 --- a/meta-networking/recipes-daemons/atftp/atftp_0.8.1.bb +++ b/meta-networking/recipes-daemons/atftp/atftp_0.8.1.bb @@ -1,6 +1,13 @@ SUMMARY = "Advanced TFTP server and client" +DESCRIPTION = "\ + atftp is a client/server implementation of the TFTP protocol that \ + implements RFCs 1350, 2090, 2347, 2348, 2349 and 7440. The server is \ + multi-threaded and the client presents a friendly interface using \ + libreadline. \ +" +HOMEPAGE = "https://sourceforge.net/projects/atftp/" +BUGTRACKER = "https://sourceforge.net/p/atftp/bugs/" SECTION = "net" -HOMEPAGE = "http://packages.debian.org/atftp" LICENSE = "GPL-2.0-only" LIC_FILES_CHKSUM = "file://LICENSE;md5=570a9b3749dd0463a1778803b12a6dce" @@ -11,25 +18,23 @@ SRC_URI = "git://git.code.sf.net/p/atftp/code;branch=master;protocol=https \ file://atftpd.service \ " - inherit autotools update-rc.d systemd PACKAGECONFIG ??= "" -PACKAGECONFIG[pcre] = "--enable-libpcre,--disable-libpcre,libpcre" +PACKAGECONFIG[mtftp] = "--enable-mtftp,--disable-mtftp" +PACKAGECONFIG[pcre] = "--enable-libpcre,--disable-libpcre,libpcre2" PACKAGECONFIG[readline] = "--enable-libreadline,--disable-libreadline,readline" +PACKAGECONFIG[wrap] = "--enable-libwrap,--disable-libwrap,libwrap" INITSCRIPT_PACKAGES = "${PN}d" INITSCRIPT_NAME:${PN}d = "atftpd" INITSCRIPT_PARAMS:${PN}d = "defaults 80" - -EXTRA_OEMAKE = "CFLAGS='${CFLAGS} -std=gnu89'" - do_install:append() { install -d ${D}${sysconfdir}/init.d install -m 0755 ${UNPACKDIR}/atftpd.init ${D}${sysconfdir}/init.d/atftpd - install -d ${D}/srv/tftp + install -d ${D}${servicedir}/tftp rm ${D}${sbindir}/in.tftpd @@ -41,9 +46,10 @@ PACKAGES =+ "${PN}d" FILES:${PN} = "${bindir}/*" -FILES:${PN}d = "${sbindir}/* \ +FILES:${PN}d = "\ + ${sbindir}/* \ ${sysconfdir} \ - /srv/tftp \ + ${servicedir}/tftp \ ${systemd_unitdir}/system/atftpd.service \ "