Branch: master

affe0744 2016-01-16 08:24:40 Slávek Banko
Add default ppp-options for kppp
This resolves Bug 2529

Signed-off-by: Slávek Banko <slavek.banko@...>
A kppp/ppp-options
M kppp/CMakeLists.txt
M kppp/Makefile.am
diff --git a/kppp/CMakeLists.txt b/kppp/CMakeLists.txt
index c2ea4e6..efbaa02 100644
--- a/kppp/CMakeLists.txt
+++ b/kppp/CMakeLists.txt
@@ -34,6 +34,9 @@
 
 install( FILES Kppp.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
 
+install( FILES ppp-options
+         DESTINATION ${SYSCONF_INSTALL_DIR}/ppp/peers
+         RENAME kppp-options )
 
 ##### kppp (executable) #########################
 
diff --git a/kppp/Makefile.am b/kppp/Makefile.am
index d0de8ad..8519572 100644
--- a/kppp/Makefile.am
+++ b/kppp/Makefile.am
@@ -4,7 +4,7 @@
 # make install
 xdg_apps_DATA = Kppp.desktop
 
-EXTRA_DIST = $(xdg_apps_DATA)
+EXTRA_DIST = $(xdg_apps_DATA) ppp-options
 
 # set the include path for X, qt and KDE
 INCLUDES= $(all_includes)
@@ -127,6 +127,8 @@
 # don't install a list of file. Just one file per install.
 # if you have more of them, create a subdirectory with an extra Makefile 
 install-data-local:
+	$(mkinstalldirs) $(sysconfdir)/ppp/peers/
+	$(INSTALL_DATA) $(srcdir)/ppp-options $(sysconfdir)/ppp/peers/kppp-options
 	@echo ""
 	@echo "Don't forget to send me a phone tarif rules file for your"
 	@echo "telecom company/country/region. Thanks."
diff --git a/kppp/ppp-options b/kppp/ppp-options
new file mode 100644
index 0000000..32ec05f
--- /dev/null
+++ b/kppp/ppp-options
@@ -0,0 +1 @@
+noauth