1 |
commit: ed018340232d1931e4d8a71a2224564a2e0bff0c |
2 |
Author: lramage94 <ramage.lucas <AT> openmailbox <DOT> org> |
3 |
AuthorDate: Fri Feb 9 15:01:58 2018 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 17 15:10:33 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed018340 |
7 |
|
8 |
app-misc/mosquitto: EAPI 6 bump. |
9 |
|
10 |
Package-Manager: Portage-2.3.19, Repoman-2.3.6 |
11 |
|
12 |
app-misc/mosquitto/mosquitto-1.4.14-r1.ebuild | 97 +++++++++++++++++++++++++++ |
13 |
1 file changed, 97 insertions(+) |
14 |
|
15 |
diff --git a/app-misc/mosquitto/mosquitto-1.4.14-r1.ebuild b/app-misc/mosquitto/mosquitto-1.4.14-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000000..96530da48cb |
18 |
--- /dev/null |
19 |
+++ b/app-misc/mosquitto/mosquitto-1.4.14-r1.ebuild |
20 |
@@ -0,0 +1,97 @@ |
21 |
+# Copyright 1999-2018 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=6 |
25 |
+PYTHON_COMPAT=( python2_7 ) |
26 |
+ |
27 |
+inherit systemd user toolchain-funcs python-any-r1 |
28 |
+ |
29 |
+DESCRIPTION="An Open Source MQTT v3 Broker" |
30 |
+HOMEPAGE="http://mosquitto.org/" |
31 |
+SRC_URI="http://mosquitto.org/files/source/${P}.tar.gz" |
32 |
+LICENSE="EPL-1.0" |
33 |
+SLOT="0" |
34 |
+KEYWORDS="~amd64 ~arm ~x86" |
35 |
+IUSE="bridge examples +persistence +srv ssl tcpd websockets" |
36 |
+ |
37 |
+RDEPEND="tcpd? ( sys-apps/tcp-wrappers ) |
38 |
+ ssl? ( dev-libs/openssl:0= )" |
39 |
+DEPEND="${RDEPEND} |
40 |
+ ${PYTHON_DEPS} |
41 |
+ srv? ( net-dns/c-ares ) |
42 |
+ websockets? ( net-libs/libwebsockets )" |
43 |
+ |
44 |
+pkg_setup() { |
45 |
+ enewgroup mosquitto |
46 |
+ enewuser mosquitto -1 -1 -1 mosquitto |
47 |
+} |
48 |
+ |
49 |
+src_prepare() { |
50 |
+ eapply "${FILESDIR}/${PN}-1.4.10-conditional-tests.patch" |
51 |
+ if use persistence; then |
52 |
+ sed -i -e "s:^#autosave_interval:autosave_interval:" \ |
53 |
+ -e "s:^#persistence false$:persistence true:" \ |
54 |
+ -e "s:^#persistence_file:persistence_file:" \ |
55 |
+ -e "s:^#persistence_location$:persistence_location /var/lib/mosquitto/:" \ |
56 |
+ mosquitto.conf || die |
57 |
+ fi |
58 |
+ |
59 |
+ # Remove prestripping |
60 |
+ sed -i -e 's/-s --strip-program=${CROSS_COMPILE}${STRIP}//'\ |
61 |
+ client/Makefile lib/cpp/Makefile src/Makefile lib/Makefile || die |
62 |
+ |
63 |
+ python_setup |
64 |
+ python_fix_shebang test |
65 |
+ eapply_user |
66 |
+} |
67 |
+ |
68 |
+src_configure() { |
69 |
+ LIBDIR=$(get_libdir) |
70 |
+ makeopts=( |
71 |
+ "CC=$(tc-getCC)" |
72 |
+ "LIB_SUFFIX=${LIBDIR:3}" |
73 |
+ "WITH_BRIDGE=$(usex bridge)" |
74 |
+ "WITH_PERSISTENCE=$(usex persistence)" |
75 |
+ "WITH_SRV=$(usex srv)" |
76 |
+ "WITH_TLS=$(usex ssl)" |
77 |
+ "WITH_WEBSOCKETS=$(usex websockets)" |
78 |
+ "WITH_WRAP=$(usex tcpd)" |
79 |
+ ) |
80 |
+} |
81 |
+ |
82 |
+src_compile() { |
83 |
+ emake "${makeopts[@]}" |
84 |
+} |
85 |
+ |
86 |
+src_test() { |
87 |
+ emake "${makeopts[@]}" test |
88 |
+} |
89 |
+ |
90 |
+src_install() { |
91 |
+ emake "${makeopts[@]}" DESTDIR="${D}" prefix=/usr install |
92 |
+ keepdir /var/lib/mosquitto |
93 |
+ fowners mosquitto:mosquitto /var/lib/mosquitto |
94 |
+ dodoc readme.md CONTRIBUTING.md ChangeLog.txt |
95 |
+ doinitd "${FILESDIR}"/mosquitto |
96 |
+ insinto /etc/mosquitto |
97 |
+ doins mosquitto.conf |
98 |
+ systemd_dounit "${FILESDIR}/mosquitto.service" |
99 |
+ |
100 |
+ if use examples; then |
101 |
+ docompress -x "/usr/share/doc/${PF}/examples" |
102 |
+ insinto "/usr/share/doc/${PF}/examples" |
103 |
+ doins -r examples/* |
104 |
+ fi |
105 |
+} |
106 |
+ |
107 |
+pkg_postinst() { |
108 |
+ elog "" |
109 |
+ elog "The Python module has been moved out of mosquitto." |
110 |
+ elog "See http://mosquitto.org/documentation/python/" |
111 |
+ elog "" |
112 |
+ elog "To start the mosquitto daemon at boot, add it to the default runlevel with:" |
113 |
+ elog "" |
114 |
+ elog " rc-update add mosquitto default" |
115 |
+ elog " or" |
116 |
+ elog " systemctl enable mosquitto" |
117 |
+} |