|
1
|
1 |
From bca72d17e958d2bce147147da167fa17a1cc43f7 Mon Sep 17 00:00:00 2001
|
|
|
2 |
From: Tomas Zeman <tzeman@volny.cz>
|
|
|
3 |
Date: Sun, 16 Dec 2007 12:14:44 +0100
|
|
|
4 |
Subject: [PATCH] diet-pure-ftpd-1.0.21-1-i686:
|
|
|
5 |
*added
|
|
|
6 |
|
|
|
7 |
---
|
|
|
8 |
source/dietlibc/diet-pure-ftpd/FrugalBuild | 39 ++
|
|
|
9 |
source/dietlibc/diet-pure-ftpd/pure-config.pl | 121 ++++++
|
|
|
10 |
source/dietlibc/diet-pure-ftpd/pure-ftpd.conf | 435 +++++++++++++++++++++
|
|
|
11 |
source/dietlibc/diet-pure-ftpd/rc.pure-ftpd | 42 ++
|
|
|
12 |
source/dietlibc/diet-pure-ftpd/rc.pure-ftpd-hu.po | 21 +
|
|
|
13 |
5 files changed, 658 insertions(+), 0 deletions(-)
|
|
|
14 |
create mode 100644 source/dietlibc/diet-pure-ftpd/FrugalBuild
|
|
|
15 |
create mode 100644 source/dietlibc/diet-pure-ftpd/pure-config.pl
|
|
|
16 |
create mode 100644 source/dietlibc/diet-pure-ftpd/pure-ftpd.conf
|
|
|
17 |
create mode 100644 source/dietlibc/diet-pure-ftpd/rc.pure-ftpd
|
|
|
18 |
create mode 100644 source/dietlibc/diet-pure-ftpd/rc.pure-ftpd-hu.po
|
|
|
19 |
|
|
|
20 |
diff --git a/source/dietlibc/diet-pure-ftpd/FrugalBuild b/source/dietlibc/diet-pure-ftpd/FrugalBuild
|
|
|
21 |
new file mode 100644
|
|
|
22 |
index 0000000..0165876
|
|
|
23 |
--- /dev/null
|
|
|
24 |
+++ b/source/dietlibc/diet-pure-ftpd/FrugalBuild
|
|
|
25 |
@@ -0,0 +1,39 @@
|
|
|
26 |
+# Maintainer: Tomas Zeman <tzeman@volny.cz>
|
|
|
27 |
+
|
|
|
28 |
+branch=diet
|
|
|
29 |
+pkgorig=pure-ftpd
|
|
|
30 |
+pkgname=$branch-$pkgorig
|
|
|
31 |
+pkgver=1.0.21
|
|
|
32 |
+pkgrel=1
|
|
|
33 |
+pkgdesc="A free, secure, production-quality and standard-conformant FTP server"
|
|
|
34 |
+url="http://www.pureftpd.org/"
|
|
|
35 |
+depends=('perl')
|
|
|
36 |
+conflicts=($pkgorig)
|
|
|
37 |
+provides=($pkgorig)
|
|
|
38 |
+backup=('etc/pure-ftpd.conf')
|
|
|
39 |
+archs=('i686')
|
|
|
40 |
+up2date="lynx -dump $url |grep Version|sed 's/.*n \(.*\) h.*/\1/'"
|
|
|
41 |
+source=(ftp://ftp.pureftpd.org/pub/$pkgorig/releases/$pkgorig-$pkgver.tar.bz2 \
|
|
|
42 |
+ pure-config.pl pure-ftpd.conf rc.$pkgorig rc.$pkgorig-hu.po)
|
|
|
43 |
+sha1sums=('1405ff2b9b9c3616c4e390eb99779884173a3347' \
|
|
|
44 |
+ '274bf6399afa4fbb6cb8593181c103e3ff7f1070' \
|
|
|
45 |
+ '7c6b89a0dcefdd96e2da943ec4b21a9d952d86eb' \
|
|
|
46 |
+ '2a0b5d5151251deb129c061a78fa5eca5525e99e' \
|
|
|
47 |
+ '1a12dbfaa9d2d5914b7a1db040d5d6ced71cd659')
|
|
|
48 |
+
|
|
|
49 |
+build()
|
|
|
50 |
+{
|
|
|
51 |
+ export CC="diet -v gcc -Os -nostdinc"
|
|
|
52 |
+ export LD="diet -v gcc -s -static"
|
|
|
53 |
+ Fcd $pkgorig-$pkgver
|
|
|
54 |
+ ./configure --with-largefile --with-ftpwho --with-quotas \
|
|
|
55 |
+ --with-ratios --with-puredb --with-altlog --with-throttling \
|
|
|
56 |
+ --with-privsep --with-tls
|
|
|
57 |
+ make || Fdie
|
|
|
58 |
+ make prefix=$Fdestdir/usr install
|
|
|
59 |
+ install -D -m755 ../rc.pure-ftpd $Fdestdir/etc/rc.d/rc.pure-ftpd || Fdie
|
|
|
60 |
+ install -D -m644 ../pure-ftpd.conf $Fdestdir/etc/pure-ftpd.conf || Fdie
|
|
|
61 |
+ install -D -m755 ../pure-config.pl $Fdestdir/usr/sbin/pure-config.pl || Fdie
|
|
|
62 |
+ Ffile /etc/pure-ftpd.conf
|
|
|
63 |
+ Fexe /usr/sbin/pure-config.pl
|
|
|
64 |
+}
|
|
|
65 |
diff --git a/source/dietlibc/diet-pure-ftpd/pure-config.pl b/source/dietlibc/diet-pure-ftpd/pure-config.pl
|
|
|
66 |
new file mode 100644
|
|
|
67 |
index 0000000..1f8c28e
|
|
|
68 |
--- /dev/null
|
|
|
69 |
+++ b/source/dietlibc/diet-pure-ftpd/pure-config.pl
|
|
|
70 |
@@ -0,0 +1,121 @@
|
|
|
71 |
+#! /usr/bin/perl
|
|
|
72 |
+
|
|
|
73 |
+# (C) 2001-2004 Aristotle Pagaltzis
|
|
|
74 |
+# derived from code (C) 2001-2002 Frank Denis and Matthias Andree
|
|
|
75 |
+
|
|
|
76 |
+use strict;
|
|
|
77 |
+
|
|
|
78 |
+my ($conffile, @flg) = @ARGV;
|
|
|
79 |
+
|
|
|
80 |
+my $PUREFTPD;
|
|
|
81 |
+-x && ($PUREFTPD=$_, last) for qw(
|
|
|
82 |
+ ${exec_prefix}/sbin/pure-ftpd
|
|
|
83 |
+ /usr/local/pure-ftpd/sbin/pure-ftpd
|
|
|
84 |
+ /usr/local/pureftpd/sbin/pure-ftpd
|
|
|
85 |
+ /usr/local/sbin/pure-ftpd
|
|
|
86 |
+ /usr/sbin/pure-ftpd
|
|
|
87 |
+);
|
|
|
88 |
+
|
|
|
89 |
+my %simple_switch_for = (
|
|
|
90 |
+ IPV4Only => "-4",
|
|
|
91 |
+ IPV6Only => "-6",
|
|
|
92 |
+ ChrootEveryone => "-A",
|
|
|
93 |
+ BrokenClientsCompatibility => "-b",
|
|
|
94 |
+ Daemonize => "-B",
|
|
|
95 |
+ VerboseLog => "-d",
|
|
|
96 |
+ DisplayDotFiles => "-D",
|
|
|
97 |
+ AnonymousOnly => "-e",
|
|
|
98 |
+ NoAnonymous => "-E",
|
|
|
99 |
+ DontResolve => "-H",
|
|
|
100 |
+ AnonymousCanCreateDirs => "-M",
|
|
|
101 |
+ NATmode => "-N",
|
|
|
102 |
+ CallUploadScript => "-o",
|
|
|
103 |
+ AntiWarez => "-s",
|
|
|
104 |
+ AllowUserFXP => "-w",
|
|
|
105 |
+ AllowAnonymousFXP => "-W",
|
|
|
106 |
+ ProhibitDotFilesWrite => "-x",
|
|
|
107 |
+ ProhibitDotFilesRead => "-X",
|
|
|
108 |
+ AllowDotFiles => "-z",
|
|
|
109 |
+ AutoRename => "-r",
|
|
|
110 |
+ AnonymousCantUpload => "-i",
|
|
|
111 |
+ LogPID => "-1",
|
|
|
112 |
+ NoChmod => "-R",
|
|
|
113 |
+ KeepAllFiles => "-K",
|
|
|
114 |
+ CreateHomeDir => "-j",
|
|
|
115 |
+ NoRename => "-G",
|
|
|
116 |
+ CustomerProof => "-Z",
|
|
|
117 |
+ NoTruncate => "-0",
|
|
|
118 |
+);
|
|
|
119 |
+
|
|
|
120 |
+my %string_switch_for = (
|
|
|
121 |
+ SyslogFacility => "-f",
|
|
|
122 |
+ FortunesFile => "-F",
|
|
|
123 |
+ ForcePassiveIP => "-P",
|
|
|
124 |
+ Bind => "-S",
|
|
|
125 |
+ AnonymousBandwidth => "-t",
|
|
|
126 |
+ UserBandwidth => "-T",
|
|
|
127 |
+ TrustedIP => "-V",
|
|
|
128 |
+ AltLog => "-O",
|
|
|
129 |
+ PIDFile => "-g",
|
|
|
130 |
+);
|
|
|
131 |
+
|
|
|
132 |
+my %numeric_switch_for = (
|
|
|
133 |
+ MaxIdleTime => "-I",
|
|
|
134 |
+ MaxDiskUsage => "-k",
|
|
|
135 |
+ TrustedGID => "-a",
|
|
|
136 |
+ MaxClientsNumber => "-c",
|
|
|
137 |
+ MaxClientsPerIP => "-C",
|
|
|
138 |
+ MaxLoad => "-m",
|
|
|
139 |
+ MinUID => "-u",
|
|
|
140 |
+ TLS => "-Y",
|
|
|
141 |
+);
|
|
|
142 |
+
|
|
|
143 |
+my %numpairb_switch_for = (
|
|
|
144 |
+ LimitRecursion => "-L",
|
|
|
145 |
+ PassivePortRange => "-p",
|
|
|
146 |
+ AnonymousRatio => "-q",
|
|
|
147 |
+ UserRatio => "-Q",
|
|
|
148 |
+);
|
|
|
149 |
+
|
|
|
150 |
+my %numpairc_switch_for = (
|
|
|
151 |
+ Umask => "-U",
|
|
|
152 |
+ Quota => "-n",
|
|
|
153 |
+ PerUserLimits => "-y",
|
|
|
154 |
+);
|
|
|
155 |
+
|
|
|
156 |
+my %auth_method_for = (
|
|
|
157 |
+ LDAPConfigFile => "ldap",
|
|
|
158 |
+ MySQLConfigFile => "mysql",
|
|
|
159 |
+ PGSQLConfigFile => "pgsql",
|
|
|
160 |
+ PureDB => "puredb",
|
|
|
161 |
+ ExtAuth => "extauth",
|
|
|
162 |
+);
|
|
|
163 |
+
|
|
|
164 |
+my $simple_switch = qr/(@{[join "|", keys %simple_switch_for ]})\s+yes/i;
|
|
|
165 |
+my $string_switch = qr/(@{[join "|", keys %string_switch_for ]})\s+(\S+)/i;
|
|
|
166 |
+my $numeric_switch = qr/(@{[join "|", keys %numeric_switch_for ]})\s+(\d+)/i;
|
|
|
167 |
+my $numpairb_switch = qr/(@{[join "|", keys %numpairb_switch_for ]})\s+(\d+)\s+(\d+)/i;
|
|
|
168 |
+my $numpairc_switch = qr/(@{[join "|", keys %numpairc_switch_for ]})\s+(\d+):(\d+)/i;
|
|
|
169 |
+my $auth_method = qr/(@{[join "|", keys %auth_method_for ]})\s+(\S+)/i;
|
|
|
170 |
+
|
|
|
171 |
+die "Usage: pure-config.pl <configuration file> [extra options]\n"
|
|
|
172 |
+ unless defined $conffile;
|
|
|
173 |
+
|
|
|
174 |
+open CONF, "< $conffile" or die "Can't open $conffile: $!\n";
|
|
|
175 |
+
|
|
|
176 |
+!/^\s*(?:$|#)/ and (chomp, push @flg,
|
|
|
177 |
+ /$simple_switch/i ? ($simple_switch_for{$1}) :
|
|
|
178 |
+ /$string_switch/i ? ($string_switch_for{$1} . $2) :
|
|
|
179 |
+ /$numeric_switch/i ? ($numeric_switch_for{$1} . $2) :
|
|
|
180 |
+ /$numpairb_switch/i ? ($numpairb_switch_for{$1} . "$2:$3") :
|
|
|
181 |
+ /$numpairc_switch/i ? ($numpairc_switch_for{$1} . "$2:$3") :
|
|
|
182 |
+ /$auth_method/i ? ("-l" . "$auth_method_for{$1}:$2") :
|
|
|
183 |
+ /UnixAuthentication\s+yes/i ? ("-l" . "unix") :
|
|
|
184 |
+ /PAMAuthentication\s+yes/i ? ("-l" . "pam") :
|
|
|
185 |
+ ()
|
|
|
186 |
+) while <CONF>;
|
|
|
187 |
+
|
|
|
188 |
+close CONF;
|
|
|
189 |
+
|
|
|
190 |
+print "Running: $PUREFTPD ", join(" ", @flg), "\n";
|
|
|
191 |
+exec { $PUREFTPD } ($PUREFTPD, @flg) or die "cannot exec $PUREFTPD: $!";
|
|
|
192 |
diff --git a/source/dietlibc/diet-pure-ftpd/pure-ftpd.conf b/source/dietlibc/diet-pure-ftpd/pure-ftpd.conf
|
|
|
193 |
new file mode 100644
|
|
|
194 |
index 0000000..df983a2
|
|
|
195 |
--- /dev/null
|
|
|
196 |
+++ b/source/dietlibc/diet-pure-ftpd/pure-ftpd.conf
|
|
|
197 |
@@ -0,0 +1,435 @@
|
|
|
198 |
+############################################################
|
|
|
199 |
+# #
|
|
|
200 |
+# Configuration file for pure-ftpd wrappers #
|
|
|
201 |
+# #
|
|
|
202 |
+############################################################
|
|
|
203 |
+
|
|
|
204 |
+# If you want to run Pure-FTPd with this configuration
|
|
|
205 |
+# instead of command-line options, please run the
|
|
|
206 |
+# following command :
|
|
|
207 |
+#
|
|
|
208 |
+# /usr/sbin/pure-config.pl /usr/etc/pure-ftpd.conf
|
|
|
209 |
+#
|
|
|
210 |
+# Please don't forget to have a look at documentation at
|
|
|
211 |
+# http://www.pureftpd.org/documentation.shtml for a complete list of
|
|
|
212 |
+# options.
|
|
|
213 |
+
|
|
|
214 |
+# Cage in every user in his home directory
|
|
|
215 |
+
|
|
|
216 |
+ChrootEveryone yes
|
|
|
217 |
+
|
|
|
218 |
+
|
|
|
219 |
+
|
|
|
220 |
+# If the previous option is set to "no", members of the following group
|
|
|
221 |
+# won't be caged. Others will be. If you don't want chroot()ing anyone,
|
|
|
222 |
+# just comment out ChrootEveryone and TrustedGID.
|
|
|
223 |
+
|
|
|
224 |
+# TrustedGID 100
|
|
|
225 |
+
|
|
|
226 |
+
|
|
|
227 |
+
|
|
|
228 |
+# Turn on compatibility hacks for broken clients
|
|
|
229 |
+
|
|
|
230 |
+BrokenClientsCompatibility no
|
|
|
231 |
+
|
|
|
232 |
+
|
|
|
233 |
+
|
|
|
234 |
+# Maximum number of simultaneous users
|
|
|
235 |
+
|
|
|
236 |
+MaxClientsNumber 50
|
|
|
237 |
+
|
|
|
238 |
+
|
|
|
239 |
+
|
|
|
240 |
+# Fork in background
|
|
|
241 |
+
|
|
|
242 |
+Daemonize yes
|
|
|
243 |
+
|
|
|
244 |
+
|
|
|
245 |
+
|
|
|
246 |
+# Maximum number of sim clients with the same IP address
|
|
|
247 |
+
|
|
|
248 |
+MaxClientsPerIP 8
|
|
|
249 |
+
|
|
|
250 |
+
|
|
|
251 |
+
|
|
|
252 |
+# If you want to log all client commands, set this to "yes".
|
|
|
253 |
+# This directive can be duplicated to also log server responses.
|
|
|
254 |
+
|
|
|
255 |
+VerboseLog no
|
|
|
256 |
+
|
|
|
257 |
+
|
|
|
258 |
+
|
|
|
259 |
+# List dot-files even when the client doesn't send "-a".
|
|
|
260 |
+
|
|
|
261 |
+DisplayDotFiles yes
|
|
|
262 |
+
|
|
|
263 |
+
|
|
|
264 |
+
|
|
|
265 |
+# Don't allow authenticated users - have a public anonymous FTP only.
|
|
|
266 |
+
|
|
|
267 |
+AnonymousOnly no
|
|
|
268 |
+
|
|
|
269 |
+
|
|
|
270 |
+
|
|
|
271 |
+# Disallow anonymous connections. Only allow authenticated users.
|
|
|
272 |
+
|
|
|
273 |
+NoAnonymous yes
|
|
|
274 |
+
|
|
|
275 |
+
|
|
|
276 |
+
|
|
|
277 |
+# Syslog facility (auth, authpriv, daemon, ftp, security, user, local*)
|
|
|
278 |
+# The default facility is "ftp". "none" disables logging.
|
|
|
279 |
+
|
|
|
280 |
+SyslogFacility ftp
|
|
|
281 |
+
|
|
|
282 |
+
|
|
|
283 |
+
|
|
|
284 |
+# Display fortune cookies
|
|
|
285 |
+
|
|
|
286 |
+# FortunesFile /usr/share/fortune/zippy
|
|
|
287 |
+
|
|
|
288 |
+
|
|
|
289 |
+
|
|
|
290 |
+# Don't resolve host names in log files. Logs are less verbose, but
|
|
|
291 |
+# it uses less bandwidth. Set this to "yes" on very busy servers or
|
|
|
292 |
+# if you don't have a working DNS.
|
|
|
293 |
+
|
|
|
294 |
+DontResolve yes
|
|
|
295 |
+
|
|
|
296 |
+
|
|
|
297 |
+
|
|
|
298 |
+# Maximum idle time in minutes (default = 15 minutes)
|
|
|
299 |
+
|
|
|
300 |
+MaxIdleTime 15
|
|
|
301 |
+
|
|
|
302 |
+
|
|
|
303 |
+
|
|
|
304 |
+# LDAP configuration file (see README.LDAP)
|
|
|
305 |
+
|
|
|
306 |
+# LDAPConfigFile /etc/pureftpd-ldap.conf
|
|
|
307 |
+
|
|
|
308 |
+
|
|
|
309 |
+
|
|
|
310 |
+# MySQL configuration file (see README.MySQL)
|
|
|
311 |
+
|
|
|
312 |
+# MySQLConfigFile /etc/pureftpd-mysql.conf
|
|
|
313 |
+
|
|
|
314 |
+
|
|
|
315 |
+# Postgres configuration file (see README.PGSQL)
|
|
|
316 |
+
|
|
|
317 |
+# PGSQLConfigFile /etc/pureftpd-pgsql.conf
|
|
|
318 |
+
|
|
|
319 |
+
|
|
|
320 |
+# PureDB user database (see README.Virtual-Users)
|
|
|
321 |
+
|
|
|
322 |
+# PureDB /etc/pureftpd.pdb
|
|
|
323 |
+
|
|
|
324 |
+
|
|
|
325 |
+# Path to pure-authd socket (see README.Authentication-Modules)
|
|
|
326 |
+
|
|
|
327 |
+# ExtAuth /var/run/ftpd.sock
|
|
|
328 |
+
|
|
|
329 |
+
|
|
|
330 |
+
|
|
|
331 |
+# If you want to enable PAM authentication, uncomment the following line
|
|
|
332 |
+
|
|
|
333 |
+# PAMAuthentication yes
|
|
|
334 |
+
|
|
|
335 |
+
|
|
|
336 |
+
|
|
|
337 |
+# If you want simple Unix (/etc/passwd) authentication, uncomment this
|
|
|
338 |
+
|
|
|
339 |
+# UnixAuthentication yes
|
|
|
340 |
+
|
|
|
341 |
+
|
|
|
342 |
+
|
|
|
343 |
+# Please note that LDAPConfigFile, MySQLConfigFile, PAMAuthentication and
|
|
|
344 |
+# UnixAuthentication can be used only once, but they can be combined
|
|
|
345 |
+# together. For instance, if you use MySQLConfigFile, then UnixAuthentication,
|
|
|
346 |
+# the SQL server will be asked. If the SQL authentication fails because the
|
|
|
347 |
+# user wasn't found, another try # will be done with /etc/passwd and
|
|
|
348 |
+# /etc/shadow. If the SQL authentication fails because the password was wrong,
|
|
|
349 |
+# the authentication chain stops here. Authentication methods are chained in
|
|
|
350 |
+# the order they are given.
|
|
|
351 |
+
|
|
|
352 |
+
|
|
|
353 |
+
|
|
|
354 |
+# 'ls' recursion limits. The first argument is the maximum number of
|
|
|
355 |
+# files to be displayed. The second one is the max subdirectories depth
|
|
|
356 |
+
|
|
|
357 |
+LimitRecursion 2000 8
|
|
|
358 |
+
|
|
|
359 |
+
|
|
|
360 |
+
|
|
|
361 |
+# Are anonymous users allowed to create new directories ?
|
|
|
362 |
+
|
|
|
363 |
+AnonymousCanCreateDirs no
|
|
|
364 |
+
|
|
|
365 |
+
|
|
|
366 |
+
|
|
|
367 |
+# If the system is more loaded than the following value,
|
|
|
368 |
+# anonymous users aren't allowed to download.
|
|
|
369 |
+
|
|
|
370 |
+MaxLoad 4
|
|
|
371 |
+
|
|
|
372 |
+
|
|
|
373 |
+
|
|
|
374 |
+# Port range for passive connections replies. - for firewalling.
|
|
|
375 |
+
|
|
|
376 |
+# PassivePortRange 30000 50000
|
|
|
377 |
+
|
|
|
378 |
+
|
|
|
379 |
+
|
|
|
380 |
+# Force an IP address in PASV/EPSV/SPSV replies. - for NAT.
|
|
|
381 |
+# Symbolic host names are also accepted for gateways with dynamic IP
|
|
|
382 |
+# addresses.
|
|
|
383 |
+
|
|
|
384 |
+# ForcePassiveIP 192.168.0.1
|
|
|
385 |
+
|
|
|
386 |
+
|
|
|
387 |
+
|
|
|
388 |
+# Upload/download ratio for anonymous users.
|
|
|
389 |
+
|
|
|
390 |
+# AnonymousRatio 1 10
|
|
|
391 |
+
|
|
|
392 |
+
|
|
|
393 |
+
|
|
|
394 |
+# Upload/download ratio for all users.
|
|
|
395 |
+# This directive superscedes the previous one.
|
|
|
396 |
+
|
|
|
397 |
+# UserRatio 1 10
|
|
|
398 |
+
|
|
|
399 |
+
|
|
|
400 |
+
|
|
|
401 |
+# Disallow downloading of files owned by "ftp", ie.
|
|
|
402 |
+# files that were uploaded but not validated by a local admin.
|
|
|
403 |
+
|
|
|
404 |
+AntiWarez yes
|
|
|
405 |
+
|
|
|
406 |
+
|
|
|
407 |
+
|
|
|
408 |
+# IP address/port to listen to (default=all IP and port 21).
|
|
|
409 |
+
|
|
|
410 |
+# Bind 127.0.0.1,21
|
|
|
411 |
+
|
|
|
412 |
+
|
|
|
413 |
+
|
|
|
414 |
+# Maximum bandwidth for anonymous users in KB/s
|
|
|
415 |
+
|
|
|
416 |
+# AnonymousBandwidth 8
|
|
|
417 |
+
|
|
|
418 |
+
|
|
|
419 |
+
|
|
|
420 |
+# Maximum bandwidth for *all* users (including anonymous) in KB/s
|
|
|
421 |
+# Use AnonymousBandwidth *or* UserBandwidth, both makes no sense.
|
|
|
422 |
+
|
|
|
423 |
+# UserBandwidth 8
|
|
|
424 |
+
|
|
|
425 |
+
|
|
|
426 |
+
|
|
|
427 |
+# File creation mask. <umask for files>:<umask for dirs> .
|
|
|
428 |
+# 177:077 if you feel paranoid.
|
|
|
429 |
+
|
|
|
430 |
+Umask 133:022
|
|
|
431 |
+
|
|
|
432 |
+
|
|
|
433 |
+
|
|
|
434 |
+# Minimum UID for an authenticated user to log in.
|
|
|
435 |
+
|
|
|
436 |
+MinUID 100
|
|
|
437 |
+
|
|
|
438 |
+
|
|
|
439 |
+
|
|
|
440 |
+# Allow FXP transfers for authenticated users.
|
|
|
441 |
+
|
|
|
442 |
+AllowUserFXP no
|
|
|
443 |
+
|
|
|
444 |
+
|
|
|
445 |
+
|
|
|
446 |
+# Allow anonymous FXP for anonymous and non-anonymous users.
|
|
|
447 |
+
|
|
|
448 |
+AllowAnonymousFXP no
|
|
|
449 |
+
|
|
|
450 |
+
|
|
|
451 |
+
|
|
|
452 |
+# Users can't delete/write files beginning with a dot ('.')
|
|
|
453 |
+# even if they own them. If TrustedGID is enabled, this group
|
|
|
454 |
+# will have access to dot-files, though.
|
|
|
455 |
+
|
|
|
456 |
+ProhibitDotFilesWrite no
|
|
|
457 |
+
|
|
|
458 |
+
|
|
|
459 |
+
|
|
|
460 |
+# Prohibit *reading* of files beginning with a dot (.history, .ssh...)
|
|
|
461 |
+
|
|
|
462 |
+ProhibitDotFilesRead no
|
|
|
463 |
+
|
|
|
464 |
+
|
|
|
465 |
+
|
|
|
466 |
+# Never overwrite files. When a file whoose name already exist is uploaded,
|
|
|
467 |
+# it get automatically renamed to file.1, file.2, file.3, ...
|
|
|
468 |
+
|
|
|
469 |
+AutoRename no
|
|
|
470 |
+
|
|
|
471 |
+
|
|
|
472 |
+
|
|
|
473 |
+# Disallow anonymous users to upload new files (no = upload is allowed)
|
|
|
474 |
+
|
|
|
475 |
+AnonymousCantUpload no
|
|
|
476 |
+
|
|
|
477 |
+
|
|
|
478 |
+
|
|
|
479 |
+# Only connections to this specific IP address are allowed to be
|
|
|
480 |
+# non-anonymous. You can use this directive to open several public IPs for
|
|
|
481 |
+# anonymous FTP, and keep a private firewalled IP for remote administration.
|
|
|
482 |
+# You can also only allow a non-routable local IP (like 10.x.x.x) to
|
|
|
483 |
+# authenticate, and keep a public anon-only FTP server on another IP.
|
|
|
484 |
+
|
|
|
485 |
+#TrustedIP 10.1.1.1
|
|
|
486 |
+
|
|
|
487 |
+
|
|
|
488 |
+
|
|
|
489 |
+# If you want to add the PID to every logged line, uncomment the following
|
|
|
490 |
+# line.
|
|
|
491 |
+
|
|
|
492 |
+#LogPID yes
|
|
|
493 |
+
|
|
|
494 |
+
|
|
|
495 |
+
|
|
|
496 |
+# Create an additional log file with transfers logged in a Apache-like format :
|
|
|
497 |
+# fw.c9x.org - jedi [13/Dec/1975:19:36:39] "GET /ftp/linux.tar.bz2" 200 21809338
|
|
|
498 |
+# This log file can then be processed by www traffic analyzers.
|
|
|
499 |
+
|
|
|
500 |
+# AltLog clf:/var/log/pureftpd.log
|
|
|
501 |
+
|
|
|
502 |
+
|
|
|
503 |
+
|
|
|
504 |
+# Create an additional log file with transfers logged in a format optimized
|
|
|
505 |
+# for statistic reports.
|
|
|
506 |
+
|
|
|
507 |
+# AltLog stats:/var/log/pureftpd.log
|
|
|
508 |
+
|
|
|
509 |
+
|
|
|
510 |
+
|
|
|
511 |
+# Create an additional log file with transfers logged in the standard W3C
|
|
|
512 |
+# format (compatible with most commercial log analyzers)
|
|
|
513 |
+
|
|
|
514 |
+# AltLog w3c:/var/log/pureftpd.log
|
|
|
515 |
+
|
|
|
516 |
+
|
|
|
517 |
+
|
|
|
518 |
+# Disallow the CHMOD command. Users can't change perms of their files.
|
|
|
519 |
+
|
|
|
520 |
+#NoChmod yes
|
|
|
521 |
+
|
|
|
522 |
+
|
|
|
523 |
+
|
|
|
524 |
+# Allow users to resume and upload files, but *NOT* to delete them.
|
|
|
525 |
+
|
|
|
526 |
+#KeepAllFiles yes
|
|
|
527 |
+
|
|
|
528 |
+
|
|
|
529 |
+
|
|
|
530 |
+# Automatically create home directories if they are missing
|
|
|
531 |
+
|
|
|
532 |
+#CreateHomeDir yes
|
|
|
533 |
+
|
|
|
534 |
+
|
|
|
535 |
+
|
|
|
536 |
+# Enable virtual quotas. The first number is the max number of files.
|
|
|
537 |
+# The second number is the max size of megabytes.
|
|
|
538 |
+# So 1000:10 limits every user to 1000 files and 10 Mb.
|
|
|
539 |
+
|
|
|
540 |
+#Quota 1000:10
|
|
|
541 |
+
|
|
|
542 |
+
|
|
|
543 |
+
|
|
|
544 |
+# If your pure-ftpd has been compiled with standalone support, you can change
|
|
|
545 |
+# the location of the pid file. The default is /var/run/pure-ftpd.pid
|
|
|
546 |
+
|
|
|
547 |
+#PIDFile /var/run/pure-ftpd.pid
|
|
|
548 |
+
|
|
|
549 |
+
|
|
|
550 |
+
|
|
|
551 |
+# If your pure-ftpd has been compiled with pure-uploadscript support,
|
|
|
552 |
+# this will make pure-ftpd write info about new uploads to
|
|
|
553 |
+# /var/run/pure-ftpd.upload.pipe so pure-uploadscript can read it and
|
|
|
554 |
+# spawn a script to handle the upload.
|
|
|
555 |
+
|
|
|
556 |
+#CallUploadScript yes
|
|
|
557 |
+
|
|
|
558 |
+
|
|
|
559 |
+
|
|
|
560 |
+# This option is useful with servers where anonymous upload is
|
|
|
561 |
+# allowed. As /var/ftp is in /var, it save some space and protect
|
|
|
562 |
+# the log files. When the partition is more that X percent full,
|
|
|
563 |
+# new uploads are disallowed.
|
|
|
564 |
+
|
|
|
565 |
+MaxDiskUsage 99
|
|
|
566 |
+
|
|
|
567 |
+
|
|
|
568 |
+
|
|
|
569 |
+# Set to 'yes' if you don't want your users to rename files.
|
|
|
570 |
+
|
|
|
571 |
+#NoRename yes
|
|
|
572 |
+
|
|
|
573 |
+
|
|
|
574 |
+
|
|
|
575 |
+# Be 'customer proof' : workaround against common customer mistakes like
|
|
|
576 |
+# 'chmod 0 public_html', that are valid, but that could cause ignorant
|
|
|
577 |
+# customers to lock their files, and then keep your technical support busy
|
|
|
578 |
+# with silly issues. If you're sure all your users have some basic Unix
|
|
|
579 |
+# knowledge, this feature is useless. If you're a hosting service, enable it.
|
|
|
580 |
+
|
|
|
581 |
+CustomerProof yes
|
|
|
582 |
+
|
|
|
583 |
+
|
|
|
584 |
+
|
|
|
585 |
+# Per-user concurrency limits. It will only work if the FTP server has
|
|
|
586 |
+# been compiled with --with-peruserlimits (and this is the case on
|
|
|
587 |
+# most binary distributions) .
|
|
|
588 |
+# The format is : <max sessions per user>:<max anonymous sessions>
|
|
|
589 |
+# For instance, 3:20 means that the same authenticated user can have 3 active
|
|
|
590 |
+# sessions max. And there are 20 anonymous sessions max.
|
|
|
591 |
+
|
|
|
592 |
+# PerUserLimits 3:20
|
|
|
593 |
+
|
|
|
594 |
+
|
|
|
595 |
+
|
|
|
596 |
+# When a file is uploaded and there is already a previous version of the file
|
|
|
597 |
+# with the same name, the old file will neither get removed nor truncated.
|
|
|
598 |
+# Upload will take place in a temporary file and once the upload is complete,
|
|
|
599 |
+# the switch to the new version will be atomic. For instance, when a large PHP
|
|
|
600 |
+# script is being uploaded, the web server will still serve the old version and
|
|
|
601 |
+# immediatly switch to the new one as soon as the full file will have been
|
|
|
602 |
+# transfered. This option is incompatible with virtual quotas.
|
|
|
603 |
+
|
|
|
604 |
+# NoTruncate yes
|
|
|
605 |
+
|
|
|
606 |
+
|
|
|
607 |
+
|
|
|
608 |
+# This option can accept three values :
|
|
|
609 |
+# 0 : disable SSL/TLS encryption layer (default).
|
|
|
610 |
+# 1 : accept both traditional and encrypted sessions.
|
|
|
611 |
+# 2 : refuse connections that don't use SSL/TLS security mechanisms,
|
|
|
612 |
+# including anonymous sessions.
|
|
|
613 |
+# Do _not_ uncomment this blindly. Be sure that :
|
|
|
614 |
+# 1) Your server has been compiled with SSL/TLS support (--with-tls),
|
|
|
615 |
+# 2) A valid certificate is in place,
|
|
|
616 |
+# 3) Only compatible clients will log in.
|
|
|
617 |
+
|
|
|
618 |
+# TLS 1
|
|
|
619 |
+
|
|
|
620 |
+
|
|
|
621 |
+
|
|
|
622 |
+# Listen only to IPv4 addresses in standalone mode (ie. disable IPv6)
|
|
|
623 |
+# By default, both IPv4 and IPv6 are enabled.
|
|
|
624 |
+
|
|
|
625 |
+# IPV4Only yes
|
|
|
626 |
+
|
|
|
627 |
+
|
|
|
628 |
+
|
|
|
629 |
+# Listen only to IPv6 addresses in standalone mode (ie. disable IPv4)
|
|
|
630 |
+# By default, both IPv4 and IPv6 are enabled.
|
|
|
631 |
+
|
|
|
632 |
+# IPV6Only yes
|
|
|
633 |
diff --git a/source/dietlibc/diet-pure-ftpd/rc.pure-ftpd b/source/dietlibc/diet-pure-ftpd/rc.pure-ftpd
|
|
|
634 |
new file mode 100644
|
|
|
635 |
index 0000000..61746ef
|
|
|
636 |
--- /dev/null
|
|
|
637 |
+++ b/source/dietlibc/diet-pure-ftpd/rc.pure-ftpd
|
|
|
638 |
@@ -0,0 +1,42 @@
|
|
|
639 |
+#!/bin/bash
|
|
|
640 |
+
|
|
|
641 |
+# (c) 2006 Miklos Vajna <vmiklos@frugalware.org>
|
|
|
642 |
+# rc.pure-ftpd for FrugalWare
|
|
|
643 |
+# distributed under GPL License
|
|
|
644 |
+
|
|
|
645 |
+# chkconfig: 2345 60 50
|
|
|
646 |
+# description: Pure-FTPd is a ftp daemon, which is the program \
|
|
|
647 |
+# that answers incoming ftp service requests.
|
|
|
648 |
+
|
|
|
649 |
+source /lib/initscripts/functions
|
|
|
650 |
+TEXTDOMAIN=pure-ftpd
|
|
|
651 |
+TEXTDOMAINDIR=/lib/initscripts/messages
|
|
|
652 |
+
|
|
|
653 |
+actions=(restart start status stop)
|
|
|
654 |
+daemon=$"Pure-FTPd Server"
|
|
|
655 |
+
|
|
|
656 |
+pid="cat /var/run/pure-ftpd.pid 2> /dev/null"
|
|
|
657 |
+
|
|
|
658 |
+rc_start()
|
|
|
659 |
+{
|
|
|
660 |
+ start_msg
|
|
|
661 |
+ if [[ "$(eval $pid)" == "" ]] ; then
|
|
|
662 |
+ /usr/sbin/pure-config.pl /etc/pure-ftpd.conf &> /dev/null
|
|
|
663 |
+ ok $?
|
|
|
664 |
+ else
|
|
|
665 |
+ ok 999
|
|
|
666 |
+ fi
|
|
|
667 |
+}
|
|
|
668 |
+
|
|
|
669 |
+rc_stop()
|
|
|
670 |
+{
|
|
|
671 |
+ stop_msg
|
|
|
672 |
+ if [[ "$(eval $pid)" != "" ]] ; then
|
|
|
673 |
+ kill `cat /var/run/pure-ftpd.pid`
|
|
|
674 |
+ ok $?
|
|
|
675 |
+ else
|
|
|
676 |
+ ok 999
|
|
|
677 |
+ fi
|
|
|
678 |
+}
|
|
|
679 |
+
|
|
|
680 |
+rc_exec $1
|
|
|
681 |
diff --git a/source/dietlibc/diet-pure-ftpd/rc.pure-ftpd-hu.po b/source/dietlibc/diet-pure-ftpd/rc.pure-ftpd-hu.po
|
|
|
682 |
new file mode 100644
|
|
|
683 |
index 0000000..b987340
|
|
|
684 |
--- /dev/null
|
|
|
685 |
+++ b/source/dietlibc/diet-pure-ftpd/rc.pure-ftpd-hu.po
|
|
|
686 |
@@ -0,0 +1,21 @@
|
|
|
687 |
+# Hungarian translations for rc.pure-ftpd package.
|
|
|
688 |
+# Copyright (C) 2006 THE rc.pure-ftpd'S COPYRIGHT HOLDER
|
|
|
689 |
+# This file is distributed under the same license as the rc.pure-ftpd package.
|
|
|
690 |
+# <vmiklos@frugalware.org>, 2006.
|
|
|
691 |
+#
|
|
|
692 |
+msgid ""
|
|
|
693 |
+msgstr ""
|
|
|
694 |
+"Project-Id-Version: rc.pure-ftpd\n"
|
|
|
695 |
+"Report-Msgid-Bugs-To: \n"
|
|
|
696 |
+"POT-Creation-Date: 2006-02-21 13:18+0100\n"
|
|
|
697 |
+"PO-Revision-Date: 2006-02-21 13:18+0100\n"
|
|
|
698 |
+"Last-Translator: <vmiklos@frugalware.org>\n"
|
|
|
699 |
+"Language-Team: Hungarian <translation-team-hu@lists.sourceforge.net>\n"
|
|
|
700 |
+"MIME-Version: 1.0\n"
|
|
|
701 |
+"Content-Type: text/plain; charset=ISO-8859-2\n"
|
|
|
702 |
+"Content-Transfer-Encoding: 8bit\n"
|
|
|
703 |
+"Plural-Forms: nplurals=1; plural=0;\n"
|
|
|
704 |
+
|
|
|
705 |
+#: rc.pure-ftpd:16
|
|
|
706 |
+msgid "Pure-FTPd Server"
|
|
|
707 |
+msgstr "Pure-FTPd szerver"
|
|
|
708 |
--
|
|
|
709 |
1.5.3.4
|
|
|
710 |
|