Commit Graph
100 Commits
Author SHA1 Message Date
Jeffery ToandEneas U de Queiroz 1c54706b97 libevhtp: Fix dependencies not selected when building static library
When libevhtp is added to a package's PKG_BUILD_DEPENDS (i.e. for
seafile-server), libevhtp's target package dependencies are not
automatically selected, in particular libevent2-openssl and
libevent2-pthreads.

Moreover, if libevent-openssl and libevent2-pthreads are not selected,
OpenSSL and thread support are disabled when compiling libevent2, which
in turn causes a compile error when building libevhtp.

This adds a config option, LIBEVHTP_BUILD_DEPENDS, that will select
libevent2-openssl and libevent2-pthreads (via LIBEVHTP_BUILD_SELECT)
when it is selected.

Other build dependencies are moved to PKG_BUILD_DEPENDS.

This also updates seafile-server to remove the (indirect) dependencies
added in 13d843fec1 and instead select
LIBEVHTP_BUILD_DEPENDS.

This also updates the maintainer's email address and adds myself as
another maintainer.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-05-05 23:03:30 -03:00
Jeffery To 10fb31451e django-simple-captcha: Change download source to PyPI
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-05-01 05:14:11 +08:00
Jeffery To b333a95af6 python-schema: Update to 0.7.2, change download source to PyPI
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-05-01 05:11:08 +08:00
Jeffery To 0c83ce62c0 python-decorator: Update to 4.4.2, change download source to PyPI
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-05-01 05:02:50 +08:00
Jeffery To b5ba871c8f python-dns: Change download source, remove incorrect PKG_CPE_ID
This changes the package to download from PyPI (using pypi.mk) and
removes the incorrect PKG_CPE_ID.

The CPE id was for Debian's python-dns package which contains PyDNS
("pydns" on PyPI). This package contains "dnspython" from PyPI.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-05-01 04:53:48 +08:00
Jeffery To 1e6b948963 python-cryptography: Update to 2.9.2
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-29 19:15:43 +08:00
Jeffery To bd48589e21 radicale2: Clean up Makefile
* Remove preinst, the default prerm script will stop the service
* Use default Python package filespec and shebang fix

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-29 17:48:46 +08:00
Jeffery To f304e57b35 uwsgi: Use pypi.mk to download source tarball
This also removes PKG_BUILD_DIR, which does not need to be explicitly
set.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-29 16:49:42 +08:00
Jeffery To 32f727f0ee scapy: Use Python packaging, PyPI download
This updates the package to use the default Python package build recipe,
adds a src package, and changes to download from PyPI (using pypi.mk).

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-29 16:25:20 +08:00
Jeffery To 1929baac6d bash: Enable system-wide .bashrc file, source /etc/shinit
This enables a system-wide .bashrc file (/etc/bash.bashrc), as well as
some other options related to startup files, and sources /etc/shinit for
interactive shells.

Fixes https://bugs.openwrt.org/index.php?do=details&task_id=3019.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-29 04:38:24 +08:00
Jeffery To dc5f2df6a4 bash: Import upstream patches
Source:
https://ftp.gnu.org/gnu/bash/bash-5.0-patches/
(bash50-003 to bash50-017)

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-29 04:38:24 +08:00
Jeffery To 9f81ab895e python3: Fix host build tool names recorded in target files
Python will record the values of CC, CXX, AR, and READELF (and other
configure options) used during compilation. pip will use these programs
when asked to compile extension modules on the target device.

