summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaleb Tennis <caleb@gentoo.org>2008-08-15 21:24:35 +0000
committerCaleb Tennis <caleb@gentoo.org>2008-08-15 21:24:35 +0000
commit71223b3f63862d6858173aa38aab13bb5a6b8c4c (patch)
treefcba7243e7fbcc2a68b48aca347069b20dd3de7e /app-misc/beanstalkd/files/Makefile.install.patch
parentamd64/x86 stable, bug #234308 (diff)
downloadgentoo-2-71223b3f63862d6858173aa38aab13bb5a6b8c4c.tar.gz
gentoo-2-71223b3f63862d6858173aa38aab13bb5a6b8c4c.tar.bz2
gentoo-2-71223b3f63862d6858173aa38aab13bb5a6b8c4c.zip
initial import, based on bug 208963
(Portage version: 2.2_rc8/cvs/Linux 2.6.21-gentoo-r1 i686)
Diffstat (limited to 'app-misc/beanstalkd/files/Makefile.install.patch')
-rw-r--r--app-misc/beanstalkd/files/Makefile.install.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/app-misc/beanstalkd/files/Makefile.install.patch b/app-misc/beanstalkd/files/Makefile.install.patch
new file mode 100644
index 000000000000..c95112e1a619
--- /dev/null
+++ b/app-misc/beanstalkd/files/Makefile.install.patch
@@ -0,0 +1,21 @@
+--- Makefile 2008-02-05 17:02:37.000000000 +1300
++++ Makefile.install 2008-02-05 17:03:27.000000000 +1300
+@@ -1,6 +1,7 @@
+ program := beanstalkd
+ export CFLAGS := $(LDFLAGS) -Wall -Werror
+ export LDFLAGS := $(LDFLAGS) -levent
++export BINDIR := $(DESTDIR)/usr/bin
+
+ sources := $(shell ls *.c | fgrep -v $(program))
+ objects := $(sources:.c=.o)
+@@ -9,6 +10,10 @@
+ all: export CFLAGS := $(CFLAGS) -O2
+ all: $(program)
+
++install: all
++ mkdir -p "$(BINDIR)"
++ install $(program) "$(BINDIR)"
++
+ debug: export CFLAGS := $(CFLAGS) -g -pg -DDEBUG
+ debug: export LDFLAGS := $(LDFLAGS) -pg
+ debug: $(program)