summaryrefslogtreecommitdiff
path: root/net/ucd-snmp/patches/patch-ab
blob: 1f3d11ff063e4907ad3bc9709beb7a69c1bec788 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
$NetBSD: patch-ab,v 1.6 2000/12/15 18:46:50 hubertf Exp $

--- snmplib/Makefile.in.orig	Fri Feb  4 22:15:42 2000
+++ snmplib/Makefile.in
@@ -34,30 +34,34 @@
 	system.c vacm.c int64.c read_config.c 			\
 	snmp_debug.c tools.c  snmp_logging.c			\
 	snmpv3.c snmpusm.c lcd_time.c keytools.c		\
-	scapi.c callback.c default_store.c snmp_alarm.c	mt_support.c
+	scapi.c callback.c default_store.c snmp_alarm.c	mt_support.c \
+	libwrap.c
 
 OBJS=	snmp_client.o mib.o parse.o snmp_api.o snmp.o 		\
 	snmp_auth.o asn1.o md5.o 				\
 	system.o vacm.o int64.o read_config.o 			\
 	snmp_debug.o tools.o  snmp_logging.o			\
 	snmpv3.o snmpusm.o lcd_time.o keytools.o		\
-	scapi.o callback.o default_store.o snmp_alarm.o	mt_support.o
+	scapi.o callback.o default_store.o snmp_alarm.o	mt_support.o \
+	libwrap.o
 
 CFLAGS	 = @CFLAGS@ @SHLIB_CFLAGS@
 CPPFLAGS = -I. -I.. -I$(srcdir) -I$(srcdir)/.. @CPPFLAGS@
-CC	 = @CC@ $(CPPFLAGS)
+CC	 = $(LIBTOOL) @CC@ $(CPPFLAGS)
 
 all: $(TARG)
 
-libsnmp.$(SHLIB_EXTENSION)$(SHLIB_VERSION):    ${OBJS}
-	$(SHLIB_LD_CMD) libsnmp.$(SHLIB_EXTENSION)$(SHLIB_VERSION) ${OBJS}
-	$(RANLIB) libsnmp.$(SHLIB_EXTENSION)$(SHLIB_VERSION)
+$(TARG): $(OBJS)
+	$(CC) -o $@ $(OBJS:.o=.lo) -version-info 0:0 -rpath $(PREFIX)/lib -lcrypto
+#libsnmp.$(SHLIB_EXTENSION)$(SHLIB_VERSION):    ${OBJS}
+#	$(SHLIB_LD_CMD) libsnmp.$(SHLIB_EXTENSION)$(SHLIB_VERSION) ${OBJS}
+#	$(RANLIB) libsnmp.$(SHLIB_EXTENSION)$(SHLIB_VERSION)
 
 installdirs:
 	@$(SHELL) $(srcdir)/../mkinstalldirs $(libdir) $(includedir)
 
 install:	$(TARG) installdirs
-	@for i in $(TARG) ; do $(INSTALL) $$i $(libdir) ; $(RANLIB) $(libdir)/$$i ; echo "install:  installed $$i in $(libdir)" ; done
+	@for i in $(TARG) ; do $(LIBTOOL) $(INSTALL) $$i $(libdir) ; $(RANLIB) $(libdir)/$$i ; echo "install:  installed $$i in $(libdir)" ; done
 	@for i in $(INSTALLHEADERS) ; do $(INSTALL) $(srcdir)/$$i $(includedir) ; echo "install:  installed $$i in $(includedir)" ; done
 	$(SHLIB_LDCONFIG_CMD)