summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2021-07-11 00:46:58 +0200
committerConrad Kostecki <conikost@gentoo.org>2021-07-11 00:50:00 +0200
commitfbd440454a7a8cfc7849a3bbf1130e88005fa618 (patch)
treed99962c1d1afb8a31cb6a0c1a9175bfb32151b60 /net-p2p
parentnet-p2p/fms: migrate to EAPI 7, GLEP 81 (diff)
downloadgentoo-fbd440454a7a8cfc7849a3bbf1130e88005fa618.tar.gz
gentoo-fbd440454a7a8cfc7849a3bbf1130e88005fa618.tar.bz2
gentoo-fbd440454a7a8cfc7849a3bbf1130e88005fa618.zip
net-p2p/fms: drop old version
Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'net-p2p')
-rw-r--r--net-p2p/fms/files/fms37
-rw-r--r--net-p2p/fms/fms-0.3.82.ebuild77
2 files changed, 0 insertions, 114 deletions
diff --git a/net-p2p/fms/files/fms b/net-p2p/fms/files/fms
deleted file mode 100644
index d7f0453f1606..000000000000
--- a/net-p2p/fms/files/fms
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2018 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-# Check for OpenRC/Baselayout 2 - see bug #270646
-is_openrc() {
- [ -f /lib/librc.so -o -f /etc/init.d/sysfs -o -f /lib/rc/version ]
-}
-
-start() {
- ebegin "Starting FMS"
- if is_openrc; then
- start-stop-daemon -S -u freenet:freenet -d /var/freenet/fms -b -x /usr/bin/fms
- eend $?
- else
- cd /var/freenet/fms
- su -s /bin/sh -c "fms --daemon" freenet
- eend $?
- fi
-}
-
-stop() {
- ebegin "Stopping FMS"
- if is_openrc; then
- start-stop-daemon -K -u freenet:freenet -d /var/freenet/fms /usr/bin/fms
- eend $?
- else
- pkill -u freenet -f "fms --daemon"
- eend 0
- fi
- if [[ $RC_CMD == "restart" ]]; then
- ebegin "Waiting a few seconds to be sure FMS is ready for restart"
- sleep 10
- #give fms time to stop and release the nntp port
- fi
-}
-
diff --git a/net-p2p/fms/fms-0.3.82.ebuild b/net-p2p/fms/fms-0.3.82.ebuild
deleted file mode 100644
index 76a9a63fb5c9..000000000000
--- a/net-p2p/fms/fms-0.3.82.ebuild
+++ /dev/null
@@ -1,77 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="6"
-
-inherit edos2unix cmake-utils user
-
-DESCRIPTION="A spam-resistant message board application for Freenet"
-#FMS oly 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"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="frost ssl"
-
-RDEPEND="virtual/libiconv
- frost? ( net-libs/mbedtls )
- ssl? ( net-libs/mbedtls )
- >=dev-libs/poco-1.4.3_p1
- >=dev-db/sqlite-3.6.15"
-DEPEND="${RDEPEND}
- app-arch/unzip"
-
-S=${WORKDIR}
-PATCHES=( "${FILESDIR}"/${PN}-use-system-libs4.patch )
-
-pkg_setup() {
- enewgroup freenet
- enewuser freenet -1 -1 /var/freenet freenet
-}
-
-src_prepare() {
- rm -rv libs
- edos2unix src/http/pages/showfilepage.cpp
- edos2unix CMakeLists.txt
-
- cmake-utils_src_prepare
-}
-
-src_configure() {
- local mycmakeargs=( -DI_HAVE_READ_THE_README=ON \
- -DUSE_BUNDLED_SQLITE=OFF \
- -DDO_CHARSET_CONVERSION=ON \
- -DFROST_SUPPORT=$(use frost && echo ON || echo OFF) \
- -DFCP_SSL_SUPPORT=$(use ssl && echo ON || echo OFF) )
- cmake-utils_src_configure
-}
-
-src_install() {
- insinto /var/freenet/fms
- dobin "${CMAKE_BUILD_DIR}"/fms
- doins *.htm
- doins -r fonts images styles translations
- fperms -R o-rwx /var/freenet/fms/ /usr/bin/fms
- fowners -R freenet:freenet /var/freenet/fms/ /usr/bin/fms
- doinitd "${FILESDIR}/fms"
- dodoc readme.txt
-}
-
-pkg_postinst() {
- if ! has_version 'net-p2p/freenet' ; then
- ewarn "FMS needs a freenet node to up-/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
- elog "By default, the FMS NNTP server will listen on port 1119,"
- elog "and the web configuration interface will be running at"
- elog "http://localhost:8080. For more information, read"
- elog "${ROOT}usr/share/doc/${PF}/readme.txt.bz2"
- if use frost; then
- elog " "
- elog "You need to enable frost on the config page"
- elog "and restart fms for frost support."
- fi
-}