[Buildroot] [PATCH v3] package/python-web2py: new package

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Sat Feb 14 14:47:36 UTC 2015


Dear Angelo Compagnucci,

On Sat, 14 Feb 2015 13:49:34 +0100, Angelo Compagnucci wrote:

> +config BR2_PACKAGE_PYTHON_WEB2PY_PASSWORD
> +	string "Administrative password"

I'm not sure "administrative password" is a good naming. It should
probably just be "admin panel password", or something like that.

> diff --git a/package/python-web2py/python-web2py.mk b/package/python-web2py/python-web2py.mk
> new file mode 100644
> index 0000000..6fcf0c1
> --- /dev/null
> +++ b/package/python-web2py/python-web2py.mk
> @@ -0,0 +1,34 @@
> +################################################################################
> +#
> +# web2py
> +#
> +################################################################################
> +
> +PYTHON_WEB2PY_VERSION = 2.9.12
> +PYTHON_WEB2PY_SITE = https://github.com/web2py/web2py/archive/
> +PYTHON_WEB2PY_SOURCE = R-$(PYTHON_WEB2PY_VERSION).tar.gz
> +PYTHON_WEB2PY_LICENSE = LGPLv3
> +PYTHON_WEB2PY_LICENSE_FILES = LICENSE

You should have a dependency on Python here.

> +
> +define PYTHON_WEB2PY_INSTALL_TARGET_CMDS
> +	python -c 'import os; \

Use $(HOST_DIR)/usr/bin/python2 here.

> +		os.chdir("$(@D)"); \
> +		from gluon.main import save_password; \
> +		save_password($(BR2_PACKAGE_PYTHON_WEB2PY_PASSWORD),80)'
> +	rsync -a $(@D)/* $(TARGET_DIR)/usr/share/web2py

'cp -dpfr' please

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com



More information about the buildroot mailing list