Re: packaging kernel-specific packages (here ipvsadm)
Joerg Wendland <joergland@debian.org> writes:
> Hi *,
>
> I recently uploaded ipvsadm 1.26 which depends on the ip_vs kernel
> module version >= 1.1.4. This version is included in kernels 2.6.x.
> Kernels 2.4.x (x >= 23) bring ip_vs version 1.0.11 which won't work with
> the current version of ipvsadm and instead needs ipvsadm 1.21 (see also
> bug #270774). Now the only viable solution seems to me to provide two
> ipvsadm packages, one for 2.6 and one for 2.4 kernels. How can I do
> this? Provide two source packages and name the binaries accordingly
> (ipvsadm-1.21, ipvsadm-1.26 or ipvsadm-2.4, ipvsadm-2.6), pack both into
> the same source package and create two binary packages? Hack up ipvsadm
> to support both kernel versions? Install both versions from a single
> package and use a wrapper script that chooses the version to use?
> Any suggestions welcome.
>
> Thanks in advance,
> Joerg
iptables uses a wraper for example.
If you use a wraper then both 2.4 and 2.6 flavours can be installed
for people switching between both kernels, which is rather nice.
MfG
Goswin
Reply to: