packages: mumble/mumble.spec - more files - post operations for murmurd
shadzik
shadzik at pld-linux.org
Fri Apr 2 03:35:57 CEST 2010
Author: shadzik Date: Fri Apr 2 01:35:57 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- more files
- post operations for murmurd
---- Files affected:
packages/mumble:
mumble.spec (1.6 -> 1.7)
---- Diffs:
================================================================
Index: packages/mumble/mumble.spec
diff -u packages/mumble/mumble.spec:1.6 packages/mumble/mumble.spec:1.7
--- packages/mumble/mumble.spec:1.6 Fri Apr 2 03:29:17 2010
+++ packages/mumble/mumble.spec Fri Apr 2 03:35:51 2010
@@ -46,6 +46,7 @@
Summary: Mumble voice chat server
Group: Applications/Communications
Requires: QtSql-sqlite3 >= %{qtver}
+Requires(post,preun): /sbin/chkconfig
%description server
Murmur (also called mumble-server) is part of VoIP suite Mumble
@@ -69,7 +70,7 @@
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_sbindir},%{_bindir},%{_libdir}}
+install -d $RPM_BUILD_ROOT{%{_sbindir},%{_bindir},%{_libdir},/etc/murmur}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
@@ -77,6 +78,7 @@
install release/libmumble.so.1.2.2 $RPM_BUILD_ROOT%{_libdir}
install release/mumble* $RPM_BUILD_ROOT%{_bindir}
install release/murmurd $RPM_BUILD_ROOT%{_sbindir}
+install scripts/murmur.ini $RPM_BUILD_ROOT/etc/murmur
%clean
rm -rf $RPM_BUILD_ROOT
@@ -84,6 +86,16 @@
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
+%post server
+/sbin/chkconfig --add murmurd
+%service murmurd restart "mumble server"
+
+%preun server
+if [ "$1" = "0" ]; then
+ %service murmurd stop
+ /sbin/chkconfig --del ejabberd
+fi
+
%files
%defattr(644,root,root,755)
%doc README README.Linux LICENSE CHANGES
@@ -94,6 +106,8 @@
%files server
%defattr(644,root,root,755)
%attr(755,root,root) %{_sbindir}/murmurd
+%dir /etc/murmur
+/etc/murmur/murmur.ini
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -101,6 +115,10 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.7 2010/04/02 01:35:51 shadzik
+- more files
+- post operations for murmurd
+
Revision 1.6 2010/04/02 01:29:17 shadzik
- murmur R: QtSql-sqlite3
- group change
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/mumble/mumble.spec?r1=1.6&r2=1.7&f=u
More information about the pld-cvs-commit
mailing list