1 |
commit: 3e1e1b2b75ac030a0d77a617a77a0a8778b4bd6f |
2 |
Author: Michael Weber <xmw <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jan 25 15:39:49 2017 +0000 |
4 |
Commit: Michael Weber <xmw <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jan 25 16:11:29 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e1e1b2b |
7 |
|
8 |
net-misc/balance: Version bump, drop USE=doc (no need to install pdf version of manpage). |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
|
12 |
net-misc/balance/Manifest | 1 + |
13 |
net-misc/balance/balance-3.57.ebuild | 34 ++++++++++++++ |
14 |
net-misc/balance/files/balance-3.57-Makefile.patch | 52 ++++++++++++++++++++++ |
15 |
3 files changed, 87 insertions(+) |
16 |
|
17 |
diff --git a/net-misc/balance/Manifest b/net-misc/balance/Manifest |
18 |
index 1558ce1..e6fbdfd 100644 |
19 |
--- a/net-misc/balance/Manifest |
20 |
+++ b/net-misc/balance/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST balance-3.54.tar.gz 35166 SHA256 170b1a5dd60a566a785b72afde42a349e20fe01f53263db1279f71ef188efe45 SHA512 addddc3f76b3f85fc56ea2a8139660405d2ece43a087e20e9d57db1c0bdbbf4bd34f94c8e42936e9291c0462b3f0abae0ed97fec48540de730afd3c9898fb79d WHIRLPOOL ff4dff4c1548c2276077f2bd83d82cc64bf19feae3d48b835b48c131f5a605afdf0903459185668251328960e1a96fc644e5dbdde3a70063bdca78fc6ba5fb65 |
23 |
+DIST balance-3.57.tar.gz 35547 SHA256 b355f98932a9f4c9786cb61012e8bdf913c79044434b7d9621e2fa08370afbe1 SHA512 191195e2aa62c867d85085f273db911e8957c3eea7bed8e58abc29e125a0b0a4487048c7db5857e32f54545de1f81f8148b174225aaf8cf1e3a66e4b040748b4 WHIRLPOOL 7fac226f9829f5ded949d7b42c34338cf5cdc487e41d04d63b48cc35b019406d5c34db39079405ac188d47eddfae8166115ae7e679f4127e077e0871b1638d37 |
24 |
|
25 |
diff --git a/net-misc/balance/balance-3.57.ebuild b/net-misc/balance/balance-3.57.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000..cd12079 |
28 |
--- /dev/null |
29 |
+++ b/net-misc/balance/balance-3.57.ebuild |
30 |
@@ -0,0 +1,34 @@ |
31 |
+# Copyright 1999-2017 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+# $Id$ |
34 |
+ |
35 |
+EAPI=6 |
36 |
+ |
37 |
+inherit toolchain-funcs |
38 |
+ |
39 |
+DESCRIPTION="TCP Load Balancing Port Forwarder" |
40 |
+HOMEPAGE="http://www.inlab.de/balance.html" |
41 |
+SRC_URI="http://www.inlab.de/${P}.tar.gz" |
42 |
+ |
43 |
+LICENSE="GPL-2" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~amd64 ~ppc ~x86" |
46 |
+IUSE="" |
47 |
+ |
48 |
+DEPEND="" |
49 |
+RDEPEND="" |
50 |
+ |
51 |
+PATCHES=( "${FILESDIR}"/${P}-Makefile.patch ) |
52 |
+ |
53 |
+src_prepare() { |
54 |
+ default |
55 |
+ |
56 |
+ tc-export CC |
57 |
+} |
58 |
+ |
59 |
+src_install() { |
60 |
+ default |
61 |
+ |
62 |
+ #autocreated on program start, if missing |
63 |
+ rmdir "${D}"/var/run/${PN} |
64 |
+} |
65 |
|
66 |
diff --git a/net-misc/balance/files/balance-3.57-Makefile.patch b/net-misc/balance/files/balance-3.57-Makefile.patch |
67 |
new file mode 100644 |
68 |
index 00000000..fad7f1f |
69 |
--- /dev/null |
70 |
+++ b/net-misc/balance/files/balance-3.57-Makefile.patch |
71 |
@@ -0,0 +1,52 @@ |
72 |
+--- balance-3.57/Makefile |
73 |
++++ balance-3.57/Makefile |
74 |
+@@ -1,14 +1,14 @@ |
75 |
+ # $Id: Makefile,v 1.14 2015/04/28 07:49:37 t Exp t $ |
76 |
+ |
77 |
+ #CFLAGS=-g -I. |
78 |
+-CFLAGS=-O2 -Wall -Wstrict-prototypes -Wuninitialized |
79 |
++CFLAGS+=-Wall -Wstrict-prototypes -Wuninitialized |
80 |
+ |
81 |
+ # uncomment for any OS other than Cygwin |
82 |
+ BALANCE=balance |
83 |
+ ROOT=root |
84 |
+ INSTALL=install |
85 |
+ BINDIR=/usr/sbin |
86 |
+-MANDIR=${BINDIR}/../man/man1 |
87 |
++MANDIR=/usr/share/man/man1 |
88 |
+ |
89 |
+ # uncomment for Solaris: |
90 |
+ # LIBRARIES=-lsocket -lnsl |
91 |
+@@ -20,13 +20,13 @@ |
92 |
+ # BALANCE=balance.exe |
93 |
+ # ROOT=Administrators |
94 |
+ |
95 |
+-CC=gcc |
96 |
++CC?=gcc |
97 |
+ RELEASE=3.57 |
98 |
+ |
99 |
+ all: balance |
100 |
+ |
101 |
+ balance: balance.o butils.o |
102 |
+- $(CC) $(CFLAGS) -I. -o balance balance.o butils.o $(LIBRARIES) |
103 |
++ $(CC) $(CFLAGS) $(LDFLAGS) -I. -o balance balance.o butils.o $(LIBRARIES) |
104 |
+ |
105 |
+ balance.o: balance.c balance.h |
106 |
+ $(CC) $(CFLAGS) -I. -c balance.c |
107 |
+@@ -48,12 +48,15 @@ |
108 |
+ rm -f $(BALANCE) *.o balance.ps balance.pdf |
109 |
+ |
110 |
+ install: |
111 |
++ $(INSTALL) -o $(ROOT) -g $(ROOT) -m 755 -d \ |
112 |
++ $(DESTDIR)$(BINDIR) \ |
113 |
++ $(DESTDIR)$(MANDIR) |
114 |
+ $(INSTALL) -o $(ROOT) -g $(ROOT) -m 755 $(BALANCE) \ |
115 |
+ $(DESTDIR)$(BINDIR)/$(BALANCE) |
116 |
+ $(INSTALL) -o $(ROOT) -g $(ROOT) -m 755 balance.1 \ |
117 |
+ $(DESTDIR)$(MANDIR) |
118 |
+ mkdir -p $(DESTDIR)/var/run/balance |
119 |
+- chmod 1777 $(DESTDIR)/var/run/balance |
120 |
++ chmod 1755 $(DESTDIR)/var/run/balance |
121 |
+ |
122 |
+ release: balance.pdf |
123 |
+ rm -rf ./releases/balance-$(RELEASE) |