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/proftpd/proftpd_1.3.4b.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/proftpd/proftpd_1.3.4b.bb')
-rw-r--r-- | meta-networking/recipes-daemons/proftpd/proftpd_1.3.4b.bb | 70 |
1 files changed, 70 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 0000000000..cfbadfb089 --- /dev/null +++ b/meta-networking/recipes-daemons/proftpd/proftpd_1.3.4b.bb | |||
@@ -0,0 +1,70 @@ | |||
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 = "r3" | ||
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 | " | ||
19 | |||
20 | SRC_URI[md5sum] = "0871e0b93c9c3c88ca950b6d9a04aed2" | ||
21 | SRC_URI[sha256sum] = "9f659585cea90fc6af34a0ffae4a90e4ed37abe92dbd9b6c311f95a436c961cb" | ||
22 | |||
23 | inherit autotools useradd update-rc.d | ||
24 | |||
25 | PACKAGECONFIG ??= "" | ||
26 | PACKAGECONFIG[curses] = "--enable-curses --enable-ncurses,--disable-curses --disable-ncurses,ncurses" | ||
27 | |||
28 | EXTRA_OECONF = "--disable-cap \ | ||
29 | --disable-auth-pam \ | ||
30 | " | ||
31 | |||
32 | # proftpd uses libltdl which currently makes configuring using | ||
33 | # autotools.bbclass a pain... | ||
34 | do_configure () { | ||
35 | oe_runconf | ||
36 | } | ||
37 | |||
38 | FTPUSER = "ftp" | ||
39 | FTPGROUP = "ftp" | ||
40 | |||
41 | do_install () { | ||
42 | oe_runmake DESTDIR=${D} install | ||
43 | rmdir ${D}${libdir}/proftpd ${D}${datadir}/locale | ||
44 | [ -d ${D}${libexecdir} ] && rmdir ${D}${libexecdir} | ||
45 | sed -i '/ *User[ \t]*/s/ftp/${FTPUSER}/' ${D}${sysconfdir}/proftpd.conf | ||
46 | sed -i '/ *Group[ \t]*/s/ftp/${FTPGROUP}/' ${D}${sysconfdir}/proftpd.conf | ||
47 | install -d ${D}${sysconfdir}/init.d | ||
48 | install -m 0755 ${WORKDIR}/proftpd-basic.init ${D}${sysconfdir}/init.d/proftpd | ||
49 | sed -i 's!/usr/sbin/!${sbindir}/!g' ${D}${sysconfdir}/init.d/proftpd | ||
50 | sed -i 's!/etc/!${sysconfdir}/!g' ${D}${sysconfdir}/init.d/proftpd | ||
51 | sed -i 's!/var/!${localstatedir}/!g' ${D}${sysconfdir}/init.d/proftpd | ||
52 | sed -i 's!^PATH=.*!PATH=${base_sbindir}:${base_bindir}:${sbindir}:${bindir}!' ${D}${sysconfdir}/init.d/proftpd | ||
53 | |||
54 | install -d ${D}${sysconfdir}/default | ||
55 | install -m 0755 ${WORKDIR}/default ${D}${sysconfdir}/default/proftpd | ||
56 | |||
57 | # create the pub directory | ||
58 | mkdir -p ${D}/home/${FTPUSER}/pub/ | ||
59 | chown -R ${FTPUSER}:${FTPGROUP} ${D}/home/${FTPUSER}/pub | ||
60 | } | ||
61 | |||
62 | INITSCRIPT_NAME = "proftpd" | ||
63 | INITSCRIPT_PARAM = "defaults 85 15" | ||
64 | |||
65 | USERADD_PACKAGES = "${PN}" | ||
66 | GROUPADD_PARAM_${PN} = "--system ${FTPGROUP}" | ||
67 | USERADD_PARAM_${PN} = "--system -g ${FTPGROUP} --home-dir /var/lib/${FTPUSER} --no-create-home \ | ||
68 | --shell /bin/false ${FTPUSER}" | ||
69 | |||
70 | FILES_${PN} += "/home/${FTPUSER}" | ||