summaryrefslogtreecommitdiff
path: root/www-misc
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-05-21 10:23:31 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-05-21 10:23:31 +0100
commit5075bf447b7a6bf529fd6c81671c8e9e172d04f2 (patch)
tree28a755d7fe322ee5d046dc865b9ec86fd1694be2 /www-misc
parent810bbbe4a98b59212796e93260fbff72976f87fe (diff)
www-misc/profile-sync-daemon : import from gentoo tree, downgrade to EAPI 5, convert to openrc-run
Diffstat (limited to 'www-misc')
-rw-r--r--www-misc/profile-sync-daemon/Manifest1
-rw-r--r--www-misc/profile-sync-daemon/files/profile-sync-daemon-5.45.1-openrc-run.patch9
-rw-r--r--www-misc/profile-sync-daemon/profile-sync-daemon-5.45.1-r1704.ebuild38
3 files changed, 48 insertions, 0 deletions
diff --git a/www-misc/profile-sync-daemon/Manifest b/www-misc/profile-sync-daemon/Manifest
new file mode 100644
index 00000000..7aa277ca
--- /dev/null
+++ b/www-misc/profile-sync-daemon/Manifest
@@ -0,0 +1 @@
+DIST profile-sync-daemon-5.45.1.tar.gz 25543 SHA256 da4e215f053ca3f2b4cfae3f83e8a8e8370ef328aa343eea1011719a3ca9ede8 SHA512 8a61ebfe52031bd59c70416adfd477edc313641cec93a4e96c80f316517cdb53f49840cfd7711ea2f6180ecce8e8e5d45f01d7bd85ba787c3fe288a14426b944 WHIRLPOOL 07a377c71557c4e285893a2b03513cedf99b5f2c4c7805de1c297393716873d32be2d003090c59fa2a260da64cf48611d910515ffcb907cfe9637614ddfc90bd
diff --git a/www-misc/profile-sync-daemon/files/profile-sync-daemon-5.45.1-openrc-run.patch b/www-misc/profile-sync-daemon/files/profile-sync-daemon-5.45.1-openrc-run.patch
new file mode 100644
index 00000000..f2d8340f
--- /dev/null
+++ b/www-misc/profile-sync-daemon/files/profile-sync-daemon-5.45.1-openrc-run.patch
@@ -0,0 +1,9 @@
+diff -Nur a/init/psd.openrc b/init/psd.openrc
+--- a/init/psd.openrc 2014-01-18 11:23:13.000000000 +0000
++++ b/init/psd.openrc 2017-05-21 09:59:06.222031221 +0100
+@@ -1,4 +1,4 @@
+-#!/sbin/runscript
++#!/sbin/openrc-run
+ # Copyright 1999-2013 Gentoo Foundation
+ # Distributed under the terms of the GNU General Public License v2
+
diff --git a/www-misc/profile-sync-daemon/profile-sync-daemon-5.45.1-r1704.ebuild b/www-misc/profile-sync-daemon/profile-sync-daemon-5.45.1-r1704.ebuild
new file mode 100644
index 00000000..ab23c8f9
--- /dev/null
+++ b/www-misc/profile-sync-daemon/profile-sync-daemon-5.45.1-r1704.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils
+
+DESCRIPTION="Symlinks and syncs browser profile dirs to RAM."
+HOMEPAGE="https://wiki.archlinux.org/index.php/Profile-sync-daemon"
+SRC_URI="https://github.com/graysky2/profile-sync-daemon/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2 GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="systemd"
+
+RDEPEND="
+ app-shells/bash
+ net-misc/rsync
+ systemd? ( sys-apps/systemd )"
+
+src_prepare() {
+ epatch ${FILESDIR}/${P}-openrc-run.patch
+}
+
+src_install() {
+ emake -j1 DESTDIR="${ED}" \
+ install-openrc-all \
+ $(usex systemd "install-systemd" "")
+
+ fperms -x /etc/cron.hourly/psd-update
+}
+
+pkg_postinst() {
+ elog "The cronjob is -x by default."
+ elog "You might want to set it +x if you don't use"
+ elog "the systemd provided \"psd-resync.timer\"."
+}