Commit 5ba37575 authored by Rene Ladan's avatar Rene Ladan
Browse files

databases/galera: Remove expired port

2024-06-08 databases/galera: Does not build. Superseded by galera26
parent f3edbb64
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3300,3 +3300,4 @@ www/larbin||2024-06-11|Has expired: Abandonware, obsolete web crawler
audio/rebot3||2024-06-11|Has expired: Depends on legacy service/protocol that's requires registration
net/nepenthes||2024-06-11|Has expired: Abandonware, last update in 2008 and upstream is gone
sysutils/hploscripts||2024-06-11|Has expired: Abandonware, outdated version
databases/galera|databases/galera26|2024-06-11|Has expired: Does not build. Superseded by galera26
+0 −1
Original line number Diff line number Diff line
@@ -78,7 +78,6 @@
    SUBDIR += freetds-devel
    SUBDIR += frontbase-jdbc
    SUBDIR += futuresql
    SUBDIR += galera
    SUBDIR += galera26
    SUBDIR += gdbm
    SUBDIR += geoserver-mysql-plugin

databases/galera/Makefile

deleted100644 → 0
+0 −59
Original line number Diff line number Diff line
PORTNAME=	galera
PORTVERSION?=	25.3.37
PORTREVISION=	5
DISTVERSIONPREFIX?=	release_
CATEGORIES=	databases

MAINTAINER=	devel@galeracluster.com
COMMENT=	Synchronous multi-master replication engine
WWW=		https://galeracluster.com/

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/LICENSE

DEPRECATED=	Does not build. Superseded by galera26
EXPIRATION_DATE=2024-06-08

BROKEN_aarch64=		fails to compile: gu_int128.h: use of undeclared identifier '__bswap64_var'
BROKEN_armv6=		fails to compile: gu_int128.h: use of undeclared identifier '__bswap64_var'
BROKEN_armv7=		fails to compile: gu_int128.h: use of undeclared identifier '__bswap64_var'
NOT_FOR_ARCHS=		i386 powerpc
# On i386 older versions of clang produce:
#   cannot compile this atomic library call yet ... __atomic_add_fetch
# whereas newer ones generate a call to __atomic_add_fetch which ends up with
# undefined reference at link time:
#   undefined reference to `__atomic_fetch_add_8'
# https://bugs.llvm.org//show_bug.cgi?id=23262
# https://bugs.llvm.org//show_bug.cgi?id=24908
# https://tracker.crystax.net/issues/1263
NOT_FOR_ARCHS_REASON_i386=Uses 64 bit atomics that clang cannot generate on i386
NOT_FOR_ARCHS_REASON_powerpc=Uses 64 bit atomics that clang cannot generate on i386

BUILD_DEPENDS=	checkmk:devel/check \
		${LOCALBASE}/include/boost/shared_ptr.hpp:devel/boost-libs \
		objdump:devel/binutils
LIB_DEPENDS=	libboost_date_time.so:devel/boost-libs

USES=		compiler:c++11-lang python:build cmake ssl

USE_CXXSTD=	c++11
USE_LDCONFIG=	yes

USE_GITHUB=	yes
GH_TUPLE?=	codership:galera:${DISTVERSIONPREFIX}${PORTVERSION}${DISTVERSIONSUFFIX} \
		codership:wsrep-API:eab2d5d5a31672c0b7d116ef1629ff18392fd7d0:dummy/wsrep/src

CMAKE_ARGS+=	-DGALERA_REVISION=${GH_TAGNAME}

CONFLICTS_INSTALL=	galera26

USE_RC_SUBR=	garb.sh

PLIST_FILES=	bin/garbd \
		lib/libgalera.so \
		lib/libgalera_smm.so

post-install:
	${RLN} ${STAGEDIR}/${PREFIX}/lib/libgalera_smm.so ${STAGEDIR}/${PREFIX}/lib/libgalera.so

.include <bsd.port.mk>

databases/galera/distinfo

