1 |
commit: 2efbb43ba85b820f773b70f7c005d5123aa55a45 |
2 |
Author: Thomas Sachau <tommy <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Oct 29 08:59:08 2021 +0000 |
4 |
Commit: Thomas Sachau <tommy <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 29 08:59:08 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2efbb43b |
7 |
|
8 |
net-p2p/fms: Version bump |
9 |
|
10 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
11 |
Signed-off-by: Thomas Sachau <tommy <AT> gentoo.org> |
12 |
|
13 |
net-p2p/fms/Manifest | 1 + |
14 |
net-p2p/fms/fms-0.3.83.ebuild | 97 +++++++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 98 insertions(+) |
16 |
|
17 |
diff --git a/net-p2p/fms/Manifest b/net-p2p/fms/Manifest |
18 |
index 2bc83f745a6..de7065ebaf9 100644 |
19 |
--- a/net-p2p/fms/Manifest |
20 |
+++ b/net-p2p/fms/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST fms-src-0.3.82.zip 4786920 BLAKE2B c18630b8b1b8871290f1d66c4638b99c110e0f49bef11517aa83760274707fd5d0b53c053ea3b38a0c35018de4a4b6f3dd426499228997bac377bb1f04f784fb SHA512 2a72cbc7e23eb16cc12bd373944d1da090030602a09d0c1cf2fd8688a7b1a98ff649f1d0aa8b525b65987394d81acbb9b7558fcb21cea90a7646067a16600673 |
23 |
+DIST fms-src-0.3.83.zip 4813813 BLAKE2B 07b28fa1ef151ca75e547515c8771fc425aa78003980f20134c4d3b670ccaa4c20b24dc0517194dd4675d9b3b8c8f84e929a94921945d156ae5b0b898a7fad56 SHA512 140f76f4a5c0582c3df031e4001f8870c761249d3af0226acefc9ee646973c9dee4f65ab8964ae43a6ec29de735bea0155603f596ec5a07ff7458d0ffd2ee4d3 |
24 |
|
25 |
diff --git a/net-p2p/fms/fms-0.3.83.ebuild b/net-p2p/fms/fms-0.3.83.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..ca07782f847 |
28 |
--- /dev/null |
29 |
+++ b/net-p2p/fms/fms-0.3.83.ebuild |
30 |
@@ -0,0 +1,97 @@ |
31 |
+# Copyright 1999-2021 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+inherit edos2unix cmake |
37 |
+ |
38 |
+DESCRIPTION="A spam-resistant message board application for Freenet" |
39 |
+# FMS only has a homepage within freenet, so the closest is a wiki linking to it |
40 |
+HOMEPAGE="https://github.com/freenet/wiki/wiki/FMS" |
41 |
+SRC_URI="https://dev.gentoo.org/~tommy/distfiles/${PN}-src-${PV}.zip" |
42 |
+S="${WORKDIR}" |
43 |
+ |
44 |
+LICENSE="GPL-2" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64 ~x86" |
47 |
+IUSE="frost ssl" |
48 |
+ |
49 |
+CDEPEND=" |
50 |
+ acct-group/freenet |
51 |
+ acct-user/freenet |
52 |
+" |
53 |
+ |
54 |
+RDEPEND=" |
55 |
+ ${CDEPEND} |
56 |
+ dev-db/sqlite:3= |
57 |
+ dev-libs/poco |
58 |
+ frost? ( net-libs/mbedtls:0= ) |
59 |
+ ssl? ( net-libs/mbedtls:0= ) |
60 |
+" |
61 |
+DEPEND="${RDEPEND}" |
62 |
+BDEPEND=" |
63 |
+ ${CDEPEND} |
64 |
+ app-arch/unzip |
65 |
+ virtual/libiconv |
66 |
+" |
67 |
+ |
68 |
+PATCHES=( "${FILESDIR}/${PN}-use-system-libs4.patch" ) |
69 |
+ |
70 |
+DOCS=( "readme.txt" ) |
71 |
+ |
72 |
+src_prepare() { |
73 |
+ # Convert encoding due applied patch |
74 |
+ edos2unix src/http/pages/showfilepage.cpp |
75 |
+ edos2unix CMakeLists.txt |
76 |
+ |
77 |
+ # Remove bundled libs |
78 |
+ rm -fr libs || die |
79 |
+ |
80 |
+ cmake_src_prepare |
81 |
+} |
82 |
+ |
83 |
+src_configure() { |
84 |
+ local mycmakeargs=( |
85 |
+ -DDO_CHARSET_CONVERSION="ON" |
86 |
+ -DFCP_SSL_SUPPORT="$(usex ssl 'ON' 'OFF')" |
87 |
+ -DFROST_SUPPORT="$(usex frost 'ON' 'OFF')" |
88 |
+ -DI_HAVE_READ_THE_README="ON" |
89 |
+ -DUSE_BUNDLED_SQLITE="OFF" |
90 |
+ ) |
91 |
+ |
92 |
+ cmake_src_configure |
93 |
+} |
94 |
+ |
95 |
+src_install() { |
96 |
+ dobin "${BUILD_DIR}"/fms |
97 |
+ |
98 |
+ insinto /var/freenet/fms |
99 |
+ doins *.htm |
100 |
+ doins -r fonts images styles translations |
101 |
+ |
102 |
+ fperms -R o-rwx /var/freenet/fms |
103 |
+ fowners -R freenet:freenet /var/freenet/fms |
104 |
+ |
105 |
+ newinitd "${FILESDIR}/fms.initd" fms |
106 |
+ |
107 |
+ einstalldocs |
108 |
+} |
109 |
+ |
110 |
+pkg_postinst() { |
111 |
+ if ! has_version 'net-p2p/freenet' ; then |
112 |
+ ewarn "FMS needs a freenet node to upload and download messages." |
113 |
+ ewarn "Please make sure to have a node you can connect to" |
114 |
+ ewarn "or install net-p2p/freenet to get FMS working." |
115 |
+ fi |
116 |
+ |
117 |
+ einfo "By default, the FMS NNTP server will listen on port 1119," |
118 |
+ einfo "and the web configuration interface will be running at" |
119 |
+ einfo "http://localhost:8080." |
120 |
+ einfo "For more information, read the installed readme.txt." |
121 |
+ |
122 |
+ if use frost; then |
123 |
+ einfo |
124 |
+ einfo "You need to enable frost on the configuration page" |
125 |
+ einfo "and restart FMS for frost support." |
126 |
+ fi |
127 |
+} |