* If ccache is used during build, CC and CXX will be ccache_cc and
  ccache_cxx, respectively, which are not available on-device (#11912).

* If an external toolchain is used during build, the values of these
  variables will contain the external toolchain prefix, which may not be
  available on target.

* If the normal toolchain is used during build, AR and READELF will
  contain the toolchain prefix, but the names of ar and readelf
  on-device do not contain the prefix; they are named "ar" and
  "readelf".

This changes the values of these variables in Python's files to match
the names available on-device, and without any toolchain prefix.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-27 14:10:53 +08:00
Jeffery To 6678689f44 python-lxml: Use default Python package build recipe
This also updates the package's metadata (title, description, license).

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-25 00:34:11 +08:00
Jeffery To 11bc05763d python3-pip: Fix error when installing packages that require compilation
This addresses one of the issues raised in #11912.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-24 21:09:37 +08:00
Jeffery To 125f9fca87 python-gnupg: Update to 0.4.6
This also updates all package metadata (it appears this information was
not updated when the package switched from packaging "gnupg" from PyPI
to "python-gnupg"), updates the package to use the default Python
package build recipe, and adds a src package.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-23 05:25:52 +08:00
Jeffery To 97b435c8a5 python-appdirs: Fix description
This fixes the incorrect description for this package, as well as adding
a more descriptive title.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-23 04:38:43 +08:00
Jeffery To 78ef6a9d31 django1: Remove common package
python-django1-common was added to allow both Python 2 and 3 versions of
Django 1.11 to be installed at the same time. With the removal of Python
2, this package is no longer necessary.

This removes this common package and updates the CONFLICTS value for the
django package.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-23 04:24:23 +08:00
Jeffery To 7bf5ed1eda vobject: Remove maintainer
The previous maintainer has removed himself from his other packages
(#11612). This package appears to have been omitted by mistake.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-23 03:47:12 +08:00
Jeffery To 2e14e639c4 python-zope-interface: Update to 5.1.0
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-23 03:40:11 +08:00
Jeffery To a00a0230b4 golang: Update to 1.14.2
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-23 02:40:50 +08:00
Jeffery To 2210c4a60d python-packages: Clean up Makefiles
This removes:

* Python 3 variants (VARIANT:=python3)

* "for Python3" from package titles

* Package selection condition from package dependencies, e.g.
  +PACKAGE_python3-six:python3-light replaced with +python3-light

* "Default" package information sections, e.g.
  Package/python-six/Default removed and package details merged into
  Package/python3-six

* "(Variant for Python3)" from package descriptions

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-22 16:36:55 +08:00
Jeffery To 89ae10ed71 python3: Change PYTHON_VERSION references to PYTHON3_VERSION
PYTHON_VERSION is a holdover from Python 2; all Python 3 variables are
prefixed with PYTHON3 (or some variation with "3").

This updates all uses of PYTHON_VERSION to PYTHON3_VERSION.

This also sets PYTHON3_PKG_BUILD:=0 before python3-package.mk is
included in the python3 Makefile.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-19 01:56:23 +08:00
Jeffery To 81e99fa7ff seafile: Remove Python variants, update Python packaging
This removes Python build variants and adds PYTHON3_PKG_BUILD:=0 (where
appropriate) for the Seafile packages.

This also updates the way the Python bindings packages are packaged,
using automake installation instead of manual install recipes.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-19 01:56:23 +08:00
Jeffery To 1bc2f4f3c6 treewide: Remove Python variants for non-Python packages
This removes Python-related build variants, and adds
PYTHON3_PKG_BUILD:=0 and minor build adjustments (where appropriate),
for non-Python packages. There should be no changes to build output.

This also updates some include paths for python3-package.mk and/or
python3-host.mk to be relative to the package Makefile.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-19 01:56:23 +08:00
Jeffery To 9636f6f447 python3: Use PYTHON3_PKG_BUILD to control default Python package build
This replaces the use of BUILD_VARIANT with PYTHON3_PKG_BUILD to opt
in/out of the default Python package build recipe (Py3Build/Compile).

PYTHON3_PKG_BUILD defaults to true (1), i.e. if a package includes
python3-package.mk, then by default it will set the package's
Build/Compile to Py3Build/Compile.

If PYTHON3_PKG_BUILD is set to 0 before python3-package.mk is included,
then Build/Compile will not be modified.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-19 01:56:23 +08:00
Jeffery To 58719a3c4b python3: Remove MIPS16 changes from python3-package.mk
There are no bug reports or other evidence to suggest Python is not
compatible with MIPS16 compilation.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-19 01:56:23 +08:00
Jeffery To ba127c155a python3: Minor edits for python3-package.mk
* Remove PYTHON3_BIN_DIR, it isn't used anywhere in the repo
* Rephrase *-src package description
* Reduce Py3Package/$(1)/install indentation

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-19 01:56:23 +08:00
Jeffery To c9b260f5ae python3: Add canned recipe to invoke filespec processing
This extracts filespec export and processing into
Py3Package/ProcessFilespec.

This also allows the filespec variable to be explicitly set to an empty
value, to bypass filespec processing. (The default filespec is also
available as Py3Package/filespec/Default to be explicitly assigned to
the filespec variable.)

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-19 01:56:23 +08:00
Jeffery To 3cdca38dce python3: Move functionality into python3-package.mk
This moves functionality from python-package-install.sh into
python3-package.mk, so that they can be reused separate from filespec
processing.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-19 01:56:23 +08:00
Jeffery To 0bc1bf5578 python3: Reorder recipes in python3-package.mk
Group Python3/* recipes together, group Py3Package and Py3Build
together.

This also adds headings and whitespace to separate major sections.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-19 01:56:23 +08:00
Jeffery To fc8387614c python3: Rename canned recipes in python3-package.mk
This renames "internal" recipes to use the Python3/ prefix and clarifies
the names (RunTarget to Run, Mod to ModSetup, Shebang to FixShebang).

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-19 01:56:23 +08:00
Jeffery To 87b8f45230 python3: Rename canned recipes in python3-host.mk
This changes the recipe name prefix from Build/Compile/HostPy3 to
HostPython3, and clarifies some of the names (RunHost to Run, Mod to
ModSetup).

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-19 01:56:11 +08:00
Jeffery To 3642b18441 python3: Remove HostPython3 in python3-host.mk
HostPython3 only adds a few environment variables before running host
Python. It has only two users, Build/Compile/HostPy3RunHost and
Build/Compile/HostPy3RunTarget.

HostPython3 also accesses $(PYTHON3PATH), even though python3-host.mk
does not include python3-package.mk, where the variable is defined.

This removes HostPython3 and has its two users run host Python directly.
This also combines the environment variables of HostPython3 and the two
users into HOST_PYTHON3_VARS and PYTHON3_VARS.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-19 01:56:07 +08:00
Jeffery To 302f4d17e3 libmraa,libupm: Disable default Python package build recipe
This adds PYTHON3_PKG_BUILD:=0, to disable the default Python package
build recipe. There should be no changes to build output.

This also updates include paths for python3-package.mk to be relative to
the package Makefile.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-18 20:42:59 +08:00
Jeffery To 2dfdef66a3 python3: Remove include guard for python3-host.mk
Since it only defines variables and canned recipes, it is safe to
include python3-host.mk more than once.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-17 23:19:13 +08:00
Jeffery To 7328bcc15e seafile-server: Update to 7.1.3
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-08 17:06:35 +08:00
Jeffery To 6138fe57fe seafile-seahub: Update to 7.1.3, refresh patches
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-08 17:06:35 +08:00
Jeffery To 239948b261 seafile-ccnet: Update to 7.1.3
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-08 17:06:35 +08:00
Jeffery To 8b84576948 libsearpc: Update to "new" version, switch to git download method
Upstream changed the v3.2.0 tag. Previously it referred to
haiwen/libsearpc@23f581b39f; now it refers
to haiwen/libsearpc@d1fd7518a2.

This changes the packaged version to the "new" v3.2.0 and switches to
using the git download method (technically the github_archive method),
since the codeload filenames of the previous and current versions are
the same but the files have different hashes.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-08 17:06:35 +08:00
Jeffery To 8659757df8 python-cryptography: Update to 2.9, remove setup patch
Since cffi is installed by HOST_PYTHON3_PACKAGE_BUILD_DEPENDS, it
shouldn't be necessary to clear setup_requirements anymore.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-06 15:54:04 +08:00
Jeffery To 3f7f4df32c python-zope-interface: Update to 5.0.2
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-06 15:13:38 +08:00
Jeffery To 932bfe4cf3 python3-pip: Symlink pip3 to pip3.8
Currently, python3-pip installs the same script as pip3 and pip3.8 to
usr/bin. This changes pip3 to be a symlink to pip3.8.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-04 06:21:39 +08:00
Jeffery To 8c7039fa7d python: Update readme
* Replace the Python 2 pending removal notice/schedule with a brief
  message about the removal
* Replace mentions of "Python & Python 3" with just "Python" (references
  to the version number are kept only in cases where it is necessary)
* Update Makefile example code to use Python 3 conventions/names

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-04 03:09:25 +08:00
Jeffery To 2e48a26b17 python: Remove package
This package will be added to the abandoned packages feed.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-03 03:26:40 +08:00
Jeffery To 658b1b6758 python-libraries: Remove Python 2 variants
The Python 2 variants will be added to the abandoned packages feed.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-02 14:57:30 +08:00
Jeffery To c37b15e1c4 python-libraries: Remove Python 2-only packages
These are either libraries that backport Python 3 features for Python 2
programs, or libraries that have not had Python 3 variants added to them
by anyone.

These packages will be added to the abandoned packages feed.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-02 14:57:30 +08:00
Jeffery To 92e1ce5c8e i2c-tools: Remove Python 2 SMBus bindings package
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-01 02:09:24 +08:00
Jeffery To 2fae7ce7de seafile-server: Remove Python 2 bindings
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-01 02:08:50 +08:00
Jeffery To 155eb27036 seafile-ccnet: Remove Python 2 bindings
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-01 02:08:15 +08:00
Jeffery To 038d0831cd freeradius3: Remove Python 2 module package
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-01 02:07:45 +08:00
Jeffery To 9c020b1df8 libupm: Remove Python 2 library package
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-01 02:07:10 +08:00
Jeffery To eab7addaeb libtalloc: Remove Python 2 host build depends
This should not be needed and was probably added by mistake.

See https://github.com/openwrt/packages/pull/9686#discussion_r371552924

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-01 02:05:11 +08:00
Jeffery To 6872f22764 libsearpc: Remove Python 2 bindings
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-01 02:00:40 +08:00
Jeffery To ae090fa565 libmraa: Remove Python 2 library package
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-01 01:58:51 +08:00
Jeffery To 2ec2d69e13 elektra: Remove Python 2 plugin package
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-01 01:58:03 +08:00
Jeffery To 2aaf4a6aee boost: Remove Python 2 library package
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-01 01:56:02 +08:00
Jeffery To d50f961f06 yunbridge: Remove package
This version of yunbridge will cease to function once Python 2 is
removed from the feed. It does not appear[1] that upstream will be
updated with a version that uses Python 3.

This package will be added to the abandoned packages feed.

[1]: https://github.com/arduino/YunBridge/issues/31

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-03-31 14:54:23 +08:00
Jeffery To 29aca90911 obfsproxy: Remove package
This version of obfsproxy will cease to function once Python 2 is
removed from the feed. Upstream has indicated[1] that this package will
not be updated to use Python 3.

This package will be added to the abandoned packages feed.

[1]: https://trac.torproject.org/projects/tor/ticket/31057

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-03-31 14:54:23 +08:00
Jeffery To d9bdb432fe danish: Remove package
This version of danish will cease to function once Python 2 is removed
from the feed. The maintainer has indicated[1] that this package will
not be updated to use Python 3.

This package will be added to the abandoned packages feed.

[1]: https://github.com/openwrt/packages/issues/8893#issuecomment-489312682

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-03-31 14:54:23 +08:00
Jeffery To cec41bccaf mailman: Remove package
This version of mailman will cease to function once Python 2 is removed
from the feed. There does not appear to be any interest in updating this
package to a current version that uses Python 3.

This package will be added to the abandoned packages feed.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-03-31 14:54:23 +08:00
Jeffery ToandNuno Goncalves 067c93b028 nmap: Update to 7.80, add full variant, switch to Python 3
* Update to 7.80

* Add "full" variants for nmap and ncat that support Lua scripts (and
  OpenSSL)

* Replace libcxx fix with upstream patch[1] (CHANGELOG change was
  removed)

* Switch ndiff to use Python 3 (using a patch from Debian[2], which
  comes from an upstream PR[3] plus a port of ndiff/setup.py)

[1]: https://github.com/nmap/nmap/commit/ea4e2d6657103a2c3d6f543a1a8619eb4d4472c8
[2]: https://salsa.debian.org/pkg-security-team/nmap/-/blob/0510c602dd45f4dc0b06a6f422a9b0855564ddbb/debian/patches/0004-Python3-port-of-ndiff.patch
[3]: https://github.com/nmap/nmap/pull/1807

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-03-29 22:26:07 +01:00
Jeffery To cf1579a75c newt: Remove python_init_once.patch
It was pointed out in #11504 that the code in python_init_once.patch is
incorrect; the patch does not prevent newtInit() from being called more
than once (in fact it is called twice the first time initScreen() is
called).

Testing without the patch, using the example code from the corresponding
Debian bug report[1], did not result in any segfaults.

This removes the patch from the package build.

Supersedes #11504.

[1]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=557960#5

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-03-24 15:51:55 +08:00
Jeffery To 7662e1ea9b python-zope-interface: Update to 5.0.1, refresh patch
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-03-24 01:18:33 +08:00
Jeffery To 633c81e7a9 python-twisted: Update to 20.3.0, refresh patches
This update includes fixes for:
* CVE-2020-10108
* CVE-2020-10109

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-03-23 23:17:45 +08:00
Jeffery To 5f392c62a5 golang: Update to 1.14.1
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-03-23 21:25:52 +08:00
Jeffery To 7513448d20 python3: Update to 3.8.2, fix python3-xml dependency
xml.sax.saxutils has a dependency on urllib[1].

[1]: https://github.com/python/cpython/blob/v3.8.2/Lib/xml/sax/saxutils.py#L6

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-03-20 16:30:22 +08:00
Jeffery To a178662fce python-zope-interface: Update to 4.7.2, refresh patch
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-03-17 02:04:38 +08:00
Jeffery To 48af5b2abb python-enum34: Update to 1.1.10, refresh patch
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-03-17 01:49:24 +08:00
Jeffery To 931dcfe3aa python-pycparser: Update to 2.20
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-03-16 22:46:25 +08:00
Jeffery To cbfd166b15 seafile-server: Update to 7.1.2, revamp package
* Package scripts that are shipped by upstream in their binary download

  * Includes setup scripts (setup-seafile.sh to use SQLite,
    setup-seafile-mysql.{sh,py} to use MySQL) and control scripts
    (seafile.sh, seahub.sh)

  * Does not include seafile-admin, which is not shipped in upstream's
    binary download. Combined with the fact that it hasn't been updated
    to Python 3 suggests the script has been abandoned.

* Replace previous init scripts with a simplified script

  * Previous init scripts (seafile.init, seahub.init) were modified from
    older versions of seafile.sh and seahub.sh, but they haven't kept up
    with changes to upstream's scripts

  * New init script (seafile-server.init) start/stops both Seafile and
    Seahub (there is no need to control them separately) by calling
    upstream's control scripts

* Replace previous package config file with new config file

  * Options in previous config file (seafile.conf) were mainly for using
    Seahub in FastCGI mode. FastCGI was deprecated in Django 1.7 and
    removed in 1.9; upstream's control script will only start Seahub
    using Gunicorn. (Options for Gunicorn including port number can be
    changed by editing /etc/seafile/conf/gunicorn.conf.py.)

  * New config file (seafile-server.config) has one option that controls
    where the Seafile/Seahub data directories are stored

* Patch scripts/binaries to use standard, system-wide directory
  locations

  * Script files (wrappers for binaries) in /usr/bin
  * Binaries (not meant to be run directly by the user) in /usr/libexec
  * Config files in /etc/seafile
  * Pid/socket files in /var/run/seafile
  * Logs in /var/log/seafile

* Include a new script to create the first admin account

  * With upstream's original scripts, the user is required to
    interactively create the first admin account when Seahub is started
    for the first time

  * The user will now use the new script (create-seafile-admin.sh) to
    create the first admin account after setup (using setup-seafile.sh
    or setup-seafile-mysql.sh) and before starting Seafile/Seahub

  * seahub.sh is patched to only check if there is at least one admin
    account and exit with an error if there is no admin account

* Remove build config options and add seafile-server-fuse package

  * The console option controls whether the console window is shown when
    Seafile server is run on Windows. It has no use on Linux.

  * The fuse option controls whether seaf-fuse is built. (seaf-fuse is a
    FUSE implementation that allows the Seafile database/file system to
    be mounted to a local directory.) seaf-fuse is now always built and
    is available in a separate package (seafile-server-fuse).

* Add myself as a maintainer

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-03-16 17:46:30 +08:00
Jeffery To 1d275a8f27 seafile-seahub: Update to 7.1.2, refresh patches
Other changes include:

* Package Python bytecode in seafile-seahub, add source code package
  (seafile-seahub-src)

* Instead of changing default settings, custom settings will be added to
  /etc/seafile/conf/seahub_settings.py during seafile-server setup

* Use SEAFILE_UCI_DATA_DIR, which will be added to seafile-server

* Clean up Makefile formatting

* Add myself as a maintainer

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-03-16 17:45:52 +08:00
Jeffery To 6b84a7d38d seafile-ccnet: Update to 7.1.2, add Python 3 bindings package
* Update package to 7.1.2

* Add Python 3 bindings package. The Python dependency is moved from
  seafile-ccnet to python3-seafile-ccnet.

* Refresh patches. The path to valac does not need to be patched in
  010-Makefile.patch because $(STAGING_DIR_HOSTPKG)/bin is already in
  the path during package build.

* Use SEAFILE_UCI_LOG_DIR and SEAFILE_UCI_SOCKET_DIR, which will be
  added to seafile-server

* Install binaries to /usr/libexec instead of /usr/bin, to mirror an
  upcoming change in seafile-server

* Clean up Makefile formatting

* Add myself as a maintainer

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-03-16 17:44:48 +08:00
Jeffery To 825400ee41 libsearpc: Update to 3.2.0, add Python 3 bindings package
This also moves the Python dependency from libsearpc to python3-searpc,
and adds myself as a maintainer.

Patches:
* 001-fix-memory-leak-GH-48.patch: This is (at this time) the only
  difference between the tags v3.2.0 and v3.2-latest.

* 002-no-future-import.patch: The future package is only needed for
  Python 2 compatibility; all of the functions/symbols it provides are
  available in Python 3.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-03-14 04:49:59 +08:00
Jeffery To 5792851234 django-ranged-response: Fix project URL
django-ranged-response is a fork of django-ranged-fileresponse, but they
did not update the URL on PyPI[1].

The URL in this change appears to be the correct one.

[1]: https://github.com/wearespindle/django-ranged-fileresponse/issues/10#issuecomment-509965566

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-03-14 04:35:00 +08:00
Jeffery To 69c67fe9f7 django-postoffice: Update to 3.2.1
This version is not the latest available update, but is the last version
compatible with Python 2.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-03-14 04:35:00 +08:00
Jeffery To 7f9d22b5ad django-jsonfield: Change packaged project
Previously, this packaged "django-jsonfield" on PyPI.

The only (in-tree) package that depends on this package is
django-postoffice.

django-post-office actually depends on "jsonfield" on PyPI.[1][2]

This changes the packaged project from "django-jsonfield" to
"jsonfield".

The version packaged here is not the latest available update, but the
last version compatible with Django 1.11 / Python 2.

[1]: https://github.com/ui/django-post_office/blob/v3.2.1/setup.py#L45
[2]: https://github.com/ui/django-post_office/issues/182

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-03-14 04:35:00 +08:00
Jeffery To 22b4000d33 django-picklefield: Update to 2.1.1
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-03-14 04:35:00 +08:00
Jeffery To ec8c7a8940 django-appconf: Update to 1.0.3
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-03-14 04:35:00 +08:00
Jeffery To ef5bb48c94 django-statici18n: Update to 1.9.0, add missing dependencies
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-03-14 04:35:00 +08:00
Jeffery To b9a4286262 django1: Fix byte-compiled db migrations not loaded
This patches Django to load byte-compiled (.pyc) db migration scripts,
since Python scripts are often distributed in byte-compiled form in
OpenWrt packages.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-03-14 04:35:00 +08:00
Jeffery To fa3189b65f shinit: Remove package
The original patch[1] this package was based on has been merged into
OpenWrt master, making this package unnecessary.

[1]: https://patchwork.ozlabs.org/patch/1094493/

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-03-05 15:27:21 +08:00
Jeffery To 074b417c67 golang: Update to 1.14
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-03-05 02:53:44 +08:00
Jeffery To 111d7ae088 python-idna: Update to 2.9
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-02-24 04:45:09 +08:00
Jeffery To 87150b43a8 python-enum34: Update to 1.1.9, refresh patch
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-02-24 04:43:23 +08:00
Jeffery To 9a049b6ece python-automat: Update to 20.2.0, refresh patches
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-02-24 04:41:16 +08:00
Jeffery To 1772267747 golang: Update to 1.13.8
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-02-18 17:57:55 +08:00
Jeffery To 847d9f18cc byobu: Update to 5.133
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-02-18 17:30:41 +08:00
Jeffery To 07251a0543 django1: Add python3-django1 package
This adds a Python 3 version of the django1 package.

This also adds a python-django1-common package that contains a
django-admin script based on the one in Debian[1]. This allows
python-django1 and python3-django1 to be installed at the same time.

python3-django conflicts with python-django1 (via python-django1-common)
and python3-django1.

This also updates older Python 3 Django plugin packages to depend on
python3-django1, and newer plugin packages to depend on "django", which
both python3-django and python3-django1 provide.

Because of this dependency on either version of Django, the MDEPENDS for
Python 3 Django plugin packages no longer functions correctly and has
been removed.

[1]: https://salsa.debian.org/python-team/modules/python-django/blob/debian/buster/debian/django-admin

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-02-13 15:29:59 +08:00
Jeffery To ec97bdee35 django1-restframework: Rename to django-restframework39, add Py3 package
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-02-13 15:29:08 +08:00
Jeffery To c4c972d0f7 python-cffi: Update to 1.14.0
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-02-12 13:40:21 +08:00
Jeffery To bddd1ec588 golang: Update files installed
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-02-05 14:19:34 +08:00
Jeffery To 89d3f0ab54 golang: Reorganize GoPackage/Environment and Makefile variables
* Move more environment variables into GoPackage/Environment
* Split GoPackage/Environment into target and build sections
* Do not set GOROOT_FINAL for Go packages (setting it should only affect
  the Go compiler and not Go packages)
* Set CGO_LDFLAGS to $(TARGET_LDFLAGS)
* Move GO_TARGET_* variables from golang-values.mk, and GO_VERSION_*
  variables from golang-version.mk, into golang/Makefile

This also updates runc, containerd, and docker-ce to reflect the changes
in GoPackage/Environment.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-02-05 14:19:34 +08:00
Jeffery To 3b5f1c73fb golang: Improve build isolation from user environment
* Set GOENV=off when building Go compiler and packages, to ignore user's
  environment configuration file
* Set GOCACHE when building host Go
* Unset GOTMPDIR, to use the buildroot temp directory instead of temp
  directories in build_dir

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-02-04 04:05:29 +08:00
Jeffery To 0dc4fa6efb golang: Update to 1.13.7, add PKG_CPE_ID to Makefile
This update includes fixes for[1]:
* CVE-2020-7919 - doesn't appear to be published publicly yet
* CVE-2020-0601 - a Windows-related issue

[1]: https://github.com/golang/go/issues?q=milestone%3AGo1.13.7+label%3ACherryPickApproved

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-02-03 04:58:58 +08:00
Jeffery To 3c24a24e25 python-packages: Clean up Makefiles
* Replace $(PKG_NAME) with package name in call, define, and eval lines
* Remove extra "define" in $(call define Package/.../description)

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-01-30 22:44:26 +08:00
Jeffery To a0da5aec7f python: Fix float byte order detection
This backports patches from bpo-34585[1] to fix byte order detection of
floats.

Fixing byte order detection allows the repr() of floats to be shorter (a
feature backported to Python 2.7 from Python 3.1[2]).
sys.float_repr_style should be 'short' instead of 'legacy' on supported
platforms.

See #11134.

[1]: https://bugs.python.org/issue34585
[2]: https://docs.python.org/2.7/whatsnew/2.7.html#python-3-1-features

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-01-30 18:28:49 +08:00
Jeffery To 290357b7fe aircrack-ng: Update to 1.6
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-01-28 05:49:02 +08:00
Jeffery To 20c72b00a2 python-six: Update to 1.14.0
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-01-20 23:38:56 +08:00
Jeffery To a29905c42b gpsd: Update to 3.20, add/refresh patches
New patches (both for SConstruct):

* Do not import from distutils. Since Python support/modules are not
  built, there is no need to import from distutils. (Importing from
  distutils may prevent the package from being built on systems without
  a full distutils module, e.g. Debian with python3-minimal.)

  I have added back the import in places where it may be helpful to
  have, if scons is run manually.

  Fixes #10993.

* Do not check the size of time_t. The way this is done is to compile
  and run a test program; this fails when cross-compiling[1].

  This doesn't appear to affect any functionality (other than missing a
  compile-time warning that things will fail in 2038 if time_t is too
  small).

[1]: https://gitlab.com/gpsd/gpsd/issues/48

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-01-17 04:42:46 +08:00
Jeffery To 644a16f962 scons: Switch to standalone version, update to 3.1.2
* Install the standalone (scons-local) version

  Advantages:
  - The regular version of SCons requires distutils during installation;
    the standalone version does not have this requirement

  Disadvantages:
  - The scons-local package is not available from the Fossies mirror
  - The patch will need to be manually updated with each version update

* Install files to $(STAGING_DIR_HOSTPKG) instead of $(STAGING_DIR_HOST)

* Write the correct shebang into scripts instead of using the wrapper

* Update to 3.1.2

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-01-16 20:25:48 +08:00