summaryrefslogtreecommitdiff
path: root/games-server/monopd
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-06-12 19:09:37 -0500
committerroot <root@alpha.trunkmasters.com>2026-06-12 19:09:37 -0500
commitb590c8d7572b727d565cc0b8ff660d43569845de (patch)
tree06f7a4102ea4e845df8b66660f252920d52952f9 /games-server/monopd
parent24f9cbfc4c34fdb6a6e03311674414e881ceab47 (diff)
downloadbaldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.gz
baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.xz
baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.zip
Adding metadata
Diffstat (limited to 'games-server/monopd')
-rw-r--r--games-server/monopd/Manifest1
-rw-r--r--games-server/monopd/files/monopd-0.10.4-fixes.patch82
-rw-r--r--games-server/monopd/files/monopd.initd12
-rw-r--r--games-server/monopd/metadata.xml12
-rw-r--r--games-server/monopd/monopd-0.10.4.ebuild44
5 files changed, 151 insertions, 0 deletions
diff --git a/games-server/monopd/Manifest b/games-server/monopd/Manifest
new file mode 100644
index 000000000000..63a7480aa1da
--- /dev/null
+++ b/games-server/monopd/Manifest
@@ -0,0 +1 @@
+DIST monopd-0.10.4.tar.gz 203728 BLAKE2B a32fc2e9fc1e3fb7b615b9fac546056d5c16752ed47e0b2d91868b007042a98ddd7ca1a5f681ee7a8d0e302eb052898f4303b90e3443ae172b6b53a20bbee80d SHA512 60fa9669cf28ff09890a4476a51c1b55c30b160b13f5e083c6302454d3ac38200870269c8982dc627492c4b610ed883a25bf0fc8568513dcc989a83b9805380a
diff --git a/games-server/monopd/files/monopd-0.10.4-fixes.patch b/games-server/monopd/files/monopd-0.10.4-fixes.patch
new file mode 100644
index 000000000000..5157231e6773
--- /dev/null
+++ b/games-server/monopd/files/monopd-0.10.4-fixes.patch
@@ -0,0 +1,82 @@
+From 0a88af9a7a5feba9944ea009eddaac1e89315539 Mon Sep 17 00:00:00 2001
+From: James Le Cuirot <chewi@gentoo.org>
+Date: Sun, 28 Jul 2024 22:24:38 +0100
+Subject: [PATCH 1/3] systemd: Correct path to monopd binary
+
+It is installed to /usr/bin, not /usr/sbin.
+---
+ doc/systemd/monopd.service | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/doc/systemd/monopd.service b/doc/systemd/monopd.service
+index eace183..3f370d4 100644
+--- a/doc/systemd/monopd.service
++++ b/doc/systemd/monopd.service
+@@ -3,7 +3,7 @@ Description=game server for board games like GtkAtlantic
+
+ [Service]
+ Type=notify
+-ExecStart=/usr/sbin/monopd
++ExecStart=/usr/bin/monopd
+ User=nobody
+ Group=nogroup
+
+--
+2.45.2
+
+
+From fb41002ae3b94c6d9b3587ed291810baf04af19f Mon Sep 17 00:00:00 2001
+From: James Le Cuirot <chewi@gentoo.org>
+Date: Sun, 28 Jul 2024 22:26:21 +0100
+Subject: [PATCH 2/3] autoconf: Don't mix up CFLAGS with CXXFLAGS
+
+---
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index fa0de41..e388422 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -9,7 +9,7 @@ AC_LANG(C++)
+ AC_SEARCH_LIBS([strerror], [cposix])
+ AC_SUBST(CFLAGS, $CFLAGS)
+ AC_PROG_CC
+-AC_SUBST(CXXFLAGS, $CFLAGS)
++AC_SUBST(CXXFLAGS, $CXXFLAGS)
+ AC_PROG_CXX
+
+ # Checks for libraries.
+--
+2.45.2
+
+
+From 770eb6f7a82012776071d7af4e2c5b54d27ffb50 Mon Sep 17 00:00:00 2001
+From: James Le Cuirot <chewi@gentoo.org>
+Date: Sun, 28 Jul 2024 22:27:13 +0100
+Subject: [PATCH 3/3] autoconf: Fix appending of C(XX)FLAGS
+
+configure uses /bin/sh, which may be a pure POSIX shell like dash rather
+than bash. += is not POSIX compliant.
+---
+ configure.ac | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index e388422..24cc00c 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -41,8 +41,8 @@ AS_IF([test "x$USE_SYSTEMD_DAEMON" != "xno"], [
+ ])
+
+ if test "x$GCC" = "xyes"; then \
+- CFLAGS+=" -Wall -Wextra"; \
+- CXXFLAGS+=" -Wall -Wextra"; \
++ CFLAGS="${CFLAGS} -Wall -Wextra"; \
++ CXXFLAGS="${CXXFLAGS} -Wall -Wextra"; \
+ fi
+
+ AC_CONFIG_FILES([
+--
+2.45.2
+
diff --git a/games-server/monopd/files/monopd.initd b/games-server/monopd/files/monopd.initd
new file mode 100644
index 000000000000..7a6a090ab6f2
--- /dev/null
+++ b/games-server/monopd/files/monopd.initd
@@ -0,0 +1,12 @@
+#!/sbin/openrc-run
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+command="monopd"
+command_background="true"
+command_user="nobody:nogroup"
+pidfile="/run/${RC_SVCNAME}.pid"
+
+depend() {
+ use net
+}
diff --git a/games-server/monopd/metadata.xml b/games-server/monopd/metadata.xml
new file mode 100644
index 000000000000..0fdc030c9084
--- /dev/null
+++ b/games-server/monopd/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="cpe">cpe:/a:monopd:monopd</remote-id>
+ </upstream>
+ <origin>baldeagleos-repo</origin>
+</pkgmetadata>
diff --git a/games-server/monopd/monopd-0.10.4.ebuild b/games-server/monopd/monopd-0.10.4.ebuild
new file mode 100644
index 000000000000..386dab481c7d
--- /dev/null
+++ b/games-server/monopd/monopd-0.10.4.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools flag-o-matic systemd
+
+DESCRIPTION="Server for the GtkAtlantic board game"
+HOMEPAGE="https://gtkatlantic.gradator.net"
+SRC_URI="https://download.tuxfamily.org/gtkatlantic/monopd/${P}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="systemd"
+
+RDEPEND="
+ systemd? ( sys-apps/systemd )
+"
+
+DEPEND="
+ ${RDEPEND}
+ >=dev-cpp/muParser-2
+ dev-libs/utfcpp
+"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-fixes.patch
+)
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ append-cppflags -I"${ESYSROOT}/usr/include/utf8cpp"
+ econf $(use_with systemd systemd-daemon)
+}
+
+src_install() {
+ default
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+ use systemd && systemd_dounit doc/systemd/${PN}.s*
+}