source: npl/internetserver/poptop_ppp/patches/ppp-2.4.3-dontwriteetc.patch @ e1b2384

perl-5.22
Last change on this file since e1b2384 was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100644
File size: 2.1 KB
RevLine 
[c5c522c]1--- ppp-2.4.3/chat/chat.8       2004-11-13 12:22:49.000000000 +0000
2+++ ppp-2.4.3/chat/chat.8       2004-11-22 15:07:28.071470928 +0000
3@@ -200,7 +200,7 @@
4 at the terminal via standard error.  If \fBchat\fR is being run by
5 pppd, and pppd is running as a daemon (detached from its controlling
6 terminal), standard error will normally be redirected to the file
7-/etc/ppp/connect\-errors.
8+/var/log/ppp/connect\-errors.
9 .LP
10 \fBSAY\fR strings must be enclosed in single or double quotes. If
11 carriage return and line feed are needed in the string to be output,
12--- ppp-2.4.3/linux/Makefile.top        2004-10-31 22:25:16.000000000 +0000
13+++ ppp-2.4.3/linux/Makefile.top        2004-11-22 15:11:32.147417077 +0000
14@@ -4,7 +4,9 @@
15 BINDIR = $(DESTDIR)/sbin
16 INCDIR = $(DESTDIR)/include
17 MANDIR = $(DESTDIR)/share/man
18-ETCDIR = @SYSCONF@/ppp
19+ETCDIR = $(DESTDIR)@SYSCONF@/ppp
20+RUNDIR = $(DESTDIR)/../var/run/ppp
21+LOGDIR = $(DESTDIR)/../var/log/ppp
22 
23 # uid 0 = root
24 INSTALL= install
25@@ -16,7 +18,7 @@
26        cd pppstats; $(MAKE) $(MFLAGS) all
27        cd pppdump; $(MAKE) $(MFLAGS) all
28 
29-install: $(BINDIR) $(MANDIR)/man8 install-progs install-devel
30+install: $(BINDIR) $(RUNDIR) $(LOGDIR) $(MANDIR)/man8 install-progs install-devel
31 
32 install-progs:
33        cd chat; $(MAKE) $(MFLAGS) install
34@@ -44,6 +46,10 @@
35        $(INSTALL) -d -m 755 $@
36 $(ETCDIR):
37        $(INSTALL) -d -m 755 $@
38+$(RUNDIR):
39+       $(INSTALL) -d -m 755 $@
40+$(LOGDIR):
41+       $(INSTALL) -d -m 755 $@
42 
43 clean:
44        rm -f `find . -name '*.[oas]' -print`
45--- ppp-2.4.3/pppd/pathnames.h  2004-11-13 12:02:22.000000000 +0000
46+++ ppp-2.4.3/pppd/pathnames.h  2004-11-22 15:12:54.812072782 +0000
47@@ -27,9 +27,9 @@
48 #define _PATH_AUTHUP    _ROOT_PATH "/etc/ppp/auth-up"
49 #define _PATH_AUTHDOWN  _ROOT_PATH "/etc/ppp/auth-down"
50 #define _PATH_TTYOPT    _ROOT_PATH "/etc/ppp/options."
51-#define _PATH_CONNERRS  _ROOT_PATH "/etc/ppp/connect-errors"
52+#define _PATH_CONNERRS  _ROOT_PATH "/var/log/ppp/connect-errors"
53 #define _PATH_PEERFILES         _ROOT_PATH "/etc/ppp/peers/"
54-#define _PATH_RESOLV    _ROOT_PATH "/etc/ppp/resolv.conf"
55+#define _PATH_RESOLV    _ROOT_PATH "/var/run/ppp/resolv.conf"
56 
57 #define _PATH_USEROPT   ".ppprc"
58 #define        _PATH_PSEUDONYM  ".ppp_pseudonym"
Note: See TracBrowser for help on using the repository browser.