From 4a753006db01459d0508358f187367dee5c06357 Mon Sep 17 00:00:00 2001 From: david Date: Fri, 9 Nov 2007 05:29:25 +0000 Subject: [PATCH] Make symlinks from nmapfe and xnmap to zenmap. Don't create the nmapfe symlink unless that file doesn't exist or is already a link. --- Makefile.in | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile.in b/Makefile.in index 0aca28e00..807dad812 100644 --- a/Makefile.in +++ b/Makefile.in @@ -200,6 +200,13 @@ build-zenmap: $(ZENMAPDIR)/setup.py $(ZENMAPDIR)/umitCore/Version.py install-zenmap: $(ZENMAPDIR)/setup.py cd $(ZENMAPDIR) && $(PYTHON) setup.py install --prefix "$(prefix)" $(if $(DESTDIR),--root "$(DESTDIR)") +# Create a symlink from nmapfe to zenmap if nmapfe doesn't exist or is +# already a link. + if [ ! -e $(DESTDIR)$(bindir)/nmapfe -o -L $(DESTDIR)$(bindir)/nmapfe ]; then \ + ln -sf zenmap $(DESTDIR)$(bindir)/nmapfe; \ + fi +# Create a symlink from xnmap to zenmap unconditionally. + ln -sf zenmap $(DESTDIR)$(bindir)/xnmap NSE_FILES = scripts/script.db scripts/*.nse NSE_LIB_LUA_FILES = nselib/*.lua