openbsd-ports/security/amap/patches/patch-Makefile_am
niallo a5af32e5af Update to amap 5.1
Changes:
	* Big appdefs.resp update. Thanks to all contributors!
	* Fixed the web update function for bad inet_pton implementations
	* Added support for nmap files with IPv6 addresses
	* You can scan/check port 0 now (wish from nbachdeloitte.dk)

From Alexandre Anriot <aanriot@atlantilde.com>, the maintainer.
2005-06-20 18:26:11 +00:00

42 lines
1.4 KiB
Plaintext

$OpenBSD: patch-Makefile_am,v 1.2 2005/06/20 18:26:17 niallo Exp $
--- Makefile.am.orig Mon Jun 20 08:48:41 2005
+++ Makefile.am Mon Jun 20 08:51:05 2005
@@ -1,13 +1,13 @@
-CC=gcc
-LIB=-lpcre -L./pcre-3.9/ -I./pcre-3.9/
+CC?=gcc
+LIB=-lpcre -L$(LOCALBASE)/lib
OPT=-O2
OPT_DEBUG=-ggdb -Wall -lefence
BINDIR=/bin
-DATADIR=/etc
+DATADIR=/share/amap
MANDIR=/man/man1
SCRIPTS=appdefs.trig appdefs.resp appdefs.rpc
MANPAGE=amap.1
-all: pcre strip
+all: amap amapcrap
pcre:
cd pcre-3.9 && make
@@ -35,14 +35,11 @@ debug: amap.c
install: all
@echo Installing to $(PREFIX), change this by running ./configure --prefix=path
- -mkdir -vp $(PREFIX)$(BINDIR) 2> /dev/null
- -mkdir -vp $(PREFIX)$(DATADIR) 2> /dev/null
- -mkdir -vp $(PREFIX)$(MANDIR) 2> /dev/null
- -test -e amap.exe || cp -f amap amap6 amapcrap $(PREFIX)$(BINDIR)
- -test -e amap.exe && cp -f amap.exe amapcrap.exe $(PREFIX)$(BINDIR) || echo
- -cp -f $(SCRIPTS) $(PREFIX)$(DATADIR)
- -cp -f $(MANPAGE) $(PREFIX)$(MANDIR)
- -cd $(PREFIX)$(BINDIR) && ln -s amap amap6
+ @test -e amap && $(BSD_INSTALL_PROGRAM) amap amap6 amapcrap $(PREFIX)$(BINDIR)
+ @test -d $(PREFIX)$(MANDIR) || mkdir -p $(PREFIX)$(MANDIR)
+ $(BSD_INSTALL_MAN) $(MANPAGE) $(PREFIX)$(MANDIR)
+ @test -d $(PREFIX)$(DATADIR) || mkdir -p $(PREFIX)$(DATADIR)
+ $(BSD_INSTALL_SCRIPT) $(SCRIPTS) $(PREFIX)$(DATADIR)
clean:
cd pcre-3.9 && make clean