Number of fixes
Check / Lint Ansible Files (push) Successful in 1m40s

Package IONOS-DynDNS repository

Fix spigot-server's ExecStop

Enable Firewall but allow port 25565
This commit is contained in:
2023-11-18 13:44:10 +01:00
parent 8e0c6266af
commit 9b622e6e3e
5 changed files with 76 additions and 16 deletions
+29
View File
@@ -0,0 +1,29 @@
{
fetchFromGitHub,
makeWrapper,
stdenv,
# Runtime Dependencies
python3
}:
let
pythonWithDeps = python3.withPackages (p: [p.requests]);
in stdenv.mkDerivation rec {
pname = "ionos-dyndns";
# Packaging time, not commit time
version = "20231118";
src = fetchFromGitHub {
owner = "lazaroblanc";
repo = "IONOS-DynDNS";
rev = "6c090ab928ce8d6eaa28b09614995b036ad60027";
hash = "sha256-rabDuKuPvzcMltnCSvc5kDjcDhv7sXxbDLWw3/hdSmk=";
};
nativeBuildInputs = [ makeWrapper ];
buildCommand = ''
install -Dm755 $src/ionos_dyndns.py $out/lib/ionos_dyndns.py
makeWrapper ${pythonWithDeps}/bin/python3 $out/bin/ionos-dyndns \
--add-flags $out/lib/ionos_dyndns.py
'';
}
-1
View File
@@ -18,7 +18,6 @@ in stdenv.mkDerivation rec {
buildCommand = ''
install -Dm644 $src $out/lib/spigot-${version}.jar
mkdir -p $out/bin
makeWrapper ${jre}/bin/java $out/bin/spigot-server \
--argv0 spigot-server \
--add-flags "${javaFlags}" \