mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-15 16:07:26 +00:00
atftp: Rework recipe and use libpcre2
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> Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
@@ -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 \
|
||||
"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user