/[gentoo-x86]/sys-cluster/ipvsadm/ipvsadm-1.24.ebuild
Gentoo

Contents of /sys-cluster/ipvsadm/ipvsadm-1.24.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.29 - (show annotations) (download)
Fri Oct 7 20:33:04 2011 UTC (2 years, 11 months ago) by xarthisius
Branch: MAIN
CVS Tags: HEAD
Changes since 1.28: +2 -2 lines
Restore previous version wrt #371903

(Portage version: 2.2.0_alpha59/cvs/Linux x86_64, RepoMan options: --force)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-cluster/ipvsadm/Attic/ipvsadm-1.24.ebuild,v 1.28 2011/09/10 09:02:31 scarabeus dead $
4
5 inherit linux-info toolchain-funcs
6
7 DESCRIPTION="utility to administer the IP virtual server services offered by the Linux kernel"
8 HOMEPAGE="http://linuxvirtualserver.org/"
9 SRC_URI="http://www.linuxvirtualserver.org/software/kernel-2.5/${P}.tar.gz"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="amd64 ia64 ~ppc64 s390 sparc x86"
14 IUSE=""
15
16 RDEPEND=">=sys-libs/ncurses-5.2"
17 DEPEND="${RDEPEND}"
18
19 pkg_setup() {
20 if kernel_is 2 4; then
21 eerror "${P} supports only 2.6 kernels, please try ${PN}-1.21 for 2.4 kernels"
22 die "wrong kernel version"
23 fi
24 }
25
26 src_compile() {
27 emake \
28 -j1 \
29 INCLUDE="-I${KV_DIR}/include -I.. -I." \
30 CFLAGS="${CFLAGS}" \
31 CC="$(tc-getCC)" \
32 || die "error compiling source"
33 }
34
35 src_install() {
36 into /
37 dosbin ipvsadm ipvsadm-save ipvsadm-restore || die
38
39 doman ipvsadm.8 ipvsadm-save.8 ipvsadm-restore.8 || die
40
41 newinitd "${FILESDIR}"/ipvsadm-init ipvsadm
42 keepdir /var/lib/ipvsadm
43
44 insinto /usr/lib
45 doins libipvs/libipvs.a || die
46
47 insinto /usr/include/ipvs
48 newins libipvs/libipvs.h ipvs.h || die
49 }
50
51 pkg_postinst() {
52 einfo "You will need a kernel that has ipvs patches to use LVS."
53 einfo "This version is specifically for 2.6 kernels."
54 }

  ViewVC Help
Powered by ViewVC 1.1.20