* [gentoo-commits] repo/gentoo:master commit in: net-p2p/fms/files/, net-p2p/fms/
@ 2017-01-12 17:50 Thomas Sachau
0 siblings, 0 replies; 3+ messages in thread
From: Thomas Sachau @ 2017-01-12 17:50 UTC (permalink / raw
To: gentoo-commits
commit: b4b64a7f95944638c36228267b2743d5bb7614c7
Author: Thomas Sachau <tommy <AT> gentoo <DOT> org>
AuthorDate: Thu Jan 12 17:46:23 2017 +0000
Commit: Thomas Sachau <tommy <AT> gentoo <DOT> org>
CommitDate: Thu Jan 12 17:46:23 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4b64a7f
Version bump, drop old
Package-Manager: portage-2.2.27
net-p2p/fms/Manifest | 3 +-
net-p2p/fms/files/fms-use-system-libs2.patch | 22 -------
net-p2p/fms/files/fms-use-system-libs3.patch | 41 +++++++++++++
net-p2p/fms/fms-0.3.75.ebuild | 71 ----------------------
.../fms/{fms-0.3.73.ebuild => fms-0.3.79.ebuild} | 7 ++-
5 files changed, 46 insertions(+), 98 deletions(-)
diff --git a/net-p2p/fms/Manifest b/net-p2p/fms/Manifest
index 1886ec7..42bf520 100644
--- a/net-p2p/fms/Manifest
+++ b/net-p2p/fms/Manifest
@@ -1,2 +1 @@
-DIST fms-src-0.3.73.zip 3519550 SHA256 f20985efa71c77c843f7cd16e437414ba2810c5a69d7917456e2a2e6e551a6e5 SHA512 457a6808e85dce8ac3cc31ac465eeb6e271294b6aac9436a12adb21f1dacc5ef8726c558dd6734a7418cff1ce92c172062e0eb5b4642e29a83235cccc9198d2c WHIRLPOOL 8fd8a4b59b003df5b3b91f9d9dde134b3832fb572a772e3129889c56c5c9be10040161cff8fcb1b6183ebe156b9b340bef2481d43519044a8cb54ed0887624a4
-DIST fms-src-0.3.75.zip 3691556 SHA256 1fe5e84aba572143fe95ffb384177e150d5cd4dff2930462b9df24b59c03d85e SHA512 ce5754c0f15c18c0e9692bb840119576ffa9eca05ca38060a0778fc170a614d394ffcc06274bcdc4db5659d176f00e993904a76099382e7eea5685c3a83d3cd8 WHIRLPOOL 405198eff290d8b55e5b5c164fbbd845c086ed76d6d17efa24ab630c109d09b83c8a956b45d6613672b08a19101275a6a8375ba06065e6d9e9b20e1da6c759af
+DIST fms-src-0.3.79.zip 3847775 SHA256 b5dbb1e1d075e2134c692038ea95805a528807b0d777e2752f806f6935508f30 SHA512 aa9f505c5ef55b1f462b16de6d870d02dc102fd184cc353c6c6b8a346978a9953b34e878f262f4190a3d15d76c5a37f065c4e5ebdbc0e43a4a5c22d61fa9fba7 WHIRLPOOL ab799a0e318d4bfb750898bd544da31cad39ce81a633da43753bd4c4aa4179425bfeb1b283fc1acf1ec34c2947ce735d48528bd85b664ab50e2f8118f5f30d26
diff --git a/net-p2p/fms/files/fms-use-system-libs2.patch b/net-p2p/fms/files/fms-use-system-libs2.patch
deleted file mode 100644
index 39e62e3..00000000
--- a/net-p2p/fms/files/fms-use-system-libs2.patch
+++ /dev/null
@@ -1,22 +0,0 @@
---- CMakeLists.txt 2012-03-04 13:01:24.000000000 +0100
-+++ CMakeLists.txt.new 2012-03-08 22:14:27.000000000 +0100
-@@ -353,9 +353,16 @@
- ENDIF(AUDIO_CAPTCHA)
-
- IF(FROST_SUPPORT)
-- ADD_SUBDIRECTORY(libs/polarssl)
-- TARGET_LINK_LIBRARIES(fms polarssl)
-- INCLUDE_DIRECTORIES(libs/polarssl/include)
-+
-+ FIND_LIBRARY(POLARSSL_LIBRARY NAMES polarssl libpolarssl)
-+
-+ IF(POLARSSL_LIBRARY)
-+ TARGET_LINK_LIBRARIES(fms ${POLARSSL_LIBRARY})
-+ ELSE(POLARSSL_LIBRARY)
-+ ADD_SUBDIRECTORY(libs/polarssl)
-+ TARGET_LINK_LIBRARIES(fms polarssl)
-+ INCLUDE_DIRECTORIES(libs/polarssl/include)
-+ ENDIF(POLARSSL_LIBRARY)
-
- ADD_DEFINITIONS(-DFROST_SUPPORT)
-
diff --git a/net-p2p/fms/files/fms-use-system-libs3.patch b/net-p2p/fms/files/fms-use-system-libs3.patch
new file mode 100644
index 00000000..32a7025
--- /dev/null
+++ b/net-p2p/fms/files/fms-use-system-libs3.patch
@@ -0,0 +1,41 @@
+--- CMakeLists.txt 2016-06-04 21:18:20.000000000 +0200
++++ CMakeLists.txt.new 2017-01-12 17:12:10.000000000 +0100
+@@ -373,11 +373,18 @@
+ ENDIF(AUDIO_CAPTCHA)
+
+ IF(FROST_SUPPORT OR FCP_SSL_SUPPORT)
+- ADD_SUBDIRECTORY(libs/mbedtls)
+- TARGET_LINK_LIBRARIES(fms mbedtls)
+- TARGET_LINK_LIBRARIES(fms mbedcrypto)
+- TARGET_LINK_LIBRARIES(fms mbedx509)
+- INCLUDE_DIRECTORIES(libs/mbedtls/include)
++
++ FIND_LIBRARY(MBEDTLS_LIBRARY NAMES mbedtls )
++ FIND_LIBRARY(MBEDCRYPTO_LIBRARY NAMES mbedcrypto mbedx509)
++ FIND_LIBRARY(MBEDX509_LIBRARY NAMES mbedx509)
++
++ IF(MBEDTLS_LIBRARY)
++ TARGET_LINK_LIBRARIES(fms ${MBEDTLS_LIBRARY})
++ TARGET_LINK_LIBRARIES(fms ${MBEDCRYPTO_LIBRARY})
++ TARGET_LINK_LIBRARIES(fms ${MBEDX509_LIBRARY})
++ ELSE(MBEDTLS_LIBRARY)
++ MESSAGE(FATAL ERROR: "Could not find mbedtls library.")
++ ENDIF(MBEDTLS_LIBRARY)
+
+ IF(FROST_SUPPORT)
+ ADD_DEFINITIONS(-DFROST_SUPPORT)
+@@ -405,3 +412,14 @@
+ IF(BUILD_PLUGIN)
+ ADD_SUBDIRECTORY(plugin)
+ ENDIF(BUILD_PLUGIN)
++
++MESSAGE(STATUS "<<< Gentoo configuration >>>
++Build type ${CMAKE_BUILD_TYPE}
++Install path ${CMAKE_INSTALL_PREFIX}
++Compiler flags:
++C ${CMAKE_C_FLAGS}
++C++ ${CMAKE_CXX_FLAGS}
++Linker flags:
++Executable ${CMAKE_EXE_LINKER_FLAGS}
++Module ${CMAKE_MODULE_LINKER_FLAGS}
++Shared ${CMAKE_SHARED_LINKER_FLAGS}\n")
diff --git a/net-p2p/fms/fms-0.3.75.ebuild b/net-p2p/fms/fms-0.3.75.ebuild
deleted file mode 100644
index c3014c2..00000000
--- a/net-p2p/fms/fms-0.3.75.ebuild
+++ /dev/null
@@ -1,71 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI="5"
-
-inherit eutils cmake-utils user
-
-DESCRIPTION="A spam-resistant message board application for Freenet"
-HOMEPAGE="http://freenetproject.org/tools.html"
-SRC_URI="mirror://gentoo/${PN}-src-${PV}.zip"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="frost"
-
-RDEPEND="virtual/libiconv
- frost? ( net-libs/polarssl )
- >=dev-libs/poco-1.4.3_p1
- >=dev-db/sqlite-3.6.15"
-DEPEND="${RDEPEND}
- app-arch/unzip"
-
-S=${WORKDIR}
-
-pkg_setup() {
- enewgroup freenet
- enewuser freenet -1 -1 /var/freenet freenet
-}
-
-src_prepare() {
- edos2unix src/http/pages/showfilepage.cpp
- epatch "${FILESDIR}"/${PN}-use-system-libs2.patch
-}
-
-src_configure() {
- local mycmakeargs="-DI_HAVE_READ_THE_README=ON \
- -DUSE_BUNDLED_SQLITE=OFF \
- -DDO_CHARSET_CONVERSION=ON \
- $(cmake-utils_use frost FROST_SUPPORT)"
- cmake-utils_src_configure
-}
-
-src_install() {
- insinto /var/freenet/fms
- dobin "${CMAKE_BUILD_DIR}"/fms || die
- doins *.htm || die "doinstall failed"
- doins -r fonts images styles translations || die
- fperms -R o-rwx /var/freenet/fms/ /usr/bin/fms
- fowners -R freenet:freenet /var/freenet/fms/ /usr/bin/fms
- doinitd "${FILESDIR}/fms" || die "installing init.d file failed"
- dodoc readme.txt || die "installing doc failed"
-}
-
-pkg_postinst() {
- if ! has_version 'net-p2p/freenet' ; then
- ewarn "FMS needs a freenet node to up-/download #ssages."
- 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
-}
diff --git a/net-p2p/fms/fms-0.3.73.ebuild b/net-p2p/fms/fms-0.3.79.ebuild
similarity index 93%
rename from net-p2p/fms/fms-0.3.73.ebuild
rename to net-p2p/fms/fms-0.3.79.ebuild
index 4db60f3..a7b0bac 100644
--- a/net-p2p/fms/fms-0.3.73.ebuild
+++ b/net-p2p/fms/fms-0.3.79.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
@@ -16,7 +16,7 @@ KEYWORDS="~amd64 ~x86"
IUSE="frost"
RDEPEND="virtual/libiconv
- frost? ( net-libs/polarssl )
+ frost? ( net-libs/mbedtls )
>=dev-libs/poco-1.4.3_p1
>=dev-db/sqlite-3.6.15"
DEPEND="${RDEPEND}
@@ -30,8 +30,9 @@ pkg_setup() {
}
src_prepare() {
+ rm -rv libs
edos2unix src/http/pages/showfilepage.cpp
- epatch "${FILESDIR}"/${PN}-use-system-libs2.patch
+ epatch "${FILESDIR}"/${PN}-use-system-libs3.patch
}
src_configure() {
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: net-p2p/fms/files/, net-p2p/fms/
@ 2021-07-10 22:50 Conrad Kostecki
0 siblings, 0 replies; 3+ messages in thread
From: Conrad Kostecki @ 2021-07-10 22:50 UTC (permalink / raw
To: gentoo-commits
commit: 31f7b22a93e4b5044a6697b84e66807d5f608731
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 10 22:46:15 2021 +0000
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Sat Jul 10 22:49:59 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=31f7b22a
net-p2p/fms: migrate to EAPI 7, GLEP 81
Changes:
- Updated deps
- Updated init script for modern OpenRC
- Updated docs in pkg_postinst
- Update to EAPI 7
- Migrate to GLEP 81
Closes: https://bugs.gentoo.org/774516
Closes: https://bugs.gentoo.org/781446
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
net-p2p/fms/files/fms.initd | 11 +++++
net-p2p/fms/fms-0.3.82-r1.ebuild | 97 ++++++++++++++++++++++++++++++++++++++++
2 files changed, 108 insertions(+)
diff --git a/net-p2p/fms/files/fms.initd b/net-p2p/fms/files/fms.initd
new file mode 100644
index 00000000000..fb76b701c51
--- /dev/null
+++ b/net-p2p/fms/files/fms.initd
@@ -0,0 +1,11 @@
+#!/sbin/openrc-run
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+pidfile="/run/fms.pid"
+start_stop_daemon_args="--chdir /var/freenet/fms"
+
+command="/usr/bin/fms"
+command_background="true"
+command_group="freenet"
+command_user="freenet"
diff --git a/net-p2p/fms/fms-0.3.82-r1.ebuild b/net-p2p/fms/fms-0.3.82-r1.ebuild
new file mode 100644
index 00000000000..ca07782f847
--- /dev/null
+++ b/net-p2p/fms/fms-0.3.82-r1.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
+}
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: net-p2p/fms/files/, net-p2p/fms/
@ 2021-07-10 22:50 Conrad Kostecki
0 siblings, 0 replies; 3+ messages in thread
From: Conrad Kostecki @ 2021-07-10 22:50 UTC (permalink / raw
To: gentoo-commits
commit: fbd440454a7a8cfc7849a3bbf1130e88005fa618
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 10 22:46:58 2021 +0000
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Sat Jul 10 22:50:00 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fbd44045
net-p2p/fms: drop old version
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
net-p2p/fms/files/fms | 37 ---------------------
net-p2p/fms/fms-0.3.82.ebuild | 77 -------------------------------------------
2 files changed, 114 deletions(-)
diff --git a/net-p2p/fms/files/fms b/net-p2p/fms/files/fms
deleted file mode 100644
index d7f0453f160..00000000000
--- 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 76a9a63fb5c..00000000000
--- 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
-}
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-07-10 22:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-10 22:50 [gentoo-commits] repo/gentoo:master commit in: net-p2p/fms/files/, net-p2p/fms/ Conrad Kostecki
-- strict thread matches above, loose matches on Subject: below --
2021-07-10 22:50 Conrad Kostecki
2017-01-12 17:50 Thomas Sachau
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox