Hi All,

I've registered int the apprentice table.

I've also modified the spec file according to all your comments, and
with the help of the fedora srpm. Find it in attachment. And feel free
to comment.

After I am not sure what is the process for this spec file.
How / where should be explain the way to create the Zoneminder table
inside the package (cf:
http://www.zoneminder.com/wiki/index.php/Documentation#Installation_from_Source
)?

Thanks all for your help!

Vincent



On Fri, Jul 22, 2011 at 5:39 AM, andre999 <[email protected]> wrote:
> Vincent a écrit :
>>
>> Hi All,
>>
>> I am still trying to pack ZoneMinder for Cauldron.
>> Now rpms are generated and rpmlint is not complaining, but I am still
>> sure, it's not OK :) , that's why I need help.
>> Attached is the spec file, if somebody could have a look.
>>
>> Here are my questions:
>> - where should go the installed files? (Zoneminder provides perl
>> modules, the site itself, CGI services , doc and conf).
>> - some files have no path's variable:
>> /usr/share/man/lib/perl5/5.14.1/x86_64-linux-thread-multi/perllocal.pod.xz
>> /usr/local/share/man/man3/ZoneMinder.3pm
>> ...
>> Any idea, what it should be?
>> - what should be the permissions for the site under the apache server?
>> - should the %install section creates the database table/permissions
>> for ZoneMinder? If so, is there any example how to achieve this?
>> - should the %install section creates the service launcher scripts? If
>> so, is there any example how to achieve this?
>>
>> Thanks in advance for you help!
>>
>> Vincent
>
> I'm not sure about all your questions, but I can give you a few tips to
> improve your spec file.
>
> 1) The name, version, and release should be defined directly on the first 3
> lines.  These entries define the %{name}, %{version}, and %{release} macros,
> so in lines 9/10/11 you are redefining them to themselves.
>
> 2) Use macros whenever possible.  This makes it easier to maintain the spec
> file, as the value will be defined in only one place.
> The build system will automatically use the correct name.
> As well, it makes it easier to use the spec file in another distro.  The
> more distros do this, the easier it is to share, a big plus of open
> source/free software in general and Linux in particular.
>
> e.g.
> for man you should use %{_mandir} ... which is /usr/share/man/ in Mageia
> (your spec puts such files in /usr/local/share/man/..., incorrect for
> Mageia.)
> for executables either %{_bindir} ... for /usr/bin
> or if a system type of utility,  %{_sbindir} ... for /usr/sbin/
>
> By the way, do you have a mentor ?
> If not, you should be in the apprentice table at
> http://www.mageia.org/wiki/doku.php?id=packages_mentoring#packager_apprentice_table
>
> Let me know :)
> --
> André
>
Name:       zoneminder
Version:    1.24.4
Release:    %mkrel 2
Summary:    ZoneMinder, the all-in one Linux GPL'd security camera solution.
URL:        http://www.zoneminder.com/
Source0:    http://www2.zoneminder.com/downloads/%{name}-%{version}.tar.gz
Patch0:     zoneminder-1.24.4-src.patch
Patch1:     zoneminder-1.24.4-install.patch
License:    GPLv2+
Group:      System Environment/Daemons
# take current user as user, to allow change of user:group during chmod (make install):
%define zmuid $(id -un)
%define zmgid $(id -gn)

# Need for configuration
BuildRequires: automake
BuildRequires: ffmpeg
BuildRequires: gnutls-devel
BuildRequires: ffmpeg-devel
BuildRequires: gnutls-devel
BuildRequires: jpeg-devel
BuildRequires: mysql-devel
BuildRequires: pcre-devel

BuildRequires: perl(Archive::Tar)
BuildRequires: perl(Archive::Zip)
BuildRequires: perl(Date::Manip)
BuildRequires: perl(DBD::mysql)
BuildRequires: perl(Device::SerialPort)
BuildRequires: perl(MIME::Lite)
# if apache is not here, make install is failing:
BuildRequires: apache
# need for post 
Requires(post): /sbin/chkconfig
# need to run:
Requires: php-mysql

%description
ZoneMinder, security camera monitoring solution.

%prep
%setup -q
%patch0 -p0
%patch1 -p0

