/[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.7 - (show annotations) (download)
Wed Mar 5 18:46:39 2014 UTC (5 years, 10 months ago) by robbat2
Branch: MAIN
Changes since 1.6: +3 -6 lines
Update for pkgconfig DEPEND, and update 9999 ebuild for newer 0.2.1 changes.

(Portage version: 2.2.8-r1/cvs/Linux x86_64, unsigned Manifest commit)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/netifrc/netifrc-9999.ebuild,v 1.6 2014/01/18 09:10:37 vapier Exp $
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/${PN}.git"
14 inherit git-2
15 else
16 SRC_URI="http://dev.gentoo.org/~williamh/dist/${P}.tar.bz2"
17 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~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="kernel_linux? ( virtual/pkgconfig )"
25 RDEPEND=">=sys-apps/openrc-0.12
26 !<sys-apps/openrc-0.12"
27
28 src_prepare() {
29 if [[ ${PV} == "9999" ]] ; then
30 local ver="git-${EGIT_VERSION:0:6}"
31 sed -i "/^GITVER[[:space:]]*=/s:=.*:=${ver}:" mk/git.mk || die
32 einfo "Producing ChangeLog from Git history"
33 GIT_DIR="${S}/.git" git log >"${S}"/ChangeLog
34 fi
35
36 # Allow user patches to be applied without modifying the ebuild
37 epatch_user
38 }
39
40 src_compile() {
41 MAKE_ARGS="${MAKE_ARGS}
42 LIBEXECDIR=${EPREFIX}/lib/${PN} PF=${PF}"
43
44 use prefix && MAKE_ARGS="${MAKE_ARGS} MKPREFIX=yes PREFIX=${EPREFIX}"
45
46 emake ${MAKE_ARGS} all
47 }
48
49 src_install() {
50 emake ${MAKE_ARGS} DESTDIR="${D}" install
51 dodoc README CREDITS FEATURE-REMOVAL-SCHEDULE STYLE TODO ChangeLog
52 }
53
54 pkg_postinst() {
55 if [[ ! -e "${EROOT}"/etc/conf.d/net && -z $REPLACING_VERSIONS ]]; then
56 elog "The network configuration scripts will use dhcp by"
57 elog "default to set up your interfaces."
58 elog "If you need to set up something more complete, see"
59 elog "${EROOT}/usr/share/doc/${P}/README"
60 fi
61 }

  ViewVC Help
Powered by ViewVC 1.1.20