[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

How to upgrade package which changed syntax (new programs)



Hello,

I am packaging relay-ctrl package which is tool how to make pop3be4smtp for
qmail based systems.

Versions before 2.53 worked by compiling tcp.smtp.cdb database each time
new IP was authorized and no modification of smtp service was neccessary.

>From version 3.0 you need to modify all services (POP3, SMTP and IMAP) and
you also have to change existing POP3 installations, because there was
significant change in design.

Small example:

syntax before:
for pop3:
  tcpserver 0 110 qmail-popup checkpassword relay-ctrl-allow qmail-pop3d
for smtp:
  tcpserver -x /etc/tcp.smtp.cdb 0 25 qmail-smtpd

syntax now:
for pop3:
  envdir /etc/relay-ctrl relay-ctrl-chdir tcpserver 0 110 qmail-popup checkpassword relay-ctrl-allow qmail-pop3d
for smtp:
  envdir /etc/relay-ctrl relay-ctrl-chdir tcpserver 0 25 relay-ctrl-check qmail-smtpd

Since there is no automatic configuration for relay-ctrl and each user has
to setup his own configuration (and he may use different methods how to do
it: debian way (rc.d) or supervise scripts), there is no way how to do
automatic conversion.  Question is how to make upgrade less painfull for
all, I think about two methods:

1. make new package named relay-ctrl-3 which conflicts with relay-ctrl package
2. put BIG DISCLAIMER in pre-inst of 3.0 version of package

What do you people think?

Ondrej.

-- 
Ondrej Sury - co/CTO                Globe Internet s.r.o. http://globe.cz/
Tel: +420(2)35365000 Fax: +420(2)35365009     Planickova 1, 162 00 Praha 6



Reply to: