Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 653928 | Differences between
and this patch

Collapse All | Expand All

(-)a/netctl/netctl-1.19.ebuild (+66 lines)
Line 0 Link Here
1
# Copyright 1999-2017 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
3
4
EAPI=5
5
6
inherit bash-completion-r1 eutils
7
8
if [[ ${PV} = *9999* ]]; then
9
	EGIT_REPO_URI="git://projects.archlinux.org/netctl.git"
10
	inherit git-2
11
	DEPEND="app-text/asciidoc"
12
else
13
	SRC_URI="https://sources.archlinux.org/other/packages/${PN}/${P}.tar.xz"
14
	KEYWORDS="~amd64 ~arm ~x86"
15
fi
16
17
DESCRIPTION="Profile based network connection tool from Arch Linux"
18
HOMEPAGE="https://wiki.archlinux.org/index.php/Netctl
19
	https://www.archlinux.org/packages/core/any/netctl/
20
	https://projects.archlinux.org/netctl.git/"
21
22
LICENSE="GPL-3"
23
SLOT="0"
24
IUSE=""
25
26
DEPEND+="
27
	virtual/pkgconfig
28
	sys-apps/systemd
29
"
30
RDEPEND="
31
	>=app-shells/bash-4.0
32
	>=net-dns/openresolv-3.5.4-r1
33
	sys-apps/iproute2
34
	sys-apps/systemd
35
	!<net-misc/dhcpcd-6.4.0
36
"
37
38
src_prepare() {
39
	sed -i -e "s:/usr/bin/ifplugd:/usr/sbin/ifplugd:" \
40
		"services/netctl-ifplugd@.service" || die
41
}
42
43
src_compile() {
44
	return 0
45
}
46
47
src_install() {
48
	emake DESTDIR="${D%/}" SHELL=bash install
49
	dodoc AUTHORS NEWS README
50
	newbashcomp contrib/bash-completion netctl
51
	insinto /usr/share/zsh/site-functions
52
	newins contrib/zsh-completion _netctl
53
}
54
55
pkg_postinst() {
56
	if [[ -z ${REPLACING_VERSIONS} ]]; then
57
		elog "To get additional features, a number of optional runtime dependencies may be"
58
		elog "installed."
59
		optfeature "DHCP support" net-misc/dhcpcd ">=net-misc/dhcp-5.6.7[client]"
60
		optfeature "WPA support" net-wireless/wpa_supplicant
61
		optfeature "interactive assistant" dev-util/dialog
62
		optfeature "automatic connection" sys-apps/ifplugd
63
		optfeature "bonding support" net-misc/ifenslave
64
		optfeature "dialup support" net-dialup/ppp
65
	fi
66
}

Return to bug 653928