All Projects → SynoCommunity → Spksrc

SynoCommunity / Spksrc

Licence: other
Cross compilation framework to create native packages for the Synology's NAS

Programming Languages

Makefile
30231 projects
shell
77523 projects
javascript
184084 projects - #8 most used programming language
C++
36643 projects - #6 most used programming language
python
139335 projects - #7 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to Spksrc

Kios
A Linux OS created by Buildroot which runs Kerberos Open Source out-of-the-box.
Stars: ✭ 178 (-92.72%)
Mutual labels:  makefile
Badges
📝 Markdown code for lots of small badges 🎀 📌 (shields.io, forthebadge.com etc) 😎. Contributions are welcome! Please add yours!
Stars: ✭ 2,987 (+22.12%)
Mutual labels:  makefile
Reaction Development Platform
Reaction Platform is the quickest way to run Reaction (reactioncommerce/reaction) and its supporting services—Reaction Hydra (reactioncommerce/reaction-hydra) and Example Storefront (reactioncommerce/reaction-next-starterkit)
Stars: ✭ 190 (-92.23%)
Mutual labels:  makefile
Macos Fn Toggle
A macOS app to quickly toggle the behavior of the fn key.
Stars: ✭ 178 (-92.72%)
Mutual labels:  makefile
Rust Async
Demystifying Asynchronous Rust
Stars: ✭ 184 (-92.48%)
Mutual labels:  makefile
Nvidia Docker
Build and run Docker containers leveraging NVIDIA GPUs
Stars: ✭ 13,961 (+470.77%)
Mutual labels:  makefile
Awesome Scanning
A curated list of awesome projects to simplify and improve paper scanning.
Stars: ✭ 178 (-92.72%)
Mutual labels:  makefile
Longtasks
Long Task API
Stars: ✭ 193 (-92.11%)
Mutual labels:  makefile
Rudix
Build system target on macOS
Stars: ✭ 184 (-92.48%)
Mutual labels:  makefile
Nmap Android
Nmap on Android - Makefile/diff/scripts to build it with Android NDK
Stars: ✭ 187 (-92.35%)
Mutual labels:  makefile
React Makes You Sad
Here’s a flowchart to make you happy again!
Stars: ✭ 2,094 (-14.39%)
Mutual labels:  makefile
Crithit
Takes a single wordlist item and tests it one by one over a large collection of websites before moving onto the next. Create signatures to cross-check vulnerabilities over multiple hosts.
Stars: ✭ 182 (-92.56%)
Mutual labels:  makefile
Redox
Mirror of https://gitlab.redox-os.org/redox-os/redox
Stars: ✭ 13,611 (+456.46%)
Mutual labels:  makefile
Vpnpivot
Explore the network using VPNPivot tool
Stars: ✭ 179 (-92.68%)
Mutual labels:  makefile
Shoc
The SHOC Benchmark Suite
Stars: ✭ 190 (-92.23%)
Mutual labels:  makefile
Shashlik Build
Stars: ✭ 178 (-92.72%)
Mutual labels:  makefile
Alpine Elixir
A Dockerfile based on my alpine-erlang image for Elixir applications
Stars: ✭ 186 (-92.4%)
Mutual labels:  makefile
Rabbitmq Auth Backend Http
HTTP-based authorisation and authentication for RabbitMQ
Stars: ✭ 194 (-92.07%)
Mutual labels:  makefile
Json Schema Spec
The JSON Schema I-D sources
Stars: ✭ 2,441 (-0.2%)
Mutual labels:  makefile
Rust Empty
A Makefile to get started with Rust (DEPRECATED)
Stars: ✭ 187 (-92.35%)
Mutual labels:  makefile

Discord

SynoCommunity is now on Discord!

Discord

DSM 7

DSM 7 was released on June 29 2021 as Version 7.0.41890.

In SynoCommunity some packages are available for DSM 7 but some are not.

  • You find the status of the packages in the issue #4524 Meta: DSM7 package status
  • 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.
  • 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", ...).
  • 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).
  • 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.
  • Packages of the following kind will need some time to make DSM 7 compatible
    • Packages depending MySQL database must be migrated to MariaDB 10
    • Packages with installation Wizard to configure a shared folder (all download related packages and others)
    • Packages that integrate into DSM webstation
  • 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).

spksrc

spksrc is a cross compilation framework intended to compile and package software for Synology NAS devices. Packages are made available via the SynoCommunity repository.

Contributing

Before opening a new issue, check the FAQ and search open issues. If 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.

Setup Development Environment

Docker

