diff --git a/grocy2deb b/grocy2deb old mode 100755 new mode 100644 index c659a35..c61d25e --- a/grocy2deb +++ b/grocy2deb @@ -1,5 +1,4 @@ #!/bin/bash - APP=grocy VERSION=3.2.0 GIT_VERSION=v$VERSION diff --git a/mautrix-whatsapp2deb b/mautrix-whatsapp2deb index 0f98768..3d66234 100755 --- a/mautrix-whatsapp2deb +++ b/mautrix-whatsapp2deb @@ -1,7 +1,7 @@ #!/bin/bash APP=mautrix-whatsapp -VERSION=0.2.3 +VERSION=0.2.4 GIT_VERSION=v$VERSION DEB_VERSION=$VERSION-3 DEBIAN_VERSION_CODENAME=bullseye diff --git a/ressources/wallabag/rootfs/DEBIAN/changelog b/ressources/wallabag/rootfs/DEBIAN/changelog new file mode 100644 index 0000000..e69de29 diff --git a/ressources/wallabag/rootfs/DEBIAN/conffiles b/ressources/wallabag/rootfs/DEBIAN/conffiles new file mode 100644 index 0000000..a19cf29 --- /dev/null +++ b/ressources/wallabag/rootfs/DEBIAN/conffiles @@ -0,0 +1 @@ +/etc/wallabag/parameters.yml diff --git a/ressources/wallabag/rootfs/DEBIAN/control b/ressources/wallabag/rootfs/DEBIAN/control new file mode 100644 index 0000000..30bccf9 --- /dev/null +++ b/ressources/wallabag/rootfs/DEBIAN/control @@ -0,0 +1,8 @@ +Package: wallabag +Version: %VERSION% +Section: base +Priority: optional +Architecture: all +Depends: php-common, php-xml, php-json, php-gd, php-mbstring, php-xml, php-tidy, php-curl, php-tokenizer, php-bcmath, php-intl, php-fpm, php-sqlite3, php-pgsql, php-mysql +Maintainer: Thomas Legay +Description: wallabag diff --git a/ressources/wallabag/rootfs/DEBIAN/postinst b/ressources/wallabag/rootfs/DEBIAN/postinst new file mode 100755 index 0000000..7333c37 --- /dev/null +++ b/ressources/wallabag/rootfs/DEBIAN/postinst @@ -0,0 +1,2 @@ +#!/bin/bash +chown -R www-data:www-data /var/lib/wallabag/ diff --git a/ressources/wallabag/rootfs/usr/share/doc/wallabag/apache2-grocy.conf b/ressources/wallabag/rootfs/usr/share/doc/wallabag/apache2-grocy.conf new file mode 100644 index 0000000..ad814b9 --- /dev/null +++ b/ressources/wallabag/rootfs/usr/share/doc/wallabag/apache2-grocy.conf @@ -0,0 +1,11 @@ + + ServerName grocy.net.lgy.fr + + DocumentRoot /usr/share/grocy/public/ + + + Options -Indexes -MultiViews +FollowSymLinks + AllowOverride all + Require all granted + + diff --git a/ressources/wallabag/wallabag b/ressources/wallabag/wallabag new file mode 100755 index 0000000..e14f33b --- /dev/null +++ b/ressources/wallabag/wallabag @@ -0,0 +1,41 @@ +#!/bin/bash + +envinit() { + apt-get install -y wget ca-certificates composer git php-common php-xml php-json php-gd php-mbstring php-xml php-tidy php-curl php-tokenizer php-bcmath php-intl php-fpm unzip +} + +prebuild(){ + VERSION=$1 + git clone --depth 1 -b $VERSION https://github.com/wallabag/wallabag.git /tmp/wallabag +} + +build() { + cd /tmp/wallabag + SYMFONY_ENV=prod composer install --no-dev -o --prefer-dist -n --no-scripts +} + +makedeb(){ + PATH_BUILD=$1 + PATH_DEB=$2 + GIT_VERSION=$3 + + cp -fr ${PATH_BUILD}/tmp/wallabag/app ${PATH_DEB}/usr/share/wallabag/app + cp -fr ${PATH_BUILD}/tmp/wallabag/src ${PATH_DEB}/usr/share/wallabag/src + cp -fr ${PATH_BUILD}/tmp/wallabag/vendor ${PATH_DEB}/usr/share/wallabag/vendor + cp -fr ${PATH_BUILD}/tmp/wallabag/web ${PATH_DEB}/usr/share/wallabag/web + + cp -fr ${PATH_BUILD}/tmp/wallabag/data ${PATH_DEB}/var/lib/wallabag/data + cp -fr ${PATH_BUILD}/tmp/wallabag/var ${PATH_DEB}/var/lib/wallabag/var + + cp ${PATH_BUILD}/tmp/wallabag/app/config/parameters.yml.dist ${PATH_DEB}/etc/wallabag/parameters.yml + + ln -s /var/lib/wallabag/data ${PATH_DEB}/usr/share/wallabag/data + ln -s /var/lib/wallabag/var ${PATH_DEB}/usr/share/wallabag/var + + ln -s /etc/wallabag/parameters.yml ${PATH_DEB}/usr/share/wallabag/app/config/parameters.yml +} + +echo $1 +FUNC=$1 +shift +${FUNC} $* diff --git a/wallabag2deb b/wallabag2deb new file mode 100755 index 0000000..9038b13 --- /dev/null +++ b/wallabag2deb @@ -0,0 +1,9 @@ +#!/bin/bash + +APP=wallabag +VERSION=2.4.3 +GIT_VERSION=$VERSION +DEB_VERSION=$VERSION-1 +DEBIAN_VERSION_CODENAME=bullseye + +source ./lib/function.sh