diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-04 05:48:38 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-04 05:48:38 -0500 |
| commit | bfd9c39e4712ebdb442d4ca0673061faed1e70e1 (patch) | |
| tree | 0d7a74b4463ee387f9cf9368ceb1b757f694f72a /net-misc/balance | |
| parent | f716a9fe6455d39eef01e718aae68dae61c19704 (diff) | |
| download | baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.tar.gz baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.tar.xz baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.zip | |
Revert "Adding metadata"
This reverts commit f716a9fe6455d39eef01e718aae68dae61c19704.
Diffstat (limited to 'net-misc/balance')
| -rw-r--r-- | net-misc/balance/Manifest | 1 | ||||
| -rw-r--r-- | net-misc/balance/balance-3.57-r1.ebuild | 51 | ||||
| -rw-r--r-- | net-misc/balance/files/balance-3.57-Makefile.patch | 52 | ||||
| -rw-r--r-- | net-misc/balance/metadata.xml | 8 |
4 files changed, 112 insertions, 0 deletions
diff --git a/net-misc/balance/Manifest b/net-misc/balance/Manifest new file mode 100644 index 000000000000..4071aa72291f --- /dev/null +++ b/net-misc/balance/Manifest @@ -0,0 +1 @@ +DIST balance-3.57.tar 102400 BLAKE2B 0112bdac264b7deca3e25ceb1df821ae1211ffef6506ffe825e96e7fe9320fcd58c602f3dd96bb3d849dfbfec8f3433d4593711d8eaf62dba4aff05cb84132fd SHA512 dc3e8358c4a35bf7668a6ef26e0f8792e75db1c24d8a18f11c89ab085324ed312250a833f4016ecca0e66d4e6a921c4a1cba3bb4095de24a63c2ea7318087aac diff --git a/net-misc/balance/balance-3.57-r1.ebuild b/net-misc/balance/balance-3.57-r1.ebuild new file mode 100644 index 000000000000..b432ff4b7e02 --- /dev/null +++ b/net-misc/balance/balance-3.57-r1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit fcaps flag-o-matic toolchain-funcs + +DESCRIPTION="TCP Load Balancing Port Forwarder" +HOMEPAGE="https://balance.inlab.net" +SRC_URI="https://download.inlab.net/Balance/${PV}/${P}.tar" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" + +PATCHES=( "${FILESDIR}"/${P}-Makefile.patch ) + +FILECAPS=( + CAP_NET_BIND_SERVICE usr/sbin/balance +) + +src_prepare() { + default + + tc-export CC +} + +src_compile() { + # -Werror=strict-aliasing + # https://bugs.gentoo.org/861599 + # https://sourceforge.net/p/balance/bugs/13/ + # + # Do not trust with LTO either. + append-flags -fno-strict-aliasing + filter-lto + + default +} + +src_install() { + default + + # Autocreated on program start, if missing + rm -rv "${ED}/var/run" || die +} + +pkg_postinst() { + fcaps_pkg_postinst + elog "To run as non-root, be sure to have rendezvous directory created" + elog "with either 'mkdir -m 01777 ${EROOT}/var/run/balance' or using tmpfiles." +} diff --git a/net-misc/balance/files/balance-3.57-Makefile.patch b/net-misc/balance/files/balance-3.57-Makefile.patch new file mode 100644 index 000000000000..fad7f1f13151 --- /dev/null +++ b/net-misc/balance/files/balance-3.57-Makefile.patch @@ -0,0 +1,52 @@ +--- balance-3.57/Makefile ++++ balance-3.57/Makefile +@@ -1,14 +1,14 @@ + # $Id: Makefile,v 1.14 2015/04/28 07:49:37 t Exp t $ + + #CFLAGS=-g -I. +-CFLAGS=-O2 -Wall -Wstrict-prototypes -Wuninitialized ++CFLAGS+=-Wall -Wstrict-prototypes -Wuninitialized + + # uncomment for any OS other than Cygwin + BALANCE=balance + ROOT=root + INSTALL=install + BINDIR=/usr/sbin +-MANDIR=${BINDIR}/../man/man1 ++MANDIR=/usr/share/man/man1 + + # uncomment for Solaris: + # LIBRARIES=-lsocket -lnsl +@@ -20,13 +20,13 @@ + # BALANCE=balance.exe + # ROOT=Administrators + +-CC=gcc ++CC?=gcc + RELEASE=3.57 + + all: balance + + balance: balance.o butils.o +- $(CC) $(CFLAGS) -I. -o balance balance.o butils.o $(LIBRARIES) ++ $(CC) $(CFLAGS) $(LDFLAGS) -I. -o balance balance.o butils.o $(LIBRARIES) + + balance.o: balance.c balance.h + $(CC) $(CFLAGS) -I. -c balance.c +@@ -48,12 +48,15 @@ + rm -f $(BALANCE) *.o balance.ps balance.pdf + + install: ++ $(INSTALL) -o $(ROOT) -g $(ROOT) -m 755 -d \ ++ $(DESTDIR)$(BINDIR) \ ++ $(DESTDIR)$(MANDIR) + $(INSTALL) -o $(ROOT) -g $(ROOT) -m 755 $(BALANCE) \ + $(DESTDIR)$(BINDIR)/$(BALANCE) + $(INSTALL) -o $(ROOT) -g $(ROOT) -m 755 balance.1 \ + $(DESTDIR)$(MANDIR) + mkdir -p $(DESTDIR)/var/run/balance +- chmod 1777 $(DESTDIR)/var/run/balance ++ chmod 1755 $(DESTDIR)/var/run/balance + + release: balance.pdf + rm -rf ./releases/balance-$(RELEASE) diff --git a/net-misc/balance/metadata.xml b/net-misc/balance/metadata.xml new file mode 100644 index 000000000000..9103896e5803 --- /dev/null +++ b/net-misc/balance/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <!-- maintainer-needed --> + <upstream> + <remote-id type="sourceforge">balance</remote-id> + </upstream> +</pkgmetadata> |
