[oe] [meta-networking][PATCH 7/8] proftpd: add from meta-baryon

Koen Kooi koen at dominion.thruhere.net
Mon Nov 19 17:57:56 UTC 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Op 19-11-12 18:11, Paul Eggleton schreef:
> This was originally from OE-Classic. Improvements over the OE-Classic 
> recipe for reference:
> 
> * Update to 1.3.4b * Add workaround for proftpd host IP resolution * Add
> initscript, borrowed from Debian with some modifications for 
> compatibility * Use autotools.bbclass and remove unnecessary configure
> options * PARALLEL_MAKE = "" is no longer needed, the bug was fixed in
> 1.3.3c * Set SUMMARY (which sets DESCRIPTION) and base it on the short 
> description from the website * Use useradd.bbclass to add ftp user/group 
> * Add HOMEPAGE * Add/fix description in some patches and improve recipe
> indentation * Make LICENSE more accurate * Add LIC_FILES_CHKSUM
> 
> Some of this work was done by Dexuan Cui <dexuan.cui at intel.com> and Kevin
> Strasser <kevin.strasser at linux.intel.com>.
> 
> Signed-off-by: Paul Eggleton <paul.eggleton at linux.intel.com> ---

> diff --git
> a/meta-networking/recipes-daemons/proftpd/files/proftpd-basic.init
> b/meta-networking/recipes-daemons/proftpd/files/proftpd-basic.init new
> file mode 100644 index 0000000..01c998c --- /dev/null +++
> b/meta-networking/recipes-daemons/proftpd/files/proftpd-basic.init @@
> -0,0 +1,220 @@ +#!/bin/sh + +### BEGIN INIT INFO +# Provides:
> proftpd +# Required-Start:    $remote_fs $syslog $local_fs $network +#
> Required-Stop:     $remote_fs $syslog $local_fs $network +# Should-Start:
> $named +# Should-Stop:       $named +# Default-Start:     2 3 4 5 +#
> Default-Stop:      0 1 6 +# Short-Description: Starts ProFTPD daemon +#
> Description:       This script runs the FTP service offered +#
> by the ProFTPD daemon +### END INIT INFO + +# Start the proftpd FTP
> daemon. + +PATH=/bin:/usr/bin:/sbin:/usr/sbin +DAEMON=/usr/sbin/proftpd

hardcoded $sbindir

> +NAME=proftpd + +# Defaults +RUN="no" +OPTIONS="" 
> +CONFIG_FILE=/etc/proftpd.conf

hardcoded $sysconfigdur

> + +PIDFILE=`grep -i '^pidfile' $CONFIG_FILE|awk '{ print $2 }'` +if [
> "x$PIDFILE" = "x" ]; +then +    PIDFILE=/var/run/proftpd.pid

hardcoded $localstatedir

> +fi + +# Read config (will override defaults) +[ -r /etc/default/proftpd
> ] && . /etc/default/proftpd

hardcoded $sysconfigdir and a lot more in the rest of the file.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: GPGTools - http://gpgtools.org

iD8DBQFQqnMkMkyGM64RGpERAna2AJ0cUe2Knjk1jKzdpYtWmgGH8JHc4ACcDcEw
kxu7B1yYizf2inquugwLEJw=
=HsG/
-----END PGP SIGNATURE-----





More information about the Openembedded-devel mailing list