diff options
author | Thomas Sachau <tommy@gentoo.org> | 2022-10-31 11:41:08 +0100 |
---|---|---|
committer | Thomas Sachau <tommy@gentoo.org> | 2023-01-21 14:37:23 +0100 |
commit | 21ebedbd4a79a33c13ec481bcde4fafab324a4d3 (patch) | |
tree | cda7dd2ec2402dd8857fb5fa57f24a98462f8e88 /net-p2p | |
parent | dev-python/x-wr-timezone: Keyword 0.0.5 x86, #891199 (diff) | |
download | gentoo-21ebedbd4a79a33c13ec481bcde4fafab324a4d3.tar.gz gentoo-21ebedbd4a79a33c13ec481bcde4fafab324a4d3.tar.bz2 gentoo-21ebedbd4a79a33c13ec481bcde4fafab324a4d3.zip |
net-p2p/fms: Version bump
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Thomas Sachau <tommy@gentoo.org>
Diffstat (limited to 'net-p2p')
-rw-r--r-- | net-p2p/fms/Manifest | 1 | ||||
-rw-r--r-- | net-p2p/fms/fms-0.3.84.ebuild | 101 |
2 files changed, 102 insertions, 0 deletions
diff --git a/net-p2p/fms/Manifest b/net-p2p/fms/Manifest index de7065ebaf96..557cd4fb9ecb 100644 --- a/net-p2p/fms/Manifest +++ b/net-p2p/fms/Manifest @@ -1,2 +1,3 @@ DIST fms-src-0.3.82.zip 4786920 BLAKE2B c18630b8b1b8871290f1d66c4638b99c110e0f49bef11517aa83760274707fd5d0b53c053ea3b38a0c35018de4a4b6f3dd426499228997bac377bb1f04f784fb SHA512 2a72cbc7e23eb16cc12bd373944d1da090030602a09d0c1cf2fd8688a7b1a98ff649f1d0aa8b525b65987394d81acbb9b7558fcb21cea90a7646067a16600673 DIST fms-src-0.3.83.zip 4813813 BLAKE2B 07b28fa1ef151ca75e547515c8771fc425aa78003980f20134c4d3b670ccaa4c20b24dc0517194dd4675d9b3b8c8f84e929a94921945d156ae5b0b898a7fad56 SHA512 140f76f4a5c0582c3df031e4001f8870c761249d3af0226acefc9ee646973c9dee4f65ab8964ae43a6ec29de735bea0155603f596ec5a07ff7458d0ffd2ee4d3 +DIST fms-src-0.3.84.zip 4913007 BLAKE2B ec96d26ea5fedaf2109c0b1aa00d1dfa82e5b45bfe7db8a58cab9f682c16f41b05a2d3e51a4ece2a148101d36472499d1592d9dab66dd544402e8cc8cc37a5ff SHA512 e3fe163e3aefafbdeebeb67601bb940db2015eb8d8ca334f9bcfc41c86b704fc450e039f1301106c299011ef02d5fb7c28b97782bf3252d320adf3bac230b744 diff --git a/net-p2p/fms/fms-0.3.84.ebuild b/net-p2p/fms/fms-0.3.84.ebuild new file mode 100644 index 000000000000..d99313f0e5f2 --- /dev/null +++ b/net-p2p/fms/fms-0.3.84.ebuild @@ -0,0 +1,101 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit edos2unix cmake + +DESCRIPTION="A spam-resistant message board application for Freenet" +# FMS only has a homepage within freenet, so the closest is a wiki linking to it +HOMEPAGE="https://github.com/freenet/wiki/wiki/FMS" +SRC_URI="https://dev.gentoo.org/~tommy/distfiles/${PN}-src-${PV}.zip" +S="${WORKDIR}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="frost ssl" + +CDEPEND=" + acct-group/freenet + acct-user/freenet +" + +RDEPEND=" + ${CDEPEND} + dev-db/sqlite:3= + dev-libs/poco + frost? ( net-libs/mbedtls:0= ) + ssl? ( net-libs/mbedtls:0= ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + ${CDEPEND} + app-arch/unzip + virtual/libiconv +" + +PATCHES=( + "${FILESDIR}/${PN}-use-system-libs4.patch" + "${FILESDIR}/${PN}-0.3.83-fix-for-mbedtls-3.patch" +) + +DOCS=( "readme.txt" ) + +src_prepare() { + # Convert encoding due applied patch + edos2unix src/http/pages/showfilepage.cpp + edos2unix CMakeLists.txt + edos2unix include/freenet/fcpv2.h + + # Remove bundled libs + rm -fr libs || die + + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DDO_CHARSET_CONVERSION="ON" + -DFCP_SSL_SUPPORT="$(usex ssl 'ON' 'OFF')" + -DFROST_SUPPORT="$(usex frost 'ON' 'OFF')" + -DI_HAVE_READ_THE_README="ON" + -DUSE_BUNDLED_SQLITE="OFF" + ) + + cmake_src_configure +} + +src_install() { + dobin "${BUILD_DIR}"/fms + + insinto /var/freenet/fms + doins *.htm + doins -r fonts images styles translations + + fperms -R o-rwx /var/freenet/fms + fowners -R freenet:freenet /var/freenet/fms + + newinitd "${FILESDIR}/fms.initd" fms + + einstalldocs +} + +pkg_postinst() { + if ! has_version 'net-p2p/freenet' ; then + ewarn "FMS needs a freenet node to upload and download messages." + ewarn "Please make sure to have a node you can connect to" + ewarn "or install net-p2p/freenet to get FMS working." + fi + + einfo "By default, the FMS NNTP server will listen on port 1119," + einfo "and the web configuration interface will be running at" + einfo "http://localhost:8080." + einfo "For more information, read the installed readme.txt." + + if use frost; then + einfo + einfo "You need to enable frost on the configuration page" + einfo "and restart FMS for frost support." + fi +} |