diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-misc/lanmap/files/lanmap-81-make.patch |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-misc/lanmap/files/lanmap-81-make.patch')
-rw-r--r-- | net-misc/lanmap/files/lanmap-81-make.patch | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/net-misc/lanmap/files/lanmap-81-make.patch b/net-misc/lanmap/files/lanmap-81-make.patch new file mode 100644 index 000000000000..e0c1988cc836 --- /dev/null +++ b/net-misc/lanmap/files/lanmap-81-make.patch @@ -0,0 +1,69 @@ +--- a/src/Makefile.in ++++ b/src/Makefile.in +@@ -2,8 +2,8 @@ + # $Id$ + + # complation +-CFLAGS = -W -Wall -Wno-unused -DLINUX -DLANMAP_DATADIR=$(LANMAP_DATADIR) +-LDFLAGS = -lpcap -lm ++CFLAGS += -DLINUX -DLANMAP_DATADIR=$(LANMAP_DATADIR) ++LDFLAGS += -lpcap -lm + CFLAGS_DEBUG = -D_DEBUG -ggdb + LDFLAGS_DEBUG = -pg + BINARY = lanmap +@@ -14,12 +14,12 @@ + $(CC) $(OBJS) -o $(BINARY) $(LDFLAGS) + + static: +- make clean +- make LDFLAGS="$(LDFLAGS) -static" all ++ $(MAKE) clean ++ $(MAKE) LDFLAGS="$(LDFLAGS) -static" all + + debug: +- make clean +- make CFLAGS="$(CFLAGS) $(CFLAGS_DEBUG)" LDFLAGS="$(LDFLAGS)" all ++ $(MAKE) clean ++ $(MAKE) CFLAGS="$(CFLAGS) $(CFLAGS_DEBUG)" LDFLAGS="$(LDFLAGS)" all + + # for testing the classify code by itself + os_classify: os_classify.c misc.c +--- a/Makefile.in ++++ b/Makefile.in +@@ -10,18 +10,18 @@ + DATADEST = ${prefix}/share/lanmap/ + + all: +- cd ./src && make LANMAP_DATADIR="$(DATADEST)" ++ cd ./src && $(MAKE) LANMAP_DATADIR="$(DATADEST)" + + install: +- install -m 0755 ./src/$(BINARY) $(BINDEST) ++ install -m 0755 -D ./src/$(BINARY) $(BINDEST)/$(BINARY) + install -m 0755 -d $(DATADEST) + install -m 0755 -d $(DATADEST)data/ + install -m 0755 -d $(DATADEST)data/graph/ + install -m 0755 -d $(DATADEST)graph/img/ + install -m 0644 ./data/mac_vendor $(DATADEST)data/ +- install -m 0644 -d $(DATADEST)graph ++ install -m 0755 -d $(DATADEST)graph + install -m 0644 ./graph/lanmap.header $(DATADEST)graph/ +- for f in ./graph/img/*.{png,gif,svg}; do install -m 0644 $$f $(DATADEST)graph/img/; done ++ for f in ./graph/img/*.gif ./graph/img/*.png ./graph/img/*.svg; do install -m 0644 $$f $(DATADEST)graph/img/; done + + uninstall: + rm $(BINDEST)$(BINARY) +@@ -29,11 +29,11 @@ + + clean: + rm -f ./src/$(BINARY) +- cd ./src && make clean ++ cd ./src && $(MAKE) clean + + distclean: clean + rm -f Makefile config.cache config.log config.status config.h + + debug: +- cd ./src && make debug ++ cd ./src && $(MAKE) debug + |