{"id":20317939,"url":"https://github.com/crowdsecurity/spksrc-crowdsec","last_synced_at":"2025-03-04T09:17:28.533Z","repository":{"id":42980334,"uuid":"460790202","full_name":"crowdsecurity/spksrc-crowdsec","owner":"crowdsecurity","description":null,"archived":false,"fork":false,"pushed_at":"2022-03-25T08:19:33.000Z","size":52005,"stargazers_count":16,"open_issues_count":4,"forks_count":3,"subscribers_count":12,"default_branch":"crowdsec","last_synced_at":"2025-03-01T16:39:21.384Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/crowdsecurity.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-02-18T09:32:59.000Z","updated_at":"2025-01-23T12:54:20.000Z","dependencies_parsed_at":"2022-09-06T15:10:30.962Z","dependency_job_id":null,"html_url":"https://github.com/crowdsecurity/spksrc-crowdsec","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crowdsecurity%2Fspksrc-crowdsec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crowdsecurity%2Fspksrc-crowdsec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crowdsecurity%2Fspksrc-crowdsec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crowdsecurity%2Fspksrc-crowdsec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crowdsecurity","download_url":"https://codeload.github.com/crowdsecurity/spksrc-crowdsec/tar.gz/refs/heads/crowdsec","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241818899,"owners_count":20025212,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T18:37:23.774Z","updated_at":"2025-03-04T09:17:28.509Z","avatar_url":"https://github.com/crowdsecurity.png","language":"Makefile","funding_links":[],"categories":["Integrations"],"sub_categories":["Other Bouncers"],"readme":"# Discord\nSynoCommunity is now on Discord!\n\n[![Discord](https://img.shields.io/discord/732558169863225384?color=7289DA\u0026label=Discord\u0026logo=Discord\u0026logoColor=white\u0026style=for-the-badge)](https://discord.gg/nnN9fgE7EF)\n\n# DSM 7\nDSM 7 was released on June 29 2021 as Version 7.0.41890.\n\n## In SynoCommunity some packages are available for DSM 7 but some are not.\n* You find the status of the packages in the issue [#4524] **Meta: DSM7 package status**\n* Despite you see packages of SynoCommunity in the Package Center of your Diskstation with DSM 7, some of the packages are not compatible with DSM 7.\n* PLEASE do not create issues saying that package `xy` cannot be installed on DSM 7. All packages not yet ported to DSM 7 will refuse the installation with a message about \"package requires root privileges\" (or \"invalid file format\", ...).\n* Please regard all DSM 7 packages as beta versions (the synocommunity package repository is not capable to declare packages as beta only for DSM 7).\n* **ATTENTION**: As reported, package configuration settings may be lost following the upgrade to DSM 7 and the execution of a Package repair. Make sure to backup your settings and configuration for your SynoCommunity packages before installation of DSM 7 to facilitate restoration if needed.\n* Packages of the following kind will need some time to make DSM 7 compatible\n  * Packages depending MySQL database must be migrated to MariaDB 10\n  * Packages with installation Wizard to configure a shared folder (all download related packages and others)\n  * Packages that integrate into DSM webstation\n* As this is a community project where people spend there spare time for contribution, it may take a long time until most of the packages are ported to DSM 7. (There are still packages here that are not ported from DSM 5 to DSM 6 yet).\n\n# spksrc\nspksrc is a cross compilation framework intended to compile and package software for Synology NAS devices. Packages are made available via the [SynoCommunity repository].\n\n\n## Contributing\nBefore opening a new issue, check the [FAQ] and search open issues.\nIf you can't find an answer, or if you want to open a package request, read [CONTRIBUTING] to make sure you include all the information needed for contributors to handle your request.\n\n\n## Setup Development Environment\n### Docker\n*The Docker development environment supports Linux and macOS systems, but not Windows due to limitations of the underlying file system.*\n\n1. [Fork and clone] spksrc: `git clone https://github.com/YOUR-USERNAME/spksrc`\n2. Install Docker on your host OS (see [Docker installation], or use a `wget`-based alternative for linux [Install Docker with wget]).\n3. Download the spksrc Docker container: `docker pull ghcr.io/synocommunity/spksrc`\n4. Run the container with the repository mounted into the `/spksrc` directory with the appropriate command for your host Operating System:\n\n```bash\ncd spksrc # Go to the cloned repository's root folder.\n\n# If running on Linux:\ndocker run -it -v $(pwd):/spksrc ghcr.io/synocommunity/spksrc /bin/bash\n\n# If running on macOS:\ndocker run -it -v $(pwd):/spksrc -e TAR_CMD=\"fakeroot tar\" ghcr.io/synocommunity/spksrc /bin/bash\n```\n5. From there, follow the instructions in the [Developers HOW TO].\n\n### LXC\nA container based on 64-bit version of Debian 10 stable OS is recommended. Non-x86 architectures are not supported.  The following assumes your `lxd` environment is already initiated (e.g. `lxc init`) and you have minimal LXD/LXC knowledge :\n1. Create a new container (will use x864_64/amd64 arch by default): `lxc launch images:debian/10 spksrc`\n2. Enable i386 arch: `lxc exec spksrc -- /usr/bin/dpkg --add-architecture i386`\n3. Update apt channels: `lxc exec spksrc -- /usr/bin/apt update`\n4. Install all required packages:\n```\nlxc exec spksrc -- /usr/bin/apt install autogen autoconf-archive automake bc bison build-essential check \\\n                                cmake curl cython debootstrap ed expect flex g++-multilib gawk gettext git gperf \\\n                                imagemagick intltool jq libbz2-dev libc6-i386 libcppunit-dev libffi-dev libgc-dev \\\n                                libgmp3-dev libltdl-dev libmount-dev libncurses-dev libpcre3-dev libssl-dev \\\n                                libtool libunistring-dev lzip mercurial moreutils ncurses-dev ninja-build php \\\n                                pkg-config python3 python3-distutils rename scons subversion swig texinfo unzip \\\n                                xmlto zlib1g-dev\n```\n5. Install `python2` wheels:\n```\nlxc exec spksrc -- /bin/bash -c \"wget https://bootstrap.pypa.io/get-pip.py -O - | python2\"\nlxc exec spksrc -- /bin/bash -c \"pip2 install virtualenv httpie\"\n```\n6. Install `python3` wheels:\n```\nlxc exec spksrc -- /bin/bash -c \"wget https://bootstrap.pypa.io/get-pip.py -O - | python3\"\nlxc exec spksrc -- /bin/bash -c \"pip3 install virtualenv httpie\"\n```\n7. Install `meson` (requires `autoconf-archive`):\n```lxc exec spksrc -- /bin/bash -c \"pip3 install meson==0.56.0\"```\n8. (OPTIONAL) Install misc base tools:\n```\nlxc exec spksrc -- /usr/bin/apt install bash-completion man-db manpages-dev mlocate ripgrep rsync tree time\nlxc exec spksrc -- /usr/bin/updatedb\n```\n\n#### LXC: Shared `spksrc` user (OPTIONAL)\nYou can create a shared user between your Ubuntu and the LXC Debian container which simplifies greatly file management between the two.  The following assumes you already create a user `spksrc` with uid 1001 in your Ubuntu environment and that you which to share its `/home` userspace.\n1. Create the `spksrc` user: `lxc exec spksrc -- /usr/sbin/adduser --uid 1001 spksrc`\n2. Create a mapping rule between the hosts and the LXC image:\n```\nlxc config set spksrc raw.idmap \"both 1001 1001\"\nlxc restart spksrc\nRemapping container filesystem\n```\n3. Add `/home/spksrc` from the hsot to the LXC container:\n```\nlxc config device add spksrc home disk path=/home/spksrc source=/home/spksrc\nDevice home added to spksrc\n```\n4. Connect as `spksrc` user:\n```\nlxc exec spksrc -- su --login spksrc\nspksrc@spksrc:~$\n```\n5. Set a defualt shell environment:\n```\nlxc exec spksrc -- su --login spksrc\nspksrc@spksrc:~$ cp /etc/skel/.profile /etc/skel/.bashrc .\n```\n#### LXC: Proxy (OPTIONAL)\nThe following assume you have a running proxy on your LAN setup at IP 192.168.1.1 listening on port 3128 that will allow caching files.\n1. Enforce using a proxy:\n```\nlxc config set spksrc environment.http_proxy http://192.168.1.1:3128\nlxc config set spksrc environment.https_proxy http://192.168.1.1:3128\n```\n2. Enforce using a proxy with `wget` in the spksrc container user account:\n```\nlxc exec spksrc -- su --login spksrc\nspksrc@spksrc:~$ cat \u003c\u003c EOF \u003e $HOME/.wgetrc\nuse_proxy = on\nhttp_proxy = http://192.168.1.1:3128/\nhttps_proxy = http://192.168.1.1:3128/\nftp_proxy = http://192.168.1.1:3128/\nEOF\n```\n\n\n### Virtual machine\nA virtual machine based on an 64-bit version of Debian 10 stable OS is recommended. Non-x86 architectures are not supported.\n\n* Install the requirements (in sync with Dockerfile):\n```bash\nsudo dpkg --add-architecture i386 \u0026\u0026 sudo apt-get update\nsudo apt update\nsudo apt install autoconf-archive autogen automake bc bison build-essential check cmake curl cython debootstrap ed expect fakeroot flex g++-multilib gawk gettext git gperf imagemagick intltool jq libbz2-dev libc6-i386 libcppunit-dev libffi-dev libgc-dev libgmp3-dev libltdl-dev libmount-dev libncurses-dev libpcre3-dev libssl-dev libtool libunistring-dev lzip mercurial moreutils ncurses-dev ninja-build php pkg-config python3 python3-distutils rename scons subversion sudo swig texinfo unzip xmlto zlib1g-dev\nwget https://bootstrap.pypa.io/pip/2.7/get-pip.py -O - | sudo python2\nsudo pip2 install wheel httpie\nwget https://bootstrap.pypa.io/get-pip.py -O - | sudo python3\nsudo pip3 install meson==0.56.0\n```\n* You may need to install some packages from testing like autoconf. Read about Apt-Pinning to know how to do that.\n* Some older toolchains may require 32-bit development versions of packages, e.g. `zlib1g-dev:i386`\n\n\n## Usage\nOnce you have a development environment set up, you can start building packages, create new ones, or improve upon existing packages while making your changes available to other people.\nSee the [Developers HOW TO] for information on how to use spksrc.\n\n\n## License\nWhen not explicitly set, files are placed under a [3 clause BSD license]\n\n[3 clause BSD license]: http://www.opensource.org/licenses/BSD-3-Clause\n[#4524]: https://github.com/SynoCommunity/spksrc/issues/4524\n[bug tracker]: https://github.com/SynoCommunity/spksrc/issues\n[CONTRIBUTING]: https://github.com/SynoCommunity/spksrc/blob/master/CONTRIBUTING.md\n[Fork and clone]: https://docs.github.com/en/github/getting-started-with-github/fork-a-repo\n[Developers HOW TO]: https://github.com/SynoCommunity/spksrc/wiki/Developers-HOW-TO\n[Docker installation]: https://docs.docker.com/engine/installation\n[FAQ]: https://github.com/SynoCommunity/spksrc/wiki/Frequently-Asked-Questions\n[Install Docker with wget]: https://docs.docker.com/linux/step_one\n[SynoCommunity repository]: http://www.synocommunity.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrowdsecurity%2Fspksrc-crowdsec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrowdsecurity%2Fspksrc-crowdsec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrowdsecurity%2Fspksrc-crowdsec/lists"}