On Thu, 2003-06-19 at 20:53, Richard Heycock wrote:
> On Fri, 2003-06-20 at 05:54, Jody Grafals wrote:
[...]
> > I want to install freeswan_1.99-6_i386.deb(unstable)  in my woody  
> > system how do I solve the dependency problems?  Ive tried download all 
> > the dependent files from the debian web site and just installing them 
> > with "dpkg -i" but then I go from dependency problems to conflicts. This 
> > all seems so complicated I know debian must have a better way.
> > 
> 
> Are you using apt-get? There is a system called apt which has a command
> called apt-get. apt-get is the most wonderful thing. Try the following:
> 
>       apt-get install freeswan
> 
> And that's that. It will manage all the dependencies.

Unless you want your machine to be half woody, half sid, I would
strongly recommend against that approach. What you want to do is
backport. It can be a time consuming process, but if you are setting up
a vpn system, you will save more time by sticking with a woody system +
updates instead of chasing unstable constantly to avoid security
vulnerabilities. 

What you need to do is add this line to your /etc/apt/sources.list:
deb-src http://mirrors.kernel.org/debian/ sid main non-free contrib

run "apt-get update" and as root start downloading source packages and
checking build dependencies.

Here's an example:

apt-get source freeswan
grep Depends freeswan-1.99/debian/control

Build-Depends: debhelper (>= 2.2.0), libgmp3-dev, libssl-dev
Depends: ${shlibs:Depends}, bsdmainutils, makedev | devfsd, debconf,
debianutils (>=1.7), openssl
Depends: fileutils (>= 4.1-7)
Depends: fileutils (>= 4.1-7)

so, we check that the build-depends are satisfied and that the version
requirements are met:
apt-get install debhelper libgmp3-dev libssl-dev
apt-cache policy debhelper

so you can now run dpkg-buildpackage and have a freeswan .deb. but it
will still not be installable because not all of the dependencies are
satisfied. so we go through the Depends: list and backport each of the
packages that needs it.

by checking apt-cache policy debianutils, we see that we are going to
need to backport it. Let's install the other stuff first though.

apt-get install bsdmainutils makedev debconf openssl

then we apt-get source debianutils etc etc.

Like I said, it can be a very time consuming process, but you will thank
yourself down the road. Post back here if you need help with anything.

-Mark




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to