Gentoo Archives: gentoo-commits

From: Thomas Sachau <tommy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-p2p/fms/
Date: Mon, 30 Dec 2019 10:40:24
Message-Id: 1577702314.d2e0d0990086919e612cd8f241bfc3b4a2b83924.tommy@gentoo
1 commit: d2e0d0990086919e612cd8f241bfc3b4a2b83924
2 Author: Thomas Sachau <tommy <AT> gentoo <DOT> org>
3 AuthorDate: Mon Dec 30 10:38:34 2019 +0000
4 Commit: Thomas Sachau <tommy <AT> gentoo <DOT> org>
5 CommitDate: Mon Dec 30 10:38:34 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d2e0d099
7
8 net-p2p/fms: Version bump
9
10 Package-Manager: Portage-2.3.83, Repoman-2.3.20
11 Signed-off-by: Thomas Sachau <tommy <AT> gentoo.org>
12
13 net-p2p/fms/Manifest | 1 +
14 net-p2p/fms/fms-0.3.81.ebuild | 76 +++++++++++++++++++++++++++++++++++++++++++
15 2 files changed, 77 insertions(+)
16
17 diff --git a/net-p2p/fms/Manifest b/net-p2p/fms/Manifest
18 index 472d84ae559..28000ce9b3e 100644
19 --- a/net-p2p/fms/Manifest
20 +++ b/net-p2p/fms/Manifest
21 @@ -1,2 +1,3 @@
22 DIST fms-src-0.3.79.zip 3847775 BLAKE2B e6087ef6e0e22f79e3d399f08ed531e839faf8199bdb3d0c0e148553dd6b7cab9dd35dbc74081a628d4456fadc4f9dd83a7a767f1dab8ac511f94eac1685d2ee SHA512 aa9f505c5ef55b1f462b16de6d870d02dc102fd184cc353c6c6b8a346978a9953b34e878f262f4190a3d15d76c5a37f065c4e5ebdbc0e43a4a5c22d61fa9fba7
23 DIST fms-src-0.3.80.zip 4583891 BLAKE2B 363fe148c622d999398d2f435f49e312d3bea22ad6b69865a618593616b47b632c1a56bcc8fc75bd40590e3858aad7e3f1d70991a21936e38562e10f1813b49c SHA512 d3aa5eb7d417bb135d88a515702fac9c451054d071374bb7f475add9af7e1fda90f4d9c61569e3e9040b2a241efa7fcc7ecac32a7f652327d15ed8d1ea1418c4
24 +DIST fms-src-0.3.81.zip 4732577 BLAKE2B a873fe4458a4abf4d19c7849d2045e49f556e001315d9112f50fd5c544481c64e00d0db5672ca20f1974e8d8b46e88b98e6a339536659a8a4c06b1a3c4439d21 SHA512 7e5efc2bf22fd3ba24d61fb4a7afbd3b6181a6ea4d038bc06bc2135dd9254835647cbb62be68982ee553212be9f2e038f50623916db3131b2fd19a77c3180af2
25
26 diff --git a/net-p2p/fms/fms-0.3.81.ebuild b/net-p2p/fms/fms-0.3.81.ebuild
27 new file mode 100644
28 index 00000000000..125c6be8d35
29 --- /dev/null
30 +++ b/net-p2p/fms/fms-0.3.81.ebuild
31 @@ -0,0 +1,76 @@
32 +# Copyright 1999-2019 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI="6"
36 +
37 +inherit eutils cmake-utils user
38 +
39 +DESCRIPTION="A spam-resistant message board application for Freenet"
40 +HOMEPAGE="http://freenetproject.org/tools.html"
41 +SRC_URI="https://dev.gentoo.org/~tommy/distfiles/${PN}-src-${PV}.zip"
42 +
43 +LICENSE="GPL-2"
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~x86"
46 +IUSE="frost ssl"
47 +
48 +RDEPEND="virtual/libiconv
49 + frost? ( net-libs/mbedtls )
50 + ssl? ( net-libs/mbedtls )
51 + >=dev-libs/poco-1.4.3_p1
52 + >=dev-db/sqlite-3.6.15"
53 +DEPEND="${RDEPEND}
54 + app-arch/unzip"
55 +
56 +S=${WORKDIR}
57 +PATCHES=( "${FILESDIR}"/${PN}-use-system-libs4.patch )
58 +
59 +pkg_setup() {
60 + enewgroup freenet
61 + enewuser freenet -1 -1 /var/freenet freenet
62 +}
63 +
64 +src_prepare() {
65 + rm -rv libs
66 + edos2unix src/http/pages/showfilepage.cpp
67 + edos2unix CMakeLists.txt
68 +
69 + cmake-utils_src_prepare
70 +}
71 +
72 +src_configure() {
73 + local mycmakeargs=( -DI_HAVE_READ_THE_README=ON \
74 + -DUSE_BUNDLED_SQLITE=OFF \
75 + -DDO_CHARSET_CONVERSION=ON \
76 + -DFROST_SUPPORT=$(use frost && echo ON || echo OFF) \
77 + -DFCP_SSL_SUPPORT=$(use ssl && echo ON || echo OFF) )
78 + cmake-utils_src_configure
79 +}
80 +
81 +src_install() {
82 + insinto /var/freenet/fms
83 + dobin "${CMAKE_BUILD_DIR}"/fms || die
84 + doins *.htm || die "doinstall failed"
85 + doins -r fonts images styles translations || die
86 + fperms -R o-rwx /var/freenet/fms/ /usr/bin/fms
87 + fowners -R freenet:freenet /var/freenet/fms/ /usr/bin/fms
88 + doinitd "${FILESDIR}/fms" || die "installing init.d file failed"
89 + dodoc readme.txt || die "installing doc failed"
90 +}
91 +
92 +pkg_postinst() {
93 + if ! has_version 'net-p2p/freenet' ; then
94 + ewarn "FMS needs a freenet node to up-/download #ssages."
95 + ewarn "Please make sure to have a node you can connect to"
96 + ewarn "or install net-p2p/freenet to get FMS working."
97 + fi
98 + elog "By default, the FMS NNTP server will listen on port 1119,"
99 + elog "and the web configuration interface will be running at"
100 + elog "http://localhost:8080. For more information, read"
101 + elog "${ROOT}usr/share/doc/${PF}/readme.txt.bz2"
102 + if use frost; then
103 + elog " "
104 + elog "You need to enable frost on the config page"
105 + elog "and restart fms for frost support."
106 + fi
107 +}