/[smecontribs]/rpms/smeserver-mediatomb/contribs9/smeserver-mediatomb-1.0-bz10713.inotify.patch
ViewVC logotype

Contents of /rpms/smeserver-mediatomb/contribs9/smeserver-mediatomb-1.0-bz10713.inotify.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Fri Jan 25 01:42:06 2019 UTC (5 years, 10 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-mediatomb-1_0-13_el6_sme, HEAD
* Thu Jan 24 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-13.sme
- add better mime type support  [SME: 10718]
- add inotify-requirement and support for root dir default timed mode [SME: 10713]

1 diff -Nur smeserver-mediatomb-1.0.old/root/etc/e-smith/templates/etc/mediatomb/config.xml/25autoscanDir1 smeserver-mediatomb-1.0/root/etc/e-smith/templates/etc/mediatomb/config.xml/25autoscanDir1
2 --- smeserver-mediatomb-1.0.old/root/etc/e-smith/templates/etc/mediatomb/config.xml/25autoscanDir1 2019-01-24 20:18:51.115000000 -0500
3 +++ smeserver-mediatomb-1.0/root/etc/e-smith/templates/etc/mediatomb/config.xml/25autoscanDir1 2019-01-24 20:40:05.834000000 -0500
4 @@ -1,8 +1,20 @@
5 {
6 my $serverdir= ${'mediatomb'}{'serverdir'} || 'mediatomb';
7 +my $mode = ${'mediatomb'}{'mode'} || 'timed';
8
9 -$OUT .= '<directory location="/'.$serverdir.'" mode="timed" interval="3600"
10 +if ( $mode eq 'inotify' ) {
11 +
12 + $OUT .= '<directory location="/'.$serverdir.'" mode="inotify"
13 + level="full" recursive="yes" hidden-files="no"/>';
14 + }
15 +elsif ( $mode eq 'disabled') {
16 + $OUT .= "<!-- base folder /$serverdir disabled set all your folders with web interface-->\n"
17 + }
18 +else {
19 + $OUT .= '<directory location="/'.$serverdir.'" mode="timed" interval="3600"
20 level="full" recursive="yes" hidden-files="no"/>';
21
22 + }
23 +
24 }
25

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed