Hi,
I have done some work which I believe improves the build process
for ipvsadm. In particular producing a tar ball and rpms.
The patch is below. Breifly it:
Makefile
* Build recursively rather than relying on a master Makefile
* Dist done in place. This allows it to be much more resilient
with regards to chaning of its directory name (for instance if
the ipvsadm source is moved to ipvsadm.blah) and also
avoids including unwanded file, such as tempoary files
that may be lying around. It also avoids the need
for the make dist target to do an implicit make clean.
The resulting tar ball has a directory tree rooted
in ipvsadm-<version> rather than ipvsadm. This is
in keeping with the way many packages work.
* Install sysconfig file as appropriate
* Distcheck tries to build from dist tar ball
* Distclean cleans the tree rather than building
* Destination directories can be configured using the
environment variables SBINDIR, INITDIR and SYSCONFIGDIR.
This is in addition to MANDIR which was already present.
* Include net/ip_vs.h in dest tar ball. This makes it possible
to build ipvsadm from the tar ball, with out relaying on ip_vs.h
being present in the parent director or somewhere else
in the include path.
ipvsadm.spec.in
* Uses /etc/init.d instead of /etc/rc.d/init.d
* Includes /etc/sysconfig/ipvsadm file which is
required for the init script to function correctly.
--
Horms
ipvs-1.0.3.ipvsadm.rpm.patch
Description: Text document
|