Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] radicale: fix permissions post-install
@ 2023-10-01 19:52 fanyx
  2023-10-01 19:55 ` classabbyamp
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: fanyx @ 2023-10-01 19:52 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 377 bytes --]

There is a new pull request by fanyx against master on the void-packages repository

https://github.com/fanyx/void-packages fix/radicale
https://github.com/void-linux/void-packages/pull/46357

radicale: fix permissions post-install
Picks up #39973

Also add `_` prefix to system user

A patch file from https://github.com/void-linux/void-packages/pull/46357.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-fix/radicale-46357.patch --]
[-- Type: text/x-diff, Size: 2459 bytes --]

From 5f0bb42a609d93879e8a2546b807029245abfa35 Mon Sep 17 00:00:00 2001
From: fanyx <fanyx@posteo.net>
Date: Sun, 1 Oct 2023 21:47:46 +0200
Subject: [PATCH] radicale: fix permissions post-install

---
 srcpkgs/radicale/INSTALL            | 11 +++++++++++
 srcpkgs/radicale/files/radicale/run |  2 +-
 srcpkgs/radicale/template           | 13 ++++++-------
 3 files changed, 18 insertions(+), 8 deletions(-)
 create mode 100644 srcpkgs/radicale/INSTALL

diff --git a/srcpkgs/radicale/INSTALL b/srcpkgs/radicale/INSTALL
new file mode 100644
index 0000000000000..830c308f38534
--- /dev/null
+++ b/srcpkgs/radicale/INSTALL
@@ -0,0 +1,11 @@
+# *-*-shell-*-*
+#
+case ${ACTION} in
+post)
+	# fix permissions and owners
+    chown _radicale:_radicale /etc/radicale/config
+    chown _radicale:_radicale /etc/radicale/rights
+    chmod 644 /etc/radicale/config
+    chmod 640 /etc/radicale/rights
+	;;
+esac
diff --git a/srcpkgs/radicale/files/radicale/run b/srcpkgs/radicale/files/radicale/run
index ab664721091e9..f9f20fa972320 100755
--- a/srcpkgs/radicale/files/radicale/run
+++ b/srcpkgs/radicale/files/radicale/run
@@ -1,3 +1,3 @@
 #!/bin/sh
 exec 2>&1
-exec chpst -u radicale radicale -C /etc/radicale/config
+exec chpst -u _radicale _radicale -C /etc/radicale/config
diff --git a/srcpkgs/radicale/template b/srcpkgs/radicale/template
index a6fabe065463c..b5a0cb3a0a33f 100644
--- a/srcpkgs/radicale/template
+++ b/srcpkgs/radicale/template
@@ -1,7 +1,7 @@
 # Template file for 'radicale'
 pkgname=radicale
 version=3.1.8
-revision=3
+revision=4
 build_style=python3-module
 hostmakedepends="python3-setuptools"
 depends="python3-vobject python3-dateutil python3-passlib python3-bcrypt
@@ -22,11 +22,11 @@ conf_files="
 make_dirs="
  /etc/radicale 755 root root
  /usr/share/radicale/ 755 root root
- /var/log/radicale/ 700 root root
- /var/lib/radicale 750 radicale radicale"
-system_accounts="radicale"
-radicale_homedir="/var/lib/radicale"
-radicale_descr="Radicale user"
+ /var/log/radicale/ 750 _radicale _radicale
+ /var/lib/radicale 750 _radicale _radicale"
+system_accounts="_radicale"
+_radicale_homedir="/var/lib/radicale"
+_radicale_descr="Radicale user"
 replaces="radicale2<3.0.6"
 
 do_check() {
@@ -38,7 +38,6 @@ do_check() {
 post_install() {
 	vinstall config 644 etc/radicale/
 	vinstall rights 640 etc/radicale/
-	vinstall config 644 usr/share/examples/radicale
 	vinstall radicale.wsgi 644 usr/share/radicale
 	vsv radicale
 	vdoc README.md

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2024-03-23 13:53 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-01 19:52 [PR PATCH] radicale: fix permissions post-install fanyx
2023-10-01 19:55 ` classabbyamp
2023-10-01 19:56 ` fanyx
2023-10-01 19:58 ` [PR PATCH] [Updated] " fanyx
2023-10-01 20:04 ` [PR REVIEW] " classabbyamp
2023-10-01 20:05 ` fanyx
2023-10-01 20:08 ` [PR PATCH] [Updated] " fanyx
2023-12-12 11:54 ` fanyx
2023-12-12 12:00 ` fanyx
2024-03-12  1:44 ` radicale: fix permissions post-install, remove deprecated pytests github-actions
2024-03-23 13:53 ` [PR PATCH] [Closed]: " fanyx

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).