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