d554d28831
the supplied db2). fixes PR pkg/22912 from Jonathan Perkin.
64 lines
2 KiB
Text
64 lines
2 KiB
Text
$NetBSD: patch-aa,v 1.2 2003/10/11 12:06:04 grant Exp $
|
|
|
|
--- Makefile.in.orig 2003-10-11 21:56:03.000000000 +1000
|
|
+++ Makefile.in
|
|
@@ -10,10 +10,11 @@ SHELL = /bin/sh
|
|
|
|
## this does recursion for db2, if it's in the tree
|
|
|
|
-SUBDIRS = db2-sleepycat/dist
|
|
-
|
|
-depend all install check clean distclean maintainer-clean::
|
|
- for i in ${SUBDIRS}; do (test -d $$i && cd $$i && ${MAKE} $@) || exit 1; done
|
|
+# We use the installed db2, so we don't need this stuff anymore
|
|
+#SUBDIRS = db2-sleepycat/dist
|
|
+#
|
|
+#depend all install check clean distclean maintainer-clean::
|
|
+# for i in ${SUBDIRS}; do (test -d $$i && cd $$i && ${MAKE} $@) || exit 1; done
|
|
|
|
## this builds the keyserver
|
|
|
|
@@ -32,12 +33,13 @@ all:: $(ALL) $(SYSCONF)
|
|
all-pure:: $(ALL_PURE)
|
|
all-utils:: $(UTILS)
|
|
|
|
-DBDIR = db2-sleepycat/dist
|
|
+DBDIR = ${LOCALBASE}/include/db2
|
|
|
|
CC = @CC@
|
|
INSTALL = @INSTALL@
|
|
-INSTALL_PROGRAM = $(INSTALL)
|
|
-INSTALL_DATA = $(INSTALL)
|
|
+INSTALL_PROGRAM = $(BSD_INSTALL_PROGRAM)
|
|
+INSTALL_DATA = $(BSD_INSTALL_DATA)
|
|
+INSTALL_SCRIPT = $(BSD_INSTALL_SCRIPT)
|
|
SOCKLIBS = @LIBS@
|
|
VPATH = @srcdir@
|
|
|
|
@@ -60,7 +62,7 @@ DBG = -DDEBUG
|
|
DEFINES = $(DBG) @DEFS@
|
|
CFLAGS = @gcc_cflags@ -g -O $(INCLUDES) $(DEFINES)
|
|
|
|
-LIBDB = $(DBDIR)/libdb.a
|
|
+LIBDB = -ldb2
|
|
|
|
CLEAN = rm -f
|
|
|
|
@@ -118,6 +120,8 @@ wwwtest: $(O9)
|
|
pgpdump: pgpdump.o pgpfile.o $(PGPOBJS) $(UTILOBJS)
|
|
|
|
pgpsplit: pgpsplit.o $(PGPOBJS) $(UTILOBJS)
|
|
+ $(CC) -o $@ pgpsplit.o $(PGPOBJS) $(UTILOBJS) $(LDFLAGS) \
|
|
+ $(SOCKLIBS) $(LIBDB)
|
|
|
|
kvcv: kvcv.o pgpfile.o logging.o $(PGPOBJS) $(UTILOBJS)
|
|
|
|
@@ -138,7 +142,7 @@ installdirs::
|
|
install:: all installdirs
|
|
for f in $(ALL); do $(INSTALL_PROGRAM) $$f $(bindir); done
|
|
for f in $(SYSCONF); do $(INSTALL_DATA) $$f $(sysconfdir); done
|
|
- for f in $(ALL_SH); do $(INSTALL_PROGRAM) $(srcdir)/$$f $(bindir); done
|
|
+ for f in $(ALL_SH); do $(INSTALL_SCRIPT) $(srcdir)/$$f $(bindir); done
|
|
for f in $(DATA); do $(INSTALL_DATA) $(srcdir)/$$f $(datadir); done
|
|
for f in $(MAN5); do $(INSTALL_DATA) $(srcdir)/$$f $(man5dir); done
|
|
for f in $(MAN8); do $(INSTALL_DATA) $(srcdir)/$$f $(man8dir); done
|