upgrade the ixp4xx ethernet driver to v0.3.1, split the Gateway 7001 support to two...
[openwrt.git] / package / aodv-uu / patches / 001-normalize.patch
1 diff -urN aodv-uu-0.9.1/lnx/Makefile aodv-uu-0.9.1.new/lnx/Makefile
2 --- aodv-uu-0.9.1/lnx/Makefile 2005-03-17 22:37:59.000000000 +0100
3 +++ aodv-uu-0.9.1.new/lnx/Makefile 2006-07-25 15:46:02.000000000 +0200
4 @@ -30,7 +30,7 @@
5 KCFLAGS=-Wall -Wno-strict-aliasing -O2 $(KDEFS) $(KINC) $(XDEFS)
6 KCFLAGS_ARM=-Wall -O2 -D__KERNEL__ -DMODULE -nostdinc $(shell $(ARM_CC) -print-search-dirs | sed -ne 's/install: \(.*\)/-I \1include/gp') -I$(KERNEL_INC)
7 KCFLAGS_MIPS=-Wall -mips2 -O2 -fno-pic -mno-abicalls -mlong-calls -G0 -msoft-float -D__KERNEL__ -DMODULE -nostdinc $(shell $(MIPS_CC) -print-search-dirs | sed -ne 's/install: \(.*\)/-I \1include/gp') -I$(KERNEL_INC) $(XDEFS)
8 -
9 +endif
10 .PHONY: clean clean-2.4 clean-2.6 indent default
11
12 # Check for kernel version
13 @@ -87,5 +87,3 @@
14
15 indent:
16 indent -kr -i8 -ts8 -sob -l80 -ss -ncs *.c *.h
17 -endif
18 -
19 diff -urN aodv-uu-0.9.1/Makefile aodv-uu-0.9.1.new/Makefile
20 --- aodv-uu-0.9.1/Makefile 2006-07-25 15:03:49.000000000 +0200
21 +++ aodv-uu-0.9.1.new/Makefile 2006-07-25 15:03:59.000000000 +0200
22 @@ -87,7 +87,7 @@
23 mips: aodvd-mips kaodv-mips
24
25 endian.h:
26 - $(CC) $(CFLAGS) -o endian endian.c
27 + gcc -o endian endian.c
28 ./endian > endian.h
29
30 $(OBJS): %.o: %.c Makefile
31 @@ -138,19 +138,18 @@
32 @makedepend -Y./ -- $(DEFS) -- $(SRC) &>/dev/null
33 @makedepend -a -Y./ -- $(KDEFS) kaodv.c &>/dev/null
34
35 -install: default
36 - install -s -m 755 aodvd /usr/sbin/aodvd
37 - @if [ ! -d /lib/modules/$(KERNEL)/aodv ]; then \
38 - mkdir /lib/modules/$(KERNEL)/aodv; \
39 - fi
40 -
41 - @echo "Installing kernel module in /lib/modules/$(KERNEL)/aodv/";
42 - @if [ -f ./kaodv.ko ]; then \
43 - install -m 644 kaodv.ko /lib/modules/$(KERNEL)/aodv/kaodv.ko; \
44 - else \
45 - install -m 644 kaodv.o /lib/modules/$(KERNEL)/aodv/kaodv.o; \
46 - fi
47 - /sbin/depmod -a
48 +install: install-aodvd install-kaodv
49 +
50 +install-aodvd:
51 + @echo "Installing aodv in $(DESTDIR)/usr/sbin";
52 + install -d -m0755 $(DESTDIR)/usr/sbin/
53 + install -m0755 aodvd $(DESTDIR)/usr/sbin/aodvd
54 +
55 +install-kaodv:
56 + @echo "Installing kernel module in $(DESTDIR)/lib/modules/$(KERNEL)/";
57 + install -d -m0644 $(DESTDIR)/lib/modules/$(KERNEL)/
58 + install -m 644 lnx/kaodv.$(KMOD_SUFFIX) $(DESTDIR)/lib/modules/$(KERNEL)/kaodv.$(KMOD_SUFFIX);
59 +
60 uninstall:
61 rm -f /usr/sbin/aodvd
62 rm -rf /lib/modules/$(KERNEL)/aodv
This page took 0.044963 seconds and 5 git commands to generate.