$NetBSD: patch-ad,v 1.6 2007/06/19 21:07:42 jlam Exp $ --- Makefile.orig 1998-05-12 17:09:14.000000000 -0400 +++ Makefile @@ -2,3 +2,3 @@ -BASENAME= /usr +BASENAME= ${PREFIX} @@ -12,7 +12,7 @@ GCC_WARNINGS = -O2 -pedantic -Wreturn-ty -CFLAGS = -O -DUSE_DB #$(GCC_WARNINGS) -LDFLAGS = -lcrypt -ldb2 +CFLAGS += -O ${CFLAGS_INET6} #-DUSE_DB $(GCC_WARNINGS) +LDFLAGS += -lcrypt # If you change this, edit config.h as well -CUCIPOPLIB=/var/lib/cucipop +CUCIPOPLIB=${PREFIX}/share/cucipop CUCIPOPBULLETINS=$(CUCIPOPLIB)/bulletins @@ -24,6 +24,2 @@ MANDIR=$(BASENAME)/man/man8 -INSTALL=install -o root -m -BINPERM=02755 -s -g mail -REGPERM=0644 - # @@ -70,4 +66,4 @@ $(MD5_OBJ): md5/md5c.c md5/md5.h install: $(BINS) $(MANS) - $(INSTALL) $(BINPERM) $(BINS) $(BINDIR) - $(INSTALL) $(REGPERM) $(MANS) $(MANDIR) + $(BSD_INSTALL_PROGRAM) $(BINS) $(BINDIR) + $(BSD_INSTALL_DATA) $(MANS) $(MANDIR) mkdir $(CUCIPOPLIB) 2>/dev/null; exit 0