diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2013-05-23 23:25:59 +0200 |
---|---|---|
committer | Daniel Borkmann <dborkman@redhat.com> | 2013-05-23 23:25:59 +0200 |
commit | 5a6586937b201b4b8daeb5299a7279873767801f (patch) | |
tree | d5dc56e8f97c51a3eea0e5333f5b940add02ae8b | |
parent | ff2abdaf68579bb0e95de2ffb8b3c438dbabd5d4 (diff) |
make: include build name
Include long version string into tools when called with --version.
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
-rw-r--r-- | Makefile | 5 | ||||
-rw-r--r-- | astraceroute.c | 2 | ||||
-rw-r--r-- | bpfc.c | 2 | ||||
-rw-r--r-- | curvetun.c | 2 | ||||
-rw-r--r-- | flowtop.c | 2 | ||||
-rw-r--r-- | ifpps.c | 2 | ||||
-rw-r--r-- | netsniff-ng.c | 2 | ||||
-rw-r--r-- | staging/mausezahn.c | 2 | ||||
-rw-r--r-- | trafgen.c | 2 |
9 files changed, 11 insertions, 10 deletions
@@ -95,6 +95,7 @@ endif ALL_CFLAGS = $(CFLAGS) -I. ALL_CFLAGS += -DVERSION_STRING=\"$(VERSION_STRING)\" +ALL_CFLAGS += -DVERSION_LONG=\"$(VERSION_LONG)\" ALL_CFLAGS += -DPREFIX_STRING=\"$(PREFIX)\" ifneq ($(wildcard /usr/include/linux/net_tstamp.h),) ALL_CFLAGS += -D__WITH_HARDWARE_TIMESTAMPING @@ -141,7 +142,7 @@ export VERSION PATCHLEVEL SUBLEVEL EXTRAVERSION export CROSS_COMPILE VERSION_STRING = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION) -VERSION_SHORT = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL) +VERSION_LONG = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)~$(NAME) bold = $(shell tput bold) normal = $(shell tput sgr0) @@ -229,7 +230,7 @@ bpfc: ALL_CFLAGS += -I.. curvetun: ALL_CFLAGS += -I ${NACL_INC_DIR} curvetun: ALL_LDFLAGS += -L ${NACL_LIB_DIR} # This gets some extra treatment here until the code looks properly -mausezahn: ALL_CFLAGS = -O2 -I. -I.. -DVERSION_STRING=\"$(VERSION_STRING)\" -DPREFIX_STRING=\"$(PREFIX)\" +mausezahn: ALL_CFLAGS = -O2 -I. -I.. -DVERSION_STRING=\"$(VERSION_STRING)\" -DPREFIX_STRING=\"$(PREFIX)\" -DVERSION_LONG=\"$(VERSION_LONG)\" bpfc_clean_custom: $(Q)$(call RM,$(BUILD_DIR)/*.h $(BUILD_DIR)/*.c) diff --git a/astraceroute.c b/astraceroute.c index a3d5d57..4b1aada 100644 --- a/astraceroute.c +++ b/astraceroute.c @@ -231,7 +231,7 @@ static void __noreturn help(void) static void __noreturn version(void) { - printf("\nastraceroute %s, autonomous system trace route utility\n", VERSION_STRING); + printf("\nastraceroute %s, autonomous system trace route utility\n", VERSION_LONG); puts("http://www.netsniff-ng.org\n\n" "Please report bugs to <bugs@netsniff-ng.org>\n" "Copyright (C) 2011-2013 Daniel Borkmann <dborkma@tik.ee.ethz.ch>\n" @@ -65,7 +65,7 @@ static void __noreturn help(void) static void __noreturn version(void) { - printf("\nbpfc %s, a tiny BPF compiler\n", VERSION_STRING); + printf("\nbpfc %s, a tiny BPF compiler\n", VERSION_LONG); puts("http://www.netsniff-ng.org\n\n" "Please report bugs to <bugs@netsniff-ng.org>\n" "Copyright (C) 2011-2013 Daniel Borkmann <dborkma@tik.ee.ethz.ch>,\n" @@ -132,7 +132,7 @@ static void __noreturn help(void) static void __noreturn version(void) { - printf("\ncurvetun %s, lightweight curve25519-based VPN/IP tunnel\n", VERSION_STRING); + printf("\ncurvetun %s, lightweight curve25519-based VPN/IP tunnel\n", VERSION_LONG); puts("http://www.netsniff-ng.org\n\n" "Please report bugs to <bugs@netsniff-ng.org>\n" "Copyright (C) 2011-2013 Daniel Borkmann <dborkma@tik.ee.ethz.ch>,\n" @@ -262,7 +262,7 @@ static void help(void) static void version(void) { printf("\nflowtop %s, top-like netfilter TCP/UDP flow tracking\n", - VERSION_STRING); + VERSION_LONG); puts("http://www.netsniff-ng.org\n\n" "Please report bugs to <bugs@netsniff-ng.org>\n" "Copyright (C) 2011-2013 Daniel Borkmann <dborkma@tik.ee.ethz.ch>\n" @@ -126,7 +126,7 @@ static void __noreturn help(void) static void __noreturn version(void) { printf("\nifpps %s, top-like kernel networking and system statistics\n", - VERSION_STRING); + VERSION_LONG); puts("http://www.netsniff-ng.org\n\n" "Please report bugs to <bugs@netsniff-ng.org>\n" "Copyright (C) 2009-2013 Daniel Borkmann <dborkma@tik.ee.ethz.ch>\n" diff --git a/netsniff-ng.c b/netsniff-ng.c index a2f4fac..fe09c82 100644 --- a/netsniff-ng.c +++ b/netsniff-ng.c @@ -1072,7 +1072,7 @@ static void __noreturn help(void) static void __noreturn version(void) { - printf("\nnetsniff-ng %s, the packet sniffing beast\n", VERSION_STRING); + printf("\nnetsniff-ng %s, the packet sniffing beast\n", VERSION_LONG); puts("http://www.netsniff-ng.org\n\n" "Please report bugs to <bugs@netsniff-ng.org>\n" "Copyright (C) 2009-2013 Daniel Borkmann <dborkma@tik.ee.ethz.ch>\n" diff --git a/staging/mausezahn.c b/staging/mausezahn.c index 7f712b7..7831b90 100644 --- a/staging/mausezahn.c +++ b/staging/mausezahn.c @@ -170,7 +170,7 @@ static void help(void) static void version(void) { - printf("\nmausezahn %s, a fast versatile traffic generator\n", VERSION_STRING); + printf("\nmausezahn %s, a fast versatile traffic generator\n", VERSION_LONG); puts("http://www.netsniff-ng.org\n\n" "Please report bugs to <bugs@netsniff-ng.org>\n" "Copyright (C) 2008-2010 Herbert Haas <herbert@perihel.at>,\n" @@ -275,7 +275,7 @@ static void __noreturn example(void) static void __noreturn version(void) { - printf("\ntrafgen %s, multithreaded zero-copy network packet generator\n", VERSION_STRING); + printf("\ntrafgen %s, multithreaded zero-copy network packet generator\n", VERSION_LONG); puts("http://www.netsniff-ng.org\n\n" "Please report bugs to <bugs@netsniff-ng.org>\n" "Copyright (C) 2011-2013 Daniel Borkmann <dborkma@tik.ee.ethz.ch>,\n" |