This commit is contained in:
thomas 2023-06-12 10:55:41 +02:00
parent f6f7521ffe
commit 797dff685b
21 changed files with 51 additions and 37 deletions

View File

@ -38,7 +38,7 @@ configure_depot_nodejs() {
} }
install_go() { install_go() {
GO_VERSION=1.19.2 GO_VERSION=1.20.4
[ ! "$1" == "" ] && GO_VERSION=$1 [ ! "$1" == "" ] && GO_VERSION=$1
PATH=$PATH:/usr/local/go/bin PATH=$PATH:/usr/local/go/bin
if [ ! "$(go version)" == "go version go${GO_VERSION} linux/amd64" ] ; if [ ! "$(go version)" == "go version go${GO_VERSION} linux/amd64" ] ;

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
VERSION=0.108.0-b.34 VERSION=0.108.0-b.35
APP=adguardhome APP=adguardhome
DEPOT=https://github.com/AdguardTeam/AdGuardHome.git DEPOT=https://github.com/AdguardTeam/AdGuardHome.git
GIT_VERSION=v${VERSION} GIT_VERSION=v${VERSION}

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
VERSION=1.15.1 VERSION=1.16.0
APP=babybuddy APP=babybuddy
DEPOT=https://github.com/babybuddy/babybuddy.git DEPOT=https://github.com/babybuddy/babybuddy.git
GIT_VERSION=v${VERSION} GIT_VERSION=v${VERSION}

View File

@ -1,11 +1,11 @@
#!/bin/bash #!/bin/bash
VERSION=2023.4.0 VERSION=2023.5.0
APP=bitwarden-desktop APP=bitwarden-desktop
DEPOT=https://github.com/bitwarden/clients.git DEPOT=https://github.com/bitwarden/clients.git
GIT_VERSION=desktop-v${VERSION} GIT_VERSION=desktop-v${VERSION}
DEB_VERSION=${VERSION}-$(date +%Y%m%d%H%M) DEB_VERSION=${VERSION}-$(date +%Y%m%d%H%M)
DEBIAN_VERSION_CODENAME=bullseye DEBIAN_VERSION_CODENAME=bookworm
IMAGE_SIZE=8 IMAGE_SIZE=8
PACKAGE_DEPENDENCY="pkg-config libsecret-1-dev yarn nodejs build-essential libglib2.0-dev" PACKAGE_DEPENDENCY="pkg-config libsecret-1-dev yarn nodejs build-essential libglib2.0-dev"

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
VERSION=1.11.30 VERSION=1.11.33
APP=element-web APP=element-web
DEPOT=https://github.com/vector-im/element-web.git DEPOT=https://github.com/vector-im/element-web.git
GIT_VERSION=v${VERSION} GIT_VERSION=v${VERSION}

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
VERSION=1.19.2 VERSION=1.19.3
APP=gitea APP=gitea
DEPOT=https://github.com/go-gitea/gitea.git DEPOT=https://github.com/go-gitea/gitea.git
GIT_VERSION=v${VERSION} GIT_VERSION=v${VERSION}

View File

@ -27,6 +27,10 @@ makedeb(){
PATH_DEB=/tmp/src/rootfs PATH_DEB=/tmp/src/rootfs
PATH_DEB_INSTALL=/tmp/src/rootfs-install PATH_DEB_INSTALL=/tmp/src/rootfs-install
mkdir -p ${PATH_DEB}/usr/share/doc/glpi/
mkdir -p ${PATH_DEB}/var/lib/glpi/
mkdir -p ${PATH_DEB}/etc/
tar -zxvf /tmp/${APP}-${VERSION}.tgz -C ${PATH_DEB}/usr/share/ tar -zxvf /tmp/${APP}-${VERSION}.tgz -C ${PATH_DEB}/usr/share/
mv ${PATH_DEB}/usr/share/glpi/install ${PATH_DEB_INSTALL}/usr/share/glpi/ mv ${PATH_DEB}/usr/share/glpi/install ${PATH_DEB_INSTALL}/usr/share/glpi/
@ -35,14 +39,14 @@ makedeb(){
gzip ${PATH_DEB}/usr/share/doc/glpi/* gzip ${PATH_DEB}/usr/share/doc/glpi/*
mv ${PATH_DEB}/usr/share/glpi/files ${PATH_DEB}/var/lib/glpi/ mv ${PATH_DEB}/usr/share/glpi/files ${PATH_DEB}/var/lib/glpi/
ln -s /var/lib/glpi/files ${PATH_DEB}/usr/share/glpi/files mv ${PATH_DEB}/usr/share/glpi/config ${PATH_DEB}/etc/glpi
mv ${PATH_DEB}/usr/share/glpi/marketplace ${PATH_DEB}/var/lib/glpi/ mv ${PATH_DEB}/usr/share/glpi/marketplace ${PATH_DEB}/var/lib/glpi/
ln -s /var/lib/glpi/marketplace ${PATH_DEB}/usr/share/glpi/marketplace ln -s /var/lib/glpi/marketplace ${PATH_DEB}/usr/share/glpi/marketplace
cp -r ${PATH_DEB}/usr/share/glpi/config/. ${PATH_DEB}/etc/glpi/ mv ${PATH_DEB}/downstream.php ${PATH_DEB}/usr/share/glpi/inc/
rm -fr ${PATH_DEB}/usr/share/glpi/config/ mv ${PATH_DEB}/local_define.php ${PATH_DEB}/etc/glpi
ln -s /etc/glpi/ ${PATH_DEB}/usr/share/glpi/config mv ${PATH_DEB}/apache2-glpi.conf ${PATH_DEB}/usr/share/doc/glpi/
sed -i "s/%VERSION%/$DEB_VERSION/" ${PATH_DEB}/DEBIAN/control sed -i "s/%VERSION%/$DEB_VERSION/" ${PATH_DEB}/DEBIAN/control
fakeroot dpkg-deb -Z gzip --build ${PATH_DEB} /tmp/dist fakeroot dpkg-deb -Z gzip --build ${PATH_DEB} /tmp/dist

View File

@ -0,0 +1,15 @@
<VirtualHost *:80>
ServerName glpi.domaine.com
DocumentRoot /usr/share/glpi/public
<directory /usr/share/glpi/public>
Options FollowSymLinks
AllowOverride all
Require all granted
RewriteEngine On
# Redirect all requests to GLPI router, unless file exists.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]
</directory>
</VirtualHost>

View File

@ -0,0 +1,6 @@
<?php
define('GLPI_CONFIG_DIR', '/etc/glpi/');
if (file_exists(GLPI_CONFIG_DIR . '/local_define.php')) {
require_once GLPI_CONFIG_DIR . '/local_define.php';
}

View File

@ -1 +0,0 @@

View File

@ -0,0 +1,3 @@
<?php
define('GLPI_VAR_DIR', '/var/lib/glpi/files/');
define('GLPI_LOG_DIR', '/var/log/glpi');

View File

@ -1,10 +0,0 @@
<VirtualHost *:80>
ServerName glpi.domaine.com
DocumentRoot /usr/share/glpi
<directory /usr/share/glpi>
Options FollowSymLinks
AllowOverride all
Require all granted
</directory>
</VirtualHost>

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
VERSION=2.11.1 VERSION=2.11.9
APP=joplin-desktop APP=joplin-desktop
GIT_VERSION=v${VERSION} GIT_VERSION=v${VERSION}
DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M) DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M)

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
VERSION=2.10.11 VERSION=2.11.1
APP=joplin-server APP=joplin-server
GIT_VERSION=server-v${VERSION} GIT_VERSION=server-v${VERSION}
DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M) DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M)
@ -25,7 +25,7 @@ build() {
makedeb(){ makedeb(){
PATH_DEB=/tmp/src/rootfs/ PATH_DEB=/tmp/src/rootfs/
cp -fr /tmp/joplin-server/packages/{lib,turndown-plugin-gfm,turndown,htmlpack,fork-uslug,fork-sax,renderer,fork-htmlparser2,tools,server} ${PATH_DEB}/usr/share/joplin-server/ cp -fr /tmp/joplin-server/packages/{lib,utils,turndown-plugin-gfm,turndown,htmlpack,fork-uslug,fork-sax,renderer,fork-htmlparser2,tools,server} ${PATH_DEB}/usr/share/joplin-server/
sed -i "s/%VERSION%/$DEB_VERSION/" ${PATH_DEB}/DEBIAN/control sed -i "s/%VERSION%/$DEB_VERSION/" ${PATH_DEB}/DEBIAN/control
fakeroot dpkg-deb -Z gzip --build ${PATH_DEB} /tmp/dist fakeroot dpkg-deb -Z gzip --build ${PATH_DEB} /tmp/dist
} }

View File

@ -1,7 +1,6 @@
#!/bin/bash #!/bin/bash
VERSION=1.30.11 VERSION=2.0.25
VERSION=2.0.16
APP=kimai2 APP=kimai2
DEPOT=https://github.com/kevinpapst/kimai2.git DEPOT=https://github.com/kevinpapst/kimai2.git
GIT_VERSION=${VERSION} GIT_VERSION=${VERSION}

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
VERSION=0.46.2 VERSION=0.46.4
APP=metabase APP=metabase
DEPOT=https://github.com/metabase/metabase.git DEPOT=https://github.com/metabase/metabase.git
GIT_VERSION=v$VERSION GIT_VERSION=v$VERSION

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
APP=rustdesk-server APP=rustdesk-server
VERSION=1.1.7-4 VERSION=1.1.8
GIT_VERSION=$VERSION GIT_VERSION=$VERSION
DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M) DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M)
DEBIAN_VERSION_CODENAME=bullseye DEBIAN_VERSION_CODENAME=bullseye

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
VERSION=2022.12.0 VERSION=2023.5.0
APP=vaultwarden-web APP=vaultwarden-web
GIT_VERSION=v$VERSION GIT_VERSION=v$VERSION
DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M) DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M)

View File

@ -4,7 +4,7 @@ VERSION=1.28.1
APP=vaultwarden APP=vaultwarden
GIT_VERSION=$VERSION GIT_VERSION=$VERSION
DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M) DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M)
DEBIAN_VERSION_CODENAME=bullseye DEBIAN_VERSION_CODENAME=bookworm
IMAGE_SIZE=8 IMAGE_SIZE=8
DEPOT=https://github.com/dani-garcia/vaultwarden.git DEPOT=https://github.com/dani-garcia/vaultwarden.git
PACKAGE_DEPENDENCY="build-essential libmariadb-dev libpq-dev pkg-config libmysql++-dev" PACKAGE_DEPENDENCY="build-essential libmariadb-dev libpq-dev pkg-config libmysql++-dev"

View File

@ -1,18 +1,17 @@
#!/bin/bash #!/bin/bash
VERSION=1.30.3 VERSION=1.31.2
VERSION=1.30.2
APP=zigbee2mqtt APP=zigbee2mqtt
DEPOT=https://github.com/Koenkk/zigbee2mqtt.git DEPOT=https://github.com/Koenkk/zigbee2mqtt.git
GIT_VERSION=${VERSION} GIT_VERSION=${VERSION}
DEB_VERSION=1.30.3.1-$(date +%Y%m%d%H%M) DEB_VERSION=${VERSION}-$(date +%Y%m%d%H%M)
DEBIAN_VERSION_CODENAME=bullseye DEBIAN_VERSION_CODENAME=bookworm
IMAGE_SIZE=2 IMAGE_SIZE=2
PACKAGE_DEPENDENCY="nodejs make g++ gcc" PACKAGE_DEPENDENCY="nodejs make g++ gcc"
main(){ main(){
base_package_upgrade base_package_upgrade
configure_depot_nodejs configure_depot_nodejs 18
install_package_dependency install_package_dependency
get_git_source get_git_source
build build