From ba90d919fcd39e8fb2edf932eb15b2ecb30f0588 Mon Sep 17 00:00:00 2001 From: Chris Efant Date: Wed, 26 Jan 2005 16:19:39 +0000 Subject: [PATCH] Chris Efant: Added package pureftpd [2005011707571529098] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@5545 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- package/sirkull/pureftpd/postsysfiles.in | 3 ++ package/sirkull/pureftpd/pureftpd.conf | 33 +++++++++++++++++ package/sirkull/pureftpd/pureftpd.desc | 45 ++++++++++++++++++++++++ package/sirkull/pureftpd/pureftpd.init | 18 ++++++++++ 4 files changed, 99 insertions(+) create mode 100644 package/sirkull/pureftpd/postsysfiles.in create mode 100644 package/sirkull/pureftpd/pureftpd.conf create mode 100644 package/sirkull/pureftpd/pureftpd.desc create mode 100644 package/sirkull/pureftpd/pureftpd.init diff --git a/package/sirkull/pureftpd/postsysfiles.in b/package/sirkull/pureftpd/postsysfiles.in new file mode 100644 index 000000000..9fafb6c2d --- /dev/null +++ b/package/sirkull/pureftpd/postsysfiles.in @@ -0,0 +1,3 @@ +safe_groupadd ftp 13 +safe_useradd ftp 13 13 "system user for proftp" /var/ftp /bin/flase "*" + diff --git a/package/sirkull/pureftpd/pureftpd.conf b/package/sirkull/pureftpd/pureftpd.conf new file mode 100644 index 000000000..7b88ac970 --- /dev/null +++ b/package/sirkull/pureftpd/pureftpd.conf @@ -0,0 +1,33 @@ +# --- ROCK-COPYRIGHT-NOTE-BEGIN --- +# +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# Please add additional copyright information _after_ the line containing +# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by +# the ./scripts/Create-CopyPatch script. Do not edit this copyright text! +# +# ROCK Linux: rock-src/package/sirkull/pureftpd/pureftpd.conf +# ROCK Linux is Copyright (C) 1998 - 2005 Clifford Wolf +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. A copy of the GNU General Public +# License can be found at Documentation/COPYING. +# +# Many people helped and are helping developing ROCK Linux. Please +# have a look at http://www.rocklinux.org/ and the Documentation/TEAM +# file for details. +# +# --- ROCK-COPYRIGHT-NOTE-END --- + +function pm_pureftpd() { + # install the configuration script + install -m 644 configuration-file/pure-ftpd.conf *.conf $sysconfdir/ + install -m 755 configuration-file/pure-config.pl $sbindir/ + # install the init script + install_init pureftpd $confdir/pureftpd.init +} + +sysconfdir="$root/etc/pure-ftpd" +hook_add postmake 3 pm_pureftpd + diff --git a/package/sirkull/pureftpd/pureftpd.desc b/package/sirkull/pureftpd/pureftpd.desc new file mode 100644 index 000000000..87e313630 --- /dev/null +++ b/package/sirkull/pureftpd/pureftpd.desc @@ -0,0 +1,45 @@ +[COPY] --- ROCK-COPYRIGHT-NOTE-BEGIN --- +[COPY] +[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch. +[COPY] Please add additional copyright information _after_ the line containing +[COPY] the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by +[COPY] the ./scripts/Create-CopyPatch script. Do not edit this copyright text! +[COPY] +[COPY] ROCK Linux: rock-src/package/sirkull/pureftpd/pureftpd.desc +[COPY] ROCK Linux is Copyright (C) 1998 - 2005 Clifford Wolf +[COPY] +[COPY] This program is free software; you can redistribute it and/or modify +[COPY] it under the terms of the GNU General Public License as published by +[COPY] the Free Software Foundation; either version 2 of the License, or +[COPY] (at your option) any later version. A copy of the GNU General Public +[COPY] License can be found at Documentation/COPYING. +[COPY] +[COPY] Many people helped and are helping developing ROCK Linux. Please +[COPY] have a look at http://www.rocklinux.org/ and the Documentation/TEAM +[COPY] file for details. +[COPY] +[COPY] --- ROCK-COPYRIGHT-NOTE-END --- + +[I] PureFTP Server is an efficient, lightweight, and very secure FTP server + +[T] Pure FTP Server is a fast, production quality, standards-conformant FTP server +[T] based on Troll-FTPd. It has no known vulnerability, it is trivial to set up, and +[T] it is especially designed for modern kernels. Features include PAM support, IPv6, +[T] chroot()ed home directories, virtual domains, built-in 'ls', FXP protocol, +[T] anti-warez system, bandwidth throttling, restricted ports for passive downloads, +[T] an LDAP backend, XML output, and more. + +[U] http://www.pureftpd.org/ + +[A] Michal Moskal +[M] Chris Efant + +[C] extra/server + +[L] BSD +[S] Stable +[V] 1.0.20 +[P] X -?---5---9 189.100 + +[D] 1462178475 pure-ftpd-1.0.20.tar.bz2 ftp://ftp.pureftpd.org/pub/pure-ftpd/releases/ + diff --git a/package/sirkull/pureftpd/pureftpd.init b/package/sirkull/pureftpd/pureftpd.init new file mode 100644 index 000000000..a9b219510 --- /dev/null +++ b/package/sirkull/pureftpd/pureftpd.init @@ -0,0 +1,18 @@ +#!/bin/bash +# +# Desc: Pure FTPd +# Runlevel: 61 rcX +# + +main_begin + + block_begin(start, `Starting PureFTPd.') + check(`D_prefix/sbin/pure-config.pl /etc/pure-ftpd/pure-ftpd.conf') + block_end + + block_begin(stop, `Stopping PureFTPd.') + check(`killall D_prefix/sbin/pure-ftpd') + block_end + +main_end +