You should be able to just edit /etc/apt/sources.list and comment all
other lines, to add the following:

deb http://ftp.us.debian.org/debian/ testing main non-free contrib

Then run the following commands:
cd /usr/local/src
apt-get update && apt-get source openssh-server
apt-get build-dep openssh-server

That'll get you the source....as for patching it and rebuilding it,
I'm sure you could patch the source you get the usual way, and then
follow these instructions to rebuild the .deb package: (from:
http://www.debian.org/doc/manuals/apt-howto/ch-sourcehandling.en.html)

------------------------------
To download a source package, you would use the following command:

    $ apt-get source packagename

This will download three files: a .orig.tar.gz, a .dsc and a .diff.gz.
In the case of packages made specifically for Debian, the last of
these is not downloaded and the first usually won't have "orig" in the
name.

The .dsc file is used by dpkg-source for unpacking the source package
into the directory packagename-version. Within each downloaded source
package there is a debian/ directory that contains the files needed
for creating the .deb package.

To auto-build the package when it's been downloaded, just add -b to
the command line, like this:

    $ apt-get -b source packagename

If you decide not to create the .deb at the time of the download, you
can create it later by running:

    $ dpkg-buildpackage -rfakeroot -uc -b

from within the directory that was created for the package after
downloading. To install the package built by the commands above one
must use the package manager directly, like this:

    # dpkg -i file.deb



On 6/3/07, Andrew Lentvorski <[EMAIL PROTECTED]> wrote:
I *really* need to install the hpn version of openssh in Debian.  The
performance of scp just sucks with the default openssh (yes, I have
improved the performance some using a "-c arcfour" cipher, but it's
still pretty bad).

How do I do this?

I do not see any packages that would do this for me (and, it would have
to be for an ARM9, to boot).  So, I need to:

1) Pull the source via apt
2) Apply the HPN patch
3) Build the source
4) Install the source

Is there a good way to do this with apt?  I know how to unpack an SRPM,
patch it, and repack it so that it looks like a normal RPM and then
install that.  This is effectively what I want to do with Debian.

So, how do I do this?

Presumably, I want to pull the openssh-server from unstable somehow.
Then apply the patch to the source.  I'm at a loss as to how to do this.

Thanks,
-a


--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list



--
Nicholas Wheeler
Systems Administrator
Development InfoStructure


--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to