diff options
Diffstat (limited to 'meta-networking/recipes-daemons/proftpd/proftpd_1.3.4b.bb')
-rw-r--r-- | meta-networking/recipes-daemons/proftpd/proftpd_1.3.4b.bb | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/meta-networking/recipes-daemons/proftpd/proftpd_1.3.4b.bb b/meta-networking/recipes-daemons/proftpd/proftpd_1.3.4b.bb new file mode 100644 index 000000000..a5e766af5 --- /dev/null +++ b/meta-networking/recipes-daemons/proftpd/proftpd_1.3.4b.bb | |||
@@ -0,0 +1,73 @@ | |||
1 | SUMMARY = "Secure and configurable FTP server" | ||
2 | SECTION = "console/network" | ||
3 | HOMEPAGE = "http://www.proftpd.org" | ||
4 | LICENSE = "GPLv2+" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=fb0d1484d11915fa88a6a7702f1dc184" | ||
6 | |||
7 | PR = "r4" | ||
8 | |||
9 | SRC_URI = "ftp://ftp.proftpd.org/distrib/source/${BPN}-${PV}.tar.gz \ | ||
10 | file://make.patch \ | ||
11 | file://basic.conf.patch \ | ||
12 | file://contrib.patch \ | ||
13 | file://proftpd-basic.init \ | ||
14 | file://default \ | ||
15 | file://move-pidfile-to-var-run.patch \ | ||
16 | file://close-RequireValidShell-check.patch \ | ||
17 | file://move-runfile-to-var-run.patch \ | ||
18 | file://proftpd-sftp.patch \ | ||
19 | " | ||
20 | |||
21 | SRC_URI[md5sum] = "0871e0b93c9c3c88ca950b6d9a04aed2" | ||
22 | SRC_URI[sha256sum] = "9f659585cea90fc6af34a0ffae4a90e4ed37abe92dbd9b6c311f95a436c961cb" | ||
23 | |||
24 | inherit autotools-brokensep useradd update-rc.d | ||
25 | |||
26 | PACKAGECONFIG ??= "" | ||
27 | PACKAGECONFIG[curses] = "--enable-curses --enable-ncurses,--disable-curses --disable-ncurses,ncurses" | ||
28 | |||
29 | EXTRA_OECONF = "--disable-cap \ | ||
30 | --disable-auth-pam \ | ||
31 | " | ||
32 | |||
33 | # proftpd uses libltdl which currently makes configuring using | ||
34 | # autotools.bbclass a pain... | ||
35 | do_configure () { | ||
36 | oe_runconf | ||
37 | } | ||
38 | |||
39 | FTPUSER = "ftp" | ||
40 | FTPGROUP = "ftp" | ||
41 | |||
42 | do_install () { | ||
43 | oe_runmake DESTDIR=${D} install | ||
44 | rmdir ${D}${libdir}/proftpd ${D}${datadir}/locale | ||
45 | [ -d ${D}${libexecdir} ] && rmdir ${D}${libexecdir} | ||
46 | sed -i '/ *User[ \t]*/s/ftp/${FTPUSER}/' ${D}${sysconfdir}/proftpd.conf | ||
47 | sed -i '/ *Group[ \t]*/s/ftp/${FTPGROUP}/' ${D}${sysconfdir}/proftpd.conf | ||
48 | install -d ${D}${sysconfdir}/init.d | ||
49 | install -m 0755 ${WORKDIR}/proftpd-basic.init ${D}${sysconfdir}/init.d/proftpd | ||
50 | sed -i 's!/usr/sbin/!${sbindir}/!g' ${D}${sysconfdir}/init.d/proftpd | ||
51 | sed -i 's!/etc/!${sysconfdir}/!g' ${D}${sysconfdir}/init.d/proftpd | ||
52 | sed -i 's!/var/!${localstatedir}/!g' ${D}${sysconfdir}/init.d/proftpd | ||
53 | sed -i 's!^PATH=.*!PATH=${base_sbindir}:${base_bindir}:${sbindir}:${bindir}!' ${D}${sysconfdir}/init.d/proftpd | ||
54 | |||
55 | install -d ${D}${sysconfdir}/default | ||
56 | install -m 0755 ${WORKDIR}/default ${D}${sysconfdir}/default/proftpd | ||
57 | |||
58 | # create the pub directory | ||
59 | mkdir -p ${D}/home/${FTPUSER}/pub/ | ||
60 | chown -R ${FTPUSER}:${FTPGROUP} ${D}/home/${FTPUSER}/pub | ||
61 | } | ||
62 | |||
63 | INITSCRIPT_NAME = "proftpd" | ||
64 | INITSCRIPT_PARAM = "defaults 85 15" | ||
65 | |||
66 | USERADD_PACKAGES = "${PN}" | ||
67 | GROUPADD_PARAM_${PN} = "--system ${FTPGROUP}" | ||
68 | USERADD_PARAM_${PN} = "--system -g ${FTPGROUP} --home-dir /var/lib/${FTPUSER} --no-create-home \ | ||
69 | --shell /bin/false ${FTPUSER}" | ||
70 | |||
71 | FILES_${PN} += "/home/${FTPUSER}" | ||
72 | |||
73 | RDEPENDS_${PN} += "perl" | ||