New version mautrix-whatsapp2deb
add wallabag2deb but not work
This commit is contained in:
parent
1055dbd48c
commit
637a60c3bf
9 changed files with 73 additions and 2 deletions
1
grocy2deb
Executable file → Normal file
1
grocy2deb
Executable file → Normal file
|
@ -1,5 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
APP=grocy
|
||||
VERSION=3.2.0
|
||||
GIT_VERSION=v$VERSION
|
||||
|
|
|
@ -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
|
||||
|
|
0
ressources/wallabag/rootfs/DEBIAN/changelog
Normal file
0
ressources/wallabag/rootfs/DEBIAN/changelog
Normal file
1
ressources/wallabag/rootfs/DEBIAN/conffiles
Normal file
1
ressources/wallabag/rootfs/DEBIAN/conffiles
Normal file
|
@ -0,0 +1 @@
|
|||
/etc/wallabag/parameters.yml
|
8
ressources/wallabag/rootfs/DEBIAN/control
Normal file
8
ressources/wallabag/rootfs/DEBIAN/control
Normal file
|
@ -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 <thomas@lgy.fr>
|
||||
Description: wallabag
|
2
ressources/wallabag/rootfs/DEBIAN/postinst
Executable file
2
ressources/wallabag/rootfs/DEBIAN/postinst
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/bash
|
||||
chown -R www-data:www-data /var/lib/wallabag/
|
|
@ -0,0 +1,11 @@
|
|||
<VirtualHost *:80>
|
||||
ServerName grocy.net.lgy.fr
|
||||
|
||||
DocumentRoot /usr/share/grocy/public/
|
||||
|
||||
<directory /usr/share/grocy/public/>
|
||||
Options -Indexes -MultiViews +FollowSymLinks
|
||||
AllowOverride all
|
||||
Require all granted
|
||||
</directory>
|
||||
</VirtualHost>
|
41
ressources/wallabag/wallabag
Executable file
41
ressources/wallabag/wallabag
Executable file
|
@ -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} $*
|
9
wallabag2deb
Executable file
9
wallabag2deb
Executable file
|
@ -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
|
Loading…
Reference in a new issue