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

Contents of /sys-cluster/ipvsadm/ipvsadm-1.21-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.21 - (show annotations) (download)
Sat Mar 21 22:08:57 2015 UTC (3 years, 6 months ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.20: +3 -4 lines
install libs via helpers

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-cluster/ipvsadm/ipvsadm-1.21-r1.ebuild,v 1.20 2013/11/06 02:31:02 patrick Exp $
4
5 inherit linux-info
6
7 PATCHLEVEL="11"
8 MY_PV="${PV}-${PATCHLEVEL}"
9 MY_P="${PN}-${MY_PV}"
10
11 DESCRIPTION="utility to administer the IP virtual server services"
12 HOMEPAGE="http://linuxvirtualserver.org"
13 LICENSE="GPL-2"
14 DEPEND=">=sys-libs/ncurses-5.2"
15
16 SRC_URI="http://www.linuxvirtualserver.org/software/kernel-2.4/${MY_P}.tar.gz"
17
18 SLOT="0"
19 KEYWORDS="~ppc ~ppc64 x86"
20 IUSE=""
21
22 S="${WORKDIR}/${MY_P}"
23
24 pkg_setup() {
25 if kernel_is -ge 2 6; then
26 eerror "${P} does not support 2.6 kernels, please try newer versions"
27 die "wrong kernel version"
28 fi
29 }
30
31 src_compile() {
32 emake || 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
40
41 newinitd "${FILESDIR}"/ipvsadm-init ipvsadm || die
42 keepdir /var/lib/ipvsadm
43
44 dolib.a libipvs/libipvs.a || die
45
46 insinto /usr/include/ipvs
47 newins libipvs/libipvs.h ipvs.h || die
48
49 einfo "You will need a kernel that has ipvs patches to use LVS"
50 }

  ViewVC Help
Powered by ViewVC 1.1.20