| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | $NetBSD: patch-Makefile,v 1.1 2012/08/25 10:59:50 christos Exp $ | | 1 | $NetBSD: patch-Makefile,v 1.2 2012/08/25 11:10:19 christos Exp $ |
2 | | | 2 | |
3 | --- Makefile 2012-08-25 13:45:59.000000000 +0300 | | 3 | --- Makefile 2012-08-25 13:45:59.000000000 +0300 |
4 | +++ Makefile 2012-08-25 13:10:09.000000000 +0300 | | 4 | +++ Makefile 2012-08-25 13:10:09.000000000 +0300 |
5 | @@ -17,7 +17,7 @@ | | 5 | @@ -17,7 +17,7 @@ |
6 | .PHONY: all files get test test-services test-protocols install clean \ | | 6 | .PHONY: all files get test test-services test-protocols install clean \ |
7 | protocol-numbers.iana port-numbers.iana dist | | 7 | protocol-numbers.iana port-numbers.iana dist |
8 | | | 8 | |
9 | -all: files | | 9 | -all: files |
10 | +all: get files | | 10 | +all: get files |
11 | files: protocols services | | 11 | files: protocols services |
12 | | | 12 | |
13 | get: protocol-numbers.iana port-numbers.iana | | 13 | get: protocol-numbers.iana port-numbers.iana |
14 | @@ -30,10 +30,10 @@ | | 14 | @@ -30,10 +30,10 @@ |
| @@ -16,27 +16,50 @@ $NetBSD: patch-Makefile,v 1.1 2012/08/25 | | | @@ -16,27 +16,50 @@ $NetBSD: patch-Makefile,v 1.1 2012/08/25 |
16 | $(AWK) -f test-lib.gawk -f test-protocols.gawk <protocols | | 16 | $(AWK) -f test-lib.gawk -f test-protocols.gawk <protocols |
17 | | | 17 | |
18 | -install: files | | 18 | -install: files |
19 | - install -d $(DESTDIR)$(PREFIX)$(ETC_DIR) | | 19 | - install -d $(DESTDIR)$(PREFIX)$(ETC_DIR) |
20 | - install -m 644 protocols $(DESTDIR)$(PREFIX)$(ETC_DIR) | | 20 | - install -m 644 protocols $(DESTDIR)$(PREFIX)$(ETC_DIR) |
21 | - install -m 644 services $(DESTDIR)$(PREFIX)$(ETC_DIR) | | 21 | - install -m 644 services $(DESTDIR)$(PREFIX)$(ETC_DIR) |
22 | +#install: files | | 22 | +#install: files |
23 | +# install -d $(DESTDIR)$(PREFIX)$(ETC_DIR) | | 23 | +# install -d $(DESTDIR)$(PREFIX)$(ETC_DIR) |
24 | +# install -m 644 protocols $(DESTDIR)$(PREFIX)$(ETC_DIR) | | 24 | +# install -m 644 protocols $(DESTDIR)$(PREFIX)$(ETC_DIR) |
25 | +# install -m 644 services $(DESTDIR)$(PREFIX)$(ETC_DIR) | | 25 | +# install -m 644 services $(DESTDIR)$(PREFIX)$(ETC_DIR) |
26 | | | 26 | |
27 | clean: | | 27 | clean: |
28 | rm -vf \ | | 28 | rm -vf \ |
29 | @@ -42,11 +42,11 @@ | | 29 | @@ -42,26 +42,26 @@ |
30 | protocol-numbers.iana port-numbers.iana | | 30 | protocol-numbers.iana port-numbers.iana |
31 | | | 31 | |
32 | protocol-numbers.iana: | | 32 | protocol-numbers.iana: |
33 | - $(AWK) -f get.gawk -v file=protocol-numbers >protocol-numbers.iana | | 33 | - $(AWK) -f get.gawk -v file=protocol-numbers >protocol-numbers.iana |
34 | + $(AWK) -f get.gawk -v url=protocol-numbers file=protocol-numbers >protocol-numbers.iana | | 34 | + $(AWK) -f get.gawk -v url=protocol-numbers file=protocol-numbers >protocol-numbers.iana |
35 | rm -f protocol-numbers | | 35 | rm -f protocol-numbers |
36 | | | 36 | |
37 | port-numbers.iana: | | 37 | port-numbers.iana: |
38 | - $(AWK) -f get.gawk -v file=port-numbers >port-numbers.iana | | 38 | - $(AWK) -f get.gawk -v file=port-numbers >port-numbers.iana |
39 | + $(AWK) -f get.gawk -v url=service-names-port-numbers file=port-numbers >port-numbers.iana | | 39 | + $(AWK) -f get.gawk -v url=service-names-port-numbers file=port-numbers >port-numbers.iana |
40 | rm -f port-numbers | | 40 | rm -f port-numbers |
41 | | | 41 | |
42 | protocol-numbers: | | 42 | protocol-numbers: |
| | | 43 | -ifeq (protocol-numbers.iana, $(wildcard protocol-numbers.iana)) |
| | | 44 | +#ifeq (protocol-numbers.iana, $(wildcard protocol-numbers.iana)) |
| | | 45 | ln -f -s protocol-numbers.iana protocol-numbers |
| | | 46 | -else |
| | | 47 | - ln -f -s protocol-numbers.dist protocol-numbers |
| | | 48 | -endif |
| | | 49 | +#else |
| | | 50 | +# ln -f -s protocol-numbers.dist protocol-numbers |
| | | 51 | +#endif |
| | | 52 | |
| | | 53 | port-numbers: |
| | | 54 | -ifeq (port-numbers.iana, $(wildcard port-numbers.iana)) |
| | | 55 | +#ifeq (port-numbers.iana, $(wildcard port-numbers.iana)) |
| | | 56 | ln -f -s port-numbers.iana port-numbers |
| | | 57 | -else |
| | | 58 | - ln -f -s port-numbers.dist port-numbers |
| | | 59 | -endif |
| | | 60 | +#else |
| | | 61 | +# ln -f -s port-numbers.dist port-numbers |
| | | 62 | +#endif |
| | | 63 | |
| | | 64 | protocols: protocol-numbers protocols.gawk |
| | | 65 | $(AWK) --re-interval -f protocols.gawk -v strip=$(STRIP) \ |