From 2431da98fa11115964da827befe20d37c2b6cce1 Mon Sep 17 00:00:00 2001 From: Joel Beckmeyer Date: Fri, 2 Sep 2022 09:20:38 -0400 Subject: [PATCH 1/2] New package: firefly-iii-5.7.14 --- srcpkgs/firefly-iii/template | 54 ++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 srcpkgs/firefly-iii/template diff --git a/srcpkgs/firefly-iii/template b/srcpkgs/firefly-iii/template new file mode 100644 index 000000000000..d8af5df02f7c --- /dev/null +++ b/srcpkgs/firefly-iii/template @@ -0,0 +1,54 @@ +# Template file for 'firefly-iii' +pkgname=firefly-iii +version=5.7.14 +revision=1 +conf_files="/etc/webapps/firefly-iii/firefly-iii.conf" +hostmakedepends="composer8.0 unzip" +depends="php8.0 php8.0-intl php8.0-sodium php8.0-gd" +short_desc="Web-based personal finances manager" +maintainer="Joel Beckmeyer " +license="AGPL-3.0-or-later" +homepage="https://github.com/firefly-iii/firefly-iii" +changelog="https://raw.githubusercontent.com/firefly-iii/firefly-iii/main/changelog.md" +distfiles="https://github.com/firefly-iii/firefly-iii/archive/refs/tags/${version}.tar.gz" +checksum=657736adc14e667c02274437a98a194e71b03389d794f9cb099405f31daeb07f +make_dirs="/var/lib/firefly-iii/storage 0750 http http + /var/lib/firefly-iii/storage/app/public 0750 http http + /var/lib/firefly-iii/storage/build 0750 http http + /var/lib/firefly-iii/storage/database 0750 http http + /var/lib/firefly-iii/storage/debugbar 0750 http http + /var/lib/firefly-iii/storage/export 0750 http http + /var/lib/firefly-iii/storage/framework/cache/data 0750 http http + /var/lib/firefly-iii/storage/framework/sessions 0750 http http + /var/lib/firefly-iii/storage/framework/testing 0750 http http + /var/lib/firefly-iii/storage/framework/views 0750 http http + /var/lib/firefly-iii/storage/framework/views/v1 0750 http http + /var/lib/firefly-iii/storage/logs 0750 http http + /var/lib/firefly-iii/storage/upload 0750 http http + /var/cache/firefly-iii 0750 http http" + +do_build() { + composer8.0 install --no-scripts --no-dev --ignore-platform-reqs +} + +do_install() { + vmkdir usr/share/webapps/firefly-iii + for i in .htaccess app app.json artisan bootstrap composer.json config \ + database frontend index.php public resources routes server.php vendor \ + webpack.mix.js; do + vcopy "$i" usr/share/webapps/firefly-iii + done + + vsconf .env.example firefly-iii.conf + vsconf nginx_app.conf + + vinstall .env.example 644 /etc/webapps/firefly-iii firefly-iii.conf + ln -s /etc/webapps/firefly-iii/firefly-iii.conf "${DESTDIR}"/usr/share/webapps/firefly-iii/.env + + ln -s /var/lib/firefly-iii/storage "${DESTDIR}"/usr/share/webapps/firefly-iii + + rm -rf "${DESTDIR}"/usr/share/webapps/firefly-iii/bootstrap/cache + ln -s /var/cache/firefly-iii "${DESTDIR}"/usr/share/webapps/firefly-iii/bootstrap/cache + + vlicense LICENSE +} From ba2d927ff408b79a194353b5c5720ff1de9ba047 Mon Sep 17 00:00:00 2001 From: Joel Beckmeyer Date: Wed, 7 Sep 2022 17:30:43 -0400 Subject: [PATCH 2/2] New package: firefly-iii-data-importer-0.9.17 --- srcpkgs/firefly-iii-data-importer/template | 55 ++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 srcpkgs/firefly-iii-data-importer/template diff --git a/srcpkgs/firefly-iii-data-importer/template b/srcpkgs/firefly-iii-data-importer/template new file mode 100644 index 000000000000..7ad076bffe08 --- /dev/null +++ b/srcpkgs/firefly-iii-data-importer/template @@ -0,0 +1,55 @@ +# Template file for 'firefly-iii-data-importer' +pkgname=firefly-iii-data-importer +version=0.9.17 +revision=1 +wrksrc="data-importer-${version}" +conf_files="/etc/webapps/firefly-iii-data-importer/data-importer.conf" +hostmakedepends="composer8.0 unzip" +depends="php8.0" +short_desc="Can import data into Firefly III" +maintainer="Joel Beckmeyer " +license="AGPL-3.0-or-later" +homepage="https://github.com/firefly-iii/data-importer" +changelog="https://raw.githubusercontent.com/firefly-iii/data-importer/main/changelog.md" +distfiles="https://github.com/firefly-iii/data-importer/archive/refs/tags/${version}.tar.gz" +checksum=f1bc84bab6b957f03be674d1b6429b0f25ce5960606f33abf3f7f9d24479998b +make_dirs="/var/lib/firefly-iii-data-importer/storage/app/public 0750 http http + /var/lib/firefly-iii-data-importer/storage/configurations 0750 http http + /var/lib/firefly-iii-data-importer/storage/conversion-routines 0750 http http + /var/lib/firefly-iii-data-importer/storage/debugbar 0750 http http + /var/lib/firefly-iii-data-importer/storage/framework/cache/data 0750 http http + /var/lib/firefly-iii-data-importer/storage/framework/sessions 0750 http http + /var/lib/firefly-iii-data-importer/storage/framework/testing 0750 http http + /var/lib/firefly-iii-data-importer/storage/framework/views 0750 http http + /var/lib/firefly-iii-data-importer/storage/jobs 0750 http http + /var/lib/firefly-iii-data-importer/storage/logs 0750 http http + /var/lib/firefly-iii-data-importer/storage/submission-routines 0750 http http + /var/lib/firefly-iii-data-importer/storage/uploads 0750 http http + /var/cache/firefly-iii-data-importer 0750 http http" + +do_build() { + composer8.0 install --no-scripts --no-dev --ignore-platform-reqs +} + +do_install() { + vmkdir usr/share/webapps/firefly-iii-data-importer + for i in app artisan bootstrap composer.json config database phpunit.xml \ + public resources routes server.php vendor webpack.mix.js; do + vcopy "$i" usr/share/webapps/firefly-iii-data-importer + done + + vsconf .env.example data-importer.conf + + vinstall .env.example 644 /etc/webapps/firefly-iii-data-importer data-importer.conf + ln -s /etc/webapps/firefly-iii-data-importer/data-importer.conf \ + "${DESTDIR}"/usr/share/webapps/firefly-iii-data-importer/.env + + ln -s /var/lib/firefly-iii-data-importer/storage \ + "${DESTDIR}"/usr/share/webapps/firefly-iii-data-importer + + rm -rf "${DESTDIR}"/usr/share/webapps/firefly-iii-data-importer/bootstrap/cache + ln -s /var/cache/firefly-iii-data-importer \ + "${DESTDIR}"/usr/share/webapps/firefly-iii-data-importer/bootstrap/cache + + vlicense LICENSE +}