First complete

This commit is contained in:
moparisthebest
2016-11-05 02:18:08 -04:00
parent 0887a41178
commit fd2414b131
82 changed files with 1689 additions and 6 deletions

27
src/wallabag/.SRCINFO Normal file
View File

@@ -0,0 +1,27 @@
pkgbase = wallabag
pkgdesc = Self hostable application for saving web pages
pkgver = 2.1.2
pkgrel = 1
url = http://www.wallabag.org/
install = wallabag.install
arch = any
license = MIT
depends = php>=5.3.3
depends = php-gd
depends = php-tidy
depends = pcre
optdepends = php-mysql: For MySQL storage
optdepends = php-pgsql: For postgres storage
optdepends = php-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 = wallabag.tar.xz::http://wllbg.org/latest-v2-package
sha256sums = f3acfde5a945bcd0a65f2549fc2f577bc6fc633ba901df27e7dc88c07feb2406
pkgname = wallabag

5
src/wallabag/.gitignore vendored Normal file
View File

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

14
src/wallabag/LICENSE Normal file
View File

@@ -0,0 +1,14 @@
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,7 +1,7 @@
# Maintainer: Philipp Schmitt (philipp<at>schmitt<dot>co)
pkgname=wallabag
pkgver=2.1.2
pkgver=2.1.3
pkgrel=1
pkgdesc='Self hostable application for saving web pages'
arch=('any')
@@ -23,7 +23,7 @@ optdepends=(
install="$pkgname.install"
options=(!strip)
source=("${pkgname}.tar.xz::http://wllbg.org/latest-v2-package")
sha256sums=('f3acfde5a945bcd0a65f2549fc2f577bc6fc633ba901df27e7dc88c07feb2406')
sha256sums=('f72d6e8dfd7975c4f407e5d531c52b865b3e2a72d755798ac908dcfc22d6815e')
backup=("etc/webapps/${pkgname}/parameters.yml"
"usr/share/webapps/${pkgname}/parameters.yml"
"var/lib/${pkgname}/data/db/wallabag.sqlite"

18
src/wallabag/README.md Normal file
View File

@@ -0,0 +1,18 @@
# 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

@@ -0,0 +1,41 @@
post_install() {
echo ""
echo "==> Installed in : /usr/share/webapps/wallabag"
echo ""
echo "==> Config is at /etc/webapps/wallabag/config/parameters.yml"
echo ""
echo -n "Change the configuration to fit to your current setup, and then "
echo "init wallabag by launching:"
echo "php /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: http://doc.wallabag.org/en/master/user/installation.html"
echo ""
echo -n "If you upgraded from 2.0.x, you might need to check the upgrade guide: "
echo "http://doc.wallabag.org/en/master/user/upgrade-2.0.x-2.1.1.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/*
}