[oe] [PATCH 4/4] poptop: don't expose open port by default, listen on 127.0.0.1

Roman I Khimov khimov at altell.ru
Mon Mar 29 17:31:10 UTC 2010


Signed-off-by: Roman I Khimov <khimov at altell.ru>
---
 recipes/poptop/poptop_1.3.4.bb |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/recipes/poptop/poptop_1.3.4.bb b/recipes/poptop/poptop_1.3.4.bb
index be1379a..8d9b60d 100644
--- a/recipes/poptop/poptop_1.3.4.bb
+++ b/recipes/poptop/poptop_1.3.4.bb
@@ -8,7 +8,7 @@ SECTION = "network"
 LICENSE = "GPL"
 RDEPENDS_${PN} = "ppp"
 RDEPENDS_${PN}-logwtmp-plugin = "${PN}"
-PR = "r3"
+PR = "r4"
 
 SRC_URI = "${SOURCEFORGE_MIRROR}/poptop/pptpd-${PV}.tar.gz \
            file://fix-plugins-install.patch;patch=1 \
@@ -32,6 +32,8 @@ do_install_append() {
         rm -f ${D}${libdir}/pptpd/pptpd-logwtmp.so
 	# Use mppe option in OE style
 	sed -ri "s,^[[:space:]]*require-mppe-128[[:space:]]*$,mppe required,no40,no56," ${D}/${sysconfdir}/ppp/options.pptpd
+	echo "# don't expose open port by default" >> ${D}/${sysconfdir}/pptpd.conf
+	echo "listen  127.0.0.1" >> ${D}/${sysconfdir}/pptpd.conf
 }
 
 PACKAGES = "${PN}-dbg ${PN}-bcrelay ${PN} ${PN}-doc"
-- 
1.6.4.2





More information about the Openembedded-devel mailing list