[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debian-users:18850] Re: wrong path to config file in 1.2.0pre9-3 (for slink)



You can see some strange path using "strings /usr/sbin/proftpd |grep var"
for proftpd 1.2.0pre9-3 (for slink)

Not only config file, but also runtime log file path is messed.

Here is the patch for this. (this is only for Debian package build)

I need to install mysql-dev and set /usr/include/linux and /usr/include/asm
to the counterpart in kernel-source-2.2.12: 2.0.x kernel headers provided
by libc6-dev lacks of some header files required to build this proftpd on
my slink system. And, I have to add "-I/usr/include" to CPPFLAGS below.
I don't know if this "-I/usr/include" is required for others.

diff -ru ref/proftpd-1.2.0pre9/Make.rules.in build/proftpd-1.2.0pre9/Make.rules.in
--- ref/proftpd-1.2.0pre9/Make.rules.in	Mon Oct 11 13:45:46 1999
+++ build/proftpd-1.2.0pre9/Make.rules.in	Thu Nov 11 11:46:30 1999
@@ -15,8 +15,8 @@
 LDFLAGS=@LDFLAGS@
 LIBS=@LIBS@
 
-DEFAULT_PATHS=-DCONFIG_FILE_PATH=\"$(sysconfdir)/proftpd.conf\" -DRUN_DIR=\"$(rundir)\"
-CPPFLAGS=@CPPFLAGS@ $(DEFAULT_PATHS) $(PLATFORM) -I.. -I$(top_srcdir)/include
+# DEFAULT_PATHS=-DCONFIG_FILE_PATH=\"$(sysconfdir)/proftpd.conf\" -DRUN_DIR=\"$(rundir)\"
+CPPFLAGS=@CPPFLAGS@ $(DEFAULT_PATHS) $(PLATFORM) -I/usr/include -I.. -I$(top_srcdir)/include
 CFLAGS=@CFLAGS@
 
 #Defines for memory testing and debugging.
diff -ru ref/proftpd-1.2.0pre9/include/conf.h build/proftpd-1.2.0pre9/include/conf.h
--- ref/proftpd-1.2.0pre9/include/conf.h	Mon Oct 11 16:28:45 1999
+++ build/proftpd-1.2.0pre9/include/conf.h	Thu Nov 11 11:48:37 1999
@@ -141,22 +141,22 @@
 # include <glob.h>
 #endif
 
-#if HAVE_DIRENT_H
+#ifdef HAVE_DIRENT_H
 # include <dirent.h>
 # define NAMLEN(dirent) strlen((dirent)->d_name)
 #else
 # define dirent direct
 # define NAMLEN(dirent) ((dirent)->d_namlen)
-# if HAVE_SYS_NDIR_H
+# ifdef HAVE_SYS_NDIR_H
 #  include <sys/ndir.h>
 # endif
-# if HAVE_SYS_DIR_H
+# ifdef HAVE_SYS_DIR_H
 #  include <sys/dir.h>
 # endif
-# if HAVE_SYS_DIR_H
+# ifdef HAVE_SYS_DIR_H
 #  include <sys/dir.h>
 # endif
-# if HAVE_NDIR_H
+# ifdef HAVE_NDIR_H
 #  include <ndir.h>
 # endif
 #endif



-- 
  Taketoshi Sano: <sano@debian.org>,<sano@debian.or.jp>,<kgh12351@xxxxxxxxxxx>