diff options
author | 2012-06-16 22:51:30 +0000 | |
---|---|---|
committer | 2012-06-16 22:51:30 +0000 | |
commit | 039c569b37e45a5d78177624e34e476ee275c035 (patch) | |
tree | 5a27bf71972506c9bb8c0a108803a64c07f63ec7 /net-misc/balance/files | |
parent | Removed broken 0.5.x, add fixes (diff) | |
download | gentoo-2-039c569b37e45a5d78177624e34e476ee275c035.tar.gz gentoo-2-039c569b37e45a5d78177624e34e476ee275c035.tar.bz2 gentoo-2-039c569b37e45a5d78177624e34e476ee275c035.zip |
Version bump (bug 365965, thanks CJ Kucera), respect LDFLAGS (bug 336958)
(Portage version: 2.1.10.65/cvs/Linux x86_64)
Diffstat (limited to 'net-misc/balance/files')
-rw-r--r-- | net-misc/balance/files/balance-3.54-Makefile.patch | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/net-misc/balance/files/balance-3.54-Makefile.patch b/net-misc/balance/files/balance-3.54-Makefile.patch new file mode 100644 index 000000000000..db378f97a777 --- /dev/null +++ b/net-misc/balance/files/balance-3.54-Makefile.patch @@ -0,0 +1,52 @@ +--- balance-3.54/Makefile ++++ balance-3.54/Makefile +@@ -1,14 +1,14 @@ + # $Id: balance-3.54-Makefile.patch,v 1.1 2012/06/16 22:51:30 xmw Exp $ + + #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.54 + + 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) |