net-misc/balance: Version bump, drop USE=doc (no need to install pdf version of manpage).
authorMichael Weber <xmw@gentoo.org>
Wed, 25 Jan 2017 15:39:49 +0000 (16:39 +0100)
committerMichael Weber <xmw@gentoo.org>
Wed, 25 Jan 2017 16:11:29 +0000 (17:11 +0100)
Package-Manager: Portage-2.3.3, Repoman-2.3.1

net-misc/balance/Manifest
net-misc/balance/balance-3.57.ebuild [new file with mode: 0644]
net-misc/balance/files/balance-3.57-Makefile.patch [new file with mode: 0644]

index 1558ce12cc1423d906c76461d1670150f1bd9d91..e6fbdfdf580c96f14fe7fe2aec773566045f1a32 100644 (file)
@@ -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 (file)
index 0000000..cd12079
--- /dev/null
@@ -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 (file)
index 0000000..fad7f1f
--- /dev/null
@@ -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)