Use $(INSTALL) command rather than cp to copy NSE scripts and libraries during install so that permissions are set properly too

This commit is contained in:
fyodor 2009-06-04 02:38:16 +00:00
parent 752748bb43
commit c5d5b47769

View file

@ -249,9 +249,9 @@ NSE_LIB_LUA_FILES = nselib/*.lua
install-nse: $(TARGET)
$(INSTALL) -c -m 644 nse_main.lua $(DESTDIR)$(nmapdatadir)/
$(INSTALL) -d $(DESTDIR)$(nmapdatadir)/scripts
cp -f $(NSE_FILES) $(DESTDIR)$(nmapdatadir)/scripts
$(INSTALL) -c -m 644 $(NSE_FILES) $(DESTDIR)$(nmapdatadir)/scripts
$(INSTALL) -d $(DESTDIR)$(nmapdatadir)/nselib
cp -f $(NSE_LIB_LUA_FILES) $(DESTDIR)$(nmapdatadir)/nselib
$(INSTALL) -c -m 644 $(NSE_LIB_LUA_FILES) $(DESTDIR)$(nmapdatadir)/nselib
install-ncat: $(NCATDIR)/ncat
@cd $(NCATDIR) && $(MAKE) install