Diff profile-sync-daemon-5.75 with a profile-sync-daemon-6.31

/usr/portage/www-misc/profile-sync-daemon/profile-sync-daemon-6.31.ebuild 2023-10-09 14:52:35.896368512 +0300
1
# Copyright 1999-2019 Gentoo Authors
1
# Copyright 1999-2021 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=7
4
EAPI=6
5

  
6
inherit versionator
5 7

  
6 8
DESCRIPTION="Symlinks and syncs browser profile dirs to RAM"
7 9
HOMEPAGE="https://wiki.archlinux.org/index.php/Profile-sync-daemon"
8
SRC_URI="https://github.com/graysky2/profile-sync-daemon/archive/v${PV}.tar.gz -> ${P}.tar.gz"
9 10

  
10
LICENSE="MIT GPL-2"
11
SLOT="0"
11
SRC_URI="https://github.com/graysky2/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
12 12
KEYWORDS="amd64 x86"
13
IUSE="systemd"
13

  
14
LICENSE="MIT"
15
SLOT="0"
16
IUSE=""
14 17

  
15 18
RDEPEND="
16 19
	app-shells/bash
17 20
	net-misc/rsync[xattr]
18
	systemd? ( sys-apps/systemd )"
19

  
20
PATCHES=(
21
	"${FILESDIR}/openrc-path.patch"
22
	"${FILESDIR}/bad-substitution-fix.patch"
23
)
24

  
25
src_install() {
26
	emake DESTDIR="${ED}" COMPRESS_MAN=0 \
27
		"$(usex systemd "install-systemd-all" "install-openrc-all")"
28

  
29
	use systemd || fperms -x /etc/cron.hourly/psd-update
30
}
21
	sys-apps/systemd"
31 22

  
32 23
pkg_postinst() {
33
	use systemd || elog "The cronjob is -x by default. You might want to set it +x."
24
	local replacing
25
	for replacing in ${REPLACING_VERSIONS}; do
26
		if [[ "$(get_major_version ${replacing})" == "5" ]]; then
27
			ewarn "${PN}-6 and later dropped OpenRC and /etc/psd.conf support"
28
			ewarn "See https://github.com/graysky2/profile-sync-daemon#note-for-version-6"
29
			break
30
		fi
31
	done
34 32
}
Thank you!