/[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.8 - (hide annotations) (download)
Sun Jul 27 11:13:00 2014 UTC (5 years, 5 months ago) by ssuominen
Branch: MAIN
Changes since 1.7: +3 -2 lines
Block old version of sys-fs/udev to prevent file collision wrt first post of http://forums.gentoo.org/viewtopic.php?p=7589958

(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 4868F14D)

1 vapier 1.6 # Copyright 1999-2014 Gentoo Foundation
2 williamh 1.1 # Distributed under the terms of the GNU General Public License v2
3 ssuominen 1.8 # $Header: /var/cvsroot/gentoo-x86/net-misc/netifrc/netifrc-9999.ebuild,v 1.7 2014/03/05 18:46:39 robbat2 Exp $
4 williamh 1.1
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 williamh 1.3 EGIT_REPO_URI="git://git.overlays.gentoo.org/proj/${PN}.git"
14 williamh 1.1 inherit git-2
15     else
16     SRC_URI="http://dev.gentoo.org/~williamh/dist/${P}.tar.bz2"
17 vapier 1.6 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
18 williamh 1.1 fi
19    
20     LICENSE="BSD-2"
21     SLOT="0"
22     IUSE=""
23    
24 ssuominen 1.8 DEPEND="kernel_linux? ( virtual/pkgconfig )
25     !<sys-fs/udev-172"
26 williamh 1.1 RDEPEND=">=sys-apps/openrc-0.12
27 williamh 1.2 !<sys-apps/openrc-0.12"
28 williamh 1.1
29     src_prepare() {
30     if [[ ${PV} == "9999" ]] ; then
31     local ver="git-${EGIT_VERSION:0:6}"
32     sed -i "/^GITVER[[:space:]]*=/s:=.*:=${ver}:" mk/git.mk || die
33 robbat2 1.5 einfo "Producing ChangeLog from Git history"
34     GIT_DIR="${S}/.git" git log >"${S}"/ChangeLog
35 williamh 1.1 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 robbat2 1.7 LIBEXECDIR=${EPREFIX}/lib/${PN} PF=${PF}"
44 williamh 1.1
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 robbat2 1.5 dodoc README CREDITS FEATURE-REMOVAL-SCHEDULE STYLE TODO ChangeLog
53 williamh 1.1 }
54 williamh 1.2
55     pkg_postinst() {
56     if [[ ! -e "${EROOT}"/etc/conf.d/net && -z $REPLACING_VERSIONS ]]; then
57     elog "The network configuration scripts will use dhcp by"
58     elog "default to set up your interfaces."
59     elog "If you need to set up something more complete, see"
60     elog "${EROOT}/usr/share/doc/${P}/README"
61     fi
62     }

  ViewVC Help
Powered by ViewVC 1.1.20