summaryrefslogtreecommitdiff
blob: b1a526af2f2ee2697dc7ac1bec33a062e8f3e430 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-misc/profile-sync-daemon/profile-sync-daemon-5.21.ebuild,v 1.1 2013/02/16 17:38:58 hasufell Exp $

EAPI=5

inherit eutils vcs-snapshot

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="cron"

RDEPEND="
	app-shells/bash
	net-misc/rsync
	cron? ( virtual/cron )"

src_compile() {
	emake -f Makefile.gentoo
}

src_install() {
	emake -f Makefile.gentoo DESTDIR="${D}" $(usex cron "install" "install-bin install-doc install-man")
}

pkg_postinst() {
	eerror "IMPORTANT NOTICE!"
	elog "Usage of the \"mozilla\" variable in the BROWSERS array is"
	elog "deprecated starting with profile-sync-daemon v4.02."
	elog "It has been replaced with the \"firefox\" variable."
	elog
	elog "In order to safely upgrade, you must run an unsync to"
	elog "rotate your firefox profile back to disk using verion 3.x"
	elog
	elog "As usual, watch for any changes in the newly provided"
	elog "/etc/conf.d/psd as well and be sure to incorporate them."
}