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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.8 Revision 1.9
1# Copyright 1999-2014 Gentoo Foundation 1# Copyright 1999-2015 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 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.8 2014/07/27 11:13:00 ssuominen Exp $ 3# $Header: /var/cvsroot/gentoo-x86/net-misc/netifrc/netifrc-9999.ebuild,v 1.9 2015/01/09 17:30:42 robbat2 Exp $
4 4
5EAPI=5 5EAPI=5
6 6
7inherit eutils 7inherit eutils systemd
8 8
9DESCRIPTION="Gentoo Network Interface Management Scripts" 9DESCRIPTION="Gentoo Network Interface Management Scripts"
10HOMEPAGE="http://www.gentoo.org/proj/en/base/openrc/" 10HOMEPAGE="http://www.gentoo.org/proj/en/base/openrc/"
11 11
12if [[ ${PV} == "9999" ]]; then 12if [[ ${PV} == "9999" ]]; then
13 EGIT_REPO_URI="git://git.overlays.gentoo.org/proj/${PN}.git" 13 EGIT_REPO_URI="git://git.overlays.gentoo.org/proj/${PN}.git"
14 #EGIT_REPO_URI="git://github.com/gentoo/netifrc" # Alternate
14 inherit git-2 15 inherit git-r3
15else 16else
16 SRC_URI="http://dev.gentoo.org/~williamh/dist/${P}.tar.bz2" 17 SRC_URI="http://dev.gentoo.org/~robbat2/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 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
18fi 19fi
19 20
20LICENSE="BSD-2" 21LICENSE="BSD-2"
21SLOT="0" 22SLOT="0"
22IUSE="" 23IUSE=""
23 24
24DEPEND="kernel_linux? ( virtual/pkgconfig ) 25DEPEND="kernel_linux? ( virtual/pkgconfig )
25 !<sys-fs/udev-172" 26 !<sys-fs/udev-172"
26RDEPEND=">=sys-apps/openrc-0.12 27RDEPEND="sys-apps/gentoo-functions"
27 !<sys-apps/openrc-0.12"
28 28
29src_prepare() { 29src_prepare() {
30 if [[ ${PV} == "9999" ]] ; then 30 if [[ ${PV} == "9999" ]] ; then
31 local ver="git-${EGIT_VERSION:0:6}" 31 local ver="git-${EGIT_VERSION:0:6}"
32 sed -i "/^GITVER[[:space:]]*=/s:=.*:=${ver}:" mk/git.mk || die 32 sed -i "/^GITVER[[:space:]]*=/s:=.*:=${ver}:" mk/git.mk || die
48} 48}
49 49
50src_install() { 50src_install() {
51 emake ${MAKE_ARGS} DESTDIR="${D}" install 51 emake ${MAKE_ARGS} DESTDIR="${D}" install
52 dodoc README CREDITS FEATURE-REMOVAL-SCHEDULE STYLE TODO ChangeLog 52 dodoc README CREDITS FEATURE-REMOVAL-SCHEDULE STYLE TODO ChangeLog
53
54 # Install the service file
55 LIBEXECDIR=${EPREFIX}/lib/${PN}
56 UNIT_DIR="$(systemd_get_unitdir)"
57 sed "s:@LIBEXECDIR@:${LIBEXECDIR}:" "${S}/systemd/net_at.service" > "${T}/net_at.service"
58 systemd_newunit "${T}/net_at.service" 'net@.service'
59 dosym "${UNIT_DIR}/net@.service" "${UNIT_DIR}/net@lo.service"
53} 60}
54 61
55pkg_postinst() { 62pkg_postinst() {
56 if [[ ! -e "${EROOT}"/etc/conf.d/net && -z $REPLACING_VERSIONS ]]; then 63 if [[ ! -e "${EROOT}"/etc/conf.d/net && -z $REPLACING_VERSIONS ]]; then
57 elog "The network configuration scripts will use dhcp by" 64 elog "The network configuration scripts will use dhcp by"

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.20