Gentoo Archives: gentoo-commits

From: Christian Ruppert <idl0r@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-proxy/haproxy/
Date: Wed, 28 Sep 2016 19:54:06
Message-Id: 1475092430.35602ec5ee9c4f657ac616004ab0c35147bbfa4c.idl0r@gentoo
1 commit: 35602ec5ee9c4f657ac616004ab0c35147bbfa4c
2 Author: Bertrand Jacquin <bertrand <AT> jacquin <DOT> bzh>
3 AuthorDate: Sat Sep 10 18:46:40 2016 +0000
4 Commit: Christian Ruppert <idl0r <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 28 19:53:50 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=35602ec5
7
8 net-proxy/haproxy: Version bump
9
10 Move to EAPI 6
11 Replace dodoc with DOCS
12 Use EROOT instead of ROOT
13
14 Package-Manager: portage-2.2.28
15 Closes: https://github.com/gentoo/gentoo/pull/2293
16
17 Signed-off-by: Christian Ruppert <idl0r <AT> gentoo.org>
18
19 net-proxy/haproxy/Manifest | 2 +-
20 .../{haproxy-1.6.8.ebuild => haproxy-1.6.9.ebuild} | 15 ++++++++++-----
21 2 files changed, 11 insertions(+), 6 deletions(-)
22
23 diff --git a/net-proxy/haproxy/Manifest b/net-proxy/haproxy/Manifest
24 index 00567be..06b20d1 100644
25 --- a/net-proxy/haproxy/Manifest
26 +++ b/net-proxy/haproxy/Manifest
27 @@ -1,3 +1,3 @@
28 DIST haproxy-1.5.14.tar.gz 1345345 SHA256 9565dd38649064d0350a2883fa81ccfe92eb17dcda457ebdc01535e1ab0c8f99 SHA512 83d6101fd402f37845ab3febc914335e4c6d9bdebbb0ff81c8e048d5252ffa5a1b77c4250a434fed5dd541ef1f1f2c47d969b59f7a51d6ab9aea38a8646a9798 WHIRLPOOL 7d2c580589b9b31e1eba169e4bf930ac42d2564e21eb1c25adbdd39b701abd221fd671ebc227167ab956a48b2c30eeb740a6394355a8fa748c408ee42fdff6fc
29 DIST haproxy-1.5.18.tar.gz 1360582 SHA256 14a5684d85cf65c34a8d441afff2aaa4dd9b4234e81b3d4ddd242e6e7c97257e SHA512 b4f85986a6b1e0d152b643f576a0ff770fbc190457d3e0130fbb923ff9bf4d00b634e64edf0eadd5b47d0eb758fd9f6ecf33907fc4c21150a518064df954e7d0 WHIRLPOOL 5faf0aec42332564a3c392b0bbca25dc56c6a754672e1853ca765fc5d95d9ca963cd041dc705bbb38085a3da77219adf061966f2caa209e327ff02f3ee8fde3b
30 -DIST haproxy-1.6.8.tar.gz 1566594 SHA256 a51b7bf667245369683f8aafb288c4e33cb55d36c4b4b836f1dfc9aa56bb095c SHA512 692f93e0abf4ba457f74c25a17940ed855f39cbc50b4a4912e066cc8299cba5ba95d90dae98af95fbfa73b5b2fbb6ad21da7b6fa91cde7a91754f17f5bc332a3 WHIRLPOOL 1ecfced926da5c582bfe38fc20815bf57209c3c8afe5284a38c1e3e9446941993c8c3b2c9ba8b67256adf3c507d365fce02ab4ce175bbb411817b7753dee1a1c
31 +DIST haproxy-1.6.9.tar.gz 1566715 SHA256 cf7d2fa891d2ae4aa6489fc43a9cadf68c42f9cb0de4801afad45d32e7dda133 SHA512 0060a93c628689e1ca9e5845f9f93641f7647efc176cbf093bce59be19496492c317c8101fa50dd6181b130f861c74a20199f18e41ebd6995715364b1ea46a2e WHIRLPOOL a7311cb08507898cf19a422a6a55a6d429cbb99e0329b2de0defea472314c495d6c426a973ef436d532340f95d5abee2ad07fbf1d051d36fe4618ac28b743a35
32
33 diff --git a/net-proxy/haproxy/haproxy-1.6.8.ebuild b/net-proxy/haproxy/haproxy-1.6.9.ebuild
34 similarity index 94%
35 rename from net-proxy/haproxy/haproxy-1.6.8.ebuild
36 rename to net-proxy/haproxy/haproxy-1.6.9.ebuild
37 index 5b2d0aa..9ddbe6f 100644
38 --- a/net-proxy/haproxy/haproxy-1.6.8.ebuild
39 +++ b/net-proxy/haproxy/haproxy-1.6.9.ebuild
40 @@ -2,7 +2,7 @@
41 # Distributed under the terms of the GNU General Public License v2
42 # $Id$
43
44 -EAPI="5"
45 +EAPI="6"
46
47 inherit user versionator toolchain-funcs flag-o-matic systemd linux-info
48
49 @@ -32,6 +32,8 @@ RDEPEND="${DEPEND}"
50
51 S="${WORKDIR}/${MY_P}"
52
53 +DOCS=( CHANGELOG CONTRIBUTING MAINTAINERS )
54 +
55 pkg_setup() {
56 enewgroup haproxy
57 enewuser haproxy -1 -1 -1 haproxy
58 @@ -43,6 +45,8 @@ pkg_setup() {
59 }
60
61 src_prepare() {
62 + default
63 +
64 sed -e 's:@SBINDIR@:'/usr/bin':' contrib/systemd/haproxy.service.in \
65 > contrib/systemd/haproxy.service || die
66
67 @@ -119,12 +123,13 @@ src_install() {
68 newconfd "${FILESDIR}/${PN}.confd" $PN
69 newinitd "${FILESDIR}/${PN}.initd-r3" $PN
70
71 - dodoc CHANGELOG CONTRIBUTING MAINTAINERS
72 doman doc/haproxy.1
73
74 dobin haproxy-systemd-wrapper
75 systemd_dounit contrib/systemd/haproxy.service
76
77 + einstalldocs
78 +
79 if use doc; then
80 dodoc ROADMAP doc/{close-options,configuration,cookie-options,intro,linux-syn-cookies,management,proxy-protocol}.txt
81 fi
82 @@ -151,15 +156,15 @@ src_install() {
83 }
84
85 pkg_postinst() {
86 - if [[ ! -f "${ROOT}/etc/haproxy/haproxy.cfg" ]] ; then
87 + if [[ ! -f "${EROOT}/etc/haproxy/haproxy.cfg" ]] ; then
88 ewarn "You need to create /etc/haproxy/haproxy.cfg before you start the haproxy service."
89 ewarn "It's best practice to not run haproxy as root, user and group haproxy was therefore created."
90 ewarn "Make use of them with the \"user\" and \"group\" directives."
91
92 - if [[ -d "${ROOT}/usr/share/doc/${PF}" ]]; then
93 + if [[ -d "${EROOT}/usr/share/doc/${PF}" ]]; then
94 einfo "Please consult the installed documentation for learning the configuration file's syntax."
95 einfo "The documentation and sample configuration files are installed here:"
96 - einfo " ${ROOT}usr/share/doc/${PF}"
97 + einfo " ${EROOT}usr/share/doc/${PF}"
98 fi
99 fi
100 }