Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-p2p/airdcpp-webclient/files/, net-p2p/airdcpp-webclient/
Date: Tue, 07 Nov 2017 10:32:39
Message-Id: 1510050745.0d79b09fdbb16cf2148883583177f20b5546028f.soap@gentoo
1 commit: 0d79b09fdbb16cf2148883583177f20b5546028f
2 Author: Henrik Wennergren <henrik.wennergren <AT> protonmail <DOT> com>
3 AuthorDate: Thu Sep 28 21:01:03 2017 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 7 10:32:25 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d79b09f
7
8 net-p2p/airdcpp-webclient: Fix incorrect conf parameter name in init file
9
10 Package-Manager: Portage-2.3.8, Repoman-2.3.3
11 Closes: https://github.com/gentoo/gentoo/pull/5830
12
13 .../airdcpp-webclient-2.1.0-r1.ebuild | 68 ++++++++++++++++++++++
14 .../airdcpp-webclient-2.2.0-r1.ebuild | 65 +++++++++++++++++++++
15 net-p2p/airdcpp-webclient/files/airdcppd.initd | 4 +-
16 3 files changed, 135 insertions(+), 2 deletions(-)
17
18 diff --git a/net-p2p/airdcpp-webclient/airdcpp-webclient-2.1.0-r1.ebuild b/net-p2p/airdcpp-webclient/airdcpp-webclient-2.1.0-r1.ebuild
19 new file mode 100644
20 index 00000000000..5bcf75f9add
21 --- /dev/null
22 +++ b/net-p2p/airdcpp-webclient/airdcpp-webclient-2.1.0-r1.ebuild
23 @@ -0,0 +1,68 @@
24 +# Copyright 1999-2017 Gentoo Foundation
25 +# Distributed under the terms of the GNU General Public License v2
26 +
27 +EAPI=6
28 +PYTHON_COMPAT=( python{2_7,3_{4,5,6}} pypy{,3} )
29 +
30 +inherit cmake-utils python-any-r1 user
31 +
32 +DESCRIPTION="Cross-platform Direct Connect client"
33 +HOMEPAGE="https://airdcpp-web.github.io/"
34 +SRC_URI="https://github.com/airdcpp-web/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
35 +
36 +KEYWORDS="~amd64 ~x86"
37 +LICENSE="GPL-2+"
38 +SLOT="0"
39 +IUSE="nat-pmp +tbb +webui"
40 +
41 +RDEPEND="
42 + app-arch/bzip2
43 + dev-cpp/websocketpp
44 + dev-libs/boost:=
45 + dev-libs/geoip
46 + dev-libs/leveldb:=
47 + dev-libs/openssl:0=[-bindist]
48 + net-libs/miniupnpc:=
49 + sys-libs/zlib:=
50 + virtual/libiconv
51 + nat-pmp? ( net-libs/libnatpmp:= )
52 + tbb? ( dev-cpp/tbb:= )
53 +"
54 +DEPEND="
55 + virtual/pkgconfig
56 + ${PYTHON_DEPS}
57 + ${RDEPEND}
58 +"
59 +PDEPEND="webui? ( www-apps/airdcpp-webui )"
60 +
61 +# https://github.com/airdcpp-web/airdcpp-webclient/pull/248
62 +PATCHES=( "${FILESDIR}/${P}-disable-automagic.patch" )
63 +
64 +pkg_setup() {
65 + python-any-r1_pkg_setup
66 + enewgroup airdcppd
67 + enewuser airdcppd -1 -1 /var/lib/airdcppd airdcppd
68 +}
69 +
70 +src_configure() {
71 + local mycmakeargs=(
72 + -DINSTALL_WEB_UI=OFF
73 + -DENABLE_NATPMP=$(usex nat-pmp)
74 + -DENABLE_TBB=$(usex tbb)
75 + )
76 + cmake-utils_src_configure
77 +}
78 +
79 +src_install() {
80 + cmake-utils_src_install
81 + newconfd "${FILESDIR}/airdcppd.confd" airdcppd
82 + newinitd "${FILESDIR}/airdcppd.initd" airdcppd
83 + keepdir /var/lib/airdcppd
84 + fowners airdcppd:airdcppd /var/lib/airdcppd
85 +}
86 +
87 +pkg_postinst() {
88 + if [[ -z "${REPLACING_VERSIONS}" ]]; then
89 + elog "Run 'airdcppd --configure' to set up ports and authentication"
90 + fi
91 +}
92
93 diff --git a/net-p2p/airdcpp-webclient/airdcpp-webclient-2.2.0-r1.ebuild b/net-p2p/airdcpp-webclient/airdcpp-webclient-2.2.0-r1.ebuild
94 new file mode 100644
95 index 00000000000..fd8f46fe630
96 --- /dev/null
97 +++ b/net-p2p/airdcpp-webclient/airdcpp-webclient-2.2.0-r1.ebuild
98 @@ -0,0 +1,65 @@
99 +# Copyright 1999-2017 Gentoo Foundation
100 +# Distributed under the terms of the GNU General Public License v2
101 +
102 +EAPI=6
103 +PYTHON_COMPAT=( python{2_7,3_{4,5,6}} pypy{,3} )
104 +
105 +inherit cmake-utils python-any-r1 user
106 +
107 +DESCRIPTION="Cross-platform Direct Connect client"
108 +HOMEPAGE="https://airdcpp-web.github.io/"
109 +SRC_URI="https://github.com/airdcpp-web/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
110 +
111 +KEYWORDS="~amd64 ~x86"
112 +LICENSE="GPL-2+"
113 +SLOT="0"
114 +IUSE="nat-pmp +tbb +webui"
115 +
116 +RDEPEND="
117 + app-arch/bzip2
118 + dev-cpp/websocketpp
119 + dev-libs/boost:=
120 + dev-libs/geoip
121 + dev-libs/leveldb:=
122 + dev-libs/openssl:0=[-bindist]
123 + net-libs/miniupnpc:=
124 + sys-libs/zlib:=
125 + virtual/libiconv
126 + nat-pmp? ( net-libs/libnatpmp:= )
127 + tbb? ( dev-cpp/tbb:= )
128 +"
129 +DEPEND="
130 + virtual/pkgconfig
131 + ${PYTHON_DEPS}
132 + ${RDEPEND}
133 +"
134 +PDEPEND="webui? ( www-apps/airdcpp-webui )"
135 +
136 +pkg_setup() {
137 + python-any-r1_pkg_setup
138 + enewgroup airdcppd
139 + enewuser airdcppd -1 -1 /var/lib/airdcppd airdcppd
140 +}
141 +
142 +src_configure() {
143 + local mycmakeargs=(
144 + -DINSTALL_WEB_UI=OFF
145 + -DENABLE_NATPMP=$(usex nat-pmp)
146 + -DENABLE_TBB=$(usex tbb)
147 + )
148 + cmake-utils_src_configure
149 +}
150 +
151 +src_install() {
152 + cmake-utils_src_install
153 + newconfd "${FILESDIR}/airdcppd.confd" airdcppd
154 + newinitd "${FILESDIR}/airdcppd.initd" airdcppd
155 + keepdir /var/lib/airdcppd
156 + fowners airdcppd:airdcppd /var/lib/airdcppd
157 +}
158 +
159 +pkg_postinst() {
160 + if [[ -z "${REPLACING_VERSIONS}" ]]; then
161 + elog "Run 'airdcppd --configure' to set up ports and authentication"
162 + fi
163 +}
164
165 diff --git a/net-p2p/airdcpp-webclient/files/airdcppd.initd b/net-p2p/airdcpp-webclient/files/airdcppd.initd
166 index 1cad833d8ae..ed322b3e35a 100644
167 --- a/net-p2p/airdcpp-webclient/files/airdcppd.initd
168 +++ b/net-p2p/airdcpp-webclient/files/airdcppd.initd
169 @@ -1,10 +1,10 @@
170 #!/sbin/openrc-run
171 -# Copyright 1999-2016 Gentoo Foundation
172 +# Copyright 1999-2017 Gentoo Foundation
173 # Distributed under the terms of the GNU General Public License v2
174
175 AIRDCPPD_USER="${AIRDCPPD_USER:-${RC_SVCNAME}}"
176 AIRDCPPD_GROUP="${AIRDCPPD_GROUP:-${RC_SVCNAME}}"
177 -AIRDCPPD_UMASK="${SYNCTHING_UMASK:-007}"
178 +AIRDCPPD_UMASK="${AIRDCPPD_UMASK:-007}"
179 AIRDCPPD_HOME="$(getent passwd "${AIRDCPPD_USER}" | cut -d: -f6)"
180
181 command="/usr/bin/airdcppd"