translate the bottom banner of wu-ftpd - Re: messages in french / compile it is not sufficent

Stephane <[email protected]> Fri, 15 Oct 2004 11:50:07 +0200
Newsgroups gmane.network.ftp.wuftpd.user
Message-ID <[email protected]>
translate the bottom banner of wu-ftpd

Hi all, i get the trick thanks Bishop :
(at compilation time)
1 - from the source tree, edit src/ftpcmd.y and change 3 lines as 
illustrated : (debian : see bellow)
<<
#ifdef TRANSFER_COUNT
            if (logged_in) {
                // lreply(221, "You have transferred %d bytes in %d 
files.", data_count_total, file_count_total);
                // lreply(221, "Total traffic for this session was %d 
bytes in %d transfers.", byte_count_total, xfer_count_total);
                // lreply(221, "Thank you for using the FTP service on 
%s.", hostname);

                lreply(221, "Vous avez transfere %d octets pour %d 
fichiers.", data_count_total, file_count_total);
                lreply(221, "La charge total du traffic pour cette 
session fut de %d octest pour %d transfers.", byte_count_total, 
xfer_count_total);
                lreply(221, "MYBUZ vous remercie d'avoir utilise son 
service FTP.");
            }
 >>

2 - then you can do a normal
    # ./configure; make
and
    # cp bin/ftpd /usr/sbin/wuftpd (backup the previous version)

DEBIAN ? :
- if you load the source package with "apt-get --source wu-ftpd" follow 
this -
    on debian, in order to reuse the original debian configuration (the 
one used by the binary wu-ftpd package)
do this BEFORE "make" and instead of "./configure" :
1 -
    # debian/rule
this script run configure with the debian choices :
<<
        ./configure --prefix=/usr --with-etc-dir=/etc/wu-ftpd \
                    --with-log-dir=/var/log/wu-ftpd --disable-numericuid \
                    --mandir='$${prefix}/share/man' --enable-pam \
                    --enable-quota --enable-passwd
 >>
--enable-pam, --enable-passwd is rather important if your system rely on 
them, else your ftpd won't work

hth bye


Stephane wrote:

> Hi all,
>
> any one interested in compiling wu-ftpd to display some messages in 
> his own language ?
>
> I am. So i download (debian) source of wu-ftpd and tried to compile it 
> after had modifying ftpcmd.c file (thanx to bishop) :
> <<
> ...
>    lreply(221, "You have transferred %d bytes in %d files.", 
> data_count_total, file_count_total);
>    lreply(221, "Total traffic for this session was %d bytes in %d 
> transfers.", byte_count_total, xfer_count_total);
>    lreply(221, "Thank you for using the FTP service on %s.", hostname);
> ...
> >>
> i changed that in (only two lines, less verbose is better for me):
> <<
>    lreply(221, "Vous avez transfere %d octets pour %d fichiers.", 
> data_count_total, file_count_total);
>    lreply(221, "FPS vous remercie d'avoir utilise son service FTP.");
> >>
>
> BUT i didn't succed to make it work as i expected :
> note : you can avoid the old "build-based command" process and now use 
> automake configure/make/make install
>
> I did ./configure; make all (and not install otherwise i loose my 
> configuration)
>
> I obtain binaries in the bin directory (under the top source tree)
> then i copy bin/ftpd as /usr/sbin/wu-ftpd
> i also ensure the -a switch is present in my init.d script
> then I stop and restart wu
> and get a totally different apperance : my costum message ar not there 
> and when i quit, i cannot connect using usual user and pass, and there 
> is no message in french but in english (simply Goodbye). ALl is as if 
> wu-ftps does'nt read the ftpaccess file neither passwd and well, i 
> don't know. Anyidea of how i should compile it ?
>
> I use debian version 3.0 and wu-ftp 2.6.2-3woody4.
>
>
>