diff options
author | Michael Weber <xmw@gentoo.org> | 2017-01-25 16:39:49 +0100 |
---|---|---|
committer | Michael Weber <xmw@gentoo.org> | 2017-01-25 17:11:29 +0100 |
commit | 3e1e1b2b75ac030a0d77a617a77a0a8778b4bd6f (patch) | |
tree | b4569c9bbf89d75640e2a75127f3cde98ba59b19 /net-misc/balance | |
parent | dev-util/fatrace: Version bump. (diff) | |
download | gentoo-3e1e1b2b75ac030a0d77a617a77a0a8778b4bd6f.tar.gz gentoo-3e1e1b2b75ac030a0d77a617a77a0a8778b4bd6f.tar.bz2 gentoo-3e1e1b2b75ac030a0d77a617a77a0a8778b4bd6f.zip |
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
Diffstat (limited to 'net-misc/balance')
-rw-r--r-- | net-misc/balance/Manifest | 1 | ||||
-rw-r--r-- | net-misc/balance/balance-3.57.ebuild | 34 | ||||
-rw-r--r-- | net-misc/balance/files/balance-3.57-Makefile.patch | 52 |
3 files changed, 87 insertions, 0 deletions
diff --git a/net-misc/balance/Manifest b/net-misc/balance/Manifest index 1558ce12cc14..e6fbdfdf580c 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 000000000000..cd120799b0fc --- /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 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) |