[arch-commits] Commit in kresus/repos (6 files)

Bruno Pagani archange at archlinux.org
Sun Aug 19 15:56:18 UTC 2018


    Date: Sunday, August 19, 2018 @ 15:56:18
  Author: archange
Revision: 372792

archrelease: copy trunk to community-x86_64

Added:
  kresus/repos/community-x86_64/
  kresus/repos/community-x86_64/PKGBUILD
    (from rev 372791, kresus/trunk/PKGBUILD)
  kresus/repos/community-x86_64/config.ini
    (from rev 372791, kresus/trunk/config.ini)
  kresus/repos/community-x86_64/kresus.service
    (from rev 372791, kresus/trunk/kresus.service)
  kresus/repos/community-x86_64/kresus.sysusers
    (from rev 372791, kresus/trunk/kresus.sysusers)
  kresus/repos/community-x86_64/kresus.tmpfiles
    (from rev 372791, kresus/trunk/kresus.tmpfiles)

-----------------+
 PKGBUILD        |   45 +++++++++++++++++++
 config.ini      |  125 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 kresus.service  |   22 +++++++++
 kresus.sysusers |    1 
 kresus.tmpfiles |    2 
 5 files changed, 195 insertions(+)

Copied: kresus/repos/community-x86_64/PKGBUILD (from rev 372791, kresus/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2018-08-19 15:56:18 UTC (rev 372792)
@@ -0,0 +1,45 @@
+# Maintainer: Bruno Pagani (a.k.a. ArchangeGabriel) <bruno.n.pagani at gmail.com>
+
+pkgname=kresus
+pkgver=0.13.2
+_commit=0c2bb82d76d8cfa1c0d183576bd8bddd8ab14a90
+pkgrel=1
+pkgdesc="Self-hosted personal finance manager"
+arch=('x86_64')
+url="https://kresus.org"
+license=('MIT')
+backup=('etc/webapps/kresus/config.ini')
+depends=('nodejs' 'weboob-headless')
+makedepends=('npm' 'libpng' 'python2')
+optdepends=('python2-pdfminer: For IBAN extraction from PDF RIB')
+source=(${pkgname}-${pkgver}.tar.bz2::"https://framagit.org/bnjbvr/kresus/repository/${pkgver}/archive.tar.bz2"
+        'config.ini'
+        "${pkgname}.service"
+        "${pkgname}.sysusers"
+        "${pkgname}.tmpfiles")
+sha256sums=('2594837ddb656c230e439db3c86a05743b14df1fd819ad53738e03118e61263e'
+            'adc91cd0cef6b546d482ebe1e9de85a451105166c15c190caa8c6a86c023b07a'
+            '9d1e05cb232fd511de31f09c93ea346b256f63b9435bff86826323d93281ef20'
+            'd9d30f5470c7165e4917487b69d7ab82e463da4e1355056e1035ee501d3f1adc'
+            'e58284777bb3750f52973dd021da6ba9837652975f53e383960b1c23c317edb8')
+
+build() {
+    cd ${pkgname}-${pkgver}-${_commit}
+    npm install && npm run build:prod
+}
+
+package() {
+    cd ${pkgname}-${pkgver}-${_commit}
+    make DESTDIR="${pkgdir}" install
+    # Fix python2 name
+    sed -i 's:#!/usr/bin/env python:#!/usr/bin/env python2:' "${pkgdir}"/usr/lib/node_modules/kresus/server/weboob/main.py
+    # Fix npm crazyness
+    chmod -R o-w "${pkgdir}"/usr
+    install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/
+
+    cd ..
+    install -Dm600 config.ini -t "${pkgdir}"/etc/webapps/kresus/
+    install -Dm644 ${pkgname}.service -t "${pkgdir}"/usr/lib/systemd/system/
+    install -Dm644 ${pkgname}.sysusers "${pkgdir}"/usr/lib/sysusers.d/${pkgname}.conf
+    install -Dm644 ${pkgname}.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/${pkgname}.conf
+}

Copied: kresus/repos/community-x86_64/config.ini (from rev 372791, kresus/trunk/config.ini)
===================================================================
--- community-x86_64/config.ini	                        (rev 0)
+++ community-x86_64/config.ini	2018-08-19 15:56:18 UTC (rev 372792)
@@ -0,0 +1,125 @@
+; Hi there! This is the configuration file for Kresus. Please make sure to
+; read all the options before setting up Kresus for the first time.
+[kresus]
+
+; This is where Kresus stores additional data, as the latest bank scrapping
+; modules. It should be writeable by the user which launches the Kresus
+; executable.
+; Can be removed; defaults to HOME_DIR/.kresus.
+; Overridden by the KRESUS_DIR environment variable, if it's set.
+; Example:
+; dataDir=/home/ben/.kresus
+datadir=/var/lib/kresus
+
+; The host on which the Kresus server will listen to.
+; Can be removed; defaults to "127.0.0.1".
+; Overridden by the HOST environment variable, if it's set.
+host=127.0.0.1
+
+; This is the port that Kresus will run on. It is recommended not to
+; expose it on port 80 directly but to use a reverse-proxy configuration
+; like Nginx, Caddy or Apache.
+; Can be removed; defaults to 9876.
+; Overridden by the PORT environment variable, if it's set.
+port=9876
+
+; The directory prefix in the URL, if Kresus is to be served from a
+; subdirectory. For instance, if your website is hosted at example.com and
+; the url prefix is "money", then Kresus will be reachable at
+; example.com/money.
+; Can be removed; defaults to "", i.e. Kresus has its own (sub)domain.
+; Overridden by the KRESUS_URL_PREFIX environment variable, if it's set.
+; Example:
+; url_prefix=/money
+url_prefix=
+
+; The executable version of Python that is going to get used when interacting
+; with Python scripts. This can be python, python2 or python3.
+; Can be removed; defaults to "python2".
+; Overridden by the KRESUS_PYTHON_EXEC environment variable, if it's set.
+; Example:
+; python_exec=python3
+python_exec=
+
+[weboob]
+; The directory in which Weboob core is stored.
+; Can be removed; defaults to "", indicating that weboob is already in the
+; PYTHON_PATH (e.g. installed at the global level).
+; Overridden by the KRESUS_WEBOOB_DIR environment variable, if it's set.
+; Example:
+; srcdir=/home/ben/code/weboob
+srcdir=
+
+; Path to a file containing a valid Weboob's source list directory.
+; Can be removed; defaults to "", indicating that Kresus will generate its own
+; source list file and will store it in ${datadir}/weboob-data/sources.list.
+; Overridden by the KRESUS_WEBOOB_SOURCES_LIST environment variable, if it's
+; set.
+; Example:
+; sources_list/home/ben/code/weboob/sources.list
+sources_list=
+
+[email]
+; The transport method you want to use. Can be either:
+; * "sendmail": relies on sendmail executable to be available on your system
+; and only sendmail-specific parameters are used,
+; * "smtp": you should provide proper SMTP credentials to use, in the dedicated
+; configuration entries.
+;
+; Can be removed; defaults to "", which means no emails will be sent.
+; Overridden by the KRESUS_EMAIL_TRANSPORT environment variable, if it's set.
+transport=
+
+; The path to the sendmail executable to use.
+; Can be removed; defaults to "", which means defaults to "sendmail"
+; executable.
+; Overridden by the KRESUS_EMAIL_SENDMAIL_BIN environment variable, if it's
+; set.
+sendmail_bin=
+
+; The email address from which email alerts will be sent. Make sure that
+; your domain DNS is correctly configured and that you've done what's
+; needed to prevent email alerts from landing in the spam folder.
+; Can be removed; defaults to "", which means no email will be sent.
+; Overridden by the KRESUS_EMAIL_FROM environment variable, if it's set.
+from=
+
+; The network address (ipv4, ipv6 or FQDN) of the SMTP server.
+; Can be removed; defaults to "", which means no email will be sent.
+; Overridden by the KRESUS_EMAIL_HOST environment variable, if it's set.
+host=
+
+; The port to which the SMTP server listens. Default values tend to be
+; 25 (server to server), or 587 (clients to server), or 465 (nonstandard).
+; Can be removed; defaults to "", which means no email will be sent.
+; Overridden by the KRESUS_EMAIL_PORT environment variable, if it's set.
+port=
+
+; The username used during authentication to the SMTP server.
+; Can be removed; defaults to "", which means an anonymous connection.
+; Overridden by the KRESUS_EMAIL_USER environment variable, if it's set.
+user=
+
+; The password used during authentication to the SMTP server.
+; Can be removed; defaults to "", which means no password.
+; Overridden by the KRESUS_EMAIL_PASSWORD environment variable, if it's set.
+password=
+
+; If set to true, will force using a TLS connection. By default, emails
+; are sent with STARTTLS, i.e. using TLS if available.
+; Can be removed; defaults to false.
+; Overridden by the KRESUS_EMAIL_FORCE_TLS environment variable, if it's set.
+force_tls=false
+
+; If set to false, will allow self-signed TLS certificates.
+; Can be removed; defaults to true.
+; Overridden by the KRESUS_EMAIL_REJECT_UNAUTHORIZED_TLS environment
+; variable, if it's set.
+reject_unauthorized_tls=true
+
+[logs]
+; The path to the log file to use.
+; Can be removed; defaults to kresus.log in kresus' datadir.
+; Overridden by the KRESUS_LOG_FILE environment variable, if it's set.
+; Logs will still be written to stdout.
+log_file=

Copied: kresus/repos/community-x86_64/kresus.service (from rev 372791, kresus/trunk/kresus.service)
===================================================================
--- community-x86_64/kresus.service	                        (rev 0)
+++ community-x86_64/kresus.service	2018-08-19 15:56:18 UTC (rev 372792)
@@ -0,0 +1,22 @@
+[Unit]
+Description=Kresus service
+After=network.target
+
+[Service]
+User=kresus
+Group=kresus
+Type=simple
+Environment="NODE_ENV=production"
+ExecStart=/usr/bin/kresus -c /etc/webapps/kresus/config.ini
+Restart=always
+NoNewPrivileges=true
+PrivateDevices=true
+PrivateTmp=true
+ProtectHome=true
+ProtectSystem=strict
+ProtectControlGroups=yes
+ProtectKernelModules=yes
+ReadWritePaths=/etc/webapps/kresus/config.ini /var/lib/kresus
+
+[Install]
+WantedBy=multi-user.target

Copied: kresus/repos/community-x86_64/kresus.sysusers (from rev 372791, kresus/trunk/kresus.sysusers)
===================================================================
--- community-x86_64/kresus.sysusers	                        (rev 0)
+++ community-x86_64/kresus.sysusers	2018-08-19 15:56:18 UTC (rev 372792)
@@ -0,0 +1 @@
+u kresus - "Kresus" /var/lib/kresus

Copied: kresus/repos/community-x86_64/kresus.tmpfiles (from rev 372791, kresus/trunk/kresus.tmpfiles)
===================================================================
--- community-x86_64/kresus.tmpfiles	                        (rev 0)
+++ community-x86_64/kresus.tmpfiles	2018-08-19 15:56:18 UTC (rev 372792)
@@ -0,0 +1,2 @@
+d /var/lib/kresus 0755 kresus kresus
+z /etc/webapps/kresus/config.ini 0600 kresus kresus



More information about the arch-commits mailing list