1 |
commit: 5fc92f703edc68e638b69c4f8ccedf4c743bf219 |
2 |
Author: Jeffrey Lin <jeffrey <AT> icurse <DOT> nl> |
3 |
AuthorDate: Sat Sep 8 04:01:34 2018 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 9 21:46:44 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5fc92f70 |
7 |
|
8 |
www-misc/profile-sync-daemon: version bump to 5.75. |
9 |
|
10 |
Package-Manager: Portage-2.3.49, Repoman-2.3.10 |
11 |
Closes: https://github.com/gentoo/gentoo/pull/9807 |
12 |
|
13 |
www-misc/profile-sync-daemon/Manifest | 1 + |
14 |
.../files/bad-substitution-fix.patch | 11 ++++++ |
15 |
.../profile-sync-daemon/files/openrc-path.patch | 13 +++++++ |
16 |
.../profile-sync-daemon-5.75.ebuild | 41 ++++++++++++++++++++++ |
17 |
4 files changed, 66 insertions(+) |
18 |
|
19 |
diff --git a/www-misc/profile-sync-daemon/Manifest b/www-misc/profile-sync-daemon/Manifest |
20 |
index 48ab55da731..79021215daf 100644 |
21 |
--- a/www-misc/profile-sync-daemon/Manifest |
22 |
+++ b/www-misc/profile-sync-daemon/Manifest |
23 |
@@ -1,2 +1,3 @@ |
24 |
DIST profile-sync-daemon-5.45.1.tar.gz 25543 BLAKE2B e033ae0587c3c5b90442e9ed199b10112019459f6e5f32d8ffb836c1d0ab878d4f535709c76d8a8bf7edde7aca8d1b8d868ad5c472166c7ec22d1da9f0f5591d SHA512 8a61ebfe52031bd59c70416adfd477edc313641cec93a4e96c80f316517cdb53f49840cfd7711ea2f6180ecce8e8e5d45f01d7bd85ba787c3fe288a14426b944 |
25 |
+DIST profile-sync-daemon-5.75.tar.gz 27829 BLAKE2B b333688af27a7373f72e72a09dd18afc210f2196957a76f6fab59d46ecd4e9b905b833a66bf49001c0be307b05b06320d7ee2b754cee1b6559a113346717b82b SHA512 54c2a6c743bf3a3dd746862f6dc0448c8993c96fe0163f4f89885cee3e4c81ecac46414c0ca57d57ec0e9e6c646f9a39462d5d533a7515a952cc56276509bdc0 |
26 |
DIST profile-sync-daemon-6.31.tar.gz 20490 BLAKE2B 6c65f414230051e71578d1d0d69dd266a6d2b6f741b9c3a0e6b3132945fbe8f98db12544ac145609c82e793e1a8d5e8cef278191e653cb5560c3451d6f158307 SHA512 7e7585e902c2428c28dc980c73ebf77ea7f2b39133a6ad0c82e714c2789811c42785ac5d403f965f1b3de8c685d7cba51810ea99206e2b7351dbd607a2cd0fdb |
27 |
|
28 |
diff --git a/www-misc/profile-sync-daemon/files/bad-substitution-fix.patch b/www-misc/profile-sync-daemon/files/bad-substitution-fix.patch |
29 |
new file mode 100644 |
30 |
index 00000000000..7551b08157a |
31 |
--- /dev/null |
32 |
+++ b/www-misc/profile-sync-daemon/files/bad-substitution-fix.patch |
33 |
@@ -0,0 +1,11 @@ |
34 |
+--- a/common/profile-sync-daemon.in 2015-07-29 16:57:24.000000000 -0400 |
35 |
++++ b/common/profile-sync-daemon.in 2017-07-25 21:35:59.209639588 -0400 |
36 |
+@@ -581,7 +581,7 @@ |
37 |
+ # check that the LAST DIRECTORY in the full path is unique |
38 |
+ unique_count=$(echo ${DIRArr[@]##*/} | |
39 |
+ sed 's/ /\n/g' | sort -u | wc -l) |
40 |
+- if [[ ${#DIRArr[@]##*/} -eq $unique_count ]]; then |
41 |
++ if [[ ${#DIRArr[@]} -eq $unique_count ]]; then |
42 |
+ # no problems so do nothing |
43 |
+ return |
44 |
+ else |
45 |
|
46 |
diff --git a/www-misc/profile-sync-daemon/files/openrc-path.patch b/www-misc/profile-sync-daemon/files/openrc-path.patch |
47 |
new file mode 100644 |
48 |
index 00000000000..fc2d51b872d |
49 |
--- /dev/null |
50 |
+++ b/www-misc/profile-sync-daemon/files/openrc-path.patch |
51 |
@@ -0,0 +1,13 @@ |
52 |
+--- a/Makefile 2015-07-29 17:57:24.000000000 -0300 |
53 |
++++ b/Makefile 2017-02-02 15:08:06.720017266 -0300 |
54 |
+@@ -64,8 +64,8 @@ |
55 |
+ |
56 |
+ install-openrc: |
57 |
+ $(Q)echo -e '\033[1;32mInstalling openrc files...\033[0m' |
58 |
+- $(INSTALL_DIR) "$(DESTDIR)$(DOCDIR)" |
59 |
+- $(INSTALL_SCRIPT) init/psd.openrc "$(DESTDIR)$(DOCDIR)/psd.openrc" |
60 |
++ $(INSTALL_DIR) "$(DESTDIR)$(INITDIR_UPSTART)" |
61 |
++ $(INSTALL_SCRIPT) init/psd.openrc "$(DESTDIR)$(INITDIR_UPSTART)/psd" |
62 |
+ [ -f "$(DESTDIR)$(CONFDIR)/psd.conf" ] || $(INSTALL_DATA) common/psd.conf "$(DESTDIR)$(CONFDIR)/psd.conf" |
63 |
+ |
64 |
+ install-systemd: |
65 |
|
66 |
diff --git a/www-misc/profile-sync-daemon/profile-sync-daemon-5.75.ebuild b/www-misc/profile-sync-daemon/profile-sync-daemon-5.75.ebuild |
67 |
new file mode 100644 |
68 |
index 00000000000..70b56370895 |
69 |
--- /dev/null |
70 |
+++ b/www-misc/profile-sync-daemon/profile-sync-daemon-5.75.ebuild |
71 |
@@ -0,0 +1,41 @@ |
72 |
+# Copyright 1999-2018 Gentoo Foundation |
73 |
+# Distributed under the terms of the GNU General Public License v2 |
74 |
+ |
75 |
+EAPI=7 |
76 |
+ |
77 |
+DESCRIPTION="Symlinks and syncs browser profile dirs to RAM" |
78 |
+HOMEPAGE="https://wiki.archlinux.org/index.php/Profile-sync-daemon" |
79 |
+SRC_URI="https://github.com/graysky2/profile-sync-daemon/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
80 |
+ |
81 |
+LICENSE="MIT GPL-2" |
82 |
+SLOT="0" |
83 |
+KEYWORDS="~amd64 ~x86" |
84 |
+IUSE="systemd zsh-completion" |
85 |
+ |
86 |
+RDEPEND=" |
87 |
+ app-shells/bash |
88 |
+ net-misc/rsync[xattr] |
89 |
+ systemd? ( sys-apps/systemd )" |
90 |
+ |
91 |
+PATCHES=( |
92 |
+ "${FILESDIR}/openrc-path.patch" |
93 |
+ "${FILESDIR}/bad-substitution-fix.patch" |
94 |
+) |
95 |
+ |
96 |
+src_install() { |
97 |
+ emake DESTDIR="${ED}" \ |
98 |
+ install-openrc-all \ |
99 |
+ $(usex systemd "install-systemd" "") |
100 |
+ |
101 |
+ if ! use zsh-completion; then |
102 |
+ rm -r "${ED}/usr/share/zsh" || die |
103 |
+ fi |
104 |
+ |
105 |
+ fperms -x /etc/cron.hourly/psd-update |
106 |
+} |
107 |
+ |
108 |
+pkg_postinst() { |
109 |
+ elog "The cronjob is -x by default." |
110 |
+ elog "You might want to set it +x if you don't use" |
111 |
+ elog "the systemd provided \"psd-resync.timer\"." |
112 |
+} |