diff options
author | Kacper Kowalik <xarthisius@gentoo.org> | 2011-05-18 07:25:17 +0000 |
---|---|---|
committer | Kacper Kowalik <xarthisius@gentoo.org> | 2011-05-18 07:25:17 +0000 |
commit | 46632bc24cedb290944f9d6c562bcf7d47349410 (patch) | |
tree | 476902fbf9a55a540a5fd4305ba5b34c6d349fd3 /sys-cluster/ipvsadm | |
parent | x86 stable wrt bug #367323 (diff) | |
download | historical-46632bc24cedb290944f9d6c562bcf7d47349410.tar.gz historical-46632bc24cedb290944f9d6c562bcf7d47349410.tar.bz2 historical-46632bc24cedb290944f9d6c562bcf7d47349410.zip |
Drop old. Use higher EAPI, introduce static-libs IUSE, don't build static with -fPIC, fix underlinking wrt #367871.
Package-Manager: portage-2.2.0_alpha31/cvs/Linux x86_64
Diffstat (limited to 'sys-cluster/ipvsadm')
-rw-r--r-- | sys-cluster/ipvsadm/ChangeLog | 10 | ||||
-rw-r--r-- | sys-cluster/ipvsadm/Manifest | 18 | ||||
-rw-r--r-- | sys-cluster/ipvsadm/files/ipvsadm-1.26-buildsystem.patch (renamed from sys-cluster/ipvsadm/files/ipvsadm-1.25-r1-build-fixup.diff) | 69 | ||||
-rw-r--r-- | sys-cluster/ipvsadm/ipvsadm-1.26-r1.ebuild (renamed from sys-cluster/ipvsadm/ipvsadm-1.26.ebuild) | 27 |
4 files changed, 91 insertions, 33 deletions
diff --git a/sys-cluster/ipvsadm/ChangeLog b/sys-cluster/ipvsadm/ChangeLog index 2f828de4e978..1bc6eb77d092 100644 --- a/sys-cluster/ipvsadm/ChangeLog +++ b/sys-cluster/ipvsadm/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for sys-cluster/ipvsadm # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/ipvsadm/ChangeLog,v 1.46 2011/03/07 19:44:12 ultrabug Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/ipvsadm/ChangeLog,v 1.47 2011/05/18 07:25:17 xarthisius Exp $ + +*ipvsadm-1.26-r1 (18 May 2011) + + 18 May 2011; Kacper Kowalik <xarthisius@gentoo.org> + -files/ipvsadm-1.25-r1-build-fixup.diff, -ipvsadm-1.26.ebuild, + +ipvsadm-1.26-r1.ebuild, +files/ipvsadm-1.26-buildsystem.patch: + Drop old. Use higher EAPI, introduce static-libs IUSE, don't build static + with -fPIC, fix underlinking wrt #367871. *ipvsadm-1.26 (07 Mar 2011) diff --git a/sys-cluster/ipvsadm/Manifest b/sys-cluster/ipvsadm/Manifest index 864638aeb34e..bcba76c5839e 100644 --- a/sys-cluster/ipvsadm/Manifest +++ b/sys-cluster/ipvsadm/Manifest @@ -1,10 +1,22 @@ -AUX ipvsadm-1.25-r1-build-fixup.diff 2194 RMD160 5962baca01c882cb0b3a5e0a935ca1562806a6c7 SHA1 edcaed6ad01327b17ec94ccb78f256cdd6d1c3a6 SHA256 c68deb98bf859f0c8ae36a06f670ac0be1bc44f67d3fb88fe0e544f3e71432ce +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +AUX ipvsadm-1.26-buildsystem.patch 2989 RMD160 669c160e624995c8ac85787ec3b3435422a01b7f SHA1 58f72bcf13ed839e6b748c27a2176ac81ce29026 SHA256 88391e5122dbb7d8c92385647b2e8856bf7ad7231cfb2e73eda4e422addce198 AUX ipvsadm-init 764 RMD160 447562aeb699ab12d97d088e97678c2ac98d7e5c SHA1 ce953d9013b3a5b0e35cc5901376d9bf54fd51f4 SHA256 296c44030f502882c361ff9ceff14fe1377150e9aae8dc6a9ddaa4bd94275868 DIST ipvsadm-1.21-11.tar.gz 34030 RMD160 2476f127bfd76313a7e32d0f6d2d4225164ef872 SHA1 368630ac25a772221deb101ee86b87a5341a5bab SHA256 7b85020f84d4648166bce480d747d82ac5c9113f9a222e3de7eb92b7af0598fa DIST ipvsadm-1.24.tar.gz 32007 RMD160 6647adb3914e69bd2a6924b5a0f675b670cd57ed SHA1 6bb6ce422745d0fe6409d91df7820fd5e7d2eeeb SHA256 773cbada48061e3afafaeaa2800d5382b8ff638b2c929293c14a793112a0642a DIST ipvsadm-1.26.tar.gz 41700 RMD160 7be7dcd00bdd640bbe9ab498180bb632d9c0d02d SHA1 fd23f6d81d4ac2a353db1fed694eaa5f2ff3ac6b SHA256 6d6c46fecb1c532a892616b4445c73b71730e8790d5630f60269fd9cbee0eb2d EBUILD ipvsadm-1.21-r1.ebuild 1286 RMD160 4d1583434b7967c8555bfceafa9dc3fe9dd9939d SHA1 e38398525c9e9ad3852c1f4c040118eb4a4b223f SHA256 083cb6dacd17178e8ce5fd0973879d6be2996b5d38a2b2edac27181530a50634 EBUILD ipvsadm-1.24.ebuild 1387 RMD160 3605e04500efea274cf02d86e822aaadd1c42eab SHA1 c7cc57c9f2b7507f1bb82c1249db39bcf2fa0fc1 SHA256 25d1cfbf05424167b157a3074926859682718e7524f607fddc835e497688676b -EBUILD ipvsadm-1.26.ebuild 1525 RMD160 7f618323dbb169c427ac019338af7f9ef26a03d9 SHA1 ffd3312a0f07a74e670850b8bf6b68f03ba924e2 SHA256 1d5e25c1ab6347e657feeb040dbf72d84a8bb8ed247b5c311d0589849f34f6da -MISC ChangeLog 6113 RMD160 4c283b035d5bfeb3ffdbc19ab211a84f7f788ec7 SHA1 53de0e86fb203fd5f4f26a0ce994f36c728d115b SHA256 5c686f90bd064f296b4e04d947d1370b0359c9c34d5748fb3925860a1bf48281 +EBUILD ipvsadm-1.26-r1.ebuild 1601 RMD160 abaf64503736787e3f768bbfff2c7cfae3e4b886 SHA1 87a043d5aaa933f11b2f54dbcbdac59ce96820d3 SHA256 adf21fae2d4aff873802b2bc93d39bfa8892a1e778d274c86844e086040a1834 +MISC ChangeLog 6453 RMD160 3740a0fc644181c525c095b58cbe141416ad9c58 SHA1 924ecc42d3f1ff08874197714fae8197e1ffbf92 SHA256 d37068843d33d39fc1c1dba518140ab35f373b8c847e0186ef09ba2d6ea5464d MISC metadata.xml 265 RMD160 d5a540823bf95c48407b6404d973473db9cab6d9 SHA1 b0e94d9558b9b83e49f5af440d81e26516f0c00c SHA256 e6d5d2ea1a07e2e00194e0a485c66904b09fefb05427e9373d184ab3161fcdda +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.17 (GNU/Linux) + +iJwEAQECAAYFAk3TdHAACgkQIiMqcbOVdxTClAQAhK47Uu0x8Ycm+SLTrdIrRhPT +FqBClVxAgb9kzQLNgj/5iXZTNAuJ/fyqgcMpm9pQAmbHUVV81hxmrkPk9fNZCUhb +Y7nSEmbsb09897/9F4i2+C/sJ18GYz+xjKKCZWoa8aN7MymT4Ucd2ExP4yQktD0J +h5iqbCiZHVjmjo2HO/8= +=V16l +-----END PGP SIGNATURE----- diff --git a/sys-cluster/ipvsadm/files/ipvsadm-1.25-r1-build-fixup.diff b/sys-cluster/ipvsadm/files/ipvsadm-1.26-buildsystem.patch index 03bbf5f867eb..ba8e9450eb35 100644 --- a/sys-cluster/ipvsadm/files/ipvsadm-1.25-r1-build-fixup.diff +++ b/sys-cluster/ipvsadm/files/ipvsadm-1.26-buildsystem.patch @@ -1,7 +1,10 @@ ---- ipvsadm-1.25/Makefile -+++ ipvsadm-1.25/Makefile -@@ -45,11 +45,11 @@ - STATIC_LIBS = libipvs/libipvs.a +--- a/Makefile ++++ b/Makefile +@@ -43,14 +43,13 @@ + INIT = $(BUILD_ROOT)/etc/rc.d/init.d + MKDIR = mkdir + INSTALL = install +-STATIC_LIBS = libipvs/libipvs.a ifeq "${ARCH}" "sparc64" - CFLAGS = -Wall -Wunused -Wstrict-prototypes -g -m64 -pipe -mcpu=ultrasparc -mcmodel=medlow @@ -15,22 +18,32 @@ ##################################### # No servicable parts below this line -@@ -92,10 +92,12 @@ +@@ -94,10 +93,12 @@ all: libs ipvsadm libs: - make -C libipvs + $(MAKE) -C libipvs + -+$(STATIC_LIBS): libs ++$(OBJS): libs - ipvsadm: $(OBJS) $(STATIC_LIBS) +-ipvsadm: $(OBJS) $(STATIC_LIBS) - $(CC) $(CFLAGS) -o $@ $^ $(LIBS) -+ $(CC) $(LDFLAGS) $(OPTFLAGS) $(CFLAGS) -o $@ $^ $(LIBS) ++ipvsadm: $(OBJS) ++ $(CC) $(LDFLAGS) $(OPTFLAGS) $(CFLAGS) -o $@ $^ -Llibipvs -lipvs $(LIBS) - install: all +-install: all ++install: if [ ! -d $(SBIN) ]; then $(MKDIR) -p $(SBIN); fi -@@ -115,7 +117,7 @@ +@@ -108,15 +109,13 @@ + $(INSTALL) -m 0644 ipvsadm.8 $(MAN) + $(INSTALL) -m 0644 ipvsadm-save.8 $(MAN) + $(INSTALL) -m 0644 ipvsadm-restore.8 $(MAN) +- [ -d $(INIT) ] || $(MKDIR) -p $(INIT) +- $(INSTALL) -m 0755 ipvsadm.sh $(INIT)/ipvsadm + + clean: + rm -f ipvsadm $(NAME).spec $(NAME)-$(VERSION).tar.gz rm -rf debian/tmp find . -name '*.[ao]' -o -name "*~" -o -name "*.orig" \ -o -name "*.rej" -o -name core | xargs rm -f @@ -39,20 +52,20 @@ distclean: clean -@@ -148,4 +150,4 @@ +@@ -149,4 +148,4 @@ dpkg-buildpackage %.o: %.c - $(CC) $(CFLAGS) $(INCLUDE) $(DEFINES) -c -o $@ $< + $(CC) $(OPTFLAGS) $(CFLAGS) $(INCLUDE) $(DEFINES) -c -o $@ $< ---- ipvsadm-1.25/libipvs/Makefile -+++ ipvsadm-1.25/libipvs/Makefile -@@ -1,14 +1,14 @@ +--- a/libipvs/Makefile ++++ b/libipvs/Makefile +@@ -1,32 +1,39 @@ # Makefile for libipvs CC = gcc -CFLAGS = -Wall -Wunused -Wstrict-prototypes -g -fPIC -+OPTFLAGS = -Wall -Wunused -Wstrict-prototypes -fPIC ++OPTFLAGS = -Wall -Wunused -Wstrict-prototypes ifneq (0,$(HAVE_NL)) -CFLAGS += -DLIBIPVS_USE_NL +DEFINES += -DLIBIPVS_USE_NL @@ -65,16 +78,36 @@ echo "-DHAVE_NET_IP_VS_H"; fi;) .PHONY = all clean install dist distclean rpm rpms -@@ -21,10 +21,10 @@ +-STATIC_LIB = libipvs.a +-SHARED_LIB = libipvs.so + +-all: $(STATIC_LIB) $(SHARED_LIB) ++TARGETS = libipvs.so + +-$(STATIC_LIB): libipvs.o ip_vs_nl_policy.o ++ifeq (1,$(STATIC_LIB)) ++TARGETS += libipvs.a ++endif ++ ++all: $(TARGETS) ++ ++libipvs.a: libipvs.o ip_vs_nl_policy.o ar rv $@ $^ - $(SHARED_LIB): libipvs.o ip_vs_nl_policy.o +-$(SHARED_LIB): libipvs.o ip_vs_nl_policy.o - $(CC) -shared -Wl,-soname,$@ -o $@ $^ ++libipvs.so: libipvs.lo ip_vs_nl_policy.lo + $(CC) $(LDFLAGS) -shared -Wl,-soname,$@ -o $@ $^ ++ ++%.lo: %.c ++ $(CC) -fPIC $(OPTFLAGS) $(CFLAGS) $(INCLUDE) $(DEFINES) -c -o $@ $< %.o: %.c - $(CC) $(CFLAGS) $(INCLUDE) $(DEFINES) -c -o $@ $< + $(CC) $(OPTFLAGS) $(CFLAGS) $(INCLUDE) $(DEFINES) -c -o $@ $< clean: - rm -f *.[ao] *~ *.orig *.rej core *.so +- rm -f *.[ao] *~ *.orig *.rej core *.so ++ rm -f *.[ao] *~ *.orig *.rej core *.so *.lo + + distclean: clean diff --git a/sys-cluster/ipvsadm/ipvsadm-1.26.ebuild b/sys-cluster/ipvsadm/ipvsadm-1.26-r1.ebuild index 4e51dde3fcd9..0ebc42a92850 100644 --- a/sys-cluster/ipvsadm/ipvsadm-1.26.ebuild +++ b/sys-cluster/ipvsadm/ipvsadm-1.26-r1.ebuild @@ -1,22 +1,25 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/ipvsadm/ipvsadm-1.26.ebuild,v 1.1 2011/03/07 19:44:12 ultrabug Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/ipvsadm/ipvsadm-1.26-r1.ebuild,v 1.1 2011/05/18 07:25:17 xarthisius Exp $ -EAPI=3 -inherit linux-info toolchain-funcs eutils +EAPI=4 -DESCRIPTION="utility to administer the IP virtual server services offered by the Linux kernel" +inherit eutils linux-info toolchain-funcs + +DESCRIPTION="utility to administer the IP virtual server services" HOMEPAGE="http://linuxvirtualserver.org/" SRC_URI="http://www.linuxvirtualserver.org/software/kernel-2.6/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86" -IUSE="" +IUSE="static-libs" RDEPEND=">=sys-libs/ncurses-5.2 - dev-libs/libnl" -DEPEND="${RDEPEND}" + dev-libs/libnl + dev-libs/popt" +DEPEND="${RDEPEND} + dev-util/pkgconfig" pkg_setup() { if kernel_is 2 4; then @@ -26,7 +29,8 @@ pkg_setup() { } src_prepare() { - epatch "${FILESDIR}"/${PN}-1.25-r1-build-fixup.diff + epatch "${FILESDIR}"/${P}-buildsystem.patch + use static-libs && export STATIC=1 } src_compile() { @@ -34,7 +38,9 @@ src_compile() { INCLUDE="-I.. -I." \ CC="$(tc-getCC)" \ HAVE_NL=1 \ - || die "error compiling source" + STATIC_LIB=${STATIC} \ + POPT_LIB="$(pkg-config --libs popt)" \ + || die } src_install() { @@ -47,8 +53,7 @@ src_install() { newinitd "${FILESDIR}"/ipvsadm-init ipvsadm keepdir /var/lib/ipvsadm - insinto /usr/$(get_libdir) - dolib.a libipvs/libipvs.a || die + use static-libs && dolib.a libipvs/libipvs.a dolib.so libipvs/libipvs.so || die insinto /usr/include/ipvs |