Re: HOW DO I Apply debian patch to original source?

2000-03-08 Thread Brian Lavender
Ok, I got the debhelper package so that when I do 

$ apt-get source wu-ftpd
$ cd wu-ftpd-2.60
$ debian/rules binary

It will build. Now here is the thing. When I look at the rules file
It appears that it has a logrotate configuration on the install. So,
I am thinking that I can comment out that logrotate, and use the way
that slink rotates the logs to have them rotated. Would this be logical?

I commented out the following line

binary-arch: install-stamp
 dh_testdir
 dh_testroot
 dh_installdocs ERRATA README doc/HOWTO/VIRTUAL.FTP.SUPPORT doc/TODO \
 doc/HOWTO/upload.configuration.HOWTO debian/FAQ
 install -m 644 debian/README.config $(tmp)/etc/wu-ftpd/README
 ln -s /etc/wu-ftpd/README $(tmp)/usr/share/doc/wu-ftpd/README.config
 install -m 644 debian/*.8 $(tmp)/usr/share/man/man8/
 cd $(tmp)/usr/share/man/man8  ln -s addftpuser.8.gz rmftpuser.8.gz  \
 ln -s xferstats.8.gz xferstats.wu-ftpd.8.gz
 dh_installexamples `find doc/examples -type f` debian/*.es
 dh_installchangelogs CHANGES
#install -m 644 debian/logrotate $(tmp)/etc/logrotate.d/wu-ftpd
 dh_installinit -r -udefaults 50
 dh_installpam
 dh_strip
 dh_compress
 dh_fixperms
 dh_installdeb
 dh_shlibdeps
 dh_gencontrol
 dh_md5sums
 dh_builddeb

brian

On Tue, Mar 07, 2000 at 02:22:20PM -0700, Bob Nielsen wrote:
 On Tue, Mar 07, 2000 at 11:07:04AM -0800, Brian Lavender wrote:
  I am having problems installing the wu-ftpd package from source.
  
  The whole reason I am grabbing the source is that I want to use a more
  recent version of wu-ftpd than what is available with the slink binary
  packages. If I can build the package from the source files to give me
  a slink compatible package, it is all the better.
  
  I update my /etc/apt/sources.list with
  http://http.us.debian.org/debian unstable main contrib non-free
  
  and then I did a 
  # apt-get update
  $ apt-get source wu-ftpd
  
  and it retrieved the 2.6.0 wu-ftpd. It looks as if it applied the patch for
  me. I got an erro with the debian/rules binary though
  
  $ cd wu-ftpd-2.6.0
  $ debian/rules binary
  dh_testdir
  make: dh_testdir: Command not found
  make: *** [build-stamp] Error 127
  
  Do you know what this error indicates? 
 
 It means that the command dh_testdir is not available.
 
 $ dpkg -S dh_testdir
 debhelper: /usr/share/man/man1/dh_testdir.1.gz
 debhelper: /usr/bin/dh_testdir
 
 You need to install the debhelper package.
 
 -- 
 Bob Nielsen, N7XY (RN2)[EMAIL PROTECTED]
 Tucson, AZ DM42nh  QRP-L #1985  SOC #77http://www.primenet.com/~nielsen
  
 
 
 -- 
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null

-- 
Brian Lavender
http://www.brie.com/brian/


Re: HOW DO I Apply debian patch to original source?

2000-03-08 Thread Shaul Karl
 I am having problems installing the wu-ftpd package from source.
 
 The whole reason I am grabbing the source is that I want to use a more
 recent version of wu-ftpd than what is available with the slink binary
 packages. If I can build the package from the source files to give me
 a slink compatible package, it is all the better.
 
 I update my /etc/apt/sources.list with
 http://http.us.debian.org/debian unstable main contrib non-free
 
 and then I did a 
 # apt-get update
 $ apt-get source wu-ftpd
 
 and it retrieved the 2.6.0 wu-ftpd. It looks as if it applied the patch for
 me. I got an erro with the debian/rules binary though
 
 $ cd wu-ftpd-2.6.0
 $ debian/rules binary
 dh_testdir
 make: dh_testdir: Command not found
 make: *** [build-stamp] Error 127
 
 Do you know what this error indicates? 
 


You do not have dh_testdir which is in the debhelper package.
[04:35:30 /tmp]$ man dh_testdir

DH_TESTDIR(1)   Debhelper Commands  DH_TESTDIR(1)

NAME
   dh_testdir - test directory before building debian package

SYNOPSIS
   dh_testdir [debhelper options] [file ...]

DESCRIPTION
   dh_testdir tries to make sure that you are in the  correct
   directory  when  building  a debian package. It makes sure
   that the file debian/control exists, as well as any  other
   files you specify. If not, it exits with an error.

OPTIONS
   [debhelper options]
  See  debhelper(1)  for  a list of options common to
  all debhelper commands.

   file ...
  Test for the existence of these files.


 
 On Mon, Mar 06, 2000 at 11:37:32PM -0700, Bob Nielsen wrote:
  On Mon, Mar 06, 2000 at 06:24:50PM -0800, Brian Lavender wrote:
   I posted this to the list once already, but I don't know if it made it.
   
   I am trying to compile a debian package from source. I can go to the 
   package's 
   web page and get the original source along with the diff. How do I apply 
   the 
   patch?
   
   If I do a 
   
   $ tar zxf wu-ftpd_2.6.0.orig.tar.gz
   $ zcat wu-ftpd_2.6.0-4.diff.gz | patch -p1 
   can't find file to patch at input line 3
   Perhaps you used the wrong -p or --strip option?
   The text leading up to this was:
   --
   |--- wu-ftpd-2.6.0.orig/src/ftpcount.c
   |+++ wu-ftpd-2.6.0/src/ftpcount.c
   --
   File to patch: 
   
   
   
   I am interested in the wu-ftpd package.
   
   http://ftp.debian.org/debian/dists/frozen/main/source/net/wu-ftpd_2.6.0.orig.tar.gz
   http://ftp.debian.org/debian/dists/frozen/main/source/net/wu-ftpd_2.6.0-4.diff.gz
  
  To create a package from the Debian source, you should also install
  dpkg-dev and download
  http://ftp.debian.org/debian/dists/frozen/main/source/net/wu-ftpd_2.6.0-4.dsc
  
  Then type dpkg-source -x wu-ftpd_2.6.0-4.dsc (as root).  This will
  unpack the source and apply the patch.  You should then cd to the
  wu-ftpd-2.6.0 directory which was created and type debian/rules binary. 
  This will compile the source and create the Debian package for you.
 
 -- 
 Brian Lavender
 http://www.brie.com/brian/
 
 
 -- 
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null

-- 
Shaul Karl [EMAIL PROTECTED]
An elephant is a mouse with an operating system.



HOW DO I Apply debian patch to original source?

2000-03-07 Thread Brian Lavender
I posted this to the list once already, but I don't know if it made it.

I am trying to compile a debian package from source. I can go to the package's 
web page and get the original source along with the diff. How do I apply the 
patch?

If I do a 

$ tar zxf wu-ftpd_2.6.0.orig.tar.gz
$ zcat wu-ftpd_2.6.0-4.diff.gz | patch -p1 
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--
|--- wu-ftpd-2.6.0.orig/src/ftpcount.c
|+++ wu-ftpd-2.6.0/src/ftpcount.c
--
File to patch: 



I am interested in the wu-ftpd package.

http://ftp.debian.org/debian/dists/frozen/main/source/net/wu-ftpd_2.6.0.orig.tar.gz
http://ftp.debian.org/debian/dists/frozen/main/source/net/wu-ftpd_2.6.0-4.diff.gz

brian
-- 
Brian Lavender
http://www.brie.com/brian/


Re: HOW DO I Apply debian patch to original source?

2000-03-07 Thread Frank Copeland
Brian Lavender wrote:

I am trying to compile a debian package from source. I can go to the package's 
web page and get the original source along with the diff. How do I apply the 
patch?

Get the *.dsc file as well. Put all three files in the directory you want to
unpack in, and cd to it. Then run 'dpkg-source -x wu-ftpd_2.6.0-4.dsc'. You
will need to have the dpkg-dev package installed.

Frank


Re: HOW DO I Apply debian patch to original source?

2000-03-07 Thread Bob Nielsen
On Mon, Mar 06, 2000 at 06:24:50PM -0800, Brian Lavender wrote:
 I posted this to the list once already, but I don't know if it made it.
 
 I am trying to compile a debian package from source. I can go to the 
 package's 
 web page and get the original source along with the diff. How do I apply the 
 patch?
 
 If I do a 
 
 $ tar zxf wu-ftpd_2.6.0.orig.tar.gz
 $ zcat wu-ftpd_2.6.0-4.diff.gz | patch -p1 
 can't find file to patch at input line 3
 Perhaps you used the wrong -p or --strip option?
 The text leading up to this was:
 --
 |--- wu-ftpd-2.6.0.orig/src/ftpcount.c
 |+++ wu-ftpd-2.6.0/src/ftpcount.c
 --
 File to patch: 
 
 
 
 I am interested in the wu-ftpd package.
 
 http://ftp.debian.org/debian/dists/frozen/main/source/net/wu-ftpd_2.6.0.orig.tar.gz
 http://ftp.debian.org/debian/dists/frozen/main/source/net/wu-ftpd_2.6.0-4.diff.gz

To create a package from the Debian source, you should also install
dpkg-dev and download
http://ftp.debian.org/debian/dists/frozen/main/source/net/wu-ftpd_2.6.0-4.dsc

Then type dpkg-source -x wu-ftpd_2.6.0-4.dsc (as root).  This will
unpack the source and apply the patch.  You should then cd to the
wu-ftpd-2.6.0 directory which was created and type debian/rules binary. 
This will compile the source and create the Debian package for you.


-- 
Bob Nielsen, N7XY (RN2)[EMAIL PROTECTED]
Tucson, AZ DM42nh  QRP-L #1985  SOC #77http://www.primenet.com/~nielsen
 


Re: HOW DO I Apply debian patch to original source?

2000-03-07 Thread Brad
On Mon, Mar 06, 2000 at 06:24:50PM -0800, Brian Lavender wrote:
 I posted this to the list once already, but I don't know if it made it.
 
 I am trying to compile a debian package from source. I can go to the 
 package's 
 web page and get the original source along with the diff. How do I apply the 
 patch?

The easiest way is to add a deb-src line to your apt sources.list,
something like this:
  deb-src http://http.us.debian.org/debian unstable main contrib non-free

Of course, adjust to suit your preferences. Then you can just apt-get
source wu-ftpd with a reasonably recent version of apt and it'll
download, unpack, and patch the sources for you.

The second easiest way is to download the wu-ftpd_2.6.0-4.dsc file in
addition to the other two, and then use the command dpkg-source -x
wu-ftpd_2.6.0-4.dsc. dpkg-source is in the dpkg-dev package.

 If I do a 
 
 $ tar zxf wu-ftpd_2.6.0.orig.tar.gz

You forgot to change directories here:
  $ cd wu-ftpd-2.6.0

 $ zcat wu-ftpd_2.6.0-4.diff.gz | patch -p1 

This'll have to change trivially because of the above:
  $ zcat ../wu-ftpd_2.6.0-4.diff.gz | patch -p1 


-- 
  finger for GPG public key.


pgpLxjJFSbSaC.pgp
Description: PGP signature


Re: HOW DO I Apply debian patch to original source?

2000-03-07 Thread Martin Fluch
On Mon, 6 Mar 2000, Bob Nielsen wrote:

 To create a package from the Debian source, you should also install
 dpkg-dev and download
 http://ftp.debian.org/debian/dists/frozen/main/source/net/wu-ftpd_2.6.0-4.dsc
 
 Then type dpkg-source -x wu-ftpd_2.6.0-4.dsc (as root).  This will
 unpack the source and apply the patch.  You should then cd to the
 wu-ftpd-2.6.0 directory which was created and type debian/rules binary. 
 This will compile the source and create the Debian package for you.

You don't have to be root...

Martin

-- 
Win2k: It's not so much that it's only 65,000 bugs,
it's just that they stopped at 65,535 to prevent an overflow.

For public PGP-key: finger [EMAIL PROTECTED]


Re: HOW DO I Apply debian patch to original source?

2000-03-07 Thread Brian Lavender
I am having problems installing the wu-ftpd package from source.

The whole reason I am grabbing the source is that I want to use a more
recent version of wu-ftpd than what is available with the slink binary
packages. If I can build the package from the source files to give me
a slink compatible package, it is all the better.

I update my /etc/apt/sources.list with
http://http.us.debian.org/debian unstable main contrib non-free

and then I did a 
# apt-get update
$ apt-get source wu-ftpd

and it retrieved the 2.6.0 wu-ftpd. It looks as if it applied the patch for
me. I got an erro with the debian/rules binary though

$ cd wu-ftpd-2.6.0
$ debian/rules binary
dh_testdir
make: dh_testdir: Command not found
make: *** [build-stamp] Error 127

Do you know what this error indicates? 


On Mon, Mar 06, 2000 at 11:37:32PM -0700, Bob Nielsen wrote:
 On Mon, Mar 06, 2000 at 06:24:50PM -0800, Brian Lavender wrote:
  I posted this to the list once already, but I don't know if it made it.
  
  I am trying to compile a debian package from source. I can go to the 
  package's 
  web page and get the original source along with the diff. How do I apply 
  the 
  patch?
  
  If I do a 
  
  $ tar zxf wu-ftpd_2.6.0.orig.tar.gz
  $ zcat wu-ftpd_2.6.0-4.diff.gz | patch -p1 
  can't find file to patch at input line 3
  Perhaps you used the wrong -p or --strip option?
  The text leading up to this was:
  --
  |--- wu-ftpd-2.6.0.orig/src/ftpcount.c
  |+++ wu-ftpd-2.6.0/src/ftpcount.c
  --
  File to patch: 
  
  
  
  I am interested in the wu-ftpd package.
  
  http://ftp.debian.org/debian/dists/frozen/main/source/net/wu-ftpd_2.6.0.orig.tar.gz
  http://ftp.debian.org/debian/dists/frozen/main/source/net/wu-ftpd_2.6.0-4.diff.gz
 
 To create a package from the Debian source, you should also install
 dpkg-dev and download
 http://ftp.debian.org/debian/dists/frozen/main/source/net/wu-ftpd_2.6.0-4.dsc
 
 Then type dpkg-source -x wu-ftpd_2.6.0-4.dsc (as root).  This will
 unpack the source and apply the patch.  You should then cd to the
 wu-ftpd-2.6.0 directory which was created and type debian/rules binary. 
 This will compile the source and create the Debian package for you.

-- 
Brian Lavender
http://www.brie.com/brian/


Re: HOW DO I Apply debian patch to original source?

2000-03-07 Thread Bob Nielsen
On Tue, Mar 07, 2000 at 11:07:04AM -0800, Brian Lavender wrote:
 I am having problems installing the wu-ftpd package from source.
 
 The whole reason I am grabbing the source is that I want to use a more
 recent version of wu-ftpd than what is available with the slink binary
 packages. If I can build the package from the source files to give me
 a slink compatible package, it is all the better.
 
 I update my /etc/apt/sources.list with
 http://http.us.debian.org/debian unstable main contrib non-free
 
 and then I did a 
 # apt-get update
 $ apt-get source wu-ftpd
 
 and it retrieved the 2.6.0 wu-ftpd. It looks as if it applied the patch for
 me. I got an erro with the debian/rules binary though
 
 $ cd wu-ftpd-2.6.0
 $ debian/rules binary
 dh_testdir
 make: dh_testdir: Command not found
 make: *** [build-stamp] Error 127
 
 Do you know what this error indicates? 

It means that the command dh_testdir is not available.

$ dpkg -S dh_testdir
debhelper: /usr/share/man/man1/dh_testdir.1.gz
debhelper: /usr/bin/dh_testdir

You need to install the debhelper package.

-- 
Bob Nielsen, N7XY (RN2)[EMAIL PROTECTED]
Tucson, AZ DM42nh  QRP-L #1985  SOC #77http://www.primenet.com/~nielsen