From: kupcevic@sourceware.org <kupcevic@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] conga conga.spec.in.in
Date: 18 Aug 2006 13:59:00 -0000 [thread overview]
Message-ID: <20060818135900.4841.qmail@sourceware.org> (raw)
CVSROOT: /cvs/cluster
Module name: conga
Changes by: kupcevic at sourceware.org 2006-08-18 13:59:00
Modified files:
. : conga.spec.in.in
Log message:
- Don't auto-start ricci after installation; enable it, but don't start it
- Fixes for the latest set of specfile complaints
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/conga.spec.in.in.diff?cvsroot=cluster&r1=1.31&r2=1.32
--- conga/conga.spec.in.in 2006/08/16 06:34:19 1.31
+++ conga/conga.spec.in.in 2006/08/18 13:59:00 1.32
@@ -39,7 +39,7 @@
%if "%{include_zope_and_plone}" == "yes"
BuildRequires: python-devel >= 2.4.1
%endif
-BuildRequires: glibc-devel gcc-c++ libxml2-devel make
+BuildRequires: glibc-devel gcc-c++ libxml2-devel sed
BuildRequires: openssl-devel dbus-devel pam-devel
%description
@@ -62,22 +62,16 @@
popd
%endif
-
%build
-rm -rf $RPM_BUILD_ROOT
-#./configure --arch=%{_arch} --sbindir=%{_sbindir} --libdir=%{_libdir} --docdir=%{_docdir}
%configure --arch=%{_arch} \
--docdir=%{_docdir} \
--include_zope_and_plone=%{include_zope_and_plone}
-#make %{?_smp_mflags}
-make conga
-
+make %{?_smp_mflags} conga
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install_conga
-
%clean
rm -rf $RPM_BUILD_ROOT
@@ -133,47 +127,44 @@
%{_localstatedir}/lib/luci
%pre -n luci
-if [ "B`/bin/grep luci\:x /etc/group`" = "B" ]; then
+if [ "B`/bin/grep luci\:x /etc/group`" == "B" ]; then
/usr/sbin/groupadd -r -f luci >/dev/null 2>&1
fi
-if [ "B`/bin/grep luci\:x /etc/passwd`" = "B" ]; then
+if [ "B`/bin/grep luci\:x /etc/passwd`" == "B" ]; then
/usr/sbin/useradd -r -M -s /sbin/nologin -d /var/lib/luci -g luci luci >/dev/null 2>&1
fi
%post -n luci
-/sbin/chkconfig --list luci >/dev/null 2>&1
-if [ "1$?" != "10" ]; then
- /sbin/chkconfig --add luci
-fi
+/sbin/chkconfig --add luci
/sbin/service luci status >/dev/null 2>&1
LUCI_RUNNING=$?
-if [ "1$LUCI_RUNNING" = "10" ]; then
+if [ "$LUCI_RUNNING" == "0" ]; then
/sbin/service luci stop >/dev/null 2>&1
fi
if [ -e /var/lib/luci/var/luci_backup.xml ]; then
# restore luci database
/usr/sbin/luci_admin restore >/dev/null 2>&1
fi
-if [ ! -e /var/lib/luci/var/certs/privkey.pem ]; then
- # no privkey.pem => luci not initialized => admin has default password
+# set initial admin password (if not already set) to random value
+if [ "B`cat /var/lib/luci/.admin_password_has_been_set`" != "BTrue" ]; then
/usr/sbin/luci_admin password --random >/dev/null 2>&1
fi
-if [ "1$LUCI_RUNNING" = "10" ]; then
+if [ "$LUCI_RUNNING" == "0" ]; then
/sbin/service luci start >/dev/null 2>&1
fi
%preun -n luci
-if [ "$1" = "0" ]; then
+if [ "$1" == "0" ]; then
/sbin/service luci stop >/dev/null 2>&1
/sbin/chkconfig --del luci
fi
/sbin/service luci status >/dev/null 2>&1
LUCI_RUNNING=$?
-if [ "1$LUCI_RUNNING" = "10" ]; then
+if [ "$LUCI_RUNNING" == "0" ]; then
/sbin/service luci stop >/dev/null 2>&1
fi
/usr/sbin/luci_admin backup >/dev/null 2>&1
-if [ "1$LUCI_RUNNING" = "10" ]; then
+if [ "$LUCI_RUNNING" == "0" ]; then
/sbin/service luci start >/dev/null 2>&1
fi
@@ -211,7 +202,7 @@
Provides: ricci-modlog = %{version}-%{release}
Requires(pre): grep shadow-utils
-Requires(post): chkconfig initscripts util-linux sed SysVinit
+Requires(post): chkconfig initscripts util-linux
Requires(preun): chkconfig initscripts
Requires(postun): initscripts util-linux
@@ -253,40 +244,32 @@
%{_libexecdir}/ricci-modlog
%pre -n ricci
-if [ "B`/bin/grep ricci\:x /etc/group`" = "B" ]; then
+if [ "B`/bin/grep ricci\:x /etc/group`" == "B" ]; then
/usr/sbin/groupadd -r -f ricci >/dev/null 2>&1
fi
-if [ "B`/bin/grep ricci\:x /etc/passwd`" = "B" ]; then
+if [ "B`/bin/grep ricci\:x /etc/passwd`" == "B" ]; then
/usr/sbin/useradd -r -M -s /sbin/nologin -d /var/lib/ricci -g ricci ricci >/dev/null 2>&1
fi
%post -n ricci
-/sbin/chkconfig --list ricci >/dev/null 2>&1
-if [ "1$?" != "10" ]; then
- /sbin/chkconfig --add ricci
-fi
-/bin/kill -s SIGHUP `cat /var/run/messagebus.pid`
-/sbin/service oddjobd reload > /dev/null 2>&1
-
-# start ricci only if explicitly enabled (in current runlevel)
-RUNS=(`/sbin/runlevel`)
-RUNLEVEL=${RUNS[1]}
-STATE=`/sbin/chkconfig --list ricci | sed -e s,.*\\\t$RUNLEVEL:\\\\\(o[nf]f\\\?\\\\\).*,\\\1,`
-if [ "1$STATE" = "1on" ]; then
- /sbin/service ricci start > /dev/null 2>&1
-fi
+/sbin/chkconfig --add ricci
+/bin/kill -s SIGHUP `cat /var/run/messagebus.pid` >/dev/null 2>&1
+/sbin/service oddjobd reload >/dev/null 2>&1
%preun -n ricci
-/sbin/service ricci stop > /dev/null 2>&1
-if [ "1$1" = "10" ]; then
+if [ "$1" == "0" ]; then
+ /sbin/service ricci stop > /dev/null 2>&1
/sbin/chkconfig --del ricci
fi
%postun -n ricci
-if [ "1$1" = "10" ]; then
- /bin/kill -s SIGHUP `cat /var/run/messagebus.pid`
+if [ "$1" == "0" ]; then
+ /bin/kill -s SIGHUP `cat /var/run/messagebus.pid` > /dev/null 2>&1
/sbin/service oddjobd reload > /dev/null 2>&1
fi
+if [ "$1" == "1" ]; then
+ /sbin/service ricci condrestart > /dev/null 2>&1
+fi
@@ -296,6 +279,11 @@
%changelog
+* Fri Aug 18 2006 Stanko Kupcevic <kupcevic@redhat.com> 0.8-12
+- Don't auto-start ricci after installation, do it manually
+- Under certain circumstances, default luci password would not get reset
+- Many Luci improvements
+
* Wed Aug 16 2006 Stanko Kupcevic <kupcevic@redhat.com> 0.8-11.7
- Move ricci-modrpm, ricci-modlog, ricci-modstorage, ricci-modservice
from /usr/sbin to /usr/libexec
next reply other threads:[~2006-08-18 13:59 UTC|newest]
Thread overview: 58+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-18 13:59 kupcevic [this message]
-- strict thread matches above, loose matches on Subject: below --
2008-09-23 17:34 [Cluster-devel] conga conga.spec.in.in rmccabe
2008-06-13 18:39 rmccabe
2008-06-13 18:38 rmccabe
2008-05-16 17:11 rmccabe
2008-05-16 17:10 rmccabe
2008-05-16 17:08 rmccabe
2008-04-18 3:28 rmccabe
2008-03-19 14:59 rmccabe
2008-01-23 5:20 rmccabe
2008-01-23 4:57 rmccabe
2008-01-22 15:20 rmccabe
2007-10-09 20:57 rmccabe
2007-08-29 1:02 rmccabe
2007-08-27 18:42 rmccabe
2007-08-11 4:23 rmccabe
2007-08-11 4:22 rmccabe
2007-08-09 22:37 rmccabe
2007-07-16 22:18 rmccabe
2007-06-29 15:58 rmccabe
2007-06-26 21:41 rmccabe
2007-06-18 19:06 rmccabe
2007-04-30 18:34 rmccabe
2007-04-10 19:51 rmccabe
2007-03-30 14:48 kupcevic
2007-03-27 2:20 rmccabe
2007-03-27 2:17 rmccabe
2007-03-20 17:39 rmccabe
2007-03-20 17:38 rmccabe
2007-03-20 17:26 rmccabe
2007-03-20 17:01 kupcevic
2007-03-20 16:38 kupcevic
2007-03-01 1:02 rmccabe
2007-02-16 15:55 rmccabe
2007-02-16 15:54 rmccabe
2007-01-17 16:38 kupcevic
2007-01-10 23:52 rmccabe
2007-01-10 23:51 rmccabe
2006-12-22 18:06 rmccabe
2006-12-22 18:04 rmccabe
2006-12-22 18:01 rmccabe
2006-12-22 18:00 rmccabe
2006-12-14 18:28 rmccabe
2006-12-13 23:58 rmccabe
2006-12-12 13:58 kupcevic
2006-12-12 5:21 rmccabe
2006-12-11 23:52 rmccabe
2006-12-06 23:03 rmccabe
2006-11-16 18:23 rmccabe
2006-11-15 18:07 rmccabe
2006-08-21 23:22 kupcevic
2006-08-18 20:10 kupcevic
2006-07-25 21:00 kupcevic
2006-07-17 22:57 kupcevic
2006-07-05 22:08 kupcevic
2006-06-30 22:12 kupcevic
2006-06-28 21:42 kupcevic
2006-06-27 21:46 kupcevic
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060818135900.4841.qmail@sourceware.org \
--to=kupcevic@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.