Bug#524419: Same bugs with pure-ftpd-mysql

2009-04-22 Thread laradji nacer
The command /usr/sbin/pure-ftpd-wrapper is call by the inetd service at 
connection and it call /ust/sbin/pure-ftpd .
It need to call the command : /usr/sbin/pure-ftpd-mysql when you use it 
with mysql or /usr/sbin/pure-ftpd-postgresql when you use it with postgresql


I have modified the line 26 of /usr/sbin/pure-ftpd-wrapper with this to 
make it work :

my $daemon = '/usr/sbin/pure-ftpd-mysql';


The problem is that the wrapper is in pure-ftpd-common
dpkg --search /usr/sbin/pure-ftpd-wrapper
pure-ftpd-common: /usr/sbin/pure-ftpd-wrapper

Perhaps we need to have different wrapper for each backend pure-ftpd have ?
/usr/sbin/pure-ftpd-wrapper-mysql
   -postgresql
   -ect...

Or patch /usr/sbin/pure-ftpd-wrapper on the fly with debconf when 
installing a different backend , i don't now if debian policies 
authorise that (modify a file from a other package) .




--
Laradji nacer n.laradji at ovea dot com
Chef de Projets Systemes et Reseaux | Fondateur
   oveahttp://www.ovea.com
Tél : +33 4 6767 Gsm : +33 6 1059 6883
1024D/DFCF1726 : 33A5 7162 4370 9C30 E22C 0721 DBA7 CBEE DFCF 1726



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#524419: Same bugs with pure-ftpd-mysql

2009-04-22 Thread Stefan Hornburg

laradji nacer wrote:
The command /usr/sbin/pure-ftpd-wrapper is call by the inetd service at 
connection and it call /ust/sbin/pure-ftpd .
It need to call the command : /usr/sbin/pure-ftpd-mysql when you use it 
with mysql or /usr/sbin/pure-ftpd-postgresql when you use it with 
postgresql


I have modified the line 26 of /usr/sbin/pure-ftpd-wrapper with this to 
make it work :

my $daemon = '/usr/sbin/pure-ftpd-mysql';


The problem is that the wrapper is in pure-ftpd-common
dpkg --search /usr/sbin/pure-ftpd-wrapper
pure-ftpd-common: /usr/sbin/pure-ftpd-wrapper

Perhaps we need to have different wrapper for each backend pure-ftpd have ?
/usr/sbin/pure-ftpd-wrapper-mysql
   -postgresql
   -ect...

Or patch /usr/sbin/pure-ftpd-wrapper on the fly with debconf when 
installing a different backend , i don't now if debian policies 
authorise that (modify a file from a other package) .




The wrapper itself is able to use different daemons:

if ($ARGV[0]) {
$daemon = $daemon-$ARGV[0];
}

The problem is that the record for the inet service misses the
commandline argument.

Regards
Racke


--
LinuXia Systems = http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP = http://www.icdevgroup.org/
Interchange Development Team




--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org