diff options
author | Tudor Florea <tudor.florea@enea.com> | 2014-10-10 03:20:04 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2014-10-10 03:20:04 +0200 |
commit | 1b8dfe266937a37a4c642f96ceb2347bf4c00a17 (patch) | |
tree | 0c6aab146bb3c82efd9c7846a9a4e70dcb0ec84f /meta-networking/recipes-daemons/atftp/atftp_git.bb | |
download | meta-openembedded-daisy-140929.tar.gz |
initial commit for Enea Linux 4.0-140929daisy-140929
Migrated from the internal git server on the daisy-enea-point-release branch
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta-networking/recipes-daemons/atftp/atftp_git.bb')
-rw-r--r-- | meta-networking/recipes-daemons/atftp/atftp_git.bb | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/meta-networking/recipes-daemons/atftp/atftp_git.bb b/meta-networking/recipes-daemons/atftp/atftp_git.bb new file mode 100644 index 0000000000..ee84f77252 --- /dev/null +++ b/meta-networking/recipes-daemons/atftp/atftp_git.bb | |||
@@ -0,0 +1,61 @@ | |||
1 | SUMMARY = "Advanced TFTP server and client" | ||
2 | SECTION = "network" | ||
3 | HOMEPAGE = "http://packages.debian.org/atftp" | ||
4 | LICENSE = "GPLv2" | ||
5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=94d55d512a9ba36caa9b7df079bae19f" | ||
6 | PV = "0.7.1+git${SRCPV}" | ||
7 | PR = "r3" | ||
8 | |||
9 | SRCREV = "be3291a18c069ae23a124ffdc56d64a5ff0bbec7" | ||
10 | |||
11 | SRC_URI = "git://git.code.sf.net/p/atftp/code \ | ||
12 | file://atftpd-0.7_circumvent_tftp_size_restrictions.patch \ | ||
13 | file://atftpd-0.7_unprotected_assignments_crash.patch \ | ||
14 | file://atftpd.init \ | ||
15 | file://atftpd.service \ | ||
16 | file://atftp-0.7-sorcerers_apprentice.patch \ | ||
17 | " | ||
18 | S = "${WORKDIR}/git" | ||
19 | |||
20 | inherit autotools update-rc.d useradd systemd | ||
21 | |||
22 | PACKAGECONFIG ??= "tcp-wrappers" | ||
23 | PACKAGECONFIG[pcre] = "--enable-libpcre,--disable-libpcre,libpcre" | ||
24 | PACKAGECONFIG[tcp-wrappers] = "--enable-libwrap,--disable-libwrap,tcp-wrappers" | ||
25 | PACKAGECONFIG[readline] = "--enable-libreadline,--disable-libreadline,readline" | ||
26 | |||
27 | INITSCRIPT_PACKAGES = "${PN}d" | ||
28 | INITSCRIPT_NAME_${PN}d = "atftpd" | ||
29 | INITSCRIPT_PARAMS_${PN}d = "defaults 80" | ||
30 | |||
31 | USERADD_PACKAGES = "${PN}d" | ||
32 | USERADD_PARAM_${PN}d = "--system --no-create-home --shell /bin/false \ | ||
33 | --user-group nobody" | ||
34 | |||
35 | do_install_append() { | ||
36 | install -d ${D}${sysconfdir}/init.d | ||
37 | install -m 0755 ${WORKDIR}/atftpd.init ${D}${sysconfdir}/init.d/atftpd | ||
38 | |||
39 | install -d ${D}/srv/tftp | ||
40 | |||
41 | rm ${D}${sbindir}/in.tftpd | ||
42 | |||
43 | install -d ${D}${systemd_unitdir}/system | ||
44 | install -m 0644 ${WORKDIR}/atftpd.service ${D}${systemd_unitdir}/system | ||
45 | } | ||
46 | |||
47 | PACKAGES =+ "${PN}d" | ||
48 | |||
49 | FILES_${PN} = "${bindir}/*" | ||
50 | |||
51 | FILES_${PN}d = "${sbindir}/* \ | ||
52 | ${sysconfdir} \ | ||
53 | /srv/tftp \ | ||
54 | ${systemd_unitdir}/system/atftpd.service \ | ||
55 | " | ||
56 | |||
57 | SYSTEMD_PACKAGES = "${PN}d" | ||
58 | SYSTEMD_SERVICE_${PN}d = "atftpd.service" | ||
59 | RPROVIDES_${PN}d += "${PN}d-systemd" | ||
60 | RREPLACES_${PN}d += "${PN}d-systemd" | ||
61 | RCONFLICTS_${PN}d += "${PN}d-systemd" | ||