commit:     3e1e1b2b75ac030a0d77a617a77a0a8778b4bd6f
Author:     Michael Weber <xmw <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 25 15:39:49 2017 +0000
Commit:     Michael Weber <xmw <AT> gentoo <DOT> org>
CommitDate: Wed Jan 25 16:11:29 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e1e1b2b

net-misc/balance: Version bump, drop USE=doc (no need to install pdf version of 
manpage).

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 net-misc/balance/Manifest                          |  1 +
 net-misc/balance/balance-3.57.ebuild               | 34 ++++++++++++++
 net-misc/balance/files/balance-3.57-Makefile.patch | 52 ++++++++++++++++++++++
 3 files changed, 87 insertions(+)

diff --git a/net-misc/balance/Manifest b/net-misc/balance/Manifest
index 1558ce1..e6fbdfd 100644
--- a/net-misc/balance/Manifest
+++ b/net-misc/balance/Manifest
@@ -1 +1,2 @@
 DIST balance-3.54.tar.gz 35166 SHA256 
170b1a5dd60a566a785b72afde42a349e20fe01f53263db1279f71ef188efe45 SHA512 
addddc3f76b3f85fc56ea2a8139660405d2ece43a087e20e9d57db1c0bdbbf4bd34f94c8e42936e9291c0462b3f0abae0ed97fec48540de730afd3c9898fb79d
 WHIRLPOOL 
ff4dff4c1548c2276077f2bd83d82cc64bf19feae3d48b835b48c131f5a605afdf0903459185668251328960e1a96fc644e5dbdde3a70063bdca78fc6ba5fb65
+DIST balance-3.57.tar.gz 35547 SHA256 
b355f98932a9f4c9786cb61012e8bdf913c79044434b7d9621e2fa08370afbe1 SHA512 
191195e2aa62c867d85085f273db911e8957c3eea7bed8e58abc29e125a0b0a4487048c7db5857e32f54545de1f81f8148b174225aaf8cf1e3a66e4b040748b4
 WHIRLPOOL 
7fac226f9829f5ded949d7b42c34338cf5cdc487e41d04d63b48cc35b019406d5c34db39079405ac188d47eddfae8166115ae7e679f4127e077e0871b1638d37

diff --git a/net-misc/balance/balance-3.57.ebuild 
b/net-misc/balance/balance-3.57.ebuild
new file mode 100644
index 00000000..cd12079
--- /dev/null
+++ b/net-misc/balance/balance-3.57.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit 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 )
+
+src_prepare() {
+       default
+
+       tc-export CC
+}
+
+src_install() {
+       default
+
+       #autocreated on program start, if missing
+       rmdir "${D}"/var/run/${PN}
+}

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 00000000..fad7f1f
--- /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)

Reply via email to