<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>28407</bug_id>
          
          <creation_ts>2013-01-20 03:32:37 +0400</creation_ts>
          <short_desc>[FR][PATCH] Добавить поддержку /etc/sysconfig/monit</short_desc>
          <delta_ts>2014-03-18 14:46:48 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>monit</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Igor Zubkov">icesik</reporter>
          <assigned_to name="Michael Shigorin">mike</assigned_to>
          <cc>evg</cc>
    
    <cc>mike</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>137022</commentid>
    <comment_count>0</comment_count>
    <who name="Igor Zubkov">icesik</who>
    <bug_when>2013-01-20 03:32:37 +0400</bug_when>
    <thetext>Дело в том что для monit демона можно передавать дополнительные параметры через /etc/sysconfig/monit, но так как такого файла нет -- никто и не знает что так можно делать.

Просьба добавить в %build:

mkdir -p %buildroot%_sysconfdir/sysconfig/
install -pDm644 %SOURCE1 %buildroot%_sysconfdir/sysconfig/

Ну и сам %SOURCE1:
$ cat monit 
# monit options, see man(1) monit for more
#MONIT_OPTIONS=-vv
$ 

Плюс, выкинуть старый %SOURCE1 который monit.init.2_2 и остался тут от Мастер 2.2. Пора его на пенсию.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>137023</commentid>
    <comment_count>1</comment_count>
    <who name="Igor Zubkov">icesik</who>
    <bug_when>2013-01-20 03:34:28 +0400</bug_when>
    <thetext>Ну и в %files:
%config(noreplace) %_sysconfdir/sysconfig/monit</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>145709</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2014-03-17 19:37:48 +0400</bug_when>
    <thetext>Добавил в 5.7-alt2.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>145711</commentid>
    <comment_count>3</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2014-03-17 19:59:15 +0400</bug_when>
    <thetext>monit-5.7-alt2 -&gt; sisyphus:

* Mon Mar 17 2014 Michael Shigorin &lt;mike@altlinux&gt; 5.7-alt2
- fixes/enhancements by icesik@:
  + converted spec to utf8 (closes: #28406)
  + added sample sysconfig file (closes: #28407)
  + dropped ancient style initscript (for ALM2.2 and before)
  + do not build with explicit optimization to fix debuginfo subpackage
    (closes: #28408)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>