deleted100644 → 0
+0 −5
Original line number Diff line number Diff line
TIMESTAMP = 1653386053
SHA256 (codership-galera-release_25.3.37_GH0.tar.gz) = f149474c4f4840e7c986fe2028e32fbf92a0b86e1e219c76f8cb4795eb7962c8
SIZE (codership-galera-release_25.3.37_GH0.tar.gz) = 3341396
SHA256 (codership-wsrep-API-eab2d5d5a31672c0b7d116ef1629ff18392fd7d0_GH0.tar.gz) = 3c235868ed330d8d702e7b7541c24c1926b1fd9e6b8aa673b032a2318896e8a0
SIZE (codership-wsrep-API-eab2d5d5a31672c0b7d116ef1629ff18392fd7d0_GH0.tar.gz) = 47032

databases/galera/files/garb.sh.in

deleted100644 → 0
+0 −95
Original line number Diff line number Diff line
#!/bin/sh
#
# garb.sh for rc.d usage (c) 2013 Codership Oy
# $Id$

# PROVIDE: garb
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following line to /etc/rc.conf to enable Galera Arbitrator Daemon (garbd):
#  garb_enable (bool):         Set to "NO" by default.
#                              Set it to "YES" to enable Galera Arbitrator Daemon.
#  garb_galera_nodes (str):    A space-separated list of node addresses (address[:port]) in the cluster
#                              (default empty).
#  garb_galera_group (str):    Galera cluster name, should be the same as on the rest of the nodes.
#                              (default empty).
# Optional:
#  garb_galera_options (str):  Optional Galera internal options string (e.g. SSL settings)
#                              see http://www.codership.com/wiki/doku.php?id=galera_parameters
#                              (default empty).
#  garb_log_file (str):        Log file for garbd (default empty). Optional, by default logs to syslog
#  garb_pid_file (str):        Custom PID file path and name.
#                              Default to "/var/run/garb.pid".
#

. /etc/rc.subr

name="garb"
rcvar=garb_enable

load_rc_config $name

# set defaults
: ${garb_enable="NO"}
: ${garb_galera_nodes=""}
: ${garb_galera_group=""}
: ${garb_galera_options=""}
: ${garb_log_file=""}
: ${garb_pid_file="/var/run/garbd"}

procname="/usr/local/bin/garbd"
command="/usr/sbin/daemon"
command_args="-c -f -u nobody -p $garb_pid_file $procname"
start_precmd="${name}_prestart"
#start_cmd="${name}_start"
start_postcmd="${name}_poststart"
stop_precmd="${name}_prestop"
#stop_cmd="${name}_stop"
#stop_postcmd="${name}_poststop"
#extra_commands="reload"
#reload_cmd="${name}_reload"
#export LD_LIBRARY_PATH=/usr/local/lib/gcc44

garb_prestart()
{
	[ "$(id -ur)" != "0" ] && err 4 "root rights are required to start $name"
	[ -r "$garb_pid_file" ] && err 0 "$procname is already running with PID $(cat $garb_pid_file)"
	[ -x "$procname" ] || err 5 "$procname is not found"

	# check that node addresses are configured
	[ -z "$garb_galera_nodes" ] && err 6 "List of garb_galera_nodes is not configured"
	[ -z "$garb_galera_group" ] && err 6 "garb_galera_group name is not configured"

	GALERA_PORT=${GALERA_PORT:-4567}

	# Concatenate all nodes in the list (for backward compatibility)
	ADDRESS=
	for NODE in ${garb_galera_nodes}; do
		[ -z "$ADDRESS" ] && ADDRESS="$NODE" || ADDRESS="$ADDRESS,$NODE"
	done

	command_args="$command_args -a gcomm://$ADDRESS"
	[ -n "$garb_galera_group" ]   && command_args="$command_args -g $garb_galera_group"
	[ -n "$garb_galera_options" ] && command_args="$command_args -o '$garb_galera_options'"
	[ -n "$garb_log_file" ]       && command_args="$command_args -l $garb_log_file"
	return 0
}

garb_poststart()
{
	local timeout=15
	while [ ! -f "$garb_pid_file" -a $timeout -gt 0 ]; do
		timeout=$(( timeout - 1 ))
		sleep 1
	done
	return 0
}

garb_prestop() {
	[ "$(id -ur)" != "0" ] && err 4 "root rights are required to stop $name"
	[ -r $garb_pid_file ] || err 0 ""
	return 0
}

run_rc_command "$1"
Loading