proftpd/proftpd.conf

Tue, 29 Mar 2011 20:04:34 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 29 Mar 2011 20:04:34 +0200
changeset 334
4a34d7a82eab
permissions
-rw-r--r--

Rework package yet again, correcting and introducing new buildconf logic:
Conditionally disable bootstrap stage comparison correctly, correct
english grammar, better find system as(1) and ld(1), indotruce detailed
optimization option messages, more completely guess cpu types, allow
profiled bootstrapping without a preinstalled GCC because many other
compilers have long since implemented 64-bit arithmetic, instruct make
to build sequentially (not in sparallel) when building a profiled
bootstrap as GCC online documents recommend, and generally improve
comment blocks.

The single most important correction in this changeset relates to the
GCC changed optimization policy since at least GCC 4.5, in which -march
is always passed and not always correctly guessed. In the case of this
package, allowing GCC to guess the architecture leads to wild build
errors at various subcomponents (zlib, libgcc, libiberty...) and
bootstrap stages. It seems quite platform specific, and the safest
approach to correcting this seems to be explicitly always specifying the
-march argument when bootstrapping GCC. Because the best choice 'native'
is not available when bootstrapping using a foreign (non GCC) compiler,
a guess is made according to rpmmacros l_platform in that case.

It is questionable as to whether these recent optimization changes
on the part of GCC or this package are compatible with each other,
or if either are complete or correct at all. At least applying these
corrections allows this package to build again in most cases test.

     1 ##
     2 ##  proftpd.conf -- ProFTPD Configuration
     3 ##
     5 ServerType            standalone
     6 DefaultServer         off
     7 SocketBindTight       on
     8 Port                  none
    10 MaxInstances          40
    11 User                  @l_nusr@
    12 Group                 @l_ngrp@
    13 Umask                 022 022
    15 UseReverseDNS         off
    16 MultilineRFC2228      on
    17 ShowSymlinks          on
    18 AllowOverwrite        on
    19 MaxLoginAttempts      2
    20 RequireValidShell     yes
    21 ListOptions           "-l"
    23 @l_pam@AuthPAM               on
    24 @l_pam@AuthPAMConfig         proftpd
    25 @l_pam@AuthPAMAuthoritative  off
    26 #PersistentPasswd      off
    28 CommandBufferSize     1023
    29 TimeoutLogin          120
    30 TimeoutNoTransfer     600
    31 TimeoutStalled        600
    32 TimeoutIdle           1200
    34 LogFormat             default "%h %l %u %t \"%r\" %s %b"
    35 LogFormat             auth    "%v [%P] %h %t \"%r\" %s"
    36 LogFormat             write   "%h %l %u %t \"%r\" %s %b"
    37 SystemLog             @l_prefix@/var/proftpd/proftpd.system.log
    38 ScoreboardFile        @l_prefix@/var/proftpd/proftpd.scoreboard
    40 <Global>
    41     ExtendedLog       @l_prefix@/var/proftpd/proftpd.access.log WRITE,READ write
    42     ExtendedLog       @l_prefix@/var/proftpd/proftpd.auth.log   AUTH       auth
    43     TransferLog       @l_prefix@/var/proftpd/proftpd.xfer.log
    44     IdentLookups      off
    45     DeferWelcome      off
    46     DisplayGoAway     @l_prefix@/etc/proftpd/proftpd.msg.goaway
    47     DisplayLogin      @l_prefix@/etc/proftpd/proftpd.msg.login
    48     DisplayChdir      .message true
    49     DisplayReadme     README*
    50     WTmpLog           off
    51 </Global>
    53 <Directory /*>
    54     AllowOverwrite    on
    55 </Directory>
    57 #   sample virtual Anonymous-FTP only server
    58 <VirtualHost 127.0.0.1>
    59     Port              21
    60     PassivePorts      49152 65535
    61     ServerIdent       on "localhost FTP Server (ProFTPD) ready."
    62     ServerAdmin       root@localhost
    63     MaxClients        20
    65     #   allow anonymous logins only
    66     <Limit LOGIN>
    67         DenyAll
    68     </Limit>
    70     #   Anonymous-FTP
    71     <Anonymous @l_prefix@/share/proftpd>
    72         User              @l_nusr@
    73         Group             @l_ngrp@
    74         UserAlias         anonymous @l_nusr@
    75         UserAlias         ftp @l_nusr@
    76         RootLogin         off
    77         UseFtpUsers       off
    78         MaxClients        10 "Sorry, max %m users allowed -- try again later, please."
    79         RequireValidShell off
    80         DisplayGoAway     /.msg.goaway
    81         DisplayLogin      /.msg.login
    82         <Limit LOGIN>
    83             AllowAll
    84         </Limit>
    85         <Limit WRITE>
    86             DenyAll
    87         </Limit>
    88         <Limit READ DIRS>
    89             IgnoreHidden on
    90         </Limit>
    91         #   optionally allow uploads to a particular directory
    92         #<Directory incoming/*>
    93         #    <Limit STOR>
    94         #        AllowAll
    95         #    </Limit>
    96         #    <Limit WRITE DIRS READ>
    97         #        DenyAll
    98         #    </Limit>
    99         #    <Limit CWD XCWD CDUP>
   100         #        AllowAll
   101         #    </Limit>
   102         #</Directory>
   103     </Anonymous>
   104 </VirtualHost>

mercurial