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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (show annotations) (download)
Sat Apr 25 16:28:24 2015 UTC (4 years, 7 months ago) by floppym
Branch: MAIN
CVS Tags: HEAD
Changes since 1.11: +3 -3 lines
Replace links pointing at git.overlays.gentoo.org.

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

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

  ViewVC Help
Powered by ViewVC 1.1.20