forked from fabianishere/udm-iptv
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
With the release of the UniFi Dream Machine SE and the UniFi Dream Router, Ubiquiti has recently started transitioning to use UniFi OS as base OS. In contrast, on the UniFi Dream Machine (Pro), UniFi OS was hosted inside a container managed by Podman and UbiOS. Users have shown [1] that the existing setup using the Podman container for running igmpproxy is feasible on the new devices running UniFi OS. However, this requires setting up Podman manually on these devices, which involves a lot of manual and non-trivial steps. This process is greatly simplified by simply providing a Debian package that can be installed by the existing `apt` infrastructure that exists in UniFi OS (since it is a derivative of Debian). Furthermore, it enables compatibility with all Ubiquiti devices that use UniFi OS. This pull request converts the existing scripts into a Debian package. The Docker container is converted into a systemd service managed by UniFi OS and the installer script is now based on `debconf`. Before merging, I am looking for feedback from users to see whether this new setup works correctly for their use-cases and verify whether the installation process still remains easy. Please let me know if you experience any issues with this new setup! Close fabianishere#29 [1] https://github.com/mories76/udmprose-iptv
- Loading branch information
Showing
23 changed files
with
867 additions
and
541 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Set update schedule for GitHub Actions | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Build | ||
|
||
on: pull_request | ||
|
||
jobs: | ||
build: | ||
runs-on: [ubuntu-18.04] | ||
if: ${{ !contains(github.event.head_commit.message, 'skip ci') }} | ||
steps: | ||
- name: Checkout Sources | ||
uses: actions/checkout@v2 | ||
with: | ||
path: udm-iptv | ||
- name: Setup Dependencies | ||
run: sudo apt-get install devscripts debhelper | ||
- name: Build Package | ||
run: | | ||
cd udm-iptv | ||
debuild -uc -us --lintian-opts --profile debian | ||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: build-artifacts | ||
if-no-files-found: error | ||
path: | | ||
*.deb | ||
*.build* | ||
*.changes | ||
*.dsc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- v* | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: [ubuntu-18.04] | ||
steps: | ||
- name: Checkout Sources | ||
uses: actions/checkout@v2 | ||
with: | ||
path: udm-kernel-tools | ||
submodules: recursive | ||
- name: Setup Dependencies | ||
run: sudo apt-get install devscripts debhelper | ||
- name: Build Package | ||
run: | | ||
cd udm-iptv | ||
debuild -uc -us --lintian-opts --profile debian | ||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: build-artifacts | ||
if-no-files-found: error | ||
path: | | ||
*.deb | ||
*.build* | ||
*.changes | ||
*.dsc | ||
release: | ||
name: Publish Release | ||
runs-on: [ubuntu-18.04] | ||
needs: build | ||
steps: | ||
- name: Checkout Sources | ||
uses: actions/checkout@v2 | ||
- name: Download Artifacts | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: build-artifacts | ||
path: build-artifacts | ||
- name: Format Release Name | ||
id: format_release | ||
run: | | ||
ref="${{ github.ref}}" | ||
release_name=${ref#"refs/tags/"} | ||
echo "::set-output name=release::$release_name" | ||
changelog=$(dpkg-parsechangelog -c 1 -l debian/changelog) | ||
changelog="${changelog//'%'/'%25'}" | ||
changelog="${changelog//$'\n'/'%0A'}" | ||
changelog="${changelog//$'\r'/'%0D'}" | ||
echo "::set-output name=changelog::$changelog" | ||
- name: Create Release | ||
uses: softprops/action-gh-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
name: udm-kernel-tools ${{ steps.format_release.outputs.release }} | ||
body: ${{ steps.format_release.outputs.changelog }} | ||
files: build-artifacts/udm-iptv_*.deb |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
udm-iptv (2.0.0) stable; urgency=medium | ||
|
||
* Initial release of udm-iptv as Debian package. | ||
* Add support for UDM Pro SE and UDR. | ||
|
||
-- Fabian Mastenbroek <[email protected]> Sat, 8 Jan 2022 12:00:00 +0100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
11 |
Oops, something went wrong.