diff options
author | Andreas Müller <schnitzeltony@googlemail.com> | 2013-04-29 17:01:13 +0200 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2013-05-10 11:02:39 +0200 |
commit | 8c709eb9fda970e06a7114c00c5e027fd3621259 (patch) | |
tree | f1a915dcefb28e9236ce0fb0b795998666974b7e /meta-networking/recipes-daemons/proftpd | |
parent | f06c454faa2cb798d3ab87ed392d827363022930 (diff) | |
download | meta-openembedded-8c709eb9fda970e06a7114c00c5e027fd3621259.tar.gz |
proftpd: remove postinst - directory can be setup offline in do_install
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-networking/recipes-daemons/proftpd')
-rw-r--r-- | meta-networking/recipes-daemons/proftpd/proftpd_1.3.4b.bb | 16 |
1 files changed, 5 insertions, 11 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 index 28a735786..806413bd7 100644 --- a/meta-networking/recipes-daemons/proftpd/proftpd_1.3.4b.bb +++ b/meta-networking/recipes-daemons/proftpd/proftpd_1.3.4b.bb | |||
@@ -4,7 +4,7 @@ HOMEPAGE = "http://www.proftpd.org" | |||
4 | LICENSE = "GPLv2+" | 4 | LICENSE = "GPLv2+" |
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=fb0d1484d11915fa88a6a7702f1dc184" | 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=fb0d1484d11915fa88a6a7702f1dc184" |
6 | 6 | ||
7 | PR = "r1" | 7 | PR = "r2" |
8 | 8 | ||
9 | SRC_URI = "ftp://ftp.proftpd.org/distrib/source/${BPN}-${PV}.tar.gz \ | 9 | SRC_URI = "ftp://ftp.proftpd.org/distrib/source/${BPN}-${PV}.tar.gz \ |
10 | file://make.patch \ | 10 | file://make.patch \ |
@@ -47,6 +47,10 @@ do_install () { | |||
47 | 47 | ||
48 | install -d ${D}${sysconfdir}/default | 48 | install -d ${D}${sysconfdir}/default |
49 | install -m 0755 ${WORKDIR}/default ${D}${sysconfdir}/default/proftpd | 49 | install -m 0755 ${WORKDIR}/default ${D}${sysconfdir}/default/proftpd |
50 | |||
51 | # create the pub directory | ||
52 | mkdir -p ${D}/home/${FTPUSER}/pub/ | ||
53 | chown -R ${FTPUSER}:${FTPGROUP} ${D}/home/${FTPUSER}/pub | ||
50 | } | 54 | } |
51 | 55 | ||
52 | INITSCRIPT_NAME = "proftpd" | 56 | INITSCRIPT_NAME = "proftpd" |
@@ -55,13 +59,3 @@ INITSCRIPT_PARAM = "defaults 85 15" | |||
55 | USERADD_PACKAGES = "${PN}" | 59 | USERADD_PACKAGES = "${PN}" |
56 | GROUPADD_PARAM_${PN} = "${FTPGROUP}" | 60 | GROUPADD_PARAM_${PN} = "${FTPGROUP}" |
57 | USERADD_PARAM_${PN} = "--system -g ${FTPGROUP} ${FTPUSER}" | 61 | USERADD_PARAM_${PN} = "--system -g ${FTPGROUP} ${FTPUSER}" |
58 | |||
59 | pkg_postinst_${PN} () { | ||
60 | if [ "x$D" != "x" ] ; then | ||
61 | exit 1 | ||
62 | fi | ||
63 | |||
64 | # create the pub directory | ||
65 | mkdir -p /home/${FTPUSER}/pub/ | ||
66 | chown -R ${FTPUSER}:${FTPGROUP} /home/${FTPUSER}/pub | ||
67 | } | ||