%build
autoreconf
# remove ffmpeg compilation issue, see :
# http://www.zoneminder.com/wiki/index.php/FAQ#When_running_configure_I_am_getting_a_lot_of_messages_about_not_being_able_to_compile_the_ffmpeg_libraries
export CPPFLAGS=-D__STDC_CONSTANT_MACROS
OPTS=""
%ifnarch %{ix86} x86_64
    OPTS+=" --disable-crashtrace"
%endif

%configure2_5x --with-webdir=%{_localstatedir}/www/%{name} \
               --with-cgidir=%{_localstatedir}/www/cgi-bin/%{name} \
               --with-libarch=%{_lib} \
               --with-mysql=%{_prefix}/ \
               --enable-mmap=no \
               --disable-debug \
               --with-webuser=%{zmuid} \
               --with-webgroup=%{zmgid} \
               $OPTS

%make

%install
rm -rf %{buildroot}
%makeinstall DESTDIR=%{buildroot} \
             INST_MAN3DIR=%{buildroot}/%{_mandir}/man3 \
             bindir=%{_bindir} \
             sysconfdir=%{_sysconfdir}/%{name}

rm -fr  %{buildroot}/%{_localstatedir}/log/zm
# don't know how to get rid of this another way:
cp -R %{buildroot}/%{_prefix}/local/share/man/man3/ZoneMinder* %{buildroot}/%{_mandir}/man3/
rm -fr %{buildroot}/%{_prefix}/local/share/man/man3/ZoneMinder*
# some directories creations: 
install -m 755 -d %{buildroot}/%{_localstatedir}/log/%{name}
install -m 755 -d %{buildroot}/%{_localstatedir}/lib/%{name}/sock
install -m 755 -d %{buildroot}/%{_localstatedir}/lib/%{name}/swap
install -m 755 -d %{buildroot}/%{_localstatedir}/spool/%{name}-upload
install -D -m 755 scripts/zm %{buildroot}/%{_initrddir}/%{name}

%clean
rm -rf %{buildroot}

%post
# Add zoneminder to to rc.d
/sbin/chkconfig --add %{name}

%preun
if [ $1 -eq 0 ]; then
    # stop service
    /sbin/service %{name} stop > /dev/null 2>&1 || :
    
    /sbin/chkconfig --del %{name}
fi

%postun
if [ $1 -ge 1 ]; then
    /sbin/service %{name} condrestart > /dev/null 2>&1 || :
fi

