File ntop-fix-timestamp.patch of Package ntop

Index: configure.in
===================================================================
--- configure.in.orig
+++ configure.in
@@ -1957,8 +1957,8 @@ osName=`./config.guess | sed -e "s/unkno
 echo "${osName}" | sed -e 's/.*/char * osName    = "&";/' >> version.c
 echo "char * ntop_author    = \"Luca Deri <deri@ntop.org>\";" >> version.c
 dnl> This is an odd format, but it matches cpp's __DATE__ and __TIME__ macros...
-date +"%b %e %Y %k:%M:%S" | sed -e 's/.*/char * configureDate = "&";/' >> version.c
-echo "#define buildDateIs __DATE__ \" \" __TIME__"  >> version.c
+echo "char * configureDate = \"__DATE__ __TIME__\";" >> version.c
+echo "#define buildDateIs \"__DATE__\" \"__TIME__\""  >> version.c
 echo "char * buildDate    = buildDateIs;" >> version.c
 echo $CONFIGURE_PARAMETERS | sed -e 's/.*/char * configure_parameters   = "&";/' >> version.c
 echo ${host} | sed -e 's/.*/char * host_system_type   = "&";/' >> version.c
openSUSE Build Service is sponsored by