Author: glen Date: Wed Jan 3 15:57:13 2007 GMT Module: SPECS Tag: HEAD ---- Log message: - run as flixd user
---- Files affected: SPECS: flixengine.spec (1.25 -> 1.26) ---- Diffs: ================================================================ Index: SPECS/flixengine.spec diff -u SPECS/flixengine.spec:1.25 SPECS/flixengine.spec:1.26 --- SPECS/flixengine.spec:1.25 Fri Dec 29 14:46:50 2006 +++ SPECS/flixengine.spec Wed Jan 3 16:57:08 2007 @@ -16,7 +16,7 @@ Summary(pl): Silnik On2 Flix Name: flixengine Version: 8.0.7.1 -Release: 0.11 +Release: 0.12 License: not distributable Group: Applications # download demo from http://flix.on2.com/demos/ @@ -39,8 +39,16 @@ BuildRequires: lame-libs %endif Requires(post,preun): /sbin/chkconfig +Requires(postun): /usr/sbin/groupdel +Requires(postun): /usr/sbin/userdel +Requires(pre): /bin/id +Requires(pre): /usr/bin/getgid +Requires(pre): /usr/sbin/groupadd +Requires(pre): /usr/sbin/useradd Requires: portmap Requires: rc-scripts +Provides: group(flixd) +Provides: user(flixd) Conflicts: %{name}-libs < %{version}-%{release} Conflicts: %{name}-libs > %{version}-%{release} ExclusiveArch: %{ix86} %{x8664} @@ -256,7 +264,7 @@ --mandir=$RPM_BUILD_ROOT%{_mandir} \ --mencoderbin=$RPM_BUILD_ROOT%{_bindir} \ --flixsamples=$RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} \ - --pidfile=$RPM_BUILD_ROOT/var/run/flixd.pid \ + --pidfile=$RPM_BUILD_ROOT/var/run/flixd/flixd.pid \ --authdir=$RPM_BUILD_ROOT/var/lib/on2 \ --just-install \ --offline \ @@ -320,6 +328,10 @@ # do not put hardware fingerprint to rpm package > $RPM_BUILD_ROOT/var/lib/on2/hostinfo +touch $RPM_BUILD_ROOT/var/lib/on2/flixengine.lic +install -d $RPM_BUILD_ROOT/var/run/flixd +install -d $RPM_BUILD_ROOT/var/log +touch $RPM_BUILD_ROOT/var/log/flixd.log # use poldek -e rm -f $RPM_BUILD_ROOT%{_sbindir}/flix-engine-uninstall.sh @@ -327,11 +339,17 @@ %clean rm -rf $RPM_BUILD_ROOT -%post libs -p /sbin/ldconfig -%postun libs -p /sbin/ldconfig +%pre +%groupadd -g 179 flixd +%useradd -u 179 -g flixd -c "On2 Flixd" flixd %post /sbin/chkconfig --add flixd +if [ ! -f /var/log/flixd.log ]; then + touch /var/log/flixd.log + chown root:flixd /var/log/flixd.log + chmod 660 /var/log/flixd.log +fi if [ ! -s /var/lib/on2/hostinfo ]; then %{_sbindir}/on2_host_info > /var/lib/on2/hostinfo %banner -e %{name} <<EOF @@ -347,6 +365,15 @@ /sbin/chkconfig --del flixd fi +%postun +if [ "$1" = "0" ]; then + %userremove flixd + %groupremove flixd +fi + +%post libs -p /sbin/ldconfig +%postun libs -p /sbin/ldconfig + %post -n php-flixengine %php_webserver_restart @@ -365,7 +392,10 @@ %attr(754,root,root) /etc/rc.d/init.d/flixd %{_mandir}/man8/flixd.8* %dir /var/lib/on2 -%config(noreplace) %verify(not md5 mtime size) /var/lib/on2/hostinfo +%dir %attr(771,root,flixd) /var/run/flixd +%ghost %attr(660,root,flixd) /var/log/flixd.log +%attr(640,root,flixd) %config(noreplace) %verify(not md5 mtime size) /var/lib/on2/hostinfo +%attr(640,root,flixd) %config(noreplace) %verify(not md5 mtime size) /var/lib/on2/flixengine.lic %attr(755,root,root) %{_bindir}/mencoder-flixengine %files libs @@ -432,6 +462,9 @@ All persons listed below can be reached at <cvs_login>@pld-linux.org $Log$ +Revision 1.26 2007/01/03 15:57:08 glen +- run as flixd user + Revision 1.25 2006/12/29 13:46:50 glen - fix path of flixengine2.so php loader ================================================================ ---- CVS-web: http://cvs.pld-linux.org/SPECS/flixengine.spec?r1=1.25&r2=1.26&f=u _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
