File ns2-install.patch of Package ns2
Index: Makefile.in
===================================================================
--- Makefile.in.orig
+++ Makefile.in
@@ -26,9 +26,9 @@
# Top level hierarchy
prefix = @prefix@
# Pathname of directory to install the binary
-BINDEST = @prefix@/bin
+BINDEST = @bindir@
# Pathname of directory to install the man page
-MANDEST = @prefix@/man
+MANDEST = @mandir@
BLANK = # make a blank space. DO NOT add anything to this line
@@ -552,7 +552,7 @@ dirs:
install: dirs force install-ns install-man
install-ns: force
- $(INSTALL) -m 755 ns $(DESTDIR)$(BINDEST)
+ $(INSTALL) -D -m 755 ns $(DESTDIR)$(BINDEST)/ns
install-man: force
$(INSTALL) -m 644 ns.1 $(DESTDIR)$(MANDEST)/man1