]> Pileus Git - ~andy/sunrise/commitdiff
profile-sync-daemon imported into main tree
authorhasufell <julian.ospald@googlemail.com>
Wed, 19 Sep 2012 18:55:53 +0000 (20:55 +0200)
committerhasufell <julian.ospald@googlemail.com>
Wed, 19 Sep 2012 18:55:53 +0000 (20:55 +0200)
www-misc/profile-sync-daemon/ChangeLog [deleted file]
www-misc/profile-sync-daemon/Manifest [deleted file]
www-misc/profile-sync-daemon/files/3.2-manreadme.patch [deleted file]
www-misc/profile-sync-daemon/files/3.2-pid.patch [deleted file]
www-misc/profile-sync-daemon/files/cronjob [deleted file]
www-misc/profile-sync-daemon/files/daemon [deleted file]
www-misc/profile-sync-daemon/metadata.xml [deleted file]
www-misc/profile-sync-daemon/profile-sync-daemon-3.2.ebuild [deleted file]

diff --git a/www-misc/profile-sync-daemon/ChangeLog b/www-misc/profile-sync-daemon/ChangeLog
deleted file mode 100644 (file)
index 7a9ef33..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-# ChangeLog for www-misc/profile-sync-daemon
-# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: $
-
-*profile-sync-daemon-3.2 (30 Apr 2012)
-
-  30 Apr 2012; hasufell <julian.ospald@googlemail.com>
-  +files/3.2-manreadme.patch, +files/3.2-pid.patch, -files/3.1-manreadme.patch,
-  -files/3.1-pid.patch, -profile-sync-daemon-3.1.ebuild,
-  +profile-sync-daemon-3.2.ebuild:
-  version bump, remove old (broken for opera-next)
-
-*profile-sync-daemon-3.1 (26 Apr 2012)
-
-  26 Apr 2012; hasufell <julian.ospald@googlemail.com>
-  +files/3.1-manreadme.patch, +files/3.1-pid.patch,
-  -profile-sync-daemon-3.0-r1.ebuild, +profile-sync-daemon-3.1.ebuild,
-  -files/psd-manreadme.patch, -files/psd-pid.patch, files/daemon:
-  version bump, remove old
-
-  22 Jan 2012; Mike Gilbert <floppym@gentoo.org> files/daemon:
-  www-misc/profile-sync-daemon: Cleanup init script
-
-*profile-sync-daemon-3.0-r1 (15 Jan 2012)
-
-  15 Jan 2012; hasufell <julian.ospald@googlemail.com>
-  -profile-sync-daemon-3.0.ebuild, +profile-sync-daemon-3.0-r1.ebuild,
-  -files/daemon:
-  Bugfix in daemon script
-
-*profile-sync-daemon-3.0 (15 Jan 2012)
-
-  15 Jan 2012; hasufell <julian.ospald@googlemail.com>
-  -profile-sync-daemon-2.8.ebuild, +profile-sync-daemon-3.0.ebuild,
-  -files/psd-manreadme.patch, -files/psd-pid.patch:
-  Version bump, support to exclude browser profiles
-
-*profile-sync-daemon-2.8 (14 Jan 2012)
-
-  14 Jan 2012; hasufell <julian.ospald@googlemail.com>
-  -profile-sync-daemon-2.6.ebuild, +profile-sync-daemon-2.8.ebuild,
-  -files/daemon, -files/psd-pid.patch:
-  Version bump, fixes issues with asymmetrical username/homedir
-
-*profile-sync-daemon-2.6 (10 Jan 2012)
-
-  10 Jan 2012; hasufell <julian.ospald@googlemail.com>
-  +profile-sync-daemon-2.6.ebuild, +files/cronjob, +files/daemon,
-  +files/psd-manreadme.patch, +files/psd-pid.patch, +metadata.xml:
-  New Ebuild for bug 398431
-
diff --git a/www-misc/profile-sync-daemon/Manifest b/www-misc/profile-sync-daemon/Manifest
deleted file mode 100644 (file)
index 3713761..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-AUX 3.2-manreadme.patch 4432 RMD160 19532e07897d797d9ef166fba53aadd677f9f986 SHA1 3cc6bbc382cc0248c706376ceebad9a08970e4e1 SHA256 b66f99a1b89192228f49cabd6e773b350ee7f50026c53dfcbb710bdbc80326ed
-AUX 3.2-pid.patch 1235 RMD160 47a40d6d59a5a6c9e7c97c80a00664aafd665520 SHA1 1b6b6bd7ea20139bcda5b828047b9a3f85281ea1 SHA256 7d4647b27fd60241130a773ac772a32d4632f6253249641f6f71015cf7f582aa
-AUX cronjob 44 RMD160 56fe960fc97cd7af4a02d550c8039535da9fb1c6 SHA1 f7974834da21ece11425b530fc8ffb1179464b7d SHA256 9e970ba5901963a4de2467d0a8d4fab1f69bfead2ba20312bf5d233a6adae5d2
-AUX daemon 1326 RMD160 a6ac3a5cd245dbe9c1a5b9972668a3e1fa78fdec SHA1 506b94bdae3608b5fd269a2f22f74ddf2e29469b SHA256 313e102cff9cbcb37a9309250a7bd2d2d8efa5e70e8f60c5fdeb3b1c050f0940
-DIST profile-sync-daemon-3.2.tar.xz 15748 RMD160 44df765986a9469be98b287d332d725e7465e19d SHA1 78834b087909f3df918123b00d10be3a60f5f416 SHA256 8a4347c48402f171727a1f148b8d94be3f2a1fc4d59a387b0b2042b05a7ae064
-EBUILD profile-sync-daemon-3.2.ebuild 1138 RMD160 a6ca843b4ac002c937bb29432a2f179d2fc9471d SHA1 65b0e0274c6934b10e0676a033aabca5359ce1c5 SHA256 f215549af27b1a1a455fe4cf7e72e691faedda12c9e2f60b669d5329d9bebcba
-MISC ChangeLog 1881 RMD160 0c5e42f43266ae9aa112fb1f60da62a7d477da97 SHA1 5cac654eef3ebfcc7fe4c5bbd8e9b836896adb68 SHA256 8d93fca49861acad1d2d9463b1bf6b0caf26b0445e4cd5dea18c038a4acd7b7d
-MISC metadata.xml 208 RMD160 c18611400760e42bdd001905be0a63c2e963bcea SHA1 595816105cac477cb85792a182e15888029118a1 SHA256 c4841c87f0c2b9b5e679a27dc72180be8d508fb3f5df0fbab2ec2c805c0a6d82
diff --git a/www-misc/profile-sync-daemon/files/3.2-manreadme.patch b/www-misc/profile-sync-daemon/files/3.2-manreadme.patch
deleted file mode 100644 (file)
index 0442cac..0000000
+++ /dev/null
@@ -1,70 +0,0 @@
-fix readme for proper gentoo instructions
-
---- psd.manpage
-+++ psd.manpage
-@@ -6,7 +6,7 @@
- .SH SYNOPSIS
- .nf
- .fam C
--      rc.d [\fIoptions\fP] \fIpsd\fP
-+       rc -s \fIpsd\fP [\fIoptions\fP]
- .fam T
- .fi
-@@ -34,7 +34,7 @@
- .PP
- Optionally redefine the location of your distro's tmpfs. Do this in the VOLATILE variable. Note that for Arch Linux, the default value of "/tmp" should work just fine.
- .SH USAGE
--Do not call /usr/bin/profile-sync-daemon directly. Instead use the distro provided /usr/bin/rc.d to interact with \fIpsd\fP via the daemon script.
-+Do not call /usr/bin/profile-sync-daemon directly. Instead use the distro provided /sbin/rc to interact with \fIpsd\fP via the daemon script.
- .TP
- .B
- start
-@@ -50,11 +50,9 @@
- .PP
- Note that as of version 2.9, a template for systemd is provided for profile-sync-daemon.
- .PP
--The initial synchronization will occur when the daemon starts. Additionally, cron (if running on your system) will call it to sync or update once per hour. Finally, \fIpsd\fP will sync back a final time when it is called to stop. Users can call the daemon to start, stop, or sync like any standard Arch daemon.
-+The initial synchronization will occur when the daemon starts. Additionally, you can set up a cronjob with the provided file in '/usr/share/profile-sync-daemon'. Finally, \fIpsd\fP will sync back a final time when it is called to stop. Users can call the daemon to start, stop, or sync like any standard Arch daemon.
- .PP
--It is highly recommended to start/stop the daemon at boot/shutdown. This is accomplished by adding \fIpsd\fP to the DAEMONS array in /etc/rc.conf like so: 
--.PP
--\fBDAEMONS=\fP(\.\.\. @\fIpsd\fP \.\.\.)
-+It is highly recommended to start/stop the daemon at boot/shutdown. This is accomplished by adding \fIpsd\fP to the default runlevel by issuing 'rc-update add psd default'. 
- .PP
- For more, see: https://wiki.archlinux.org/index.php/Profile-sync-daemon
- .SH SUPPORTED BROWSERS AND CAVEATS
---- README-for_other_distros
-+++ README-for_other_distros
-@@ -2,7 +2,7 @@
-       profile-sync-daemon - Symlinks and syncs browser profile dirs to RAM thus reducing HDD/SDD calls and speeding-up browsers.
- SYNOPSIS
--      rc.d [options] psd
-+      rc -s psd [options]
- DESCRIPTION
-       Profile-sync-daemon (psd) is a tiny shell script designed to manage your browser's profile in tmpfs and to periodically sync it back to your physical disc (HDD/SSD). This is accomplished via a symlinking step and an innovative use of rsync to maintain back-up and synchronization between the two. One of the major design goals of psd is completely transparent user experience.
-@@ -26,7 +26,7 @@
-       Optionally redefine the location of your distro's tmpfs. Do this in the VOLATILE variable. Note that for Arch Linux, the default value of "/tmp" should work just fine.
- USAGE
--      Do not call /usr/bin/profile-sync-daemon directly. Instead use the distro provided /usr/bin/rc.d to interact with psd via the daemon script.
-+      Do not call /usr/bin/profile-sync-daemon directly. Instead use the distro provided /sbin/rc to interact with psd via the daemon script.
-       start           Turn on psd. Make symlinks and sync the profile(s) from disc to tmpfs.
-       stop            Turn off psd. Sync the profiles(s) from tmpfs back to disc and remove the symlinks.
-@@ -34,11 +34,9 @@
-       Note that as of version 2.9, a template for systemd is provided for profile-sync-daemon.
--      The initial synchronization will occur when the daemon starts. Additionally, cron (if running on your system) will call it to sync or update once per hour. Finally, psd will sync back a final time when it is called to stop. Users can call the daemon to start, stop, or sync like any standard Arch daemon.
-+      The initial synchronization will occur when the daemon starts. Additionally, you can set up a cronjob with the provided file in '/usr/share/profile-sync-daemon'. Finally, psd will sync back a final time when it is called to stop. Users can call the daemon to start, stop, or sync like any standard Arch daemon.
-       
--      It is highly recommended to start/stop the daemon at boot/shutdown. This is accomplished by adding psd to the DAEMONS array in /etc/rc.conf like so: 
--      
--      DAEMONS=(... @psd ...)
-+      It is highly recommended to start/stop the daemon at boot/shutdown. This is accomplished by adding psd to the default runlevel by issuing 'rc-update add psd default'.
-       For more, see: https://wiki.archlinux.org/index.php/Profile-sync-daemon
diff --git a/www-misc/profile-sync-daemon/files/3.2-pid.patch b/www-misc/profile-sync-daemon/files/3.2-pid.patch
deleted file mode 100644 (file)
index 0e930fa..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
---- profile-sync-daemon
-+++ profile-sync-daemon
-@@ -5,7 +5,7 @@
- # Inspired by some code originally  written by Colin Verot
- BROWSERS="chromium google-chrome midori mozilla opera opera-next" # all supported browsers
--. /etc/psd.conf
-+. /etc/conf.d/psd
- set_which() {
-       homedir="$(su -c 'echo $HOME' $user)"
-@@ -108,17 +108,17 @@
-               ;;
-       check)
-               # do not run if the daemon is running
--              [[ ! -f /run/daemons/psd ]] && check
-+              [[ ! -f $PIDFILE ]] && check
-               ;;
-       sync)
-               sync
-               ;;
-       unsync)
-               # make sure the daemon is running
--              [[ -f /run/daemons/psd ]] && unsync
-+              [[ -f $PIDFILE ]] && unsync
-               ;;
-       *)
-               # keep user from messing with this directly
--              [[ -f /run/daemons/psd ]] && echo "You should not call this script directly, let the /etc/rc.d/psd do it for you!" && exit 1
-+              [[ -f $PIDFILE ]] && echo "You should not call this script directly, let the /etc/rc.d/psd do it for you!" && exit 1
- esac
- exit 0
---- psd.conf
-+++ psd.conf
-@@ -2,6 +2,9 @@
- # /etc/psd.conf
- #
- # For documentation, see: https://wiki.archlinux.org/index.php/Profile-sync-daemon
-+
-+# path to PIDFILE to use
-+PIDFILE=/var/run/psd.pid
- # List users separated by spaces whose browser(s) profile(s) will get symlinked 
- # and sync'ed to tmpfs.
diff --git a/www-misc/profile-sync-daemon/files/cronjob b/www-misc/profile-sync-daemon/files/cronjob
deleted file mode 100644 (file)
index d3f5dfb..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-/sbin/rc -s psd sync &> /dev/null
diff --git a/www-misc/profile-sync-daemon/files/daemon b/www-misc/profile-sync-daemon/files/daemon
deleted file mode 100644 (file)
index 6d0666c..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-description="Webbrowser profile syncing"
-extra_commands="sync"
-
-start() {
-       ebegin "Starting Profile-Sync-Daemon"
-       if [ -z "$USERS" ]; then
-               eerror "Define at least one user in /etc/conf.d/psd"
-               return 1
-       fi
-
-       for i in $USERS; do
-               homedir=$(su -c 'echo $HOME' $i)
-               if [ ! -d "$homedir" ]; then
-                       eerror "Invalid user defined in /etc/conf.d/psd"
-                       return 1
-               fi
-       done
-
-       /usr/bin/profile-sync-daemon check 
-       start-stop-daemon --start --pidfile "${PIDFILE}" --make-pidfile --background \
-               --exec /usr/bin/profile-sync-daemon -- sync
-       eend $?
-}
-
-stop() {
-       ebegin "Stopping Profile-Sync-Daemon"
-       if [ ! -f "$PIDFILE" ]; then
-               eerror "Profile-Sync-Daemon is not running, nothing to stop!"
-               return 1
-       else
-               /usr/bin/profile-sync-daemon sync && /usr/bin/profile-sync-daemon unsync
-               rm -f "${PIDFILE}"
-       fi
-       eend $?
-}
-
-sync() {
-       ebegin "Syncing browser profiles in tmpfs to physical disc"
-       if [ ! -f "$PIDFILE" ]; then
-               eerror "Profile-Sync-Daemon is not running... cannot sync!"
-               return 1
-       else
-               /usr/bin/profile-sync-daemon sync
-       fi
-       eend $?
-}
-
-status() {
-       if [ ! -f "$PIDFILE" ]; then
-               eerror "Profile-Sync-Daemon is not running"
-       else
-               einfo "Profile-Sync-Daemon is running"
-       fi
-       eend $?
-}
-
diff --git a/www-misc/profile-sync-daemon/metadata.xml b/www-misc/profile-sync-daemon/metadata.xml
deleted file mode 100644 (file)
index 31dc017..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-<maintainer><email>maintainer-wanted@gentoo.org</email></maintainer>
-</pkgmetadata>
diff --git a/www-misc/profile-sync-daemon/profile-sync-daemon-3.2.ebuild b/www-misc/profile-sync-daemon/profile-sync-daemon-3.2.ebuild
deleted file mode 100644 (file)
index 63c4a1f..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI="4"
-
-inherit eutils
-
-MY_PN="psd"
-DESCRIPTION="Symlinks and syncs browser profile dirs to RAM thus reducing HDD/SDD calls and speeding-up browsers"
-HOMEPAGE="https://wiki.archlinux.org/index.php/Profile-sync-daemon"
-SRC_URI="http://repo-ck.com/source/${PN}/${P}.tar.xz"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE=""
-
-DEPEND="app-arch/xz-utils"
-RDEPEND="app-shells/bash
-       net-misc/rsync"
-
-src_prepare() {
-       # fix manpage/readme for proper gentoo instructions
-       epatch "${FILESDIR}"/${PV}-manreadme.patch
-       # fix script to work with our initscript
-       epatch "${FILESDIR}"/${PV}-pid.patch
-}
-
-src_install() {
-       # script
-       dobin ${PN}
-
-       # optional cronjob
-       insinto /usr/share/${PN}
-       doins "${FILESDIR}"/cronjob
-
-       # initscript
-       newinitd "${FILESDIR}"/daemon ${MY_PN}
-
-       # conf
-       newconfd ${MY_PN}.conf ${MY_PN}
-
-       # manpage, readme
-       newdoc README-for_other_distros README
-       dodoc CHANGELOG
-       newman ${MY_PN}.manpage ${PN}.1
-}
-
-pkg_postinst() {
-       elog "For adding a cronjob use the file"
-       elog "/usr/share/${PN}/cronjob"
-}