]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
package/python-web2py: remove admin panel
authorAngelo Compagnucci <angelo.compagnucci@gmail.com>
Wed, 28 Jun 2017 08:15:14 +0000 (10:15 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 31 Jul 2017 20:56:24 +0000 (22:56 +0200)
This commmit adds an option to remove admin panel to save
speace if not needed.

Signed-off-by: Angelo Compagnucci <angelo.compagnucci@gmail.com>
[Thomas: fix indentation.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/python-web2py/Config.in
package/python-web2py/python-web2py.mk

index b10d3a48a588280b04a8c06c6627daa24811bd42..3b551532368920385ea8ba236b86a3ae0034c449 100644 (file)
@@ -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
index 3f9d089bcd54dcd464683cfb9cf4331639cc6afe..887925b64ebbff4e0994155da18b4747437f7d38 100644 (file)
@@ -36,7 +36,11 @@ define PYTHON_WEB2PY_GENERATE_PASSWORD
                save_password($(BR2_PACKAGE_PYTHON_WEB2PY_PASSWORD),8000)'
 endef
 
+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