[profile-sync-daemon] Initial SETUP
Christopher Meng
cicku at fedoraproject.org
Tue Jun 4 16:21:16 UTC 2013
commit 64cb384850410a51cc120adf4ec02a79b7e041ca
Author: Christopher Meng <rpm at cicku.me>
Date: Wed Jun 5 00:20:44 2013 +0800
Initial SETUP
.gitignore | 1 +
profile-sync-daemon.spec | 56 ++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 58 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..5b729aa 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/v5.35.tar.gz
diff --git a/profile-sync-daemon.spec b/profile-sync-daemon.spec
new file mode 100644
index 0000000..4f69d01
--- /dev/null
+++ b/profile-sync-daemon.spec
@@ -0,0 +1,56 @@
+%global aname psd
+
+Name: profile-sync-daemon
+Version: 5.35
+Release: 1%{?dist}
+Summary: Offload browser profiles to RAM for speed a wear reduction
+License: MIT
+URL: https://github.com/graysky2/profile-sync-daemon
+Source0: https://github.com/graysky2/%{name}/archive/v%{version}.tar.gz
+
+BuildArch: noarch
+Requires: rsync
+
+%description
+Symlinks and syncs browser profiles to RAM via tmpfs which will reduce HDD/SDD
+calls and speed-up browsers.
+
+%prep
+%setup -q
+ln -s Makefile.fedora18 Makefile
+
+%build
+make %{?_smp_mflags}
+
+%install
+make install DESTDIR=%{buildroot}
+
+%post
+# http://fedoraproject.org/wiki/PackagingDrafts/ScriptletSnippets
+# clean install is where $1 == 1
+if [ $1 -eq 1 ]; then
+setsebool -P rsync_full_access 1 >/dev/null 2>&1 || :
+fi
+# upgrade is where $1 == 2
+
+%preun
+# http://fedoraproject.org/wiki/PackagingDrafts/ScriptletSnippets
+# clean unisntall is where $1 == 0
+if [ $1 -eq 0 ]; then
+ if [ -f /run/psd ]; then
+ systemctl stop psd.service
+ fi
+setsebool -P rsync_full_access 0 >/dev/null 2>&1 || :
+fi
+# upgrade is where $1 == 1
+
+%files
+%doc CHANGELOG LICENSE
+%config(noreplace) %{_sysconfdir}/%{aname}.conf
+%{_bindir}/*
+%{_mandir}/man1/*.1*
+%{_unitdir}/%{aname}*.*
+
+%changelog
+* Wed May 29 2013 Christopher Meng <rpm at cicku.me> - 5.35-1
+- Initial Package.
diff --git a/sources b/sources
index e69de29..70b8d64 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+3b521b1bf9ec0d1cd7c311f3cb57e648 v5.35.tar.gz
More information about the scm-commits
mailing list