SPECS: ApacheJServ.spec - cleanups, hacks to get -init package ran...
glen
glen at pld-linux.org
Sat Oct 22 13:36:26 CEST 2005
Author: glen Date: Sat Oct 22 11:36:26 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- cleanups, hacks to get -init package ran as different user
---- Files affected:
SPECS:
ApacheJServ.spec (1.45 -> 1.46)
---- Diffs:
================================================================
Index: SPECS/ApacheJServ.spec
diff -u SPECS/ApacheJServ.spec:1.45 SPECS/ApacheJServ.spec:1.46
--- SPECS/ApacheJServ.spec:1.45 Sat Oct 22 12:50:51 2005
+++ SPECS/ApacheJServ.spec Sat Oct 22 13:36:21 2005
@@ -11,7 +11,7 @@
Summary(pl): Silnik serwletów ze wsparciem dla wiodącego serwera WWW
Name: ApacheJServ
Version: 1.1.2
-Release: 0.37
+Release: 0.52
License: freely distributable & usable (JServ), LGPL (JSDK)
Group: Networking/Daemons
Source0: http://java.apache.org/jserv/dist/%{name}-%{version}.tar.gz
@@ -89,6 +89,8 @@
Requires(pre): /usr/sbin/useradd
Requires(pre): /usr/sbin/groupadd
Requires(post,preun): rc-scripts
+Requires(triggerin): sed >= 4.0
+Requires: rc-scripts
%description init
JServ initscript for standalone mode.
@@ -190,6 +192,7 @@
# duplicate
rm -f $RPM_BUILD_ROOT%{_sysconfdir}/jserv.conf
+rm -rf $RPM_BUILD_ROOT/usr/docs
%clean
rm -rf $RPM_BUILD_ROOT
@@ -229,6 +232,19 @@
%groupremove jserv
fi
+%triggerin init -- apache1-mod_jserv
+if [ "$2" != 1 ]; then
+ exit 0
+fi
+# so, we have initscript and apache module, it means we turn off
+# automatic mode and switch to manual mode, and change jserv config
+# groups to jserv user
+MODE=$(awk '/^[\t ]*ApJServManual (on|off)/{print $2}' %{httpdconf}/conf.d/??_mod_jserv.conf)
+if [ "$MODE" = off ]; then
+ chgrp jserv %{_sysconfdir}/{{jserv,zone}.properties,jserv.secret.key}
+ sed -i -e '/^[ ]*ApJServManual[ ]\+/s/off/on/i' %{httpdconf}/conf.d/??_mod_jserv.conf
+fi
+
%files
%defattr(644,root,root,755)
%doc LICENSE README
@@ -268,6 +284,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.46 2005/10/22 11:36:21 glen
+- cleanups, hacks to get -init package ran as different user
+
Revision 1.45 2005/10/22 10:50:51 glen
- R: jre
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/ApacheJServ.spec?r1=1.45&r2=1.46&f=u
More information about the pld-cvs-commit
mailing list