[sesame] Initial import (#751344).

Trevor McKay tmckay at fedoraproject.org
Wed Dec 21 20:32:43 UTC 2011


commit d51c7c7fe2220167f2a674887e52a679a25085fd
Author: tmckay <tmckay at redhat.com>
Date:   Wed Dec 21 15:32:39 2011 -0500

    Initial import (#751344).

 .gitignore     |    1 +
 bz481770.patch |   15 +++++
 sesame.spec    |  172 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources        |    1 +
 4 files changed, 189 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..29c2c42 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/sesame-1.1.tar.gz
diff --git a/bz481770.patch b/bz481770.patch
new file mode 100644
index 0000000..7d161da
--- /dev/null
+++ b/bz481770.patch
@@ -0,0 +1,15 @@
+Index: cpp/etc/sysvinit-sesame
+===================================================================
+--- cpp/etc/sysvinit-sesame (revision 4429)
++++ cpp/etc/sysvinit-sesame (working copy)
+@@ -22,6 +22,10 @@
+ RETVAL=0
+
+ start() {
++    # Run only a single daemon
++    status $processname > /dev/null && exit 0
++    rm -f /var/lock/subsys/$servicename
++
+     echo -n $"Starting Sesame daemon: "
+     daemon --user sesame --check $servicename $processname $SESAME_OPTIONS\&
+     RETVAL=$?
diff --git a/sesame.spec b/sesame.spec
new file mode 100644
index 0000000..7e9f922
--- /dev/null
+++ b/sesame.spec
@@ -0,0 +1,172 @@
+%global qpid_version 0.10
+
+Summary:        MRG management system agent
+Name:           sesame
+Version:        1.1
+Release:        2%{?dist}
+License:        GPLv2+
+Group:          System Environment/Libraries
+URL:            http://svn.fedorahosted.org/svn/cumin/trunk/sesame/cpp/
+Source0:        http://fedorahosted.org/releases/c/u/cumin/%{name}-%{version}.tar.gz
+Patch0:         bz481770.patch
+BuildRequires:  qpid-qmf-devel >= %{qpid_version}
+BuildRequires:  db4-devel
+BuildRequires:  libtool
+BuildRequires:  pkgconfig
+BuildRequires:  dbus-devel
+BuildRequires:  systemd-units
+Requires:       qpid-qmf >= %{qpid_version}
+Requires:       /usr/bin/uuidgen
+Requires:       dbus
+
+Requires(post): systemd-units
+Requires(preun): systemd-units
+Requires(postun): systemd-units
+
+%description
+Sesame is the MRG management system agent.  It provides
+information on the OS, memory usage, and load on its 
+host for use by MRG management components.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+export CXXFLAGS="%{optflags}"
+
+./bootstrap
+%configure
+make # %{?_smp_mflags}
+
+%install
+make install DESTDIR=%{buildroot}
+
+#install -T -m 0755 etc/sysvinit-sesame %{buildroot}%{_sysconfdir}/rc.d/init.d/sesame
+
+install -d %{buildroot}%{_unitdir}
+install -pm 644 etc/sesame.service %{buildroot}%{_unitdir}
+
+
+install -d %{buildroot}%{_localstatedir}/log/sesame
+install -d %{buildroot}%{_localstatedir}/lib/sesame
+
+%pre
+getent group sesame > /dev/null || groupadd -r sesame
+getent passwd sesame > /dev/null || useradd -r \
+       -g sesame -d %{_localstatedir}/lib/sesame -s /sbin/nologin \
+       -c "Owner of the sesame daemon" sesame
+exit 0
+
+%post
+uuidgen > %{_localstatedir}/lib/sesame/uuid
+chown sesame:sesame %{_localstatedir}/lib/sesame/uuid
+if [ $1 -eq 1 ] ; then 
+    # Initial installation 
+    /bin/systemctl daemon-reload >/dev/null 2>&1 || :
+fi
+
+%preun
+if [ $1 -eq 0 ] ; then
+    # Package removal, not upgrade
+    /bin/systemctl --no-reload disable sesame.service > /dev/null 2>&1 || :
+    /bin/systemctl stop sesame.service > /dev/null 2>&1 || :
+fi
+
+%postun
+/bin/systemctl daemon-reload >/dev/null 2>&1 || :
+if [ $1 -ge 1 ] ; then
+    # Package upgrade, not uninstall
+    /bin/systemctl try-restart sesame.service >/dev/null 2>&1 || :
+fi
+
+%files
+%defattr(-,root,root,-)
+%doc README COPYING LICENSE
+%{_bindir}/sesame
+%defattr(-,sesame,sesame,-)
+%config(noreplace) %{_sysconfdir}/sesame/sesame.conf
+%{_localstatedir}/log/sesame
+%{_localstatedir}/lib/sesame
+%{_unitdir}/sesame.service
+
+%changelog
+* Wed Dec 15 2011 Trevor McKay <tmckay at redhat.com> - 1.1-2
+- svn revision 5177
+- Change Version tag to 1.1-2
+- Added LICENSE file to the tarball
+- Added LICENSE to doc section
+- Changed Source0 to point to fedorahosted.org
+- Remove default enable for sesame service
+
+* Fri Nov 11 2011 Trevor McKay <tmckay at redhat.com> - 1.1-1
+- svn revision 5138
+- Change Version tag to 1.1-1
+- Include sesame.service for use with systemd
+- Modify sesame.spec for Fedora
+
+* Thu Nov 3 2011 Trevor McKay <tmckay at redhat.com> - 1.0
+- svn revision 5107, branch lucidity
+- Change Version tag to 1.0
+- BZ750315
+* Thu Nov 1 2011 Trevor McKay <tmckay at redhat.com> - 0.10.1
+- Add a digit for code changes in version
+- Change comparison for qpid-qmf* to >= 0.10
+- Change configure.ac to include explicit linker targets
+* Wed Mar 23 2011 Justin Ross <jross at redhat.com> - 0.10-1
+- Rebuilding for updated qmf libs
+- Updated URL
+* Wed Feb 23 2011 Nuno Santos <nsantos at redhat.com> - 0.9.4443-1
+- Rebased to svn rev 4443
+* Thu Feb  3 2011 Nuno Santos <nsantos at redhat.com> - 0.7.4297-6
+- Rebuilding for updated qmf libs
+* Tue Jan 18 2011 Nuno Santos <nsantos at redhat.com> - 0.7.4297-5
+- BZ481770 - sesame's init script allows for starting multiple sesame daemons
+* Wed Nov 17 2010 Nuno Santos <nsantos at redhat.com> - 0.7.4297-4
+- Rebuilding for updated qmf libs
+* Wed Sep 22 2010 Nuno Santos <nsantos at redhat.com> - 0.7.4297-2
+- Rebuilding for updated qmf libs
+* Thu Sep 16 2010 Nuno Santos <nsantos at redhat.com> - 0.7.4297-1
+- Rebased to svn rev 4297
+* Thu Sep  2 2010 Nuno Santos <nsantos at redhat.com> - 0.7.3918-7
+- BZ621317: Sesame does not shutdown when uninstalled
+* Tue Jul 27 2010 Nuno Santos <nsantos at redhat.com> - 0.7.3918-6
+- Rebuilding for updated qmf libs
+* Fri Jul 16 2010 Mike Cressman <mcressman at redhat.com> - 0.7.3918-5
+- Rebuilding with latest beta respin
+* Wed Jun 16 2010 Nuno Santos <nsantos at redhat.com> - 0.7.3918-3
+- Rebuilding for updated qmf libs
+* Thu Apr  1 2010 Justin Ross <jross at redhat.com> - 0.7.3891-1
+- Update to revision 3891
+- Use a tarball based on svn export rather than make dist
+* Tue Feb  4 2010 Justin Ross <jross at redhat.com> - 0.4.3826-2
+- Update to revision 3826
+* Mon Oct 19 2009 Ted Ross <tross at redhat.com> - 0.4.3153-2
+- Update to revision 3153-2 with patch
+* Wed Mar 11 2009 Ted Ross <tross at redhat.com> - 0.4.3153-1
+- Update to revision 3153
+* Wed Mar  4 2009 Ted Ross <tross at redhat.com> - 0.4.3138-1
+- Update to revision 3138
+* Tue Feb 17 2009 Justin Ross <jross at redhat.com> - 0.4.3120-2
+- Update to revision 3120
+- Make the qmf dep versioned
+* Thu Feb 12 2009 Ted Ross <tross at redhat.com> - 0.4.3108-2
+- Update to release 2
+* Thu Feb  5 2009 Ted Ross <tross at redhat.com> - 0.4.3108-1
+- Update to revision 3108
+* Wed Jan 28 2009 Ted Ross <tross at redhat.com> - 0.4.3077-1
+- Update to revision 3077
+* Thu Jan  8 2009 Ted Ross <tross at redhat.com> - 0.4.3030-2
+- Update to release 2
+* Fri Dec 19 2008 Ted Ross <tross at redhat.com> - 0.4.3030-1
+- Update to revision 3030
+* Thu Dec 11 2008 Ted Ross <tross at redhat.com> - 0.1.2968-1
+- Update to revision 2968
+* Wed Dec 10 2008 Ted Ross <tross at redhat.com> - 0.1.2964-1
+- Update to revision 2964
+* Fri Dec  5 2008 Ted Ross <tross at redhat.com> - 0.1.2935-1
+- Update to revision 2935
+* Mon Dec  1 2008 Justin Ross <jross at redhat.com> - 0.1.2899-1
+- Update to revision 2899
+* Mon Dec  1 2008 Justin Ross <jross at redhat.com> - 0.1.2897-1
+- Initial build
diff --git a/sources b/sources
index e69de29..586d486 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+358d2dff58f20c712dafa6ca8fb59ab6  sesame-1.1.tar.gz


More information about the scm-commits mailing list