%files
%defattr(-,root,root)
%doc AUTHORS COPYING README
%_bindir/zma
%_bindir/zmc
%_bindir/zmf
%_bindir/zmfix
%_bindir/zmstreamer
%_bindir/zmu
%_bindir/zmaudit.pl
%_bindir/zmcontrol.pl
%_bindir/zmdc.pl
%_bindir/zmfilter.pl
%_bindir/zmpkg.pl
%_bindir/zmtrack.pl
%_bindir/zmtrigger.pl
%_bindir/zmupdate.pl
%_bindir/zmvideo.pl
%_bindir/zmwatch.pl
%_bindir/zmx10.pl
%{_initrddir}/zoneminder
%dir %{_localstatedir}/www/%{name}
%dir %{_localstatedir}/www/cgi-bin/%{name}
%attr(-,apache,apache) %config(noreplace) %{_localstatedir}/www/%{name}/index.php
%{_sysconfdir}/%{name}/zm.conf
%{perl_sitelib}/ZoneMinder.pm
%{perl_sitelib}/ZoneMinder/Base.pm
%{perl_sitelib}/ZoneMinder/Config.pm
%{perl_sitelib}/ZoneMinder/ConfigAdmin.pm
%{perl_sitelib}/ZoneMinder/ConfigData.pm
%{perl_sitelib}/ZoneMinder/Control.pm
%{perl_sitelib}/ZoneMinder/Control/AxisV2.pm
%{perl_sitelib}/ZoneMinder/Control/Ncs370.pm
%{perl_sitelib}/ZoneMinder/Control/PanasonicIP.pm
%{perl_sitelib}/ZoneMinder/Control/PelcoD.pm
%{perl_sitelib}/ZoneMinder/Control/Visca.pm
%{perl_sitelib}/ZoneMinder/Control/mjpgStreamer.pm
%{perl_sitelib}/ZoneMinder/Database.pm
%{perl_sitelib}/ZoneMinder/Debug.pm
%{perl_sitelib}/ZoneMinder/General.pm
%{perl_sitelib}/ZoneMinder/Memory.pm
%{perl_sitelib}/ZoneMinder/Memory/Mapped.pm
%{perl_sitelib}/ZoneMinder/Memory/Shared.pm
%{perl_sitelib}/ZoneMinder/Trigger/Channel.pm
%{perl_sitelib}/ZoneMinder/Trigger/Channel/File.pm
%{perl_sitelib}/ZoneMinder/Trigger/Channel/Handle.pm
%{perl_sitelib}/ZoneMinder/Trigger/Channel/Inet.pm
%{perl_sitelib}/ZoneMinder/Trigger/Channel/Serial.pm
%{perl_sitelib}/ZoneMinder/Trigger/Channel/Spawning.pm
%{perl_sitelib}/ZoneMinder/Trigger/Channel/Unix.pm
%{perl_sitelib}/ZoneMinder/Trigger/Connection.pm
%{perl_sitelib}/ZoneMinder/Trigger/Connection/Example.pm
%{_mandir}/man3/.exists.xz
%{_mandir}/man3/ZoneMinder*
%{_localstatedir}/www/cgi-bin/%{name}/nph-zms
%{_localstatedir}/www/cgi-bin/%{name}/zms
%{_localstatedir}/www/%{name}/ajax/alarm.php
%{_localstatedir}/www/%{name}/ajax/control.php
%{_localstatedir}/www/%{name}/ajax/event.php
%{_localstatedir}/www/%{name}/ajax/status.php
%{_localstatedir}/www/%{name}/ajax/stream.php
%{_localstatedir}/www/%{name}/ajax/zone.php
%{_localstatedir}/www/%{name}/css/reset.css
%{_localstatedir}/www/%{name}/graphics/favicon.ico
%{_localstatedir}/www/%{name}/graphics/transparent.gif
%{_localstatedir}/www/%{name}/includes/actions.php
%{_localstatedir}/www/%{name}/includes/config.php
%{_localstatedir}/www/%{name}/includes/control_functions.php
%{_localstatedir}/www/%{name}/includes/database.php
%{_localstatedir}/www/%{name}/includes/functions.php
%{_localstatedir}/www/%{name}/includes/lang.php
%{_localstatedir}/www/%{name}/js/mootools.ext.js
%{_localstatedir}/www/%{name}/lang/big5_big5.php
%{_localstatedir}/www/%{name}/lang/cn_zh.php
%{_localstatedir}/www/%{name}/lang/cs_cz.php
%{_localstatedir}/www/%{name}/lang/de_de.php
%{_localstatedir}/www/%{name}/lang/dk_dk.php
%{_localstatedir}/www/%{name}/lang/en_gb.php
%{_localstatedir}/www/%{name}/lang/en_us.php
%{_localstatedir}/www/%{name}/lang/es_ar.php
%{_localstatedir}/www/%{name}/lang/et_ee.php
%{_localstatedir}/www/%{name}/lang/fr_fr.php
%{_localstatedir}/www/%{name}/lang/he_il.php
%{_localstatedir}/www/%{name}/lang/hu_hu.php
%{_localstatedir}/www/%{name}/lang/it_it.php
%{_localstatedir}/www/%{name}/lang/ja_jp.php
%{_localstatedir}/www/%{name}/lang/nl_nl.php
%{_localstatedir}/www/%{name}/lang/pl_pl.php
%{_localstatedir}/www/%{name}/lang/pt_br.php
%{_localstatedir}/www/%{name}/lang/ro_ro.php
%{_localstatedir}/www/%{name}/lang/ru_ru.php
%{_localstatedir}/www/%{name}/lang/se_se.php
%{_localstatedir}/www/%{name}/skins/classic/css/control.css
%{_localstatedir}/www/%{name}/skins/classic/css/export.css
%{_localstatedir}/www/%{name}/skins/classic/css/skin.css
%{_localstatedir}/www/%{name}/skins/classic/graphics/arrow-d.gif
%{_localstatedir}/www/%{name}/skins/classic/graphics/arrow-dl.gif
%{_localstatedir}/www/%{name}/skins/classic/graphics/arrow-dr.gif
%{_localstatedir}/www/%{name}/skins/classic/graphics/arrow-l-d.gif
%{_localstatedir}/www/%{name}/skins/classic/graphics/arrow-l-u.gif
%{_localstatedir}/www/%{name}/skins/classic/graphics/arrow-l.gif
%{_localstatedir}/www/%{name}/skins/classic/graphics/arrow-r.gif
%{_localstatedir}/www/%{name}/skins/classic/graphics/arrow-u.gif
%{_localstatedir}/www/%{name}/skins/classic/graphics/arrow-ul.gif
%{_localstatedir}/www/%{name}/skins/classic/graphics/arrow-ur.gif
%{_localstatedir}/www/%{name}/skins/classic/graphics/center.gif
%{_localstatedir}/www/%{name}/skins/classic/graphics/point-g.gif
%{_localstatedir}/www/%{name}/skins/classic/graphics/point-o.gif
%{_localstatedir}/www/%{name}/skins/classic/graphics/point-r.gif
%{_localstatedir}/www/%{name}/skins/classic/graphics/seq-d.gif
%{_localstatedir}/www/%{name}/skins/classic/graphics/seq-u.gif
%{_localstatedir}/www/%{name}/skins/classic/includes/config.php
%{_localstatedir}/www/%{name}/skins/classic/includes/control_functions.php
%{_localstatedir}/www/%{name}/skins/classic/includes/export_functions.php
%{_localstatedir}/www/%{name}/skins/classic/includes/functions.php
%{_localstatedir}/www/%{name}/skins/classic/includes/init.php
%{_localstatedir}/www/%{name}/skins/classic/includes/timeline_functions.php
%{_localstatedir}/www/%{name}/skins/classic/js/skin.js
%{_localstatedir}/www/%{name}/skins/classic/js/skin.js.php
%{_localstatedir}/www/%{name}/skins/classic/skin.php
%{_localstatedir}/www/%{name}/skins/classic/views/Makefile.am
%{_localstatedir}/www/%{name}/skins/classic/views/bandwidth.php
%{_localstatedir}/www/%{name}/skins/classic/views/blank.php
%{_localstatedir}/www/%{name}/skins/classic/views/console.php
%{_localstatedir}/www/%{name}/skins/classic/views/control.php
%{_localstatedir}/www/%{name}/skins/classic/views/controlcap.php
%{_localstatedir}/www/%{name}/skins/classic/views/controlcaps.php
%{_localstatedir}/www/%{name}/skins/classic/views/controlpreset.php
%{_localstatedir}/www/%{name}/skins/classic/views/css/console.css
%{_localstatedir}/www/%{name}/skins/classic/views/css/control.css
%{_localstatedir}/www/%{name}/skins/classic/views/css/controlcaps.css
%{_localstatedir}/www/%{name}/skins/classic/views/css/devices.css
%{_localstatedir}/www/%{name}/skins/classic/views/css/event.css
%{_localstatedir}/www/%{name}/skins/classic/views/css/events.css
%{_localstatedir}/www/%{name}/skins/classic/views/css/export.css
%{_localstatedir}/www/%{name}/skins/classic/views/css/filter.css
%{_localstatedir}/www/%{name}/skins/classic/views/css/frame.css
%{_localstatedir}/www/%{name}/skins/classic/views/css/frames.css
%{_localstatedir}/www/%{name}/skins/classic/views/css/groups.css
%{_localstatedir}/www/%{name}/skins/classic/views/css/monitor.css
%{_localstatedir}/www/%{name}/skins/classic/views/css/montage.css
%{_localstatedir}/www/%{name}/skins/classic/views/css/montage_2wide.css
%{_localstatedir}/www/%{name}/skins/classic/views/css/montage_3wide.css
%{_localstatedir}/www/%{name}/skins/classic/views/css/montage_3wide50enlarge.css
%{_localstatedir}/www/%{name}/skins/classic/views/css/montage_4wide.css
%{_localstatedir}/www/%{name}/skins/classic/views/css/montage_freeform.css
%{_localstatedir}/www/%{name}/skins/classic/views/css/options.css
%{_localstatedir}/www/%{name}/skins/classic/views/css/stats.css
%{_localstatedir}/www/%{name}/skins/classic/views/css/timeline.css
%{_localstatedir}/www/%{name}/skins/classic/views/css/timeline.css.php
%{_localstatedir}/www/%{name}/skins/classic/views/css/video.css
%{_localstatedir}/www/%{name}/skins/classic/views/css/watch.css
%{_localstatedir}/www/%{name}/skins/classic/views/css/zone.css
%{_localstatedir}/www/%{name}/skins/classic/views/cycle.php
%{_localstatedir}/www/%{name}/skins/classic/views/device.php
%{_localstatedir}/www/%{name}/skins/classic/views/devices.php
%{_localstatedir}/www/%{name}/skins/classic/views/donate.php
%{_localstatedir}/www/%{name}/skins/classic/views/error.php
%{_localstatedir}/www/%{name}/skins/classic/views/event.php
%{_localstatedir}/www/%{name}/skins/classic/views/eventdetail.php
%{_localstatedir}/www/%{name}/skins/classic/views/events.php
%{_localstatedir}/www/%{name}/skins/classic/views/export.php
%{_localstatedir}/www/%{name}/skins/classic/views/filter.php
%{_localstatedir}/www/%{name}/skins/classic/views/filtersave.php
%{_localstatedir}/www/%{name}/skins/classic/views/frame.php
%{_localstatedir}/www/%{name}/skins/classic/views/frames.php
%{_localstatedir}/www/%{name}/skins/classic/views/function.php
%{_localstatedir}/www/%{name}/skins/classic/views/group.php
%{_localstatedir}/www/%{name}/skins/classic/views/groups.php
%{_localstatedir}/www/%{name}/skins/classic/views/js/Makefile.am
%{_localstatedir}/www/%{name}/skins/classic/views/js/console.js
%{_localstatedir}/www/%{name}/skins/classic/views/js/console.js.php
%{_localstatedir}/www/%{name}/skins/classic/views/js/control.js
%{_localstatedir}/www/%{name}/skins/classic/views/js/controlpreset.js
%{_localstatedir}/www/%{name}/skins/classic/views/js/controlpreset.js.php
%{_localstatedir}/www/%{name}/skins/classic/views/js/cycle.js
%{_localstatedir}/www/%{name}/skins/classic/views/js/cycle.js.php
%{_localstatedir}/www/%{name}/skins/classic/views/js/devices.js
%{_localstatedir}/www/%{name}/skins/classic/views/js/donate.js
%{_localstatedir}/www/%{name}/skins/classic/views/js/donate.js.php
%{_localstatedir}/www/%{name}/skins/classic/views/js/event.js
%{_localstatedir}/www/%{name}/skins/classic/views/js/event.js.php
%{_localstatedir}/www/%{name}/skins/classic/views/js/events.js
%{_localstatedir}/www/%{name}/skins/classic/views/js/events.js.php
%{_localstatedir}/www/%{name}/skins/classic/views/js/export.js
%{_localstatedir}/www/%{name}/skins/classic/views/js/export.js.php
%{_localstatedir}/www/%{name}/skins/classic/views/js/filter.js
%{_localstatedir}/www/%{name}/skins/classic/views/js/filter.js.php
%{_localstatedir}/www/%{name}/skins/classic/views/js/group.js
%{_localstatedir}/www/%{name}/skins/classic/views/js/groups.js
%{_localstatedir}/www/%{name}/skins/classic/views/js/login.js
%{_localstatedir}/www/%{name}/skins/classic/views/js/monitor.js
%{_localstatedir}/www/%{name}/skins/classic/views/js/monitor.js.php
%{_localstatedir}/www/%{name}/skins/classic/views/js/monitorpreset.js
%{_localstatedir}/www/%{name}/skins/classic/views/js/monitorprobe.js
%{_localstatedir}/www/%{name}/skins/classic/views/js/montage.js
%{_localstatedir}/www/%{name}/skins/classic/views/js/montage.js.php
%{_localstatedir}/www/%{name}/skins/classic/views/js/options.js.php
%{_localstatedir}/www/%{name}/skins/classic/views/js/postlogin.js
%{_localstatedir}/www/%{name}/skins/classic/views/js/state.js
%{_localstatedir}/www/%{name}/skins/classic/views/js/state.js.php
%{_localstatedir}/www/%{name}/skins/classic/views/js/timeline.js
%{_localstatedir}/www/%{name}/skins/classic/views/js/timeline.js.php
%{_localstatedir}/www/%{name}/skins/classic/views/js/user.js
%{_localstatedir}/www/%{name}/skins/classic/views/js/version.js
%{_localstatedir}/www/%{name}/skins/classic/views/js/version.js.php
%{_localstatedir}/www/%{name}/skins/classic/views/js/video.js
%{_localstatedir}/www/%{name}/skins/classic/views/js/video.js.php
%{_localstatedir}/www/%{name}/skins/classic/views/js/watch.js
%{_localstatedir}/www/%{name}/skins/classic/views/js/watch.js.php
%{_localstatedir}/www/%{name}/skins/classic/views/js/zone.js
%{_localstatedir}/www/%{name}/skins/classic/views/js/zone.js.php
%{_localstatedir}/www/%{name}/skins/classic/views/login.php
%{_localstatedir}/www/%{name}/skins/classic/views/logout.php
%{_localstatedir}/www/%{name}/skins/classic/views/monitor.php
%{_localstatedir}/www/%{name}/skins/classic/views/monitorpreset.php
%{_localstatedir}/www/%{name}/skins/classic/views/monitorprobe.php
%{_localstatedir}/www/%{name}/skins/classic/views/montage.php
%{_localstatedir}/www/%{name}/skins/classic/views/none.php
%{_localstatedir}/www/%{name}/skins/classic/views/optionhelp.php
%{_localstatedir}/www/%{name}/skins/classic/views/options.php
%{_localstatedir}/www/%{name}/skins/classic/views/postlogin.php
%{_localstatedir}/www/%{name}/skins/classic/views/settings.php
%{_localstatedir}/www/%{name}/skins/classic/views/state.php
%{_localstatedir}/www/%{name}/skins/classic/views/stats.php
%{_localstatedir}/www/%{name}/skins/classic/views/status.php
%{_localstatedir}/www/%{name}/skins/classic/views/timeline.php
%{_localstatedir}/www/%{name}/skins/classic/views/user.php
%{_localstatedir}/www/%{name}/skins/classic/views/version.php
%{_localstatedir}/www/%{name}/skins/classic/views/video.php
%{_localstatedir}/www/%{name}/skins/classic/views/watch.php
%{_localstatedir}/www/%{name}/skins/classic/views/zone.php
%{_localstatedir}/www/%{name}/skins/classic/views/zones.php
%{_localstatedir}/www/%{name}/skins/mobile/css/skin.css
%{_localstatedir}/www/%{name}/skins/mobile/includes/config.php
%{_localstatedir}/www/%{name}/skins/mobile/includes/control_functions.php
%{_localstatedir}/www/%{name}/skins/mobile/includes/functions.php
%{_localstatedir}/www/%{name}/skins/mobile/includes/init.php
%{_localstatedir}/www/%{name}/skins/mobile/skin.php
%{_localstatedir}/www/%{name}/skins/mobile/views/console.php
%{_localstatedir}/www/%{name}/skins/mobile/views/css/console.css
%{_localstatedir}/www/%{name}/skins/mobile/views/devices.php
%{_localstatedir}/www/%{name}/skins/mobile/views/error.php
%{_localstatedir}/www/%{name}/skins/mobile/views/event.php
%{_localstatedir}/www/%{name}/skins/mobile/views/eventdetails.php
%{_localstatedir}/www/%{name}/skins/mobile/views/events.php
%{_localstatedir}/www/%{name}/skins/mobile/views/filter.php
%{_localstatedir}/www/%{name}/skins/mobile/views/frame.php
%{_localstatedir}/www/%{name}/skins/mobile/views/function.php
%{_localstatedir}/www/%{name}/skins/mobile/views/login.php
%{_localstatedir}/www/%{name}/skins/mobile/views/montage.php
%{_localstatedir}/www/%{name}/skins/mobile/views/state.php
%{_localstatedir}/www/%{name}/skins/mobile/views/video.php
%{_localstatedir}/www/%{name}/skins/mobile/views/watch.php
%{_localstatedir}/www/%{name}/skins/xml/includes/config.php
%{_localstatedir}/www/%{name}/skins/xml/includes/functions.php
%{_localstatedir}/www/%{name}/skins/xml/includes/init.php
%{_localstatedir}/www/%{name}/skins/xml/skin.php
%{_localstatedir}/www/%{name}/skins/xml/views/actions.php
%{_localstatedir}/www/%{name}/skins/xml/views/console.php
%{_localstatedir}/www/%{name}/skins/xml/views/none.php
%{_localstatedir}/www/%{name}/skins/xml/views/notfound.png
%{_localstatedir}/www/%{name}/tools/mootools/mootools-1.2.5-core-nc.js
%{_localstatedir}/www/%{name}/tools/mootools/mootools-1.2.5-core-yc.js
%{_localstatedir}/www/%{name}/tools/mootools/mootools-1.2.5.1-more-nc.js
%{_localstatedir}/www/%{name}/tools/mootools/mootools-1.2.5.1-more-yc.js
%{_localstatedir}/www/%{name}/tools/mootools/mootools-core.js
%{_localstatedir}/www/%{name}/tools/mootools/mootools-more.js
%{_localstatedir}/www/%{name}/views/file.php
%{_localstatedir}/www/%{name}/views/image.php

%changelog
* Wed Jun 29 2011 Vincent Hervieux <[email protected]> 1.24.4-1.mga1
+ Revision: 520056
- building ZoneMinder for Mageia


--- Makefile.am.orig	2011-07-19 13:06:10.738615024 -0400
+++ Makefile.am	2011-07-19 13:09:07.234611701 -0400
@@ -21,12 +21,12 @@ EXTRA_DIST = \
 # Yes, you are correct. This is a HACK!
 install-data-hook:
 	( cd $(DESTDIR)$(sysconfdir); chown $(webuser):$(webgroup) $(sysconf_DATA); chmod 600 $(sysconf_DATA) )
-	( if ! test -e $(ZM_RUNDIR); then mkdir -p $(ZM_RUNDIR); fi; if test "$(ZM_RUNDIR)" != "/var/run"; then chown $(webuser):$(webgroup) $(ZM_RUNDIR); chmod u+w $(ZM_RUNDIR); fi )
-	( if ! test -e $(ZM_TMPDIR); then mkdir -m 700 -p $(ZM_TMPDIR); fi; if test "$(ZM_TMPDIR)" != "/tmp"; then chown $(webuser):$(webgroup) $(ZM_TMPDIR); chmod u+w $(ZM_TMPDIR); fi )
-	( if ! test -e $(ZM_LOGDIR); then mkdir -p $(ZM_LOGDIR); fi; if test "$(ZM_LOGDIR)" != "/var/log"; then chown $(webuser):$(webgroup) $(ZM_LOGDIR); chmod u+w $(ZM_LOGDIR); fi )
+	( if ! test -e $(DESTDIR)$(ZM_RUNDIR); then mkdir -p $(DESTDIR)$(ZM_RUNDIR); fi; if test "$(ZM_RUNDIR)" != "/var/run"; then chown $(webuser):$(webgroup) $(DESTDIR)$(ZM_RUNDIR); chmod u+w $(DESTDIR)$(ZM_RUNDIR); fi )
+	( if ! test -e $(DESTDIR)$(ZM_TMPDIR); then mkdir -m 700 -p $(DESTDIR)$(ZM_TMPDIR); fi; if test "$(ZM_TMPDIR)" != "/tmp"; then chown $(webuser):$(webgroup) $(DESTDIR)$(ZM_TMPDIR); chmod u+w $(DESTDIR)$(ZM_TMPDIR); fi )
+	( if ! test -e $(DESTDIR)$(ZM_LOGDIR); then mkdir -p $(DESTDIR)$(ZM_LOGDIR); fi; if test "$(ZM_LOGDIR)" != "/var/log"; then chown $(webuser):$(webgroup) $(DESTDIR)$(ZM_LOGDIR); chmod u+w $(DESTDIR)$(ZM_LOGDIR); fi )
 
 uninstall-hook:
 	@-( cd $(DESTDIR)$(webdir); rm -rf events graphics images sounds temp )
-	@-( if test "$(ZM_RUNDIR)" != "/var/run"; then rm -rf $(ZM_RUNDIR); fi )
-	@-( if test "$(ZM_TMPDIR)" != "/tmp"; then rm -rf $(ZM_TMPDIR); fi )
-	@-( if test "$(ZM_LOGDIR)" != "/var/log"; then rm -rf $(ZM_LOGDIR); fi )
+	@-( if test "$(ZM_RUNDIR)" != "/var/run"; then rm -rf $(DESTDIR)$(ZM_RUNDIR); fi )
+	@-( if test "$(ZM_TMPDIR)" != "/tmp"; then rm -rf $(DESTDIR)$(ZM_TMPDIR); fi )
+	@-( if test "$(ZM_LOGDIR)" != "/var/log"; then rm -rf $(DESTDIR)$(ZM_LOGDIR); fi )
 
--- src/Makefile.am.orig	2011-07-19 14:08:47.667544283 -0400
+++ src/Makefile.am	2011-07-19 14:12:06.086540641 -0400
@@ -124,10 +124,10 @@ dist-hook:
 
 # Yes, you are correct. This is a HACK!
 install-exec-hook:
-	( cd $(DESTDIR)@bindir@; mkdir -p $(DESTDIR)$(cgidir); mv zms $(DESTDIR)$(cgidir) )
-	( cd $(DESTDIR)$(cgidir); chown $(webuser):$(webgroup) zms; ln -f zms nph-zms )
-	( cd $(DESTDIR)@bindir@; chmod u+s zmfix )
+	( cd $(DESTDIR)$(bindir); mkdir -p $(DESTDIR)$(cgidir); mv zms $(DESTDIR)$(cgidir) )
+	( cd $(DESTDIR)$(cgidir); chown $(webuser):$(webgroup) zms; ln -f zms nph-zms )
+	( cd $(DESTDIR)$(bindir); chmod u+s zmfix )
 
 uninstall-hook:
-	( cd $(DESTDIR)$(cgidir); rm -f zms nph-zms )
+	( cd $(DESTDIR)$(cgidir); rm -f zms nph-zms )
 
--- ./src/zm_rtsp.cpp.orig	2011-06-30 13:37:20.175609094 -0400
+++ ./src/zm_rtsp.cpp	2011-06-30 13:37:46.618610480 -0400
@@ -311,7 +311,7 @@
     }
     catch( const Exception &e )
     {
-        Error( e.getMessage().c_str() );
+        Error( "%s", e.getMessage().c_str() );
         return( -1 );
     }
 
--- ./src/zm_signal.cpp.orig	2011-06-30 13:44:42.850610241 -0400
+++ ./src/zm_signal.cpp	2011-06-30 13:48:02.785610651 -0400
@@ -109,7 +109,7 @@
 	char **messages = backtrace_symbols( trace, trace_size );
     if ( size_t offset = strcspn( messages[trace_size-1], " " ) )
     {
-        snprintf( cmd_ptr, sizeof(cmd)-(cmd_ptr-cmd), messages[trace_size-1] );
+        snprintf( cmd_ptr, sizeof(cmd)-(cmd_ptr-cmd), "%s", messages[trace_size-1] );
         cmd_ptr += offset;
     }
     else
@@ -123,7 +123,7 @@
         cmd_ptr += snprintf( cmd_ptr, sizeof(cmd)-(cmd_ptr-cmd), " %p", trace[i] );
     }
 	Info( "Backtrace complete, please execute the following command for more information" );
-    Info( cmd );
+    Info( "%s", cmd );
 #endif // HAVE_DECL_BACKTRACE
 #endif // ( HAVE_SIGINFO_T && HAVE_UCONTEXT_T ) || HAVE_STRUCT_SIGCONTEXT
 #endif // ZM_NO_CRASHTRACE

Reply via email to