public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: net-misc/balance/
@ 2022-02-26  2:43 Sam James
  0 siblings, 0 replies; 5+ messages in thread
From: Sam James @ 2022-02-26  2:43 UTC (permalink / raw
  To: gentoo-commits

commit:     80d5d4f48c0f6a6810a6e823e54aa0ec2c62cca1
Author:     Eugene Glorg <eugene <AT> railglorg <DOT> net>
AuthorDate: Wed Feb 23 19:41:55 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Feb 26 02:36:27 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=80d5d4f4

net-misc/balance: add net_bind_service capability

This changes binary capabilities and allows binding
to privileged ports for non-root

Signed-off-by: Eugene Glorg <glorg <AT> railglorg.net>
Closes: https://github.com/gentoo/gentoo/pull/24325
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-misc/balance/balance-3.57-r1.ebuild | 43 +++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

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..b988c64b8a44
--- /dev/null
+++ b/net-misc/balance/balance-3.57-r1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit fcaps toolchain-funcs
+
+DESCRIPTION="TCP Load Balancing Port Forwarder"
+HOMEPAGE="http://www.inlab.de/balance.html"
+SRC_URI="http://www.inlab.de/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+PATCHES=( "${FILESDIR}"/${P}-Makefile.patch )
+
+FILECAPS=(
+	'CAP_NET_BIND_SERVICE' '/usr/sbin/balance'
+)
+
+src_prepare() {
+	default
+
+	tc-export CC
+}
+
+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 /var/run/balance' or using tmpfiles."
+}


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: net-misc/balance/
@ 2022-02-26  2:43 Sam James
  0 siblings, 0 replies; 5+ messages in thread
From: Sam James @ 2022-02-26  2:43 UTC (permalink / raw
  To: gentoo-commits

commit:     052d7331d758dacff62ec6f33f051c361598c193
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 26 02:37:55 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Feb 26 02:37:55 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=052d7331

net-misc/balance: modernise ebuild a bit

- Drop unnecessary declarations
- Make path for fcaps relative
- ${EROOT} prefix for path in pkg_postinst

Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-misc/balance/balance-3.57-r1.ebuild | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/net-misc/balance/balance-3.57-r1.ebuild b/net-misc/balance/balance-3.57-r1.ebuild
index b988c64b8a44..bfbf74ec2a13 100644
--- a/net-misc/balance/balance-3.57-r1.ebuild
+++ b/net-misc/balance/balance-3.57-r1.ebuild
@@ -12,15 +12,11 @@ SRC_URI="http://www.inlab.de/${P}.tar.gz"
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~amd64 ~ppc ~x86"
-IUSE=""
-
-DEPEND=""
-RDEPEND=""
 
 PATCHES=( "${FILESDIR}"/${P}-Makefile.patch )
 
 FILECAPS=(
-	'CAP_NET_BIND_SERVICE' '/usr/sbin/balance'
+	CAP_NET_BIND_SERVICE usr/sbin/balance
 )
 
 src_prepare() {
@@ -32,12 +28,12 @@ src_prepare() {
 src_install() {
 	default
 
-	#autocreated on program start, if missing
+	# 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 /var/run/balance' or using tmpfiles."
+	elog "with either 'mkdir -m 01777 ${EROOT}/var/run/balance' or using tmpfiles."
 }


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: net-misc/balance/
@ 2023-03-02 16:40 Joonas Niilola
  0 siblings, 0 replies; 5+ messages in thread
From: Joonas Niilola @ 2023-03-02 16:40 UTC (permalink / raw
  To: gentoo-commits

commit:     7a8e7257667c1101e91c30615d2c38005ba34c13
Author:     Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at>
AuthorDate: Fri Feb 24 17:42:46 2023 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Thu Mar  2 16:39:58 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a8e7257

net-misc/balance: update HOMEPAGE, SRC_URI

Signed-off-by: Michael Mair-Keimberger <mmk <AT> levelnine.at>
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 net-misc/balance/Manifest               | 2 +-
 net-misc/balance/balance-3.57-r1.ebuild | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/net-misc/balance/Manifest b/net-misc/balance/Manifest
index a93c9ec353e8..4071aa72291f 100644
--- a/net-misc/balance/Manifest
+++ b/net-misc/balance/Manifest
@@ -1 +1 @@
-DIST balance-3.57.tar.gz 35547 BLAKE2B 293861bdfbeb7d768c9ccc2e6373cee6000c1b048eed6d741b3e340382db15c5b012e228af47632cf6aed439caf200b62258dab9d0f4a6e64de0c299bd0588d4 SHA512 191195e2aa62c867d85085f273db911e8957c3eea7bed8e58abc29e125a0b0a4487048c7db5857e32f54545de1f81f8148b174225aaf8cf1e3a66e4b040748b4
+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
index bfbf74ec2a13..1dbfe6c842cd 100644
--- a/net-misc/balance/balance-3.57-r1.ebuild
+++ b/net-misc/balance/balance-3.57-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -6,8 +6,8 @@ EAPI=8
 inherit fcaps toolchain-funcs
 
 DESCRIPTION="TCP Load Balancing Port Forwarder"
-HOMEPAGE="http://www.inlab.de/balance.html"
-SRC_URI="http://www.inlab.de/${P}.tar.gz"
+HOMEPAGE="https://balance.inlab.net"
+SRC_URI="https://download.inlab.net/Balance/${PV}/${P}.tar"
 
 LICENSE="GPL-2"
 SLOT="0"


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: net-misc/balance/
@ 2024-03-26 12:31 Sam James
  0 siblings, 0 replies; 5+ messages in thread
From: Sam James @ 2024-03-26 12:31 UTC (permalink / raw
  To: gentoo-commits

commit:     6c84f19ae6698cf33563d01f3a2ad1b7385dcabf
Author:     Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Tue Mar 26 00:46:29 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Mar 26 12:27:28 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c84f19a

net-misc/balance: add sourceforge upstream metadata

Signed-off-by: Eli Schwartz <eschwartz93 <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-misc/balance/metadata.xml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/net-misc/balance/metadata.xml b/net-misc/balance/metadata.xml
index 115e9d64a669..9103896e5803 100644
--- a/net-misc/balance/metadata.xml
+++ b/net-misc/balance/metadata.xml
@@ -2,4 +2,7 @@
 <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
 	<!-- maintainer-needed -->
+	<upstream>
+		<remote-id type="sourceforge">balance</remote-id>
+	</upstream>
 </pkgmetadata>


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: net-misc/balance/
@ 2024-03-26 12:31 Sam James
  0 siblings, 0 replies; 5+ messages in thread
From: Sam James @ 2024-03-26 12:31 UTC (permalink / raw
  To: gentoo-commits

commit:     26fb9efcd488243df5865d10492fec95958622c7
Author:     Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Tue Mar 26 00:44:12 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Mar 26 12:27:27 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=26fb9efc

net-misc/balance: mark as LTO-unsafe, strict-aliasing unsafe

Closes: https://bugs.gentoo.org/861599
Signed-off-by: Eli Schwartz <eschwartz93 <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-misc/balance/balance-3.57-r1.ebuild | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)

diff --git a/net-misc/balance/balance-3.57-r1.ebuild b/net-misc/balance/balance-3.57-r1.ebuild
index 1dbfe6c842cd..b432ff4b7e02 100644
--- a/net-misc/balance/balance-3.57-r1.ebuild
+++ b/net-misc/balance/balance-3.57-r1.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
-inherit fcaps toolchain-funcs
+inherit fcaps flag-o-matic toolchain-funcs
 
 DESCRIPTION="TCP Load Balancing Port Forwarder"
 HOMEPAGE="https://balance.inlab.net"
@@ -25,6 +25,18 @@ src_prepare() {
 	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
 


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-03-26 12:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-26  2:43 [gentoo-commits] repo/gentoo:master commit in: net-misc/balance/ Sam James
  -- strict thread matches above, loose matches on Subject: below --
2024-03-26 12:31 Sam James
2024-03-26 12:31 Sam James
2023-03-02 16:40 Joonas Niilola
2022-02-26  2:43 Sam James

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox