From: openKylin Developers <packaging@lists.openkylin.top>
Date: Tue, 30 Apr 2024 15:49:33 +0800
Subject: zzz_config

Debian-specific changes.
---
 pppd/Makefile.linux    | 6 +++---
 pppd/pathnames.h       | 2 +-
 pppd/pppd.h            | 2 +-
 pppdump/Makefile.linux | 4 ++--
 4 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/pppd/Makefile.linux b/pppd/Makefile.linux
index e517d5d..ab52c1b 100644
--- a/pppd/Makefile.linux
+++ b/pppd/Makefile.linux
@@ -64,17 +64,17 @@ USE_TDB=y
 # Uncomment the next line to enable Type=notify services in systemd
 # If enabled, and the user sets the up_sdnotify option, then
 # pppd will not detach and will notify systemd when up.
-#SYSTEMD=y
+SYSTEMD=y
 
 HAS_SHADOW=y
-#USE_PAM=y
+USE_PAM=y
 HAVE_INET6=y
 
 # Enable plugins
 PLUGIN=y
 
 # Enable Microsoft proprietary Callback Control Protocol
-#CBCP=y
+CBCP=y
 
 # Enable EAP SRP-SHA1 authentication (requires libsrp)
 #USE_SRP=y
diff --git a/pppd/pathnames.h b/pppd/pathnames.h
index 524d608..2df6135 100644
--- a/pppd/pathnames.h
+++ b/pppd/pathnames.h
@@ -33,7 +33,7 @@
 #define _PATH_AUTHUP	 _ROOT_PATH "/etc/ppp/auth-up"
 #define _PATH_AUTHDOWN	 _ROOT_PATH "/etc/ppp/auth-down"
 #define _PATH_TTYOPT	 _ROOT_PATH "/etc/ppp/options."
-#define _PATH_CONNERRS	 _ROOT_PATH "/etc/ppp/connect-errors"
+#define _PATH_CONNERRS	 _ROOT_PATH "/var/log/ppp-connect-errors"
 #define _PATH_PEERFILES	 _ROOT_PATH "/etc/ppp/peers/"
 #define _PATH_RESOLV	 _ROOT_PATH "/etc/ppp/resolv.conf"
 
diff --git a/pppd/pppd.h b/pppd/pppd.h
index 10a9977..a14483b 100644
--- a/pppd/pppd.h
+++ b/pppd/pppd.h
@@ -879,7 +879,7 @@ extern void (*snoop_send_hook)(unsigned char *p, int len);
   || defined(DEBUGCHAP) || defined(DEBUG) || defined(DEBUGIPV6CP)
 #define LOG_PPP LOG_LOCAL2
 #else
-#define LOG_PPP LOG_DAEMON
+#define LOG_PPP LOG_LOCAL2
 #endif
 #endif /* LOG_PPP */
 
diff --git a/pppdump/Makefile.linux b/pppdump/Makefile.linux
index de7e574..04b1c10 100644
--- a/pppdump/Makefile.linux
+++ b/pppdump/Makefile.linux
@@ -6,9 +6,9 @@ DESTDIR = $(INSTROOT)@DESTDIR@
 BINDIR = $(DESTDIR)/sbin
 MANDIR = $(DESTDIR)/share/man/man8
 
-DO_DEFLATE=y
+#DO_DEFLATE=y
 DO_BSD_COMPRESS=y
-HAVE_ZLIB=n
+HAVE_ZLIB=y
 
 CFLAGS = $(COPTS) -I../include/net
 OBJS = pppdump.o
