On Thursday 28 June 2007 23:06:44 Adrian Madrid wrote:
> Nathaniel,
>
> I'm new to running Ubuntu servers and I must say I really like it. I'm
> running Dapper but I have rebuilt a couple of packages from newer
> releases (monit and nginx so far) and it wasn't too bad. You can
> download the sources with the debian control files from the Ubuntu
> site and you get it compiled the Debian way. Again, I'm no Debian
> expert but here are the steps I followed to get the latest monit
> package:
>
> # get some needed packages for rebuilding
> sudo apt-get install devscripts
> # prepare dirs
> mkdir -p ~/src ~/src/monit
> cd ~/src/monit
> # get package, diff and control files
> wget
> http://archive.ubuntu.com/ubuntu/pool/universe/m/monit/monit_4.8.1-2.1.dsc
> wget
> http://archive.ubuntu.com/ubuntu/pool/universe/m/monit/monit_4.8.1.orig.tar
>.gz wget
> http://archive.ubuntu.com/ubuntu/pool/universe/m/monit/monit_4.8.1-2.1.diff
>.gz # extract package with diff and control files
> dpkg-source -x monit_4.8.1-2.1.dsc
> # try to rebuild
> cd monit-4.8.1/
> sudo debuild -us -uc -b
> # Install some missing dependencies for this package
> sudo apt-get install devscripts install debhelper byacc flex cdbs
> automake1.9 # try again, succesfully
> sudo debuild -us -uc -b
> cd ..
> # install package
> sudo dpkg -i monit_4.8.1-2.1_amd64.deb
>
> Please, if any of you know a better way, please pitch in. BTW, here
> [1] are some great tutorials I have followed on how to setup an
> Ubuntu/Debian server. It is mainly focused on a VPS but you can
> probably figure out the differences with your setup (mainly RAM
> issues, etc).
You could just add the more recent versions as deb-src and use
apt-get build-dep $PACKAGE
apt-get source $PACKAGE
which will pull all of the dependencies (if they're available) and
download/unpack the package source the debian way. That would just leave you
with building any missing deps (recursively) and using debuild or
fakeroot debian/rules binary.
--- Mike Larsen
--
Politicians are like diapers...
they should be changed often, and for the same reason
The cure for boredom is curiosity.
There is no cure for curiosity.
-- Dorothy Parker
--------------------
BYU Unix Users Group
http://uug.byu.edu/
The opinions expressed in this message are the responsibility of their
author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG.
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list