The Docker development environment supports Linux and macOS systems, but not Windows due to limitations of the underlying file system.

  1. Fork and clone spksrc: git clone https://github.com/YOUR-USERNAME/spksrc
  2. Install Docker on your host OS (see Docker installation, or use a wget-based alternative for linux Install Docker with wget).
  3. Download the spksrc Docker container: docker pull ghcr.io/synocommunity/spksrc
  4. Run the container with the repository mounted into the /spksrc directory with the appropriate command for your host Operating System:
cd spksrc # Go to the cloned repository's root folder.

# If running on Linux:
docker run -it -v $(pwd):/spksrc ghcr.io/synocommunity/spksrc /bin/bash

# If running on macOS:
docker run -it -v $(pwd):/spksrc -e TAR_CMD="fakeroot tar" ghcr.io/synocommunity/spksrc /bin/bash
  1. From there, follow the instructions in the Developers HOW TO.

LXC

A 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 :

  1. Create a new container (will use x864_64/amd64 arch by default): lxc launch images:debian/10 spksrc
  2. Enable i386 arch: lxc exec spksrc -- /usr/bin/dpkg --add-architecture i386
  3. Update apt channels: lxc exec spksrc -- /usr/bin/apt update
  4. Install all required packages:
lxc exec spksrc -- /usr/bin/apt install autogen autoconf-archive automake bc bison build-essential check \
                                cmake curl cython debootstrap ed expect 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 swig texinfo unzip \
                                xmlto zlib1g-dev
  1. Install python2 wheels:
lxc exec spksrc -- /bin/bash -c "wget https://bootstrap.pypa.io/get-pip.py -O - | python2"
lxc exec spksrc -- /bin/bash -c "pip2 install virtualenv httpie"
  1. Install python3 wheels:
lxc exec spksrc -- /bin/bash -c "wget https://bootstrap.pypa.io/get-pip.py -O - | python3"
lxc exec spksrc -- /bin/bash -c "pip3 install virtualenv httpie"
  1. Install meson (requires autoconf-archive): lxc exec spksrc -- /bin/bash -c "pip3 install meson==0.56.0"
  2. (OPTIONAL) Install misc base tools:
lxc exec spksrc -- /usr/bin/apt install bash-completion man-db manpages-dev mlocate ripgrep rsync tree time
lxc exec spksrc -- /usr/bin/updatedb

LXC: Shared spksrc user (OPTIONAL)

You 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.

  1. Create the spksrc user: lxc exec spksrc -- /usr/sbin/adduser --uid 1001 spksrc
  2. Create a mapping rule between the hosts and the LXC image:
lxc config set spksrc raw.idmap "both 1001 1001"
lxc restart spksrc
Remapping container filesystem
  1. Add /home/spksrc from the hsot to the LXC container:
lxc config device add spksrc home disk path=/home/spksrc source=/home/spksrc
Device home added to spksrc
  1. Connect as spksrc user:
lxc exec spksrc -- su --login spksrc
spksrc@spksrc:~$
  1. Set a defualt shell environment:
lxc exec spksrc -- su --login spksrc
spksrc@spksrc:~$ cp /etc/skel/.profile /etc/skel/.bashrc .

LXC: Proxy (OPTIONAL)

The 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.

  1. Enforce using a proxy:
lxc config set spksrc environment.http_proxy http://192.168.1.1:3128
lxc config set spksrc environment.https_proxy http://192.168.1.1:3128
  1. Enforce using a proxy with wget in the spksrc container user account:
lxc exec spksrc -- su --login spksrc
spksrc@spksrc:~$ cat << EOF > $HOME/.wgetrc
use_proxy = on
http_proxy = http://192.168.1.1:3128/
https_proxy = http://192.168.1.1:3128/
ftp_proxy = http://192.168.1.1:3128/
EOF

Virtual machine

A virtual machine based on an 64-bit version of Debian 10 stable OS is recommended. Non-x86 architectures are not supported.

  • Install the requirements (in sync with Dockerfile):
sudo dpkg --add-architecture i386 && sudo apt-get update
sudo apt update
sudo 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
wget https://bootstrap.pypa.io/pip/2.7/get-pip.py -O - | sudo python2
sudo pip2 install wheel httpie
wget https://bootstrap.pypa.io/get-pip.py -O - | sudo python3
sudo pip3 install meson==0.56.0
  • You may need to install some packages from testing like autoconf. Read about Apt-Pinning to know how to do that.
  • Some older toolchains may require 32-bit development versions of packages, e.g. zlib1g-dev:i386

Usage

Once 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. See the Developers HOW TO for information on how to use spksrc.

License

When not explicitly set, files are placed under a 3 clause BSD license

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].