Cleaned up archive branch. First commit.

This commit is contained in:
Johannes Schnürle 2022-09-08 15:03:30 +02:00
parent 93520f53b8
commit b406c41ab5
5 changed files with 2 additions and 175 deletions

View file

@ -1,3 +1,2 @@
Our custom server packages are stored here. In the moment we are mainly working on some Nixpkgs. You can follow the progress at the [exozyme issue #138](https://git.exozy.me/exozyme/exozyme/issues/138) and on our [project board](https://git.exozy.me/exozyme/packages/projects/4).
## Thanks
Special thanks go to f0x for the [woodpecker-server](https://git.pixie.town/f0x/nixos/src/branch/main/common/packages/woodpecker/server.nix) package.
# Archive
Here we store previously configured packages that are now available at the official sources (e.g. [nixpkgs](https://search.nixos.org/packages/).

View file

@ -1,23 +0,0 @@
with import <nixpkgs> {};
buildGoModule rec {
pname = "glauth";
version = "2.1.0";
src = fetchFromGitHub {
owner = "glauth";
repo = "glauth";
rev = "v${version}";
sha256 = "kX/i156WxB2Ply4G0N/cR2KxrkEM/RdVXo0P5KMfHao=";
};
vendorSha256 = "kX/i156WxB2Ply4G0N/cR2KxrkEM/RdVXo0P5KMfHao=";
doCheck = false;
meta = with lib; {
description = "A lightweight LDAP server for development, home use, or CI.";
homepage = "https://glauth.github.io/";
license = licenses.mit;
};
}

View file

@ -1,97 +0,0 @@
#!/usr/bin/env bash
# script for installing guacamole-client
# in the moment systemd only
# warning: this script is using sudo (line 70)!
#--------------------------------------------------
version="1.4.0"
tomcat="tomcat9"
declare -i errors
errors=0
both=false
#--------------------------------------------------
echo "running checks"
if [[ ! -f /usr/bin/curl ]] || [[ ! -f /usr/bin/sha256sum ]]
then
echo "Please install curl and sha256sum on your system. They are needed during the installation process."
errors+=1
fi
if [[ ! -d /etc/${tomcat} ]]
then
echo "Please install ${tomcat} first."
errors+=1
fi
if [[ ! -f /usr/lib/systemd/system/${tomcat}.service ]]
then
echo "${tomcat} doesn't appear as a systemd service. Make shure that you installed ${tomcat} properly."
errors+=1
fi
if [[ ! -f /usr/lib/systemd/system/guacd.service ]]
then
echo "Make shure that you have guacamole-server installed on your system."
errors+=1
fi
webappdir="/var/lib/${tomcat}/webapps"
if [[ ! -d $webappdir ]]
then
echo "Make shure that $webappdir is the right directory for ${tomcat} applications."
errors+=1
fi
if [[ $errors -eq 0 ]]
then
echo "checks complete"
else
echo "Some errors occured (${errors}). Exiting."
exit $errors
fi
#--------------------------------------------------
echo "preparing for installation"
dir="/tmp/guacamole-client-installation"
mkdir $dir
cd $dir
echo "downloading files"
file="guacamole-${version}.war"
curl https://dlcdn.apache.org/guacamole/1.4.0/binary/${file} -o ${file}
curl https://dlcdn.apache.org/guacamole/1.4.0/binary/${file}.sha256 -o ${file}.sha256
checksum="$(cat ${file}.sha256 | cut -b 1-64)"
echo "checksum: $checksum"
echo $checksum ${file} | sha256sum -c
#--------------------------------------------------
echo "installing guacamole-client"
#-- sudo command --
sudo cp $file $webappdir
status="$(systemctl status ${tomcat}.service | grep active | cut -d":" -f2 | cut -b2-3)"
if [[ ${status} == "ac" ]]
then
systemctl restart ${tomcat}.service
elif [[ ${status} == "in" ]]
then
systemctl start ${tomcat}.service
fi
guacd="$(systemctl status guacd.service | grep active | cut -d":" -f2 | cut -b2-3)"
if [[ ${guacd} == "ac" ]]
then
systemctl restart guacd.service
elif [[ ${guacd} == "in" ]]
then
systemctl start guacd.service
fi
#--------------------------------------------------
echo "cleaning up"
rm $file
rm ${file}.sha256
cd /tmp
rm -r $dir
echo "Guacamole-client is now ready for configuration. Take a look at https://guacamole.apache.org/doc/1.4.0/gug/configuring-guacamole.html."
exit 0

View file

@ -1,26 +0,0 @@
with import <nixpkgs> {};
stdenv.mkDerivation rec {
pname = "guacamole-server";
version = "1.4.0";
src = fetchurl {
url = "https://apache.org/dyn/closer.lua/guacamole/1.4.0/source/guacamole-server-1.4.0.tar.gz?action=download";
sha256 = "J4kHXIsl5apC3sUFSR00Jbey/iBRdysABoYMJuile5A=";
};
#required & optional dependencies
reqDeps = [cairo libjpeg libpng libtool libuuid];
optDeps = [ffmpeg freerdp pango libssh2 libtelnet libvncserver libwebsockets pulseaudio openssl libvorbis libwebp];
buildInputs = reqDeps ++ optDeps;
vendorSha256 = null;
doCheck = false;
meta = with lib; {
description = "Apache Guacamole is a clientless remote desktop gateway.";
homepage = "https://guacamole.apache.org/";
license = licenses.asl20;
};
}

View file

@ -1,26 +0,0 @@
{pkgs ? import <nixpkgs> {}}:
pkgs.buildGoModule rec {
pname = "woodpecker-plugin-git";
version = "1.2.0";
CGO_ENABLED = "0";
src = pkgs.fetchFromGitHub {
owner = "woodpecker-ci";
repo = "plugin-git";
rev = "v${version}";
sha256 = "BYZrE0LZNTEggT2F83hUWZD0P5wQAOJjDE26idA5yno=";
};
vendorSha256 = "oIGYARXDVcFBxoapMGZMvcCYIc7LHHQIEhugDxRZeU4=";
# Checks fail because they require network access.
doCheck = false;
meta = with pkgs.lib; {
description = "Woodpecker plugin for cloning Git repositories.";
homepage = "https://woodpecker-ci.org/";
license = licenses.asl20;
platforms = platforms.linux;
maintainers = with maintainers; [thehedgeh0g];
};
}