[arch-commits] Commit in postorius/trunk (3 files)

David Runge dvzrv at archlinux.org
Sun Feb 2 00:52:09 UTC 2020


    Date: Sunday, February 2, 2020 @ 00:52:07
  Author: dvzrv
Revision: 561204

upgpkg: postorius 1.3.2-3: Changing the default location for the sqlite database to /var/lib/postorius/data/, so that restrictive access permissions can be applied only to that directory. Web servers otherwise are unable to reach the static directory, if the state dir is chmod 750.

Modified:
  postorius/trunk/PKGBUILD
  postorius/trunk/postorius-1.3.2-settings.patch
  postorius/trunk/postorius.tmpfiles

--------------------------------+
 PKGBUILD                       |    8 ++++----
 postorius-1.3.2-settings.patch |    2 +-
 postorius.tmpfiles             |    4 ++--
 3 files changed, 7 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-02-01 23:52:15 UTC (rev 561203)
+++ PKGBUILD	2020-02-02 00:52:07 UTC (rev 561204)
@@ -2,7 +2,7 @@
 
 pkgname=postorius
 pkgver=1.3.2
-pkgrel=2
+pkgrel=3
 pkgdesc="The New Mailman Web UI"
 arch=('any')
 url="https://gitlab.com/mailman/postorius"
@@ -26,9 +26,9 @@
 sha512sums=('41ff225fa574dd4bd0ac88419a10a55a71c52a64df01a1a593963fdfa62baf16a0df735364688ea24680c8e88093841892474279d40c1428948375db7eb6333b'
             'SKIP'
             '3884b818da2deb148279e50316f720c95f0aaa529777b1b3662d8ab253cda823a90682a9eb47e941ca5ba80eefcb9a2d4afacd29f0340d7f9828b36ebcee23b3'
-            '0fe9517bb56c241d38e97e0141e499480760b3c6e786e78a4e6f5825fc319a4b518649a2457a5a224e49decaeb0340cbb0929ec82d51b66afe9cce7f9d270f1d'
+            '111747a7b9312bda8d23df6da430858d0bef09876e259ece63cc288a8e7de45be8225f68561d2c5f86cf8160fcef3e37071dde38e43f0a247e4860d05e3381bb'
             'c042f00d0d8dc72dadd19023152e55246c4d7a4b9d53bca3a05e7b8cb38cac5116417440d4ae82350820c7cb0cd414dcce45fa6af9be19296c4ebd0862dba896'
-            '589b000789375a1669eaa165c904e27fec097802fca39b4469b61cac6b615031a2ca6ece63f32cfd78f91ef249b0b15ec43c6ce6130166e7c127ef3d717e02f2')
+            '53713874043e368c71543966e878ff7a49f03088b7ebcff9487935bef2c20a57a561a122dd6b4cbde126c25b935871288dadd7693b831a94b8f27da52afeaa0c')
 validpgpkeys=('541EA0448453394FF77A0ECC9D9B2BA061D0A67C') # Abhilash Raj <raj.abhilash1 at gmail.com>
 
 prepare() {
@@ -67,7 +67,7 @@
   ln -svf "/var/lib/${pkgname}/static/" \
     "${pkgdir}/usr/share/webapps/${pkgname}"
   # state dir
-  install -vdm 750 "${pkgdir}/var/lib/${pkgname}"
+  install -vdm 750 "${pkgdir}/var/lib/${pkgname}/data"
   install -vdm 755 "${pkgdir}/var/lib/${pkgname}/"{locale,static}
   # log dir
   install -vdm 750 "${pkgdir}/var/log/${pkgname}"

Modified: postorius-1.3.2-settings.patch
===================================================================
--- postorius-1.3.2-settings.patch	2020-02-01 23:52:15 UTC (rev 561203)
+++ postorius-1.3.2-settings.patch	2020-02-02 00:52:07 UTC (rev 561204)
@@ -7,7 +7,7 @@
      'default': {
          'ENGINE': 'django.db.backends.sqlite3',
 -        'NAME': os.path.join(BASE_DIR, 'postorius.db'),
-+        'NAME': '/var/lib/postorius/postorius.db',
++        'NAME': '/var/lib/postorius/data/postorius.db',
      }
  }
  

Modified: postorius.tmpfiles
===================================================================
--- postorius.tmpfiles	2020-02-01 23:52:15 UTC (rev 561203)
+++ postorius.tmpfiles	2020-02-02 00:52:07 UTC (rev 561204)
@@ -1,6 +1,6 @@
 z /etc/webapps/postorius/settings.py 0640 root postorius -
 d %L/postorius 750 postorius postorius -
-d %S/postorius 750 postorius postorius -
+d %S/postorius/data 750 postorius postorius -
+d %S/postorius/locale - postorius postorius -
 d %S/postorius/static - postorius postorius -
-d %S/postorius/locale - postorius postorius -
 d %t/postorius - postorius postorius -



More information about the arch-commits mailing list