packages: cassandra-bin/cassandra-bin.spec - rpmlint: add missing chkconfig
glen
glen at pld-linux.org
Thu Feb 17 09:20:51 CET 2011
Author: glen Date: Thu Feb 17 08:20:51 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- rpmlint: add missing chkconfig
---- Files affected:
packages/cassandra-bin:
cassandra-bin.spec (1.7 -> 1.8)
---- Diffs:
================================================================
Index: packages/cassandra-bin/cassandra-bin.spec
diff -u packages/cassandra-bin/cassandra-bin.spec:1.7 packages/cassandra-bin/cassandra-bin.spec:1.8
--- packages/cassandra-bin/cassandra-bin.spec:1.7 Tue Feb 15 12:59:55 2011
+++ packages/cassandra-bin/cassandra-bin.spec Thu Feb 17 09:20:46 2011
@@ -1,19 +1,18 @@
# $Revision$, $Date$
-%include /usr/lib/rpm/macros.java
# TODO: Fix .init cassandra status does not work now.
# TODO: Fix .init stop routine it is now subset of PLD default one
# TODO: Fix of data/ cassandra created dirs/files privilages (now they are all readable)
-# TODO: Consider adding
+# TODO: Consider adding
# cassandra - memlock unlimited
# to /etc/security/limits.conf ?
%define shname cassandra
-# %%define rccode rc4
+%include /usr/lib/rpm/macros.java
Summary: Cassandra database binary package
Summary(pl.UTF-8): Baza danych Cassandra wersja binarna.
Name: cassandra-bin
Version: 0.7.1
-Release: 1
+Release: 2
License: ASF
Group: Applications/Databases
Source0: http://mirror.nyi.net/apache//cassandra/%{version}/apache-cassandra-%{version}-bin.tar.gz
@@ -23,6 +22,8 @@
URL: http://cassandra.apache.org/
BuildRequires: rpm-javaprov
BuildRequires: rpmbuild(macros) >= 1.300
+Requires(post,preun): /sbin/chkconfig
+Requires: rc-scripts
Suggests: java-jna
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -42,8 +43,6 @@
%prep
%setup -q -n apache-cassandra-%{version}
-%build
-
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_javadir}
@@ -85,18 +84,16 @@
%groupadd -g 259 -r cassandra
%useradd -M -o -r -u 259 -d /var/lib/%{shname} -s /bin/sh -g cassandra -c "Cassandra Server" cassandra
+%post
+/sbin/chkconfig --add cassandra
+%service cassandra restart
+
%preun
if [ "$1" = "0" ]; then
- %service cassandra stop
- /sbin/chkconfig --del cassandra
+ %service cassandra stop
+ /sbin/chkconfig --del cassandra
fi
-# %post upstart
-# %upstart_post cassandra
-
-# %postun upstart
-# %upstart_postun cassandra
-
%files
%defattr(644,root,root,755)
%doc CHANGES.txt LICENSE.txt README.txt NEWS.txt NOTICE.txt
@@ -126,6 +123,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.8 2011/02/17 08:20:46 glen
+- rpmlint: add missing chkconfig
+
Revision 1.7 2011/02/15 11:59:55 matkor
- Version 0.7.1-1.
@@ -147,4 +147,3 @@
Revision 1.2 2010/12/29 10:39:27 matkor
- Release 1. Adapterized, cleaning. Works enough good for me.
-
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/cassandra-bin/cassandra-bin.spec?r1=1.7&r2=1.8&f=u
More information about the pld-cvs-commit
mailing list