mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-10-01 15:47:41 +00:00
43 lines
1.3 KiB
BlitzBasic
43 lines
1.3 KiB
BlitzBasic
DESCRIPTION = "Advanced TFTP server and client"
|
|
SECTION = "network"
|
|
HOMEPAGE = "http://packages.debian.org/atftp"
|
|
LICENSE = "GPLv2"
|
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=94d55d512a9ba36caa9b7df079bae19f"
|
|
PR = "r4"
|
|
|
|
SRC_URI = "${DEBIAN_MIRROR}/main/a/atftp/atftp_${PV}.dfsg.orig.tar.gz;name=archive \
|
|
${DEBIAN_MIRROR}/main/a/atftp/atftp_${PV}.dfsg-11.diff.gz;name=patch \
|
|
file://atftpd.init"
|
|
|
|
S = "${WORKDIR}/atftp-${PV}.dfsg"
|
|
|
|
inherit autotools update-rc.d useradd
|
|
|
|
INITSCRIPT_PACKAGES = "${PN}d"
|
|
INITSCRIPT_NAME_${PN}d = "atftpd"
|
|
INITSCRIPT_PARAMS_${PN}d = "defaults 80"
|
|
|
|
USERADD_PACKAGES = "${PN}d"
|
|
USERADD_PARAM_${PN}d = "--system --no-create-home --shell /bin/false \
|
|
--user-group nobody"
|
|
|
|
do_install_append() {
|
|
install -d ${D}${sysconfdir}/init.d
|
|
install -m 0755 ${WORKDIR}/atftpd.init ${D}${sysconfdir}/init.d/atftpd
|
|
|
|
install -d ${D}/srv/tftp
|
|
|
|
rm ${D}${sbindir}/in.tftpd
|
|
}
|
|
|
|
PACKAGES =+ "atftpd"
|
|
|
|
FILES_${PN} = "${bindir}/*"
|
|
|
|
FILES_${PN}d = "${sbindir}/* ${sysconfdir}/init.d/* /srv/tftp"
|
|
|
|
SRC_URI[archive.md5sum] = "aa269044a6f992eca78fee2f6119643c"
|
|
SRC_URI[archive.sha256sum] = "18815f5b67290fac087c6b9da28dfa5e0feb722096f5c5de52e59b46026da559"
|
|
SRC_URI[patch.md5sum] = "1636f199bf32c754a7bf34a5c647d138"
|
|
SRC_URI[patch.sha256sum] = "0df33f6c09c2b2de58a84d7bb757844fc9538cd4d6c8d9c463da5270ebc2e41d"
|