[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)
- From: Taketoshi Sano <xlj06203@xxxxxxxxxxx>
- Subject: [debian-users:18850] Re: wrong path to config file in 1.2.0pre9-3 (for slink)
- Date: Thu, 11 Nov 1999 13:05:29 +0900
- X-dispatcher: imput version 980905(IM100)
- X-fingerprint: DA 00 13 8C 49 BB 60 BE A4 54 3D AF 2E CE 28 DD
- X-ml-info: If you have a question, send a mail with the body "# help" (without quotes) to the address debian-users-ctl@debian.or.jp; help=<mailto:debian-users-ctl@debian.or.jp?body=help>
- X-ml-name: debian-users
- X-mlserver: fml [fml 2.2]; post only (only members can post)
- Message-id: <19991111114940O.xlj06203@xxxxxxxxxxxxxxxxxxxx>
- X-mail-count: 18850
- X-mailer: Mew version 1.93 on Emacs 20.3 / Mule 4.0 (HANANOEN)
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>