/[gentoo-x86]/net-misc/netifrc/netifrc-9999.ebuild
Gentoo

Contents of /net-misc/netifrc/netifrc-9999.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Wed Aug 14 06:37:32 2013 UTC (6 years, 5 months ago) by williamh
Branch: MAIN
initial commit

(Portage version: 2.2.0/cvs/Linux i686, signed Manifest commit with key 0x30C46538)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 EAPI=5
6
7 inherit eutils
8
9 DESCRIPTION="Gentoo Network Interface Management Scripts"
10 HOMEPAGE="http://www.gentoo.org/proj/en/base/openrc/"
11
12 if [[ ${PV} == "9999" ]]; then
13 EGIT_REPO_URI="git://git.overlays.gentoo.org/proj/gentoo-oldnet.git"
14 inherit git-2
15 else
16 SRC_URI="http://dev.gentoo.org/~williamh/dist/${P}.tar.bz2"
17 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
18 fi
19
20 LICENSE="BSD-2"
21 SLOT="0"
22 IUSE=""
23
24 DEPEND=""
25 RDEPEND=">=sys-apps/openrc-0.12
26 !<sys-apps/openrc-0.12"
27
28 src_prepare() {
29 sed -i 's:0444:0644:' mk/sys.mk || die
30 sed -i "/^DIR/s:/${PN}:/${PF}:" doc/Makefile || die #241342
31
32 if [[ ${PV} == "9999" ]] ; then
33 local ver="git-${EGIT_VERSION:0:6}"
34 sed -i "/^GITVER[[:space:]]*=/s:=.*:=${ver}:" mk/git.mk || die
35 fi
36
37 # Allow user patches to be applied without modifying the ebuild
38 epatch_user
39 }
40
41 src_compile() {
42 MAKE_ARGS="${MAKE_ARGS}
43 LIBEXECDIR=${EPREFIX}/lib/${PN}"
44
45 use prefix && MAKE_ARGS="${MAKE_ARGS} MKPREFIX=yes PREFIX=${EPREFIX}"
46
47 emake ${MAKE_ARGS} all
48 }
49
50 src_install() {
51 emake ${MAKE_ARGS} DESTDIR="${D}" install
52 }

  ViewVC Help
Powered by ViewVC 1.1.20