Update bridge utils to latest version
[gumsense-br.git] / package / portmap / portmap-01-5beta.patch
blob7681822f9bf40dd5596f96cae66b37653873b8ed
1 --- p/from_local.c
2 +++ p/from_local.c 2000/02/28 15:10:25
3 @@ -46,6 +46,7 @@
4 #include <sys/types.h>
5 #include <sys/socket.h>
6 #include <stdio.h>
7 +#include <stdlib.h>
8 #include <netdb.h>
9 #include <netinet/in.h>
10 #include <net/if.h>
11 --- p/Makefile
12 +++ p/Makefile 2000/02/28 15:10:25
13 @@ -8,7 +8,7 @@
14 # if you disagree. See `man 3 syslog' for examples. Some syslog versions
15 # do not provide this flexibility.
17 -FACILITY=LOG_MAIL
18 +FACILITY=LOG_AUTH
20 # To disable tcp-wrapper style access control, comment out the following
21 # macro definitions. Access control can also be turned off by providing
22 @@ -71,7 +71,7 @@
23 # With verbose logging on, HP-UX 9.x and AIX 4.1 leave zombies behind when
24 # SIGCHLD is not ignored. Enable next macro for a fix.
26 -# ZOMBIES = -DIGNORE_SIGCHLD # AIX 4.x, HP-UX 9.x
27 +ZOMBIES = -DIGNORE_SIGCHLD # AIX 4.x, HP-UX 9.x
29 # Uncomment the following macro if your system does not have u_long.
31 @@ -81,11 +81,15 @@
32 # libwrap.a object library. WRAP_DIR should specify the directory with
33 # that library.
35 -WRAP_DIR= ../tcp_wrappers
36 +WRAP_DIR= /usr/lib
38 # Auxiliary object files that may be missing from your C library.
40 -AUX = daemon.o strerror.o
41 +AUX = # daemon.o strerror.o
43 +LIBS = -lwrap -lutil
44 +NSARCHS =
45 +O = -Wall -O2 -pipe
47 # NEXTSTEP is a little different. The following seems to work with NS 3.2
49 @@ -99,7 +103,7 @@
51 # Comment out if your compiler talks ANSI and understands const
53 -CONST = -Dconst=
54 +#CONST = -Dconst=
56 ### End of configurable stuff.
57 ##############################
58 @@ -109,7 +113,7 @@
59 COPT = $(CONST) -Dperror=xperror $(HOSTS_ACCESS) $(CHECK_PORT) \
60 $(SYS) -DFACILITY=$(FACILITY) $(ULONG) $(ZOMBIES) $(SA_LEN) \
61 $(LOOPBACK) $(SETPGRP)
62 -CFLAGS = $(COPT) -O $(NSARCHS)
63 +CFLAGS = $(COPT) $(O) $(NSARCHS)
64 OBJECTS = portmap.o pmap_check.o from_local.o $(AUX)
66 all: portmap pmap_dump pmap_set
67 --- p/portmap.c
68 +++ p/portmap.c 2000/02/28 15:10:25
69 @@ -182,9 +182,8 @@
70 exit(1);
73 -#ifdef LOG_MAIL
74 - openlog("portmap", debugging ? LOG_PID | LOG_PERROR : LOG_PID,
75 - FACILITY);
76 +#ifdef FACILITY
77 + openlog("portmap", debugging ? LOG_PID | LOG_PERROR : LOG_PID, FACILITY);
78 #else
79 openlog("portmap", debugging ? LOG_PID | LOG_PERROR : LOG_PID);
80 #endif