rebuilding an Ubuntu package
Hi,
I'd like to rebuild ethereal to change some of the options passed to ./configure. The problem is I'm having difficulty finding instructions how to do this. I've gotten as far as apt-get source ethereal. I've found a file debian/rules that contains a ./configure line. Is this the file I should edit in order to make the changes I need? Also, how do I change the version number the package is given? I'd like to change it to indicate it's not from the normal repository. Once I've worked that out, what do I do then? I'm sorry if this seems obvious to most people, but it's all completely new to me! Thanks H. |
Well -you might want ot have a look at those links:
http://www.debian.org/doc/manuals/re...pository-howto http://people.debian.org/~jaldhar/make_package3.html http://jaqque.sbih.org/kplug/apt-pinning.html http://www.debian.org/doc/manuals/ap...ndling.en.html You do change the .config in the Debian rules but that is only half the fun. You need to make a package and set it up in a local repository and pin that so it gets prefered over the Debian repositories or the next update will thrown it out. The devlib dependencies can get handled automatically with apt-get (apt-get build-dep). If you got nothing in there that depends on wireshark - meaning you only want to install it from source it would be much easier to just compile it and throw it in there. Google for man auto-apt to resolve dependencies for devlibs automatically. |
Thanks for the reply and the confirmation that debian/rules is the place to edit to change the configure.
The one thing I still don't know how to do is to change the version number. As for creating a repository, that's not something I wish to do at this point in time. A simple dpkg -i will be enough on my new ethereal package for the time being. The machine it's going onto is a "frozen" system and not publically accessible so never has apt-get update run on it. That second link you provided is marked as "don't use anymore", and the new link it points to is way too complicated for me. I was under the (wrong) impression that rebuilding a source package was a relatively simple affair. Perhaps I shall just compile from source and be done in a matter of minutes. Thanks again, H. |
If you just want to change the options to the configure script then, change them in debian/rules and to change the version number (I'm not 100% on this) you should just add an entry to the top of debian/changelog
Then just do (from the top of the source dir: Code:
user@host:ethereal-0.99.0$ debian/rules then you should have the debs in the directory above the source. |
All times are GMT -5. The time now is 07:29 AM. |