From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id BAC34158003 for ; Fri, 29 Oct 2021 08:59:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1E301E0843; Fri, 29 Oct 2021 08:59:37 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E180BE0843 for ; Fri, 29 Oct 2021 08:59:36 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A3EDA343015 for ; Fri, 29 Oct 2021 08:59:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1ED3979 for ; Fri, 29 Oct 2021 08:59:34 +0000 (UTC) From: "Thomas Sachau" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Thomas Sachau" Message-ID: <1635497948.2efbb43ba85b820f773b70f7c005d5123aa55a45.tommy@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-p2p/fms/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-p2p/fms/Manifest net-p2p/fms/fms-0.3.83.ebuild X-VCS-Directories: net-p2p/fms/ X-VCS-Committer: tommy X-VCS-Committer-Name: Thomas Sachau X-VCS-Revision: 2efbb43ba85b820f773b70f7c005d5123aa55a45 X-VCS-Branch: master Date: Fri, 29 Oct 2021 08:59:34 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 43a42e53-fe38-4c6c-b943-5f5edd604809 X-Archives-Hash: 60c1b4a25ba3b7772f700f0a4bf554e5 commit: 2efbb43ba85b820f773b70f7c005d5123aa55a45 Author: Thomas Sachau gentoo org> AuthorDate: Fri Oct 29 08:59:08 2021 +0000 Commit: Thomas Sachau gentoo org> CommitDate: Fri Oct 29 08:59:08 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2efbb43b net-p2p/fms: Version bump Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Thomas Sachau gentoo.org> net-p2p/fms/Manifest | 1 + net-p2p/fms/fms-0.3.83.ebuild | 97 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 98 insertions(+) diff --git a/net-p2p/fms/Manifest b/net-p2p/fms/Manifest index 2bc83f745a6..de7065ebaf9 100644 --- a/net-p2p/fms/Manifest +++ b/net-p2p/fms/Manifest @@ -1 +1,2 @@ DIST fms-src-0.3.82.zip 4786920 BLAKE2B c18630b8b1b8871290f1d66c4638b99c110e0f49bef11517aa83760274707fd5d0b53c053ea3b38a0c35018de4a4b6f3dd426499228997bac377bb1f04f784fb SHA512 2a72cbc7e23eb16cc12bd373944d1da090030602a09d0c1cf2fd8688a7b1a98ff649f1d0aa8b525b65987394d81acbb9b7558fcb21cea90a7646067a16600673 +DIST fms-src-0.3.83.zip 4813813 BLAKE2B 07b28fa1ef151ca75e547515c8771fc425aa78003980f20134c4d3b670ccaa4c20b24dc0517194dd4675d9b3b8c8f84e929a94921945d156ae5b0b898a7fad56 SHA512 140f76f4a5c0582c3df031e4001f8870c761249d3af0226acefc9ee646973c9dee4f65ab8964ae43a6ec29de735bea0155603f596ec5a07ff7458d0ffd2ee4d3 diff --git a/net-p2p/fms/fms-0.3.83.ebuild b/net-p2p/fms/fms-0.3.83.ebuild new file mode 100644 index 00000000000..ca07782f847 --- /dev/null +++ b/net-p2p/fms/fms-0.3.83.ebuild @@ -0,0 +1,97 @@ +# Copyright 1999-2021 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" ) + +DOCS=( "readme.txt" ) + +src_prepare() { + # Convert encoding due applied patch + edos2unix src/http/pages/showfilepage.cpp + edos2unix CMakeLists.txt + + # 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 +}