From 2ac7580a1de3e296e7bf23962140675551486911 Mon Sep 17 00:00:00 2001 From: William Petit Date: Mon, 13 Sep 2021 11:44:27 +0200 Subject: [PATCH] =?UTF-8?q?Retour=20des=20fichiers=20Debian=20sur=20la=20b?= =?UTF-8?q?ranche=20de=20d=C3=A9veloppement?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- debian/compat | 1 + debian/control | 14 ++++++++++++++ debian/hydra.service | 11 +++++++++++ debian/rules | 26 ++++++++++++++++++++++++++ debian/source/format | 1 + 5 files changed, 53 insertions(+) create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/hydra.service create mode 100644 debian/rules create mode 100644 debian/source/format diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..e55557b --- /dev/null +++ b/debian/control @@ -0,0 +1,14 @@ +Source: hydra +Section: unknown +Priority: optional +Maintainer: William Petit +Build-Depends: debhelper (>= 8.0.0), wget, ca-certificates, tar +Standards-Version: 3.9.4 +Homepage: http://forge.cadoles.com/wpetit/debian-hydra +Vcs-Git: http://forge.cadoles.com/wpetit/debian-hydra.git +Vcs-Browser: http://forge.cadoles.com/wpetit/debian-hydra + +Package: hydra +Architecture: amd64 +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Serveur OpenID Connect diff --git a/debian/hydra.service b/debian/hydra.service new file mode 100644 index 0000000..a93b8fe --- /dev/null +++ b/debian/hydra.service @@ -0,0 +1,11 @@ +[Unit] +Description=Serveur OpenID Connect Hydra +After=network-online.target + +[Service] +Type=simple +ExecStart=/usr/bin/hydra --config /etc/hydra/hydra.yml serve all +Restart=on-failure + +[Install] +WantedBy=multi-user.target \ No newline at end of file diff --git a/debian/rules b/debian/rules new file mode 100644 index 0000000..b17fd74 --- /dev/null +++ b/debian/rules @@ -0,0 +1,26 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +# Uncomment this to turn on verbose mode. +export DH_VERBOSE=1 + +HYDRA_VERSION := v1.5.1 + +%: + dh $@ --with systemd + +override_dh_auto_build: $(GOPATH) + ./script/install.sh -b bin -d $(HYDRA_VERSION) + +override_dh_auto_install: + mkdir -p debian/hydra/usr/bin + mkdir -p debian/hydra/etc/hydra + + cp bin/hydra debian/hydra/usr/bin/hydra + cp conf/hydra.yml debian/hydra/etc/hydra + + install -d debian/hydra + +override_dh_strip: + +override_dh_auto_test: \ No newline at end of file diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..9f67427 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native) \ No newline at end of file