From patchwork Wed Jun 28 08:15:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Angelo Compagnucci X-Patchwork-Id: 781494 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3wyFwY1Qc2z9s2G for ; Wed, 28 Jun 2017 18:15:40 +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="rJ3YlF9H"; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 650C5303D5; Wed, 28 Jun 2017 08:15:39 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id z9icviEK0WHL; Wed, 28 Jun 2017 08:15:38 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 17CE6303BC; Wed, 28 Jun 2017 08:15:38 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 088161C16C1 for ; Wed, 28 Jun 2017 08:15:28 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 051D688487 for ; Wed, 28 Jun 2017 08:15:28 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sRMYGZdEaa8I for ; Wed, 28 Jun 2017 08:15:27 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm0-f68.google.com (mail-wm0-f68.google.com [74.125.82.68]) by hemlock.osuosl.org (Postfix) with ESMTPS id 521EC88468 for ; Wed, 28 Jun 2017 08:15:27 +0000 (UTC) Received: by mail-wm0-f68.google.com with SMTP id y5so9947697wmh.3 for ; Wed, 28 Jun 2017 01:15:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=vNn2D65cthCTVppkC7zNx5jBJEe2JA5Hd2Hx0fFjBxs=; b=rJ3YlF9HPARUt9eg55kCzWbtkYcNoR5k5AXm91sUM4bUYELeuF8KSBUPRGt/TU5Tys f3ohqGTUd0K4DigDxtnIcpz+BxN68gdsTg1hXGq7kwLN57t86x5R3N5Ynkj4f22iQ3+4 +5jjQXYvgYJl3wZSyfXNV/1btZAWXqqhL0jVd/SPsDOZqDOLjlru7v+I4aIQAM3SDnNe RETYHU8K4/nDC34d576GOlmU7w6w/O+BECDodZ1F8E7J2UPW3gdFVZorlPi9oevf50N9 2nvCPIdWnl/sDYcpORI+M40Y+lgRluQhadSJ9ULonbz4RQGoq5putjXgOigSzOUBdWUC bU+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=vNn2D65cthCTVppkC7zNx5jBJEe2JA5Hd2Hx0fFjBxs=; b=bwWFyVof356WVZkJkys+laVNq0zLbur/hnSiREJJZi6SIW2z9OklvE7kgtdltgXTsK FFqhfTBfjhXcYQAExmn0e2DF+Z/2MHhDFcoTx05N0HtTn79mFbiNkFKLbuCNn5UNVu/2 +4IcLa1xC3xm0H3vhU04Zxis3prxr961jObCvx7lwRKreiB6yVjnzOCMgJ33VDOOJCk/ 6G3bI0UTa6iCYH7D3DFTXZ45ORLqhox0HdQtNVzhklwsXurNxrhNbCNoxd3vco9ucr34 CRFuWhfa652pRR4Xcrba7M1zf3st9j4UK1XB/NzQCKqnctkvD38EEImqSt8nbkh+9dX+ z09A== X-Gm-Message-State: AKS2vOyUHNTz9HuaQPiNrF0vcRmHRhyMmj6JoGg1bhfL//GplFiXbiJV wW+TnF7WHcPmhCT4L2c= X-Received: by 10.28.195.67 with SMTP id t64mr5776252wmf.41.1498637725587; Wed, 28 Jun 2017 01:15:25 -0700 (PDT) Received: from localhost.localdomain ([89.202.204.147]) by smtp.gmail.com with ESMTPSA id z194sm4060317wmc.31.2017.06.28.01.15.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 28 Jun 2017 01:15:25 -0700 (PDT) From: Angelo Compagnucci To: buildroot@buildroot.org Date: Wed, 28 Jun 2017 10:15:14 +0200 Message-Id: <1498637714-18933-4-git-send-email-angelo.compagnucci@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1498637714-18933-1-git-send-email-angelo.compagnucci@gmail.com> References: <1498637714-18933-1-git-send-email-angelo.compagnucci@gmail.com> Subject: [Buildroot] [PATCH 3/3] package/python-web2py: remove admin panel X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" This commmit adds an option to remove admin panel to save speace if not needed. Signed-off-by: Angelo Compagnucci --- package/python-web2py/Config.in | 11 +++++++++++ package/python-web2py/python-web2py.mk | 6 +++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/package/python-web2py/Config.in b/package/python-web2py/Config.in index b10d3a4..3b55153 100644 --- a/package/python-web2py/Config.in +++ b/package/python-web2py/Config.in @@ -14,6 +14,15 @@ config BR2_PACKAGE_PYTHON_WEB2PY if BR2_PACKAGE_PYTHON_WEB2PY +config BR2_PACKAGE_PYTHON_WEB2PY_INSTALL_ADMIN + bool "install admin panel application" + default y + help + This option install web2py admin panel application. + It can be removed to save space on embedded systems. + +if BR2_PACKAGE_PYTHON_WEB2PY_INSTALL_ADMIN + config BR2_PACKAGE_PYTHON_WEB2PY_PASSWORD string "admin panel password" default web2py @@ -21,3 +30,5 @@ config BR2_PACKAGE_PYTHON_WEB2PY_PASSWORD Set the admin panel password. endif + +endif diff --git a/package/python-web2py/python-web2py.mk b/package/python-web2py/python-web2py.mk index e0117fc..3dd4bee 100644 --- a/package/python-web2py/python-web2py.mk +++ b/package/python-web2py/python-web2py.mk @@ -36,7 +36,11 @@ define PYTHON_WEB2PY_GENERATE_PASSWORD save_password($(BR2_PACKAGE_PYTHON_WEB2PY_PASSWORD),8000)' endef -PYTHON_WEB2PY_POST_BUILD_HOOKS += PYTHON_WEB2PY_GENERATE_PASSWORD +ifeq ($(BR2_PACKAGE_PYTHON_WEB2PY_INSTALL_ADMIN),y) + PYTHON_WEB2PY_POST_BUILD_HOOKS += PYTHON_WEB2PY_GENERATE_PASSWORD +else + PYTHON_WEB2PY_EXCLUSIONS += applications/admin +endif define PYTHON_WEB2PY_INSTALL_TARGET_CMDS mkdir -p $(TARGET_DIR)/var/www/web2py