On 1/30/06, Paolo Alexis Falcone <[EMAIL PROTECTED]> wrote:
> While you're at it, I would suggest that should you do custom compiles,
> make it the Debian way. Package version control should help you in the
> long run (it did when I did backports for Mozilla, Zope 2.5, GNU
> Readline, Python, Postgresql, etc, for Potato back five years ago).
@Tito: Here's an example session for postgresql-8.0:
--- BEGIN xterm ---
[EMAIL PROTECTED]:~$ mkdir -p debian-pkg/postgresql
[EMAIL PROTECTED]:~$ pushd debian-pkg/postgresql
[EMAIL PROTECTED]:~/debian-pkg/postgresql$ sudo apt-get update && \
apt-get build-dep postgresql-8.0
[ APT updates the Package and Source listings, then proceeds to grab the
Build-Depends for postgresql-8.0 ]
[EMAIL PROTECTED]:~/debian-pkg/postgresql$ apt-get source postgresql-8.0
[ APT then gets the Debian sources for postgresql-8.0, and extracts them
to postgresql-8.0-8.0.6 ]
[EMAIL PROTECTED]:~/debian-pkg/postgresql$ pushd postgresql-8.0-8.0.6
[EMAIL PROTECTED]:~/debian-pkg/postgresql/postgresql-8.0-8.0.6$
[ do your changes here ]
[EMAIL PROTECTED]:~/debian-pkg/postgresql/postgresql-8.0-8.0.6$ debchanges -i
[ update debian/changelog (optional, debchanges is in the devscripts
pkg) ]
[EMAIL PROTECTED]:~/debian-pkg/postgresql/postgresql-8.0-8.0.6$
dpkg-buildpackage \
-rfakeroot -us -uc
[ build the package, use fakeroot (in fakeroot pkg) ]
[EMAIL PROTECTED]:~/debian-pkg/postgresql/postgresql-8.0-8.0.6$ cd .. && sudo \
dpkg --install *.deb
[ install your newly-built packages ]
--- END xterm ---
It's actually longer than it should be, but this should get you going.
In case you're interested in learning more about building custom
packages for Debian-based systems, please read up on the Debian New
Maintainers' Guide[0] or the upcoming Ubuntu Packaging Guide[1].
[0] http://www.debian.org/doc/maint-guide/ , or `apt-get install
maint-guide` in Debian/Ubuntu, then read locally at
/usr/share/doc/maint-guide/
[1] http://doc.ubuntu.com/ubuntu/packagingguide/C/index.html , still in
draft, but worth looking (and commenting ;)
HTH,
Zakame
--
Zak B. Elep || http://zakame.spunge.org
[EMAIL PROTECTED] || [EMAIL PROTECTED]
1486 7957 454D E529 E4F1 F75E 5787 B1FD FA53 851D
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph