]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/zcip/zcip-4/compile.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / zcip / zcip-4 / compile.patch
1
2 #
3 # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
4 #
5
6 --- zcip-4/Makefile~compile
7 +++ zcip-4/Makefile
8 @@ -5,21 +5,17 @@
9  CPPFLAGS=`libnet-config --cflags` `libnet-config --defines`
10  CFLAGS=-O2 -Wall -W -I/usr/local/contrib/include -I/usr/local/include/pcap
11  LDFLAGS=-L/usr/local/contrib/lib -L/usr/local/lib -static
12 -
13 -
14 +LIBS=-lpcap `libnet-config --libs`
15  OBJS=zcip.o
16  
17 -
18 -
19 -
20  all: zcip make-arp
21  
22  
23  make-arp: make-arp.o
24 -       $(CC) make-arp.o $(LDFLAGS) -o make-arp -lpcap `libnet-config --libs`
25 +       $(CC) make-arp.o $(LDFLAGS) -o make-arp $(LIBS)
26  
27  zcip: $(OBJS)
28 -       $(CC) -Wall -W $(OBJS) $(LDFLAGS) -o zcip -lpcap `libnet-config --libs`
29 +       $(CC) -Wall -W $(OBJS) $(LDFLAGS) -o zcip $(LIBS)
30  
31  
32  clean:
33 --- zcip-4/zcip.c~compile
34 +++ zcip-4/zcip.c
35 @@ -1204,14 +1204,14 @@
36  }
37  
38  void version(void) {
39 -    printf("zcip release " RELEASE "
40 -Copyright (C) 2001-2002 Various authors
41 -zcip comes with NO WARRANTY,
42 -to the extent permitted by law.
43 -You may redistribute copies of zcip
44 -under the terms of the 3-clause BSD license.
45 -For more information about these matters,
46 -see the file named Copyright.
47 +    printf("zcip release " RELEASE "\n\
48 +Copyright (C) 2001-2002 Various authors\n\
49 +zcip comes with NO WARRANTY,\n\
50 +to the extent permitted by law.\n\
51 +You may redistribute copies of zcip\n\
52 +under the terms of the 3-clause BSD license.\n\
53 +For more information about these matters,\n\
54 +see the file named Copyright.\n\
55  ");
56  
57      exit (0);
58 @@ -1219,19 +1219,19 @@
59  
60  
61  void usage(int exit_code) {
62 -    printf("usage: zcip [OPTIONS]
63 -Zeroconf IPv4 Link-Local Address Configuration
64 -OPTIONS:
65 -    -h, --help               Print this help, and exit.
66 -    -i, --interface IFNAME   Use interface IFNAME.
67 -                             If not provided it uses 'eth0'.
68 -    -r, --randseed           Seeds RNG with random # rather than MAC address.
69 -    -s, --syslog             Output to syslog instead of stdout.
70 -    -v, --version            Print the version information, and exit.
71 -
72 -This program does the ad-hoc link-local IPv4 auto-configuration trick, as
73 -described in the IETF Internet Draft 'Dynamic Configuration of IPv4
74 -Link-Local Addresses'.
75 +    printf("usage: zcip [OPTIONS]\n\
76 +Zeroconf IPv4 Link-Local Address Configuration\n\
77 +OPTIONS:\n\
78 +    -h, --help               Print this help, and exit.\n\
79 +    -i, --interface IFNAME   Use interface IFNAME.\n\
80 +                             If not provided it uses 'eth0'.\n\
81 +    -r, --randseed           Seeds RNG with random # rather than MAC address.\n\
82 +    -s, --syslog             Output to syslog instead of stdout.\n\
83 +    -v, --version            Print the version information, and exit.\n\
84 +\n\
85 +This program does the ad-hoc link-local IPv4 auto-configuration trick, as\n\
86 +described in the IETF Internet Draft 'Dynamic Configuration of IPv4\n\
87 +Link-Local Addresses'.\n\
88  ");
89  
90      exit (exit_code);
91 --- zcip-4/make-arp.c~compile
92 +++ zcip-4/make-arp.c
93 @@ -106,19 +106,19 @@
94  
95  
96  void usage(int exit_code) {
97 -    printf("
98 -make-arp -- sends arbitrary ARP Requests
99 -
100 -usage: make-arp [OPTIONS] [sea=SOURCE-EA] [sip=SOURCE-IP] tea=TARGET-EA tip=TARGET-IP
101 -
102 -OPTIONS:
103 -
104 -    -h          Print this help.
105 -
106 -
107 -Only ARP Requests for now.  In the Ethernet header, the source EA is
108 -mine and the target EA is the broadcast address FF:FF:FF:FF:FF:FF.
109 -
110 +    printf("\n\
111 +make-arp -- sends arbitrary ARP Requests\n\
112 +\n\
113 +usage: make-arp [OPTIONS] [sea=SOURCE-EA] [sip=SOURCE-IP] tea=TARGET-EA tip=TARGET-IP\n\
114 +\n\
115 +OPTIONS:\n\
116 +\n\
117 +    -h          Print this help.\n\
118 +\n\
119 +\n\
120 +Only ARP Requests for now.  In the Ethernet header, the source EA is\n\
121 +mine and the target EA is the broadcast address FF:FF:FF:FF:FF:FF.\n\
122 +\n\
123  ");
124  
125      exit (exit_code);