|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Seth Arnold (sarnold
wirex.com)Date: Tue Dec 18 2001 - 13:46:37 CST
On Tue, Dec 18, 2001 at 11:08:39AM -0800, Strand, Liam wrote:
> Well last thing then, how do I compile it into a rpm?
Well, Crispin's post is actually a bit of a simplification of how we
build packages for our ISP and SMB products, but it does serve as a nice
outline. :)
The gist of building a SRPM into an RPM for one of the appliances goes
something like this:
$ wget http://path/to/srpm
$ rpm -i local.src.rpm # you need an ~/.rpmmacros file first [1]
$ cd src/redhat/
$ vim SPECS/package_name.spec # update pieces of the spec file
$ rpm -ba SPECS/package_name.spec # build the .src.rpm and .i386.rpm files
# rpm -Uvh RPMS/i386/package.i386.rpm # now test! :)
Of course, things are liable to break in the rpm -ba stage. (I think it
is related to how urgent it is to finish the build quickly. :)
The 'update .spec file' step is nebulous. It usually involves adding a
new changelog entry, changing version numbers, perhaps removing patches
from the .src.rpm that don't apply with the new source..
Note that you *might* be able to simply do
$ rpm --rebuild local_package.src.rpm
to rebuild a source RPM with the local compiler / glibc.
Sadly, rpm is rather underdocumented. The rpm(8) manpage has some
information on using rpm, and you can search for / buy Maximum RPM to
understand the .spec files. However, Maximum RPM documents RPM version 2,
while Immunix ships RPM version 4, so it isn't perfect... But, it is a
start. :)
I hope that this can get you started. :)
> > The recomended procedure to do what you want (upgrade PHP on your ISP
> > server) is:
> >
> > 1. Install Immunix System 7 on some other computer
> > 2. Download your favorite PHP in SRPM from somewhere
> > 3. Do the "./configure; make; make install" boogie, debugging &
> > configuring PHP as appropriate
> > 4. Produce a binary RPM from the result
> > 5. Install the binary PHP RPM on the ISP server
[1]: Here is my ~/.rpmmacros file. It will need to be modified to work
for you. :)
%_topdir /home/sarnold/src/redhat
%distribution WireX Immunix
%vendor WireX Inc.
%_signature gpg
%_gpg_name <security
wirex.com>
%_gpg_path ~/.gnupg
%_gpgbin /usr/bin/gpg
-- Find out why the United States jailed a Russian citizen over a lecture: http://www.anti-dmca.com/
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org
iD8DBQE8H50c1XMg6PgdEDQRAtqmAJ9xmnTt8x5rocqvWk7rMatQCkwiZACfWOAp OFrDGh0Xl1o2VZCfv/RUKtA= =/7zG -----END PGP SIGNATURE-----
_______________________________________________
Immunix-users mailing list
Immunix-users
mail.wirex.com
http://mail.wirex.com/mailman/listinfo/immunix-users
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]