From patchwork Wed Apr 27 09:14:02 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans Dedecker X-Patchwork-Id: 615479 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (caladan.dune.hu [78.24.191.180]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3qvvTP22frz9s3s for ; Wed, 27 Apr 2016 19:16:09 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=R8xAiBUL; dkim-atps=neutral Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 556F7B80C9A; Wed, 27 Apr 2016 11:14:34 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP; Wed, 27 Apr 2016 11:14:34 +0200 (CEST) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 8CB8EB80B2F for ; Wed, 27 Apr 2016 11:14:20 +0200 (CEST) X-policyd-weight: using cached result; rate:hard: -7 Received: from mail-wm0-f68.google.com (mail-wm0-f68.google.com [74.125.82.68]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Wed, 27 Apr 2016 11:14:20 +0200 (CEST) Received: by mail-wm0-f68.google.com with SMTP id r12so10986417wme.0 for ; Wed, 27 Apr 2016 02:14:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=zJ+of/N898mn6+MMKCC8Xc1hAU8HgyGSPOVbS8YotJA=; b=R8xAiBULYhgodXXENZNXobqNiOmlNv/ebF97tQoCCpraIPuqQ6+dNV094WTkKUKb+3 yaukz2OJxWKcVXQ/cMlikyym/ReOadcOD4oAfO4PKZAVVtvwfHyE/JPJWkD055TxU5tQ hoPPdfbAZLp3MHBuGwqaZCUmFxypI4hZOm0FICN7TW0deZQr3WBPkQUJHq3dXiS9Fd05 U8/cSx+B0kJ4fW0dg951OTFZfyalUy6SY0Mb3mvi6fOmjjLKglJRDScPpl4hxJnrIn6e DZ/NmNc13yOfusI/C4ppwqSv/EX+4pn2F9LTI1MWh9KmWugqEJUrjeqGZYzaBltRxwCC vnCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=zJ+of/N898mn6+MMKCC8Xc1hAU8HgyGSPOVbS8YotJA=; b=OWuQaYGKlMFIX1FFgXwxtPYLfYPJdlxvj3EYjQ8Pqae8ILAY8moP06m6Fc9lK49gxr twfannkYd8RnacuI3oRK68q0R0bJP9ikqkKF9cA3EkMGHtw3V0oyZ8igL5CB20oAH3ar VxWtWu/32tKALwwlOb+B0YUDen8aRDs/Fdeu3+vtzh/Gl0FbHCp3DXJvw6G1qV9tGSo0 DD7qPCZllU3k/ab+ENKAQVxx3KaUsoC+GYRShSZN+oRE043tImt7v6QWWDtIT7IBac2t juiw+FJ00bMszuF3x6zVQmcal6jc+wsD4CPw5lYMvCXGCYdb+fXkx6EN3UjqGh/ZkYQN gyww== X-Gm-Message-State: AOPr4FXAQS48JX/cRLHc81oOY0AbV9cVF5ny+9+ty9Dt8dKqzI1x7UPSjlIcFTZg3KDNog== X-Received: by 10.28.129.6 with SMTP id c6mr8904098wmd.75.1461748459988; Wed, 27 Apr 2016 02:14:19 -0700 (PDT) Received: from cplx43.eu.thmulti.com ([141.11.62.7]) by smtp.gmail.com with ESMTPSA id w3sm3002161wjt.0.2016.04.27.02.14.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 27 Apr 2016 02:14:19 -0700 (PDT) From: Hans Dedecker To: openwrt-devel@lists.openwrt.org Date: Wed, 27 Apr 2016 11:14:02 +0200 Message-Id: <1461748442-9469-6-git-send-email-dedeckeh@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1461748442-9469-1-git-send-email-dedeckeh@gmail.com> References: <1461748442-9469-1-git-send-email-dedeckeh@gmail.com> Subject: [OpenWrt-Devel] [PATCH 6/6] ppp: Add ppp-mod-passwordfd subpackage to ppp X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Hans Dedecker , cyrus@openwrt.org MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" Signed-off-by: Hans Dedecker --- package/network/services/ppp/Makefile | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/package/network/services/ppp/Makefile b/package/network/services/ppp/Makefile index e0acf59..23c1e93 100644 --- a/package/network/services/ppp/Makefile +++ b/package/network/services/ppp/Makefile @@ -10,7 +10,7 @@ include $(INCLUDE_DIR)/kernel.mk PKG_NAME:=ppp PKG_VERSION:=2.4.7 -PKG_RELEASE:=8 +PKG_RELEASE:=9 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://download.samba.org/pub/ppp/ @@ -117,6 +117,17 @@ define Package/ppp-mod-pptp/description This package contains a PPtP plugin for ppp. endef +define Package/ppp-mod-passwordfd +$(call Package/ppp/Default) + DEPENDS:=@(PACKAGE_ppp||PACKAGE_ppp-multilink) + TITLE:=pap/chap secret from filedescriptor +endef + +define Package/ppp-mod-passwordfd/description +This package allows to pass the PAP/CHAP secret from a filedescriptor. +Eliminates the need for a secrets file. +endef + define Package/chat $(call Package/ppp/Default) TITLE:=Establish conversation with a modem @@ -238,6 +249,12 @@ define Package/ppp-mod-pptp/install $(INSTALL_DATA) ./files/etc/ppp/options.pptp $(1)/etc/ppp/ endef +define Package/ppp-mod-passwordfd/install + $(INSTALL_DIR) $(1)/usr/lib/pppd/$(PKG_VERSION) + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/lib/pppd/$(PKG_VERSION)/passwordfd.so \ + $(1)/usr/lib/pppd/$(PKG_VERSION)/ +endef + define Package/chat/install $(INSTALL_DIR) $(1)/usr/sbin $(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/chat $(1)/usr/sbin/ @@ -260,6 +277,7 @@ $(eval $(call BuildPackage,ppp-mod-pppoe)) $(eval $(call BuildPackage,ppp-mod-radius)) $(eval $(call BuildPackage,ppp-mod-pppol2tp)) $(eval $(call BuildPackage,ppp-mod-pptp)) +$(eval $(call BuildPackage,ppp-mod-passwordfd)) $(eval $(call BuildPackage,chat)) $(eval $(call BuildPackage,pppdump)) $(eval $(call BuildPackage,pppstats))