Hi. Some package builders, binary update distributors and security
monitors have issues with binaries whose cryptographic hashes change
for no reason when serially rebuilt. It surely doesn't identify any
particular revision of the source or provide useful info for the
average user. So this patch removes that problem from nProbe. Of
course the definition of 'no reason' lies with the current
maintanership. But yeah, it's annoying :) Thanks.
========================================
--- configure.in.orig Mon Sep 17 18:39:04 2007
+++ configure.in Sun Jun 29 17:50:38 2008
@@ -446,7 +446,9 @@
/bin/rm -f version.c
echo $PACKAGE_VERSION | sed -e 's/.*/char * version = "&";/' > version.c
./config.guess | sed -e 's/.*/char * osName = "&";/' >> version.c
+echo '#ifdef WITH_BUILD_DATE' >> version.c
date +"%D %r" | sed -e 's/.*/char * buildDate = "&";/' >> version.c
+echo '#endif' >> version.c
if test ".${HAS_WARNING}" = ".yes"; then
echo "*"
--- nprobe.c.orig Mon Sep 17 18:39:04 2007
+++ nprobe.c Sun Jun 29 16:10:37 2008
@@ -868,15 +868,19 @@
void probeVersion() {
printf("\nWelcome to nprobe v.%s for %s\n"
"%s\n"
+#ifdef WITH_BUILD_DATE
"Built on %s\n"
+#endif
"Copyright 2002-07 by Luca Deri <[EMAIL PROTECTED]>\n",
version, osName,
#ifdef HAVE_PF_RING
"with native PF_RING acceleration.\n",
#else
- "",
+ ""
+#endif
+#ifdef WITH_BUILD_DATE
+ , buildDate
#endif
- buildDate
);
}
========================================
_______________________________________________
Ntop-misc mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-misc