summaryrefslogtreecommitdiff
path: root/system/profile-sync-daemon/psd.openrc.patch
diff options
context:
space:
mode:
authorMarcel Saegebarth <marc@mos6581.de>2014-11-19 23:00:38 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-11-19 23:30:10 +0700
commit13889c1313bc8bc57bfbc7f849f8694c9eeb0d1d (patch)
tree86bf58230149a93848b245cc3dde46e6d1660be9 /system/profile-sync-daemon/psd.openrc.patch
parent7de3191028874a308a8e1601c5a1bfc411ba8ef5 (diff)
downloadslackbuilds-13889c1313bc8bc57bfbc7f849f8694c9eeb0d1d.tar.gz
system/profile-sync-daemon: Added (Manage browser profiles).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/profile-sync-daemon/psd.openrc.patch')
-rw-r--r--system/profile-sync-daemon/psd.openrc.patch65
1 files changed, 65 insertions, 0 deletions
diff --git a/system/profile-sync-daemon/psd.openrc.patch b/system/profile-sync-daemon/psd.openrc.patch
new file mode 100644
index 0000000000..6c8e83eb32
--- /dev/null
+++ b/system/profile-sync-daemon/psd.openrc.patch
@@ -0,0 +1,65 @@
+--- profile-sync-daemon/init/psd.openrc.orig 2014-11-19 14:35:06.049935645 +0100
++++ profile-sync-daemon/init/psd.openrc 2014-11-19 14:37:33.235934241 +0100
+@@ -1,29 +1,21 @@
+-#!/sbin/runscript
++#!/bin/sh
+ # Copyright 1999-2014 Gentoo Foundation
+ # Distributed under the terms of the GNU General Public License v2
++# Adapted by Marcel Saegebarth for slackbuilds.org for
++# http://slackbuilds.org/result/?search=profile-sync-daemon.
+
+ description="Webbrowser profile syncing"
+ extra_commands="resync"
+ description_resync="Manually sync the disk profile with running tmpfs image"
+
+-
+-depend() {
+- need devfs localmount
+- after swapfiles # bug 398431#c8
+-}
+-
+ start() {
+- ebegin "Starting Profile-Sync-Daemon"
+-
++ echo "Starting Profile-Sync-Daemon"
+ /usr/bin/profile-sync-daemon sync
+- eend $?
+ }
+
+ stop() {
+- ebegin "Stopping Profile-Sync-Daemon"
+-
++ echo "Stopping Profile-Sync-Daemon"
+ /usr/bin/profile-sync-daemon unsync
+- eend $?
+ }
+
+ status() {
+@@ -31,7 +23,25 @@
+ }
+
+ resync() {
+- ebegin "Syncing browser profiles in tmpfs to physical disc"
++ echo "Syncing browser profiles in tmpfs to physical disc"
+ /usr/bin/profile-sync-daemon resync
+- eend $?
+ }
++
++case "$1" in
++ start)
++ start
++ ;;
++ stop)
++ stop
++ ;;
++ resync)
++ resync
++ ;;
++
++ status)
++ status
++ ;;
++ *)
++ echo $"Usage: $0 {start|stop|resync|status}"
++ exit 1
++esac