1 |
commit: 840421337198b601ad8f22fb9cb8c403a03bb1d2 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 27 17:59:39 2018 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 27 19:02:38 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=84042133 |
7 |
|
8 |
sys-power/nut: EAPI-7 bump |
9 |
|
10 |
- drop superfluous || die |
11 |
- dosym relative path |
12 |
|
13 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
14 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
15 |
|
16 |
sys-power/nut/nut-2.7.4-r2.ebuild | 23 +++++++++++------------ |
17 |
1 file changed, 11 insertions(+), 12 deletions(-) |
18 |
|
19 |
diff --git a/sys-power/nut/nut-2.7.4-r2.ebuild b/sys-power/nut/nut-2.7.4-r2.ebuild |
20 |
index 031f61d9dd9..2c212243bab 100644 |
21 |
--- a/sys-power/nut/nut-2.7.4-r2.ebuild |
22 |
+++ b/sys-power/nut/nut-2.7.4-r2.ebuild |
23 |
@@ -1,10 +1,9 @@ |
24 |
# Copyright 1999-2018 Gentoo Authors |
25 |
# Distributed under the terms of the GNU General Public License v2 |
26 |
|
27 |
-EAPI=6 |
28 |
+EAPI=7 |
29 |
|
30 |
PYTHON_COMPAT=( python2_7 ) |
31 |
- |
32 |
inherit autotools bash-completion-r1 desktop fixheadtails flag-o-matic python-single-r1 systemd toolchain-funcs user |
33 |
|
34 |
MY_P=${P/_/-} |
35 |
@@ -19,7 +18,8 @@ KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~x86-fbsd" |
36 |
IUSE="cgi gui ipmi snmp +usb selinux ssl tcpd xml zeroconf" |
37 |
REQUIRED_USE="gui? ( ${PYTHON_REQUIRED_USE} )" |
38 |
|
39 |
-COMMON_DEPEND="dev-libs/libltdl:* |
40 |
+DEPEND=" |
41 |
+ dev-libs/libltdl:* |
42 |
virtual/udev |
43 |
cgi? ( >=media-libs/gd-2[png] ) |
44 |
gui? ( dev-python/pygtk[${PYTHON_USEDEP}] ) |
45 |
@@ -31,11 +31,11 @@ COMMON_DEPEND="dev-libs/libltdl:* |
46 |
xml? ( >=net-libs/neon-0.25.0 ) |
47 |
zeroconf? ( net-dns/avahi )" |
48 |
|
49 |
-DEPEND="${COMMON_DEPEND} |
50 |
+BDEPEND=" |
51 |
virtual/pkgconfig |
52 |
>=sys-apps/sed-4" |
53 |
|
54 |
-RDEPEND="${COMMON_DEPEND} |
55 |
+RDEPEND="${DEPEND} |
56 |
selinux? ( sec-policy/selinux-nut )" |
57 |
|
58 |
S="${WORKDIR}/${MY_P}" |
59 |
@@ -78,7 +78,7 @@ NUT_PRIVATE_FILES="/etc/nut/{upsd.conf,upsd.users,upsmon.conf}" |
60 |
NUT_CGI_FILES="/etc/nut/{{hosts,upsset}.conf,upsstats{,-single}.html}" |
61 |
|
62 |
PATCHES=( |
63 |
- "${FILESDIR}/nut-2.7.2/nut-2.7.2-no-libdummy.patch" |
64 |
+ "${FILESDIR}/nut-2.7.2/${PN}-2.7.2-no-libdummy.patch" |
65 |
"${FILESDIR}/${PN}-2.7.1-snmpusb-order.patch" |
66 |
"${FILESDIR}/${PN}-2.6.2-lowspeed-buffer-size.patch" |
67 |
) |
68 |
@@ -105,11 +105,10 @@ src_prepare() { |
69 |
sed -e "s:52.nut-usbups.rules:70-nut-usbups.rules:" \ |
70 |
-i scripts/udev/Makefile.am || die |
71 |
|
72 |
- rm -f ltmain.sh m4/lt* m4/libtool.m4 || die |
73 |
+ rm ltmain.sh m4/lt* m4/libtool.m4 || die |
74 |
|
75 |
- sed -i \ |
76 |
- -e 's:@LIBSSL_LDFLAGS@:@LIBSSL_LIBS@:' \ |
77 |
- lib/libupsclient{.pc,-config}.in || die #361685 |
78 |
+ sed -e 's:@LIBSSL_LDFLAGS@:@LIBSSL_LIBS@:' \ |
79 |
+ -i lib/libupsclient{.pc,-config}.in || die #361685 |
80 |
|
81 |
use gui && eapply "${FILESDIR}"/NUT-Monitor-1.3-paths.patch |
82 |
|
83 |
@@ -162,12 +161,12 @@ src_configure() { |
84 |
} |
85 |
|
86 |
src_install() { |
87 |
- emake DESTDIR="${D}" install || die |
88 |
+ emake DESTDIR="${D}" install |
89 |
|
90 |
find "${D}" -name '*.la' -delete || die |
91 |
|
92 |
dodir /sbin |
93 |
- dosym /usr/sbin/upsdrvctl /sbin/upsdrvctl |
94 |
+ dosym ../usr/sbin/upsdrvctl /sbin/upsdrvctl |
95 |
|
96 |
if use cgi; then |
97 |
elog "CGI monitoring scripts are installed in /usr/share/nut/cgi." |