Deleted package: wallabag

now in [extra]
This commit is contained in:
Cedric Girard 2023-06-28 11:50:22 +02:00
parent 6e43e1b62b
commit 955b62f159
6 changed files with 0 additions and 164 deletions

View file

@ -1,27 +0,0 @@
pkgbase = wallabag
pkgdesc = Self hostable application for saving web pages
pkgver = 2.4.2
pkgrel = 1
url = http://www.wallabag.org/
install = wallabag.install
arch = any
license = MIT
makedepends = systemd
depends = php7>=7.2
depends = php7-gd
depends = php7-tidy
depends = pcre
optdepends = php7-pgsql: For postgres storage
optdepends = php7-sqlite: For sqlite storage
optdepends = rabbitmq: For async import
optdepends = redis: For async import
options = !strip
backup = etc/webapps/wallabag/parameters.yml
backup = usr/share/webapps/wallabag/parameters.yml
backup = var/lib/wallabag/data/db/wallabag.sqlite
backup = usr/share/webapps/wallabag/data/db/wallabag.sqlite
source = https://github.com/wallabag/wallabag/releases/download/2.4.2/wallabag-2.4.2.tar.gz
sha256sums = da56ec37ed3d78a4b4132e8a248ac4997442eefaad6f831805304a8c317569d8
pkgname = wallabag

5
wallabag/.gitignore vendored
View file

@ -1,5 +0,0 @@
*tar.gz
*pkg.tar.xz
src/
pkg/
vendor.zip

View file

@ -1,14 +0,0 @@
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.

View file

@ -1,54 +0,0 @@
# Maintainer: Cedric Girard <cgirard [dot] archlinux [at] valinor [dot] fr>
# Contributor: Philipp Schmitt (philipp<at>schmitt<dot>co)
pkgname=wallabag
pkgver=2.4.2
pkgrel=1
pkgdesc='Self hostable application for saving web pages'
arch=('any')
url='http://www.wallabag.org/'
license=('MIT')
makedepends=('systemd')
depends=(
'php7>=7.2'
'php7-gd'
'php7-tidy'
'pcre'
)
optdepends=(
'php7-pgsql: For postgres storage'
'php7-sqlite: For sqlite storage'
'rabbitmq: For async import'
'redis: For async import'
)
install="$pkgname.install"
options=(!strip)
source=("https://github.com/wallabag/wallabag/releases/download/${pkgver}/wallabag-${pkgver}.tar.gz")
sha256sums=('da56ec37ed3d78a4b4132e8a248ac4997442eefaad6f831805304a8c317569d8')
backup=("etc/webapps/${pkgname}/parameters.yml"
"usr/share/webapps/${pkgname}/parameters.yml"
"var/lib/${pkgname}/data/db/wallabag.sqlite"
"usr/share/webapps/${pkgname}/data/db/wallabag.sqlite")
package() {
cd "${pkgdir}"
mkdir -p usr/share/webapps
mv "${srcdir}/${pkgver}" "usr/share/webapps/${pkgname}"
WALLABAG_CONF_DIR="${pkgdir}/usr/share/webapps/${pkgname}/app/config"
install -d "${pkgdir}/etc/webapps/${pkgname}/"
mv "${WALLABAG_CONF_DIR}"/parameters.yml "${pkgdir}/etc/webapps/${pkgname}/"
chown -R http:http "${pkgdir}/etc/webapps/${pkgname}"
ln -s "/etc/webapps/${pkgname}/parameters.yml" "${WALLABAG_CONF_DIR}"/
_VAR_DIR="${pkgdir}/var/lib/${pkgname}/"
install -d "$_VAR_DIR"
mv "${pkgdir}/usr/share/webapps/${pkgname}/"{data,var} "$_VAR_DIR"
ln -s "/var/lib/${pkgname}/"{data,var} "${pkgdir}/usr/share/webapps/${pkgname}/"
chown -R http:http "$_VAR_DIR"
sed -i "${_VAR_DIR}/var/bootstrap.php.cache" -e "s@__DIR__.'/../@'/usr/share/webapps/${pkgname}/@"
chown -R http:http "${pkgdir}/usr/share/webapps/${pkgname}/"{bin/,app/config/,vendor/,web/}
}

View file

@ -1,18 +0,0 @@
# wallabag
## Description
AUR package for wallabag
## Installation
``` bash
git clone https://github.com/pschmitt/aur-wallabag /tmp/wallabag
cd /tmp/wallabag
makepkg -si
```
## Links
* AUR page: https://aur.archlinux.org/packages/wallabag
* Upstream: http://www.wallabag.org/ and https://github.com/wallabag/wallabag

View file

@ -1,46 +0,0 @@
post_install() {
echo ""
echo "==> Installed in : /usr/share/webapps/wallabag"
echo ""
echo "==> Config is at /etc/webapps/wallabag/parameters.yml"
echo ""
echo -n "Change the configuration to fit to your current setup, and then "
echo "init wallabag by launching:"
echo "php7 /usr/share/webapps/wallabag/bin/console wallabag:install --env=prod"
echo ""
echo -n "To setup your webserver and enable the needed php extensions, "
echo "please read: https://doc.wallabag.org/en/master/user/installation.html"
}
pre_upgrade() {
# save old untracked config and make it tracked
if [[ -f /usr/share/webapps/wallabag/app/config/parameters.yml && \
! -h /usr/share/webapps/wallabag/app/config/parameters.yml ]];
then install -Dm644 \
/usr/share/webapps/wallabag/app/config/parameters.yml \
-t /etc/webapps/wallabag/
fi
# also move `data` and `var` to /var/lib/wallabag/
if [[ -d /usr/share/webapps/wallabag/data && \
! -h /usr/share/webapps/wallabag/data && \
-d /usr/share/webapps/wallabag/var && \
! -h /usr/share/webapps/wallabag/var ]]; then
install -d /var/lib/wallabag/
chown http:http /var/lib/wallabag/
mv /usr/share/webapps/wallabag/{data,var} /var/lib/wallabag/
fi
}
post_upgrade() {
rm -rf /var/lib/wallabag/var/cache/*
echo ""
echo "====================================================================================================="
echo " You need to execute any database migration with: "
echo "cd /usr/share/webapps/wallabag && sudo -u http php7 bin/console --env=prod doctrine:migrations:migrate"
echo " "
echo " Check the release notes for any other step: https://github.com/wallabag/wallabag/releases "
echo "====================================================================================================="
echo ""
}