Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-commits
Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-commits@g.o
From: "Michael Weber (xmw)" <xmw@g.o>
Subject: gentoo-x86 commit in net-misc/balance/files: balance-3.54-Makefile.patch
Date: Sat, 16 Jun 2012 22:51:30 +0000 (UTC)
xmw         12/06/16 22:51:30

  Added:                balance-3.54-Makefile.patch
  Log:
  Version bump (bug 365965, thanks CJ Kucera), respect LDFLAGS (bug 336958)
  
  (Portage version: 2.1.10.65/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  net-misc/balance/files/balance-3.54-Makefile.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/balance/files/balance-3.54-Makefile.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/balance/files/balance-3.54-Makefile.patch?rev=1.1&content-type=text/plain

Index: balance-3.54-Makefile.patch
===================================================================
--- 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)





Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
gentoo-x86 commit in net-p2p/bitcoin-qt: bitcoin-qt-0.6.0.8_rc2.ebuild ChangeLog bitcoin-qt-0.5.6_rc2.ebuild bitcoin-qt-0.5.6_rc1.ebuild
Next by thread:
gentoo-x86 commit in net-misc/balance: balance-3.54.ebuild ChangeLog
Previous by date:
gentoo-x86 commit in net-p2p/bitcoin-qt: bitcoin-qt-0.6.0.8_rc2.ebuild ChangeLog bitcoin-qt-0.5.6_rc2.ebuild bitcoin-qt-0.5.6_rc1.ebuild
Next by date:
gentoo-x86 commit in net-misc/balance: balance-3.54.ebuild ChangeLog


Updated Jun 26, 2012

Summary: Archive of the gentoo-commits mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.