linux-kexecboot_git: update Zaurus defconfigs for 2.6.38-rc2
[openembedded.git] / recipes / vsftpd / vsftpd_2.0.5.bb
blob518628e4f5273422ab770ff150619a426945a915
1 DESCRIPTION = "Secure ftp daemon"
2 SECTION = "console/network"
3 LICENSE = "GPL"
4 PR = "r2"
6 SRC_URI = "ftp://vsftpd.beasts.org/users/cevans/vsftpd-${PV}.tar.gz \
7 file://makefile.patch \
8 file://nopam.patch \
9 file://syscall.patch \
10 file://init \
11 file://vsftpd.conf"
13 inherit update-rc.d
15 do_configure() {
16 # Fix hardcoded /usr, /etc, /var mess.
17 cat tunables.c|sed s:\"/usr:\"${prefix}:g|sed s:\"/var:\"${localstatedir}:g \
18 |sed s:\"${prefix}/share/empty:\"${localstatedir}/share/empty:g |sed s:\"/etc:\"${sysconfdir}:g > tunables.c.new
19 mv tunables.c.new tunables.c
22 do_compile() {
23 oe_runmake "LIBS=-lcrypt -L${STAGING_LIBDIR}"
26 do_install() {
27 install -d ${D}${sbindir}
28 install -d ${D}${mandir}/man8
29 install -d ${D}${mandir}/man5
30 oe_runmake 'DESTDIR=${D}' install
31 install -d ${D}${sysconfdir}
32 install -m 0755 ${WORKDIR}/vsftpd.conf ${D}${sysconfdir}/vsftpd.conf
33 install -d ${D}${sysconfdir}/init.d/
34 install -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/vsftpd
37 pkg_postinst() {
38 if [ "x$D" != "x" ]; then
39 exit 1
41 addgroup ftp
42 adduser --system --home /var/lib/ftp --no-create-home --ingroup ftp --disabled-password -s /bin/false ftp
43 mkdir -p ${localstatedir}/share/empty
46 INITSCRIPT_NAME = "vsftpd"
48 INITSCRIPT_PARAMS = "defaults"
50 SRC_URI[md5sum] = "146062e8b2f93af43ff6c2c770feea94"
51 SRC_URI[sha256sum] = "5462ebf0df2792dde8ea3cf5d87c715200aac388554b3f0a9ace6265edecfa5b"