From 4cbcc855382a06088e2f016f62cafdbcb7e40665 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 20 Mar 2022 00:40:44 +0000 Subject: gentoo resync : 20.03.2022 --- acct-user/vdr/Manifest | 2 +- acct-user/vdr/vdr-0-r1.ebuild | 63 +++++++++++++++++++++++++++++++++++++++++++ acct-user/vdr/vdr-0.ebuild | 62 ------------------------------------------ 3 files changed, 64 insertions(+), 63 deletions(-) create mode 100644 acct-user/vdr/vdr-0-r1.ebuild delete mode 100644 acct-user/vdr/vdr-0.ebuild (limited to 'acct-user/vdr') diff --git a/acct-user/vdr/Manifest b/acct-user/vdr/Manifest index 394967b5d536..352c35d6ab50 100644 --- a/acct-user/vdr/Manifest +++ b/acct-user/vdr/Manifest @@ -1,2 +1,2 @@ -EBUILD vdr-0.ebuild 1949 BLAKE2B 4d724c7f96d41240af0fe4f19d9f27ee7ec0cdc061099084d26d30e1dd2e3b7484c9333b843bbc087d4b58b06a11b2bd05977767646900e8b9714189afe29b7a SHA512 f1df714e80706a0414ca938774bf96aab2a8c50d2c38737ff6efe61553dbfc60d55aad8f955d4fb2aa3c502f8ae10a615ddd42a498c90830a5cc42989109aed2 +EBUILD vdr-0-r1.ebuild 1972 BLAKE2B 629b351969cc6e5cb5960619ece6daa4035a2098186e2a0ff1a325f2f01b6c7639bd2ae0cda9a5d24ed1905be1809ddfcab1cbe707b2ce6cb91c2afc5ac56935 SHA512 d5e131454b5817069a38b2479d6718cbbe78d154b43992b7d40bee65a6c1eaecf972465910fe791cdf139ac8957979e63d73989b0f6865e2f43de331779d3251 MISC metadata.xml 1006 BLAKE2B 20307dfc3e06caad49997853cf0e6349243b6cd464fe83346e93369d7c691633ae2882f3b6c0c700404fc3dca0013b36a320c32d3c236199221561ddc6009b00 SHA512 90da2b83cafd636f6be7d6a10ba281a63d9a10e897e6108abaa9bf88625a5431a3a527aff6c918fec8a5a8d59c41844f0e7ad3ddac5ce4fb19dedfc76dafc1b1 diff --git a/acct-user/vdr/vdr-0-r1.ebuild b/acct-user/vdr/vdr-0-r1.ebuild new file mode 100644 index 000000000000..7871f9fcef97 --- /dev/null +++ b/acct-user/vdr/vdr-0-r1.ebuild @@ -0,0 +1,63 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit acct-user user-info + +ACCT_USER_ID=452 +ACCT_USER_HOME=/var/lib/vdr +ACCT_USER_GROUPS=( vdr audio cdrom video ) + +DESCRIPTION="VDR (VideoDiskRecorder) service user" +IUSE="graphlcd legacy-homedir remote serial systemd" + +acct-user_add_deps + +pkg_setup() { + # if user wants to preserve his existing vdr installation, + # he can set USE=legacy-homedir + use legacy-homedir && ACCT_USER_HOME=/var/vdr + + # media-plugins/vdr-graphlcd + use graphlcd && ACCT_USER_GROUPS+=( lp usb ) + + # media-plugins/vdr-remote, _only_ when systemd is installed + if use remote; then + if use systemd; then + ACCT_USER_GROUPS+=( input ) + else + einfo "use-flag remote has no effect on systemd systems" + fi + fi + + # media-plugins/vdr-serial: add group to access /dev/ttyS* + # on systemd systems: add "dialout" + # non-systemd systems: add "uucp" + if use serial; then + if use systemd; then + ACCT_USER_GROUPS+=( dialout ) + else + ACCT_USER_GROUPS+=( uucp ) + fi + fi +} + +pkg_preinst() { + # if useflag legacy-homedir is _not_ set, check if user vdr exists and what his homedir is + if ! use legacy-homedir; then + local EXISTING_HOME=$(egethome vdr) + if [[ "${EXISTING_HOME}" = "/var/vdr" ]]; then + ewarn "The user \"vdr\" exists on this system, his current home directory is \"/var/vdr\"" + ewarn "The new default home directory for user vdr is \"/var/lib/vdr\"" + ewarn "You have three options to continue:" + ewarn " - set USE=legacy-homedir for ${CATEGORY}/${PN} to continue to use /var/vdr" + ewarn " - move /var/vdr to /var/lib/vdr manually and repeat to install ${CATEGORY}/${PN}" + ewarn " - move /var/vdr to /var/vdr.old or anywhere else (to keep it as your backup), repeat to" + ewarn " install ${CATEGORY}/${PN} and let the installation create a fresh /var/lib/vdr" + ewarn "the emerge will stop here." + die "user action required" + fi + fi + acct-user_pkg_preinst +} diff --git a/acct-user/vdr/vdr-0.ebuild b/acct-user/vdr/vdr-0.ebuild deleted file mode 100644 index 55986b2ff78d..000000000000 --- a/acct-user/vdr/vdr-0.ebuild +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright 2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit acct-user user-info - -ACCT_USER_ID=452 -ACCT_USER_HOME=/var/lib/vdr -ACCT_USER_GROUPS=( vdr audio cdrom video ) - -DESCRIPTION="VDR (VideoDiskRecorder) service user" -IUSE="graphlcd legacy-homedir remote serial systemd" - -acct-user_add_deps - -pkg_setup() { - # if user wants to preserve his existing vdr installation, - # he can set USE=legacy-homedir - use legacy-homedir && ACCT_USER_HOME=/var/vdr - - # media-plugins/vdr-graphlcd - use graphlcd && ACCT_USER_GROUPS+=( lp usb ) - - # media-plugins/vdr-remote, _only_ when systemd is installed - if use remote; then - if use systemd; then - ACCT_USER_GROUPS+=( input ) - else - einfo "use-flag remote has no effect on systemd systems" - fi - fi - - # media-plugins/vdr-serial: add group to access /dev/ttyS* - # on systemd systems: add "dialout" - # non-systemd systems: add "uucp" - if use serial; then - if use systemd; then - ACCT_USER_GROUPS+=( dialout ) - else - ACCT_USER_GROUPS+=( uucp ) - fi - fi -} - -pkg_preinst() { - # if useflag legacy-homedir is _not_ set, check if user vdr exists and what his homedir is - if ! use legacy-homedir; then - local EXISTING_HOME=$(egethome vdr) - if [[ "${EXISTING_HOME}" = "/var/vdr" ]]; then - ewarn "The user \"vdr\" exists on this system, his current home directory is \"/var/vdr\"" - ewarn "The new default home directory for user vdr is \"/var/lib/vdr\"" - ewarn "You have three options to continue:" - ewarn " - set USE=legacy-homedir for ${CATEGORY}/${PN} to continue to use /var/vdr" - ewarn " - move /var/vdr to /var/lib/vdr manually and repeat to install ${CATEGORY}/${PN}" - ewarn " - move /var/vdr to /var/vdr.old or anywhere else (to keep it as your backup), repeat to" - ewarn " install ${CATEGORY}/${PN} and let the installation create a fresh /var/lib/vdr" - ewarn "the emerge will stop here." - die "user action required" - fi - fi -} -- cgit v1.2.3