summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2022-05-14 00:47:06 +0200
committerConrad Kostecki <conikost@gentoo.org>2022-05-14 00:51:17 +0200
commitb6a93415bdb253c924b8c9d31c3cf15b8dbeaf9d (patch)
tree35b351114a9046dd0920e61c6f644784678a5336 /app-office
parentacct-user/libreoffice: initial import (diff)
downloadgentoo-b6a93415bdb253c924b8c9d31c3cf15b8dbeaf9d.tar.gz
gentoo-b6a93415bdb253c924b8c9d31c3cf15b8dbeaf9d.tar.bz2
gentoo-b6a93415bdb253c924b8c9d31c3cf15b8dbeaf9d.zip
app-office/libreoffice: add user/group for headless server
Closes: https://github.com/gentoo/gentoo/pull/24938 Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'app-office')
-rw-r--r--app-office/libreoffice/files/soffice.confd5
-rw-r--r--app-office/libreoffice/files/soffice.initd14
-rw-r--r--app-office/libreoffice/libreoffice-7.3.3.2-r3.ebuild (renamed from app-office/libreoffice/libreoffice-7.3.3.2-r2.ebuild)5
-rw-r--r--app-office/libreoffice/libreoffice-7.3.9999.ebuild5
-rw-r--r--app-office/libreoffice/libreoffice-9999.ebuild5
5 files changed, 34 insertions, 0 deletions
diff --git a/app-office/libreoffice/files/soffice.confd b/app-office/libreoffice/files/soffice.confd
new file mode 100644
index 000000000000..df1a26969158
--- /dev/null
+++ b/app-office/libreoffice/files/soffice.confd
@@ -0,0 +1,5 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# Default options for the soffice daemon
+libreoffice_opts="--accept=\"socket,host=localhost,port=8100,tcpNoDelay=1;urp;\""
diff --git a/app-office/libreoffice/files/soffice.initd b/app-office/libreoffice/files/soffice.initd
new file mode 100644
index 000000000000..ecd650145735
--- /dev/null
+++ b/app-office/libreoffice/files/soffice.initd
@@ -0,0 +1,14 @@
+#!/sbin/openrc-run
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+description="LibreOffice headless daemon for generating documents"
+name="LibreOffice headless daemon"
+pidfile="/run/soffice.pid"
+soffice_args="${libreoffice_opts}"
+
+command="/usr/bin/soffice"
+command_args="--nodefault --nofirststartwizard --nolockcheck --nologo --norestore --headless ${soffice_args}"
+command_background="true"
+command_group="libreoffice"
+command_user="libreoffice"
diff --git a/app-office/libreoffice/libreoffice-7.3.3.2-r2.ebuild b/app-office/libreoffice/libreoffice-7.3.3.2-r3.ebuild
index 22d36d585f5f..e03a37669e72 100644
--- a/app-office/libreoffice/libreoffice-7.3.3.2-r2.ebuild
+++ b/app-office/libreoffice/libreoffice-7.3.3.2-r3.ebuild
@@ -250,6 +250,8 @@ DEPEND="${COMMON_DEPEND}
)
"
RDEPEND="${COMMON_DEPEND}
+ acct-group/libreoffice
+ acct-user/libreoffice
!app-office/libreoffice-bin
!app-office/libreoffice-bin-debug
media-fonts/liberation-fonts
@@ -654,6 +656,9 @@ EOF
dosym -r ${loprogdir}/__pycache__/${pyc} $(python_get_sitedir)/__pycache__/${pyc}
done < <(find "${D}"${lodir}/program -type f -name ${py/.py/*.pyc} -print0)
done
+
+ newinitd "${FILESDIR}/libreoffice.initd" libreoffice
+ newconfd "${FILESDIR}/libreoffice.confd" libreoffice
}
pkg_postinst() {
diff --git a/app-office/libreoffice/libreoffice-7.3.9999.ebuild b/app-office/libreoffice/libreoffice-7.3.9999.ebuild
index 68cf55317be3..67730f9d7995 100644
--- a/app-office/libreoffice/libreoffice-7.3.9999.ebuild
+++ b/app-office/libreoffice/libreoffice-7.3.9999.ebuild
@@ -250,6 +250,8 @@ DEPEND="${COMMON_DEPEND}
)
"
RDEPEND="${COMMON_DEPEND}
+ acct-group/libreoffice
+ acct-user/libreoffice
!app-office/libreoffice-bin
!app-office/libreoffice-bin-debug
media-fonts/liberation-fonts
@@ -649,6 +651,9 @@ EOF
dosym -r ${loprogdir}/__pycache__/${pyc} $(python_get_sitedir)/__pycache__/${pyc}
done < <(find "${D}"${lodir}/program -type f -name ${py/.py/*.pyc} -print0)
done
+
+ newinitd "${FILESDIR}/libreoffice.initd" libreoffice
+ newconfd "${FILESDIR}/libreoffice.confd" libreoffice
}
pkg_postinst() {
diff --git a/app-office/libreoffice/libreoffice-9999.ebuild b/app-office/libreoffice/libreoffice-9999.ebuild
index b155f2f2f525..7fe70e573e21 100644
--- a/app-office/libreoffice/libreoffice-9999.ebuild
+++ b/app-office/libreoffice/libreoffice-9999.ebuild
@@ -250,6 +250,8 @@ DEPEND="${COMMON_DEPEND}
)
"
RDEPEND="${COMMON_DEPEND}
+ acct-group/libreoffice
+ acct-user/libreoffice
!app-office/libreoffice-bin
!app-office/libreoffice-bin-debug
media-fonts/liberation-fonts
@@ -649,6 +651,9 @@ EOF
dosym -r ${loprogdir}/__pycache__/${pyc} $(python_get_sitedir)/__pycache__/${pyc}
done < <(find "${D}"${lodir}/program -type f -name ${py/.py/*.pyc} -print0)
done
+
+ newinitd "${FILESDIR}/libreoffice.initd" libreoffice
+ newconfd "${FILESDIR}/libreoffice.confd" libreoffice
}
pkg_postinst() {