2014-09-02 07:14:01 +02:00
|
|
|
---
|
|
|
|
Makefile.in | 14 ++++++--------
|
|
|
|
contrib/mod_snmp/db.c | 2 +-
|
|
|
|
include/version.h | 2 --
|
|
|
|
src/main.c | 6 ++----
|
|
|
|
4 files changed, 9 insertions(+), 15 deletions(-)
|
|
|
|
|
2015-05-31 21:20:12 +02:00
|
|
|
Index: Makefile.in
|
2012-08-14 13:47:07 +02:00
|
|
|
===================================================================
|
2015-05-31 21:20:12 +02:00
|
|
|
--- Makefile.in.orig
|
|
|
|
+++ Makefile.in
|
2012-08-14 13:47:07 +02:00
|
|
|
@@ -24,28 +24,26 @@ BUILD_BIN=proftpd$(EXEEXT) ftpcount$(EXE
|
|
|
|
|
|
|
|
all: $(BUILD_BIN)
|
|
|
|
|
|
|
|
-include/buildstamp.h:
|
|
|
|
- echo \#define BUILD_STAMP \"`date +"%a %b %e %Y %H:%M:%S %Z"`\" > include/buildstamp.h
|
|
|
|
|
|
|
|
dummy:
|
|
|
|
|
|
|
|
-lib: include/buildstamp.h dummy
|
|
|
|
+lib: dummy
|
|
|
|
cd lib/ && $(MAKE) lib
|
|
|
|
|
|
|
|
-src: include/buildstamp.h dummy
|
|
|
|
+src: dummy
|
|
|
|
cd src/ && $(MAKE) src
|
|
|
|
|
|
|
|
-modules: include/buildstamp.h dummy
|
|
|
|
+modules: dummy
|
|
|
|
cd modules/ && $(MAKE) static
|
|
|
|
test -z "$(SHARED_MODULE_OBJS)" -a -z "$(SHARED_MODULE_DIRS)" || (cd modules/ && $(MAKE) shared)
|
|
|
|
|
|
|
|
-utils: include/buildstamp.h dummy
|
|
|
|
+utils: dummy
|
|
|
|
cd utils/ && $(MAKE) utils
|
|
|
|
|
|
|
|
-locale: include/buildstamp.h dummy
|
|
|
|
+locale: dummy
|
|
|
|
test -z "$(ENABLE_NLS)" || (cd locale/ && $(MAKE) locale)
|
|
|
|
|
|
|
|
-dirs: include/buildstamp.h dummy
|
|
|
|
+dirs: dummy
|
|
|
|
@dirs="$(DIRS)"; \
|
|
|
|
for dir in $$dirs; do \
|
|
|
|
if [ -d "$$dir" ]; then cd $$dir/ && $(MAKE); fi; \
|
2015-05-31 21:20:12 +02:00
|
|
|
Index: contrib/mod_snmp/db.c
|
2014-09-02 07:14:01 +02:00
|
|
|
===================================================================
|
2015-05-31 21:20:12 +02:00
|
|
|
--- contrib/mod_snmp/db.c.orig
|
|
|
|
+++ contrib/mod_snmp/db.c
|
2014-09-02 07:14:01 +02:00
|
|
|
@@ -1122,7 +1122,7 @@ int snmp_db_get_value(pool *p, unsigned
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
case SNMP_DB_DAEMON_F_VERSION:
|
|
|
|
- *str_value = "ProFTPD Version " PROFTPD_VERSION_TEXT " (built at " BUILD_STAMP ")";
|
|
|
|
+ *str_value = "ProFTPD Version " PROFTPD_VERSION_TEXT;
|
|
|
|
*str_valuelen = strlen(*str_value);
|
|
|
|
|
|
|
|
pr_trace_msg(trace_channel, 19,
|
2015-05-31 21:20:12 +02:00
|
|
|
Index: include/version.h
|
2012-08-14 13:47:07 +02:00
|
|
|
===================================================================
|
2015-05-31 21:20:12 +02:00
|
|
|
--- include/version.h.orig
|
|
|
|
+++ include/version.h
|
2012-08-14 13:47:07 +02:00
|
|
|
@@ -1,5 +1,3 @@
|
|
|
|
-#include "buildstamp.h"
|
|
|
|
-
|
|
|
|
/* Application version (in various forms) */
|
2017-01-15 22:29:23 +01:00
|
|
|
#define PROFTPD_VERSION_NUMBER 0x0001030509
|
|
|
|
#define PROFTPD_VERSION_TEXT "1.3.5c"
|
2015-05-31 21:20:12 +02:00
|
|
|
Index: src/main.c
|
2014-09-02 07:14:01 +02:00
|
|
|
===================================================================
|
2015-05-31 21:20:12 +02:00
|
|
|
--- src/main.c.orig
|
|
|
|
+++ src/main.c
|
2016-05-08 21:33:31 +02:00
|
|
|
@@ -2435,8 +2435,8 @@ static void standalone_main(void) {
|
2014-09-02 07:14:01 +02:00
|
|
|
|
|
|
|
init_bindings();
|
|
|
|
|
|
|
|
- pr_log_pri(PR_LOG_NOTICE, "ProFTPD %s (built %s) standalone mode STARTUP",
|
|
|
|
- PROFTPD_VERSION_TEXT " " PR_STATUS, BUILD_STAMP);
|
|
|
|
+ pr_log_pri(PR_LOG_NOTICE, "ProFTPD %s standalone mode STARTUP",
|
|
|
|
+ PROFTPD_VERSION_TEXT " " PR_STATUS);
|
|
|
|
|
|
|
|
pr_pidfile_write();
|
|
|
|
daemon_loop();
|
2016-05-08 21:33:31 +02:00
|
|
|
@@ -2491,7 +2491,6 @@ static void show_settings(void) {
|
2014-09-02 07:14:01 +02:00
|
|
|
printf("%s", " Platform: " PR_PLATFORM " [unknown]\n");
|
|
|
|
#endif /* !HAVE_UNAME */
|
|
|
|
|
|
|
|
- printf("%s", " Built: " BUILD_STAMP "\n");
|
|
|
|
printf("%s", " Built With:\n configure " PR_BUILD_OPTS "\n\n");
|
|
|
|
|
|
|
|
printf("%s", " CFLAGS: " PR_BUILD_CFLAGS "\n");
|
2016-05-08 21:33:31 +02:00
|
|
|
@@ -3009,7 +3008,6 @@ int main(int argc, char *argv[], char **
|
2014-09-02 07:14:01 +02:00
|
|
|
|
|
|
|
printf("ProFTPD Version: %s", PROFTPD_VERSION_TEXT " " PR_STATUS "\n");
|
|
|
|
printf(" Scoreboard Version: %08x\n", PR_SCOREBOARD_VERSION);
|
|
|
|
- printf(" Built: %s\n\n", BUILD_STAMP);
|
|
|
|
|
|
|
|
modules_list(PR_MODULES_LIST_FL_SHOW_VERSION);
|
|
|
|
exit(0);
|