Author: uzsolt Date: Wed Nov 5 17:10:31 2008 GMT Module: SPECS Tag: HEAD ---- Log message: - init script
---- Files affected: SPECS: mpd.spec (1.19 -> 1.20) ---- Diffs: ================================================================ Index: SPECS/mpd.spec diff -u SPECS/mpd.spec:1.19 SPECS/mpd.spec:1.20 --- SPECS/mpd.spec:1.19 Mon Nov 3 20:06:58 2008 +++ SPECS/mpd.spec Wed Nov 5 18:10:26 2008 @@ -1,6 +1,5 @@ # $Revision$, $Date$ # TODO: -# - add initscript # - add dir to store playlists and songs DB # - add logrotate Summary: Music Player Daemon @@ -14,6 +13,7 @@ Source0: http://musicpd.org/uploads/files/%{name}-%{version}.tar.bz2 # Source0-md5: b461896369949ff3cff955692ead9f8b Source1: %{name}.conf +Source2: %{name}.init URL: http://www.musicpd.org/ BuildRequires: alsa-lib-devel >= 0.9.0 BuildRequires: audiofile-devel >= 0.1.7 @@ -80,6 +80,7 @@ DESTDIR=$RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_sysconfdir} install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir} +install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/mpd %clean rm -rf $RPM_BUILD_ROOT @@ -88,6 +89,15 @@ %groupadd -g 204 mpd %useradd -u 204 -r -d /home/services/mpd -s /bin/false -c "Music Player Daemon (MPD) user" -g audio -G mpd +%post +/sbin/chkconfig --add mpd + +%preun +if [ "$1" = "0" ]; then + %service mpd stop + /sbin/chkconfig --del httpd +fi + %postun if [ "$1" = "0" ]; then %userremove mpd @@ -102,6 +112,7 @@ %{_mandir}/man1/mpd.1* %{_mandir}/man5/mpd.conf.5* %{_sysconfdir}/mpd.conf +%{_sysconfdir}/rc.d/init.d/mpd #%{_datadir}/%{name} @@ -115,6 +126,9 @@ All persons listed below can be reached at <cvs_login>@pld-linux.org $Log$ +Revision 1.20 2008/11/05 17:10:26 uzsolt +- init script + Revision 1.19 2008/11/03 19:06:58 uzsolt - hu summary, description - mpd.conf default config ================================================================ ---- CVS-web: http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/mpd.spec?r1=1.19&r2=1.20&f=u _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
