From dbc0d5b3c2daf8bc3d4ea82345838b5eaed30697 Mon Sep 17 00:00:00 2001 From: Marcin Deranek Date: Fri, 12 Jul 2024 12:39:43 +0200 Subject: www-apps/paperless-ngx Version bump --- www-apps/paperless-ngx/Manifest | 4 +- www-apps/paperless-ngx/paperless-ngx-2.11.0.ebuild | 191 +++++++++++++++++++++ www-apps/paperless-ngx/paperless-ngx-2.9.0.ebuild | 190 -------------------- 3 files changed, 193 insertions(+), 192 deletions(-) create mode 100644 www-apps/paperless-ngx/paperless-ngx-2.11.0.ebuild delete mode 100644 www-apps/paperless-ngx/paperless-ngx-2.9.0.ebuild (limited to 'www-apps') diff --git a/www-apps/paperless-ngx/Manifest b/www-apps/paperless-ngx/Manifest index 680f08b..dc3e83e 100644 --- a/www-apps/paperless-ngx/Manifest +++ b/www-apps/paperless-ngx/Manifest @@ -8,7 +8,7 @@ AUX paperless.target 215 BLAKE2B 95b67ebfc166b888ee5aea32c5565002ae451a10c0d0851 AUX paperless.tmpfiles 349 BLAKE2B 4a59f0a0c6a4abad23cba01e216909f45a7064e93911b8ba3e3b394f52379e41898b8c9e1246ba034bc8d2fe6dc83f5cad926e265a17da7c7093d997cfe8b4f3 SHA512 63af6e4359d5fa7bfc3f3669263a36f5d3b5f60c95cf6579d7324bb2116647bb447968b1bab5916e831918344b963d1026116e8cdfb57bce8063ed5ba119c9ea AUX uvicorn-0.26.patch 335 BLAKE2B 624e61b490f1f13402dd8568a0a744c8f94821ef34d8fb419d06a45c3a87dae50c2f973dc14f5fe2fa515dddd49646b9be323013ff2fb5341a2723c39fbee31b SHA512 bbc68f49c581c0f9546bad578a98f3176951c018d94e00ccd99cd1a374fe57c7b4b5f97c479acea90c12d6060f3fdad5349537d44a483794d77b7f37f1c33516 DIST paperless-ngx-v2.10.2.tar.xz 62291344 BLAKE2B d3d75b22e3567675c2137d6b699a6460a084b4e55f607ea04caa6f49850d0f0b9cb54b351b1003742f85279b21bb173e6469ce70b3224f86e3ba08e6533493a8 SHA512 8b7bff666312e04f84820c2cb499cc65035a50b12e4ef425a92e344a875544a7926405bc6a5ae191fd1a2bec9ad37c524e61b3e4fadf024ad0f61d6a94ad321c -DIST paperless-ngx-v2.9.0.tar.xz 63809484 BLAKE2B e1286584d18142ed48d779dd5e2bba2c2d0b719ccf6d4a922183ddae1b79fe0d3fd1ca858aa20cf17c714a649c1f6377b8f728a2fc37f8d16be53ed4791e0516 SHA512 023381b2610ee1c39a47c7d299a3352f0d47e3ebc6cac7712f1470638b97c686526c7c671d69b23fa91baa78209143cb261a4ce77b219efbc71d9dfd85e539b7 +DIST paperless-ngx-v2.11.0.tar.xz 63921912 BLAKE2B 25dba5e5058f011542639e78c96e90c3be72f0f721677bcab2358d32f19c15895f15f285af7fbecaeb923dc9e6cc6e4336571bfcc20f433390c0d120e731d551 SHA512 813f136d69a0129a6034b98ab3ef5a39f70c0e73598080838a9d610afbb3bcc9e24bee3f65fb396db973f68971bc22ae2094a85955a02528e7aecba077089c39 EBUILD paperless-ngx-2.10.2.ebuild 6510 BLAKE2B e5f453d4432818ce51d4a37b348d49ad43757247cf67bd8f582589bd67bc844656e73c97bb71fc6f376e8240df3c401e32fa62bc6203a66420480c6c49ae8b4e SHA512 5a6817f984d7fbf7b0c4e1ba727e72ea2ee4025be12b605f6213cf023ee37d12aa8663a0c866324c75cf723c50a9567869346adb9018543e618afbc4155c7a39 -EBUILD paperless-ngx-2.9.0.ebuild 6477 BLAKE2B 9eabf29318b8c71d0c20b1587b9c9d0c08ef8b1e98d35d2d3f344dc192ea41ed809473f9dd9d9081fc4b70ba128a63b9dd398cc8ae45dba7fe00d4e2fb0cd2f9 SHA512 f0182e1e77f6604482cdaf7f136db4bc4595163718cddbbc83becc650e66b170aadb8edb0002c6a5185693dacf3bcd7808f0a3352e305bc6d8cef464291ba17f +EBUILD paperless-ngx-2.11.0.ebuild 6519 BLAKE2B 6f9a3d57ec8b3a66196af6bb09f8dcd9bacfec810f326d1a5e0134d87618a4962000ffe49ab00c501997dbbb036db9410881788292b398d9851231e48fdc5166 SHA512 5e038ec273e800691bc24179fbbd0c6b46fa25d70d83537638a932611111b0019aba475a7e7677d21ba9fbc7665bcd890c668fbd087865a440bd72483c7e4222 MISC metadata.xml 851 BLAKE2B dfb395b418d92c0c7318c4862dfbce74a312222b3a2848334806c2f8063bb63947a4c0315c289f1db83987d5e7649483efb484944afd6963b3f74c1a488877f5 SHA512 e7622cfe74bee71e3698241cb234221d9d40c9a41eca4f8b3e5e3c7338940652f5c5652cd72a675339cc6620d777e858fe5310f29cf7f87f5585eb8742b58405 diff --git a/www-apps/paperless-ngx/paperless-ngx-2.11.0.ebuild b/www-apps/paperless-ngx/paperless-ngx-2.11.0.ebuild new file mode 100644 index 0000000..70970d1 --- /dev/null +++ b/www-apps/paperless-ngx/paperless-ngx-2.11.0.ebuild @@ -0,0 +1,191 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} ) + +inherit python-single-r1 systemd + +DESCRIPTION="Community supported paperless: scan, index and archive your physical documents" +HOMEPAGE="https://github.com/paperless-ngx/paperless-ngx" +SRC_URI="https://github.com/paperless-ngx/paperless-ngx/releases/download/v${PV}/paperless-ngx-v${PV}.tar.xz" +S="${WORKDIR}/${PN}" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" +IUSE="audit compression mysql +ocr postgres remote-redis +sqlite zxing" +REQUIRED_USE=" + ${PYTHON_REQUIRED_USE} + || ( mysql postgres sqlite ) +" + +ACCT_DEPEND=" + acct-group/paperless + acct-user/paperless +" +EXTRA_DEPEND=" + app-text/unpaper + $(python_gen_cond_dep ' + dev-python/hiredis[${PYTHON_USEDEP}] + dev-python/websockets[${PYTHON_USEDEP}]') +" + +DEPEND=" + ${ACCT_DEPEND} + ${EXTRA_DEPEND} + ${PYTHON_DEPS} + app-text/poppler[utils] + $(python_gen_cond_dep ' + dev-python/asgiref[${PYTHON_USEDEP}] + dev-python/bleach[${PYTHON_USEDEP}] + dev-python/celery[${PYTHON_USEDEP}] + >=dev-python/channels-4.1[${PYTHON_USEDEP}] + >=dev-python/channels-redis-4.0[${PYTHON_USEDEP}] + dev-python/concurrent-log-handler[${PYTHON_USEDEP}] + >=dev-python/dateparser-1.2[${PYTHON_USEDEP}] + >=dev-python/django-5.0[${PYTHON_USEDEP}] + dev-python/django-allauth[${PYTHON_USEDEP}] + dev-python/django-celery-results[${PYTHON_USEDEP}] + dev-python/django-cors-headers[${PYTHON_USEDEP}] + dev-python/django-extensions[${PYTHON_USEDEP}] + >=dev-python/django-filter-24.2[${PYTHON_USEDEP}] + dev-python/django-guardian[${PYTHON_USEDEP}] + dev-python/django-multiselectfield[${PYTHON_USEDEP}] + dev-python/django-redis[${PYTHON_USEDEP}] + dev-python/django-soft-delete[${PYTHON_USEDEP}] + >=dev-python/djangorestframework-3.15.2[${PYTHON_USEDEP}] + dev-python/djangorestframework-guardian[${PYTHON_USEDEP}] + dev-python/drf-writable-nested[${PYTHON_USEDEP}] + dev-python/filelock[${PYTHON_USEDEP}] + dev-python/imap-tools[${PYTHON_USEDEP}] + >=dev-python/inotifyrecursive-0.3[${PYTHON_USEDEP}] + dev-python/langdetect[${PYTHON_USEDEP}] + dev-python/nltk[${PYTHON_USEDEP}] + dev-python/pathvalidate[${PYTHON_USEDEP}] + dev-python/pdf2image[${PYTHON_USEDEP}] + dev-python/pikepdf[${PYTHON_USEDEP}] + dev-python/pillow[${PYTHON_USEDEP}] + dev-python/python-dateutil[${PYTHON_USEDEP}] + dev-python/python-dotenv[${PYTHON_USEDEP}] + dev-python/python-gnupg[${PYTHON_USEDEP}] + >=dev-python/python-ipware-2.0.0[${PYTHON_USEDEP}] + dev-python/python-magic[${PYTHON_USEDEP}] + dev-python/pyzbar[${PYTHON_USEDEP}] + dev-python/rapidfuzz[${PYTHON_USEDEP}] + dev-python/redis[${PYTHON_USEDEP}] + >=dev-python/scikit-learn-1.5 + dev-python/tqdm[${PYTHON_USEDEP}] + >=dev-python/uvicorn-0.26.0[${PYTHON_USEDEP}] + >=dev-python/watchdog-4.0[${PYTHON_USEDEP}] + >=dev-python/whitenoise-6.7[${PYTHON_USEDEP}] + >=dev-python/whoosh-2.7[${PYTHON_USEDEP}]') + media-gfx/imagemagick[xml] + media-gfx/optipng + media-libs/jbig2enc + www-servers/gunicorn + audit? ( $(python_gen_cond_dep ' + dev-python/django-auditlog[${PYTHON_USEDEP}]') ) + compression? ( $(python_gen_cond_dep ' + dev-python/django-compression-middleware[${PYTHON_USEDEP}]') ) + mysql? ( dev-python/mysqlclient ) + ocr? ( >=app-text/OCRmyPDF-15.4 ) + postgres? ( $(python_gen_cond_dep ' + dev-python/psycopg[native-extensions,${PYTHON_USEDEP}]') ) + !remote-redis? ( dev-db/redis ) + zxing? ( media-libs/zxing-cpp[python,${PYTHON_SINGLE_USEDEP}] ) +" +RDEPEND="${DEPEND}" +# dev-python/tika +# dev-python/gotenberg-client + +PATCHES=( + "${FILESDIR}/uvicorn-0.26.patch" + "${FILESDIR}/channels-4.1.patch" +) + +DOCS=( docker/imagemagick-policy.xml ) + +src_prepare() { + default + + sed \ + -e "s|#PAPERLESS_CONSUMPTION_DIR=../consume|PAPERLESS_CONSUMPTION_DIR=/var/lib/paperless/consume|" \ + -e "s|#PAPERLESS_DATA_DIR=../data|PAPERLESS_DATA_DIR=/var/lib/paperless/data|" \ + -e "s|#PAPERLESS_MEDIA_ROOT=../media|PAPERLESS_MEDIA_ROOT=/var/lib/paperless/media|" \ + -e "s|#PAPERLESS_STATICDIR=../static|PAPERLESS_STATICDIR=/usr/share/paperless/static|" \ + -e "s|#PAPERLESS_CONVERT_TMPDIR=/var/tmp/paperless|PAPERLESS_CONVERT_TMPDIR=/var/lib/paperless/tmp|" \ + -i "paperless.conf" || die "Cannot update paperless.conf" + + cat >> "paperless.conf" <<- EOF + + # Custom + PAPERLESS_BIND_ADDR=unix + PAPERLESS_PORT=/run/paperless.sock + + PAPERLESS_ENABLE_COMPRESSION=$(use compression && echo true || echo false) + PAPERLESS_AUDIT_LOG_ENABLED=$(use audit && echo true || echo false) + EOF +} + +src_install() { + einstalldocs + + # Install service files + systemd_newunit "${FILESDIR}"/paperless-webserver.service paperless-webserver.service + systemd_newunit "${FILESDIR}"/paperless-webserver.socket paperless-webserver.socket + systemd_newunit "${FILESDIR}"/paperless-scheduler.service paperless-scheduler.service + systemd_newunit "${FILESDIR}"/paperless-consumer.service paperless-consumer.service + systemd_newunit "${FILESDIR}"/paperless-task-queue.service paperless-task-queue.service + systemd_newunit "${FILESDIR}"/paperless.target paperless.target + if use remote-redis; then + sed -e '/redis\.service/d' -i *.service "${D}$(systemd_get_systemunitdir)"/*.service + fi + + # Install paperless files + insinto /usr/share/paperless + doins -r docs src static gunicorn.conf.py requirements.txt + + insinto /etc + doins paperless.conf + fowners root:paperless /etc/paperless.conf + fperms 640 /etc/paperless.conf + + insinto /usr/lib/tmpfiles.d + doins "${FILESDIR}"/paperless.tmpfiles + fperms 644 /usr/lib/tmpfiles.d/paperless.tmpfiles + + # Set directories + for dir in consume data media tmp; do + keepdir /var/lib/paperless/${dir} + fowners paperless:paperless /var/lib/paperless/${dir} + case "${dir}" in + data) fperms 700 /var/lib/paperless/${dir} ;; + *) fperms 750 /var/lib/paperless/${dir} ;; + esac + done + + # Main executable + fperms 755 "/usr/share/paperless/src/manage.py" + dosym -r "/usr/share/paperless/src/manage.py" "/usr/bin/paperless-manage" +} + +pkg_postinst() { + elog "To complete the installation of paperless, edit /etc/paperless.conf file and" + elog "* Create the database with" + elog "" + elog "sudo -u paperless paperless-manage migrate" + elog "" + elog "* Create a super user account with" + elog "" + elog "sudo -u paperless paperless-manage createsuperuser" + elog "" + elog "After each update of paperless, you should run migration with" + elog "" + elog "sudo -u paperless paperless-manage migrate" + elog "" + elog "Paperless services can be started together with" + elog "" + elog "sudo systemctl start paperless.target" +} diff --git a/www-apps/paperless-ngx/paperless-ngx-2.9.0.ebuild b/www-apps/paperless-ngx/paperless-ngx-2.9.0.ebuild deleted file mode 100644 index d282e28..0000000 --- a/www-apps/paperless-ngx/paperless-ngx-2.9.0.ebuild +++ /dev/null @@ -1,190 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{10..12} ) - -inherit python-single-r1 systemd - -DESCRIPTION="Community supported paperless: scan, index and archive your physical documents" -HOMEPAGE="https://github.com/paperless-ngx/paperless-ngx" -SRC_URI="https://github.com/paperless-ngx/paperless-ngx/releases/download/v${PV}/paperless-ngx-v${PV}.tar.xz" -S="${WORKDIR}/${PN}" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~amd64" -IUSE="audit compression mysql +ocr postgres remote-redis +sqlite zxing" -REQUIRED_USE=" - ${PYTHON_REQUIRED_USE} - || ( mysql postgres sqlite ) -" - -ACCT_DEPEND=" - acct-group/paperless - acct-user/paperless -" -EXTRA_DEPEND=" - app-text/unpaper - $(python_gen_cond_dep ' - dev-python/hiredis[${PYTHON_USEDEP}] - dev-python/websockets[${PYTHON_USEDEP}]') -" - -DEPEND=" - ${ACCT_DEPEND} - ${EXTRA_DEPEND} - ${PYTHON_DEPS} - app-text/poppler[utils] - $(python_gen_cond_dep ' - dev-python/asgiref[${PYTHON_USEDEP}] - dev-python/bleach[${PYTHON_USEDEP}] - dev-python/celery[${PYTHON_USEDEP}] - >=dev-python/channels-4.1[${PYTHON_USEDEP}] - >=dev-python/channels-redis-4.0[${PYTHON_USEDEP}] - dev-python/concurrent-log-handler[${PYTHON_USEDEP}] - >=dev-python/dateparser-1.2[${PYTHON_USEDEP}] - >=dev-python/django-4.2.13[${PYTHON_USEDEP}] - =dev-python/django-filter-24.2[${PYTHON_USEDEP}] - dev-python/django-guardian[${PYTHON_USEDEP}] - dev-python/django-multiselectfield[${PYTHON_USEDEP}] - dev-python/django-redis[${PYTHON_USEDEP}] - ~dev-python/djangorestframework-3.14.0[${PYTHON_USEDEP}] - dev-python/djangorestframework-guardian[${PYTHON_USEDEP}] - dev-python/drf-writable-nested[${PYTHON_USEDEP}] - dev-python/filelock[${PYTHON_USEDEP}] - dev-python/imap-tools[${PYTHON_USEDEP}] - >=dev-python/inotifyrecursive-0.3[${PYTHON_USEDEP}] - dev-python/langdetect[${PYTHON_USEDEP}] - dev-python/nltk[${PYTHON_USEDEP}] - dev-python/pathvalidate[${PYTHON_USEDEP}] - dev-python/pdf2image[${PYTHON_USEDEP}] - dev-python/pikepdf[${PYTHON_USEDEP}] - dev-python/pillow[${PYTHON_USEDEP}] - dev-python/python-dateutil[${PYTHON_USEDEP}] - dev-python/python-dotenv[${PYTHON_USEDEP}] - dev-python/python-gnupg[${PYTHON_USEDEP}] - >=dev-python/python-ipware-2.0.0[${PYTHON_USEDEP}] - dev-python/python-magic[${PYTHON_USEDEP}] - dev-python/pyzbar[${PYTHON_USEDEP}] - dev-python/rapidfuzz[${PYTHON_USEDEP}] - dev-python/redis[${PYTHON_USEDEP}] - >=dev-python/scikit-learn-1.5 - dev-python/tqdm[${PYTHON_USEDEP}] - >=dev-python/uvicorn-0.26.0[${PYTHON_USEDEP}] - >=dev-python/watchdog-4.0[${PYTHON_USEDEP}] - >=dev-python/whitenoise-6.6[${PYTHON_USEDEP}] - >=dev-python/whoosh-2.7[${PYTHON_USEDEP}]') - media-gfx/imagemagick[xml] - media-gfx/optipng - media-libs/jbig2enc - www-servers/gunicorn - audit? ( $(python_gen_cond_dep ' - dev-python/django-auditlog[${PYTHON_USEDEP}]') ) - compression? ( $(python_gen_cond_dep ' - dev-python/django-compression-middleware[${PYTHON_USEDEP}]') ) - mysql? ( dev-python/mysqlclient ) - ocr? ( >=app-text/OCRmyPDF-15.4 ) - postgres? ( $(python_gen_cond_dep ' - dev-python/psycopg[native-extensions,${PYTHON_USEDEP}]') ) - !remote-redis? ( dev-db/redis ) - zxing? ( media-libs/zxing-cpp[python,${PYTHON_SINGLE_USEDEP}] ) -" -RDEPEND="${DEPEND}" -# dev-python/tika -# dev-python/gotenberg-client - -PATCHES=( - "${FILESDIR}/channels-4.1.patch" -) - -DOCS=( docker/imagemagick-policy.xml ) - -src_prepare() { - default - - sed \ - -e "s|#PAPERLESS_CONSUMPTION_DIR=../consume|PAPERLESS_CONSUMPTION_DIR=/var/lib/paperless/consume|" \ - -e "s|#PAPERLESS_DATA_DIR=../data|PAPERLESS_DATA_DIR=/var/lib/paperless/data|" \ - -e "s|#PAPERLESS_MEDIA_ROOT=../media|PAPERLESS_MEDIA_ROOT=/var/lib/paperless/media|" \ - -e "s|#PAPERLESS_STATICDIR=../static|PAPERLESS_STATICDIR=/usr/share/paperless/static|" \ - -e "s|#PAPERLESS_CONVERT_TMPDIR=/var/tmp/paperless|PAPERLESS_CONVERT_TMPDIR=/var/lib/paperless/tmp|" \ - -i "paperless.conf" || die "Cannot update paperless.conf" - - cat >> "paperless.conf" <<- EOF - - # Custom - PAPERLESS_BIND_ADDR=unix - PAPERLESS_PORT=/run/paperless.sock - - PAPERLESS_ENABLE_COMPRESSION=$(use compression && echo true || echo false) - PAPERLESS_AUDIT_LOG_ENABLED=$(use audit && echo true || echo false) - EOF -} - -src_install() { - einstalldocs - - # Install service files - systemd_newunit "${FILESDIR}"/paperless-webserver.service paperless-webserver.service - systemd_newunit "${FILESDIR}"/paperless-webserver.socket paperless-webserver.socket - systemd_newunit "${FILESDIR}"/paperless-scheduler.service paperless-scheduler.service - systemd_newunit "${FILESDIR}"/paperless-consumer.service paperless-consumer.service - systemd_newunit "${FILESDIR}"/paperless-task-queue.service paperless-task-queue.service - systemd_newunit "${FILESDIR}"/paperless.target paperless.target - if use remote-redis; then - sed -e '/redis\.service/d' -i *.service "${D}$(systemd_get_systemunitdir)"/*.service - fi - - # Install paperless files - insinto /usr/share/paperless - doins -r docs src static gunicorn.conf.py requirements.txt - - insinto /etc - doins paperless.conf - fowners root:paperless /etc/paperless.conf - fperms 640 /etc/paperless.conf - - insinto /usr/lib/tmpfiles.d - doins "${FILESDIR}"/paperless.tmpfiles - fperms 644 /usr/lib/tmpfiles.d/paperless.tmpfiles - - # Set directories - for dir in consume data media tmp; do - keepdir /var/lib/paperless/${dir} - fowners paperless:paperless /var/lib/paperless/${dir} - case "${dir}" in - data) fperms 700 /var/lib/paperless/${dir} ;; - *) fperms 750 /var/lib/paperless/${dir} ;; - esac - done - - # Main executable - fperms 755 "/usr/share/paperless/src/manage.py" - dosym -r "/usr/share/paperless/src/manage.py" "/usr/bin/paperless-manage" -} - -pkg_postinst() { - elog "To complete the installation of paperless, edit /etc/paperless.conf file and" - elog "* Create the database with" - elog "" - elog "sudo -u paperless paperless-manage migrate" - elog "" - elog "* Create a super user account with" - elog "" - elog "sudo -u paperless paperless-manage createsuperuser" - elog "" - elog "After each update of paperless, you should run migration with" - elog "" - elog "sudo -u paperless paperless-manage migrate" - elog "" - elog "Paperless services can be started together with" - elog "" - elog "sudo systemctl start paperless.target" -} -- cgit v1.2.3