pkgsrc/net/ripe-whois-tools/patches/patch-aa
rh d5def22e8e Initial import of of ripe-whois-tools-2.4, a set of whois database tools
for querying the extended ripe database.  This package was provided in
PR pkg/12979 by Stoned Elipot <Stoned.Elipot@script.jussieu.fr>, thanks!
2001-05-18 11:39:29 +00:00

39 lines
1.1 KiB
Text

$NetBSD: patch-aa,v 1.1.1.1 2001/05/18 11:39:29 rh Exp $
--- Makefile.orig Mon Nov 16 17:38:32 1998
+++ Makefile
@@ -19,14 +19,16 @@
DEFINES= -DRIPE
PROG= whois cryptpw
-DESTDIR= /usr/local/bin
-MANDIR= /usr/local/man/man1
-INSTALL= install
-# LIBS= -lresolv
+BINDIR= ${PREFIX}/bin
+MANDIR= ${PREFIX}/man/man1
+INSTALL_PROGRAM= ${BSD_INSTALL_PROGRAM}
+INSTALL_MAN= ${BSD_INSTALL_MAN}
+
CFLAGS= ${DEFINES}
+LIBS= ${EXTRA_LIBS}
#
# for BSDI
-CC=shlicc2 -Wall -ansi -pedantic -O6 -m486
+#CC=shlicc2 -Wall -ansi -pedantic -O6 -m486
#
# for Linux
#CC=gcc -Wall -ansi -pedantic -O6 -m486
@@ -45,8 +47,10 @@
$(CC) ${CFLAGS} cryptpw.c -o cryptpw ${LIBS}
install: ${PROG}
- $(INSTALL) -c -s -m 755 ${PROG} networkupdate ${DESTDIR}
- $(INSTALL) -c -m 444 whois.man ${MANDIR}/whois.1
+ ${INSTALL_PROGRAM} whois ${BINDIR}/ripe-whois
+ ${INSTALL_PROGRAM} cryptpw ${BINDIR}/ripe-cryptpw
+ ${INSTALL_PROGRAM} networkupdate ${BINDIR}/ripe-networkupdate
+ ${INSTALL_MAN} whois.man ${MANDIR}/ripe-whois.1
clean:
rm -f whois.o whois cryptpw cryptpw.o networkupdate networkupdate.o core