diff options
| author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2013-04-16 10:53:55 +0000 |
|---|---|---|
| committer | Martin Jansa <Martin.Jansa@gmail.com> | 2013-04-19 02:45:27 +0200 |
| commit | 21adc5d117329b11fa42da2f62edce3cad8719ff (patch) | |
| tree | 369b8b36964abec08428032c3162423275160c7d /meta-networking/recipes-daemons/vsftpd/vsftpd_2.3.5.bb | |
| parent | b2aa32edd3f922514938f895354ef6719bf56681 (diff) | |
| download | meta-openembedded-21adc5d117329b11fa42da2f62edce3cad8719ff.tar.gz | |
vsftpd: move from meta-oe to meta-networking and tweak
* Fix stripped file QA warning
* Add proper headers to patches (and split makefile.patch into two
parts, one of which may be upstreamable)
* Use PV in SRC_URI instead of hardcoded version
* Move SRC_URI checksums up next to SRC_URI
* Set SUMMARY instead of DESCRIPTION
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-networking/recipes-daemons/vsftpd/vsftpd_2.3.5.bb')
| -rw-r--r-- | meta-networking/recipes-daemons/vsftpd/vsftpd_2.3.5.bb | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/meta-networking/recipes-daemons/vsftpd/vsftpd_2.3.5.bb b/meta-networking/recipes-daemons/vsftpd/vsftpd_2.3.5.bb new file mode 100644 index 0000000000..c02ee9c0ab --- /dev/null +++ b/meta-networking/recipes-daemons/vsftpd/vsftpd_2.3.5.bb | |||
| @@ -0,0 +1,51 @@ | |||
| 1 | SUMMARY = "Very Secure FTP server" | ||
| 2 | HOMEPAGE = "https://security.appspot.com/vsftpd.html" | ||
| 3 | SECTION = "network" | ||
| 4 | LICENSE = "GPLv2" | ||
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=a6067ad950b28336613aed9dd47b1271" | ||
| 6 | |||
| 7 | DEPENDS = "libcap" | ||
| 8 | |||
| 9 | SRC_URI = "https://security.appspot.com/downloads/vsftpd-${PV}.tar.gz \ | ||
| 10 | file://makefile-destdir.patch \ | ||
| 11 | file://makefile-libs.patch \ | ||
| 12 | file://makefile-strip.patch \ | ||
| 13 | file://nopam.patch \ | ||
| 14 | file://init \ | ||
| 15 | file://vsftpd.conf" | ||
| 16 | |||
| 17 | SRC_URI[md5sum] = "01398a5bef8e85b6cf2c213a4b011eca" | ||
| 18 | SRC_URI[sha256sum] = "d87ee2987df8f03e1dbe294905f7907b2798deb89c67ca965f6e2f60879e54f1" | ||
| 19 | |||
| 20 | inherit update-rc.d useradd | ||
| 21 | |||
| 22 | CONFFILES_${PN} = "${sysconfdir}/vsftpd.conf" | ||
| 23 | LDFLAGS_append =" -lcrypt -lcap" | ||
| 24 | |||
| 25 | do_configure() { | ||
| 26 | # Fix hardcoded /usr, /etc, /var mess. | ||
| 27 | cat tunables.c|sed s:\"/usr:\"${prefix}:g|sed s:\"/var:\"${localstatedir}:g \ | ||
| 28 | |sed s:\"${prefix}/share/empty:\"${localstatedir}/share/empty:g |sed s:\"/etc:\"${sysconfdir}:g > tunables.c.new | ||
| 29 | mv tunables.c.new tunables.c | ||
| 30 | } | ||
| 31 | |||
| 32 | do_install() { | ||
| 33 | install -d ${D}${sbindir} | ||
| 34 | install -d ${D}${mandir}/man8 | ||
| 35 | install -d ${D}${mandir}/man5 | ||
| 36 | oe_runmake 'DESTDIR=${D}' install | ||
| 37 | install -d ${D}${sysconfdir} | ||
| 38 | install -m 0755 ${WORKDIR}/vsftpd.conf ${D}${sysconfdir}/vsftpd.conf | ||
| 39 | install -d ${D}${sysconfdir}/init.d/ | ||
| 40 | install -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/vsftpd | ||
| 41 | } | ||
| 42 | |||
| 43 | INITSCRIPT_PACKAGES = "${PN}" | ||
| 44 | INITSCRIPT_NAME_${PN} = "vsftpd" | ||
| 45 | INITSCRIPT_PARAMS_${PN} = "defaults 80" | ||
| 46 | |||
| 47 | USERADD_PACKAGES = "${PN}" | ||
| 48 | USERADD_PARAM_${PN} = "--system --home-dir /var/lib/ftp --no-create-home -g ftp \ | ||
| 49 | --shell /bin/false ftp " | ||
| 50 | GROUPADD_PARAM_${PN} = "-r ftp" | ||
| 51 | |||
