/[gentoo-x86]/net-misc/netctl/netctl-1.8.ebuild
Gentoo

Contents of /net-misc/netctl/netctl-1.8.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Jan 31 16:14:31 2015 UTC (4 years, 7 months ago) by hwoarang
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
amd64/x86 stable. bug #519280. remove old

(Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key 09BF4F54C2BA7F3C!)

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

  ViewVC Help
Powered by ViewVC 1.1.20