diff mbox series

atftp: Rework recipe and use libpcre2

Message ID cfb743394e19ccc8ab722c8fcdef37b076ab3932.1781807832.git.joerg.sommer@navimatix.de
State Under Review
Headers show
Series atftp: Rework recipe and use libpcre2 | expand

Commit Message

Jörg Sommer June 18, 2026, 6:37 p.m. UTC
From: Jörg Sommer <joerg.sommer@navimatix.de>

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 <joerg.sommer@navimatix.de>
---
 .../recipes-daemons/atftp/atftp_0.8.1.bb      | 24 ++++++++++++-------
 1 file changed, 15 insertions(+), 9 deletions(-)
diff mbox series

Patch

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 \
 "