From ad512de36121b911cbc67bfbafafb6d27c0f94fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?BENEDEK=20L=C3=A1szl=C3=B3?= Date: Tue, 8 Oct 2024 01:55:56 +0200 Subject: [PATCH] linuxserver/docker-unrar --- .gitmodules | 18 ++++++++++++ linuxserver/docker-unrar.build.yml | 40 ++++++++++++++++++++++++++ linuxserver/patches/docker-unrar.patch | 37 ++++++++++++++++++++++++ 3 files changed, 95 insertions(+) create mode 100644 linuxserver/docker-unrar.build.yml create mode 100644 linuxserver/patches/docker-unrar.patch diff --git a/.gitmodules b/.gitmodules index 0fd2b98..822a4fe 100644 --- a/.gitmodules +++ b/.gitmodules @@ -7,3 +7,21 @@ [submodule "linuxserver/docker-baseimage-ubuntu"] path = linuxserver/docker-baseimage-ubuntu url = https://github.com/linuxserver/docker-baseimage-ubuntu.git +[submodule "linuxserver/docker-unrar"] + path = linuxserver/docker-unrar + url = https://github.com/linuxserver/docker-unrar.git +[submodule "linuxserver/docker-wireguard"] + path = linuxserver/docker-wireguard + url = https://github.com/linuxserver/docker-wireguard.git +[submodule "linuxserver/docker-transmission"] + path = linuxserver/docker-transmission + url = https://github.com/linuxserver/docker-transmission.git +[submodule "linuxserver/docker-code-server"] + path = linuxserver/docker-code-server + url = https://github.com/linuxserver/docker-code-server.git +[submodule "linuxserver/docker-mariadb"] + path = linuxserver/docker-mariadb + url = https://github.com/linuxserver/docker-mariadb.git +[submodule "linuxserver/docker-your_spotify"] + path = linuxserver/docker-your_spotify + url = https://github.com/linuxserver/docker-your_spotify.git diff --git a/linuxserver/docker-unrar.build.yml b/linuxserver/docker-unrar.build.yml new file mode 100644 index 0000000..7571894 --- /dev/null +++ b/linuxserver/docker-unrar.build.yml @@ -0,0 +1,40 @@ +registries: + - registry.tek.govt.hu +repos: + - name: unrar + path: docker-unrar + library: linuxserver + args: + - key: BUILD_DATE + value: "${BUILD_DATE}" + - key: VERSION + value: "${VERSION}" + - key: UNRAR_VERSION + value: "${VERSION}" + tags: + - name: latest + tags: + - amd64 + - arm64 + - armv7 + - name: "7.0.9" + tags: + - 7.0.9-amd64 + - 7.0.9-arm64 + - 7.0.9-armv7 + builds: + - arch: amd64 + dockerfile: Dockerfile.aarch64 + tags: + - amd64 + - 7.0.9-amd64 + - arch: arm64 + dockerfile: Dockerfile.aarch64 + tags: + - arm64 + - 7.0.9-arm64 + - arch: arm/v7 + dockerfile: Dockerfile.aarch64 + tags: + - armv7 + - 7.0.9-armv7 diff --git a/linuxserver/patches/docker-unrar.patch b/linuxserver/patches/docker-unrar.patch new file mode 100644 index 0000000..55ce38a --- /dev/null +++ b/linuxserver/patches/docker-unrar.patch @@ -0,0 +1,37 @@ +diff --git a/Dockerfile.aarch64 b/Dockerfile.aarch64 +index 2fdf7c2..2dc3236 100644 +--- a/Dockerfile.aarch64 ++++ b/Dockerfile.aarch64 +@@ -1,6 +1,6 @@ + # syntax=docker/dockerfile:1 + +-FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.20 as alpine-buildstage ++FROM registry.tek.govt.hu/linuxserver/baseimage-alpine:3.20 as alpine-buildstage + + # set version label + ARG UNRAR_VERSION=7.0.9 +@@ -22,7 +22,6 @@ RUN \ + /tmp/unrar --strip-components=1 && \ + cd /tmp/unrar && \ + sed -i 's|LDFLAGS=-pthread|LDFLAGS=-pthread -static|' makefile && \ +- sed -i 's|CXXFLAGS=-march=native|CXXFLAGS=-march=armv8-a+crypto+crc|' makefile && \ + make && \ + install -v -m755 unrar /usr/bin && \ + echo "**** test binary ****" && \ +@@ -36,7 +35,7 @@ RUN \ + /tmp/* + + +-FROM ghcr.io/linuxserver/baseimage-ubuntu:arm64v8-jammy as ubuntu-buildstage ++FROM registry.tek.govt.hu/linuxserver/baseimage-ubuntu:jammy as ubuntu-buildstage + + # set version label + ARG UNRAR_VERSION=7.0.9 +@@ -59,7 +58,6 @@ RUN \ + /tmp/unrar --strip-components=1 && \ + cd /tmp/unrar && \ + sed -i 's|LDFLAGS=-pthread|LDFLAGS=-pthread -static|' makefile && \ +- sed -i 's|CXXFLAGS=-march=native|CXXFLAGS=-march=armv8-a+crypto+crc|' makefile && \ + make && \ + install -v -m755 unrar /usr/bin && \ + echo "**** test binary ****" && \