ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Slava Dubrovskiy <slava@elan.com.ua>
To: Community@altlinux.ru
Subject: [Comm] Покритикуйте spec
Date: Wed, 16 Feb 2005 13:59:01 +0200
Message-ID: <42133585.8030606@elan.com.ua> (raw)

[-- Attachment #1: Type: text/plain, Size: 583 bytes --]

Здравствуйте.
Вот пытаюсь опакетить одну программу. Написал spec. Есть несколько вопросов.
Программа устанавливает сервис, а он не поддерживает chkconfig. Т.е. 
надо добавить что-то типа
       # chkconfig: 2345 20 80
       # description: Saves and restores system entropy pool for \
       #              higher quality random number generation.

Вопрос:
1. Как выбрать приоритеты для start/stop?
2. Что лучше, сделать исправление в спеке чтобы он добавлял необходимые 
строки в файл сервиса или делать Patch?
Может еще что-то не правильно?

-- 
С уважением,
Дубровский Вячеслав.


[-- Attachment #2: atslog.spec --]
[-- Type: text/plain, Size: 2975 bytes --]

Name: atslog
Version: 1.4
Release: alt0
Summary: Mini-ATS loger
License: GPL
Group: System/Servers
Url: http://www.atslog.dp.ua/
Packager: Slava Dubrovskiy <slava@elan.com.ua>
Source: http://www.atslog.dp.ua/download/%name-%version.tar.gz
Source1: atslog.conf
Requires: perl-DBD-mysql

%define atsloginit atslog

%description
ðÒÏÇÒÁÍÍÁ-ÄÅÍÏÎ, ÄÌÑ ÚÁÐÉÓÉ Ú×ÏÎËÏ× ÒÁÚÌÉÞÎÙÈ ÍÏÄÅÌÅÊ ÍÉÎÉ-áôó × ÂÁÚÕ ÄÁÎÎÙÈ MySQL.
äÌÑ ÁÎÁÌÉÚÁ ÉÓÐÏÌØÚÕÊÔÅ ÐÁËÅÔ atslog-web Ó ÄÏÓÔÕÐÏÍ Ë ÂÁÚÅ ÄÁÎÎÙÈ ÞÅÒÅÚ web-ÂÒÁÕÚÅÒ.

%prep
%setup
cd %_builddir/%name-%version/include
%__subst "s/\/usr\/local\/etc/\/etc/g" atslogcleardb.pl atslogd atslogdaily atslogdb.pl atslogmaster atslogrotate
%__subst "s/\/local//g" atslogcleardb.pl atslogd atslogdaily atslogdb.pl atslogmaster atslogrotate

cd %_builddir/%name-%version/Linux
%__subst "s/\/usr\/local//g" atslogdinit.asplinux
%__subst "s/atslogdinit.sh/%atsloginit/g" atslogdinit.asplinux

%build
cd %_builddir/%name-%version/src/atslogdaemon
%_make_bin
cd %_builddir/%name-%version/src/atslogcat
%_make_bin
cd %_builddir/%name-%version

%install
%__mkdir_p %buildroot%_docdir/%name-%version
%__mkdir_p %buildroot%_logdir/%name

# install bin
%__install -pD -m 755 src/atslogcat/atslogcat %buildroot%_bindir/atslogcat
%__install -pD -m 755 src/atslogdaemon/atslogdaemon %buildroot%_bindir/atslogdaemon
%__install -pD -m 644 include/atslogd %buildroot%_bindir/atslogd
%__install -pD -m 755 include/atslogmaster %buildroot%_bindir/atslogmaster
%__install -pD -m 644 include/atslogcleardb.pl %buildroot%_bindir/atslogcleardb.pl
%__install -pD -m 644 include/atslogdb.pl %buildroot%_bindir/atslogdb.pl

# install lib
%__mkdir_p %buildroot%_libexecdir/%name
%__install -p -m 644 libexec/[^A-Z]* %buildroot%_libexecdir/%name

# install data
#%%__mkdir_p %buildroot%_datadir/%name
%__install -pD -m 644 include/createsqltables.sql.default %buildroot%_datadir/%name/createsqltables.sql.default
%__install -p -m 644 textlogs/* %buildroot%_datadir/%name

# install lang
%__mkdir_p %buildroot%_datadir/%name/lang
%__install -p -m 644 lang/* %buildroot%_datadir/%name/lang

# install configs
%__install -pD -m 644 %SOURCE1 %buildroot%_sysconfdir/atslog.conf
%__install -pD -T -m 755 Linux/atslogdinit.asplinux %buildroot%_initdir/%atsloginit

# install cron
%__install -pD -m 755 include/atslogrotate %buildroot%_sysconfdir/logrotate.d/atslogrotate
%__install -pD -m 755 include/atslogdaily %buildroot%_sysconfdir/cron.daily/atslogdaily

%post
%post_service %atsloginit

%preun
%preun_service %atsloginit

%files
%_bindir
%_libexecdir/%name
%config(noreplace) %_sysconfdir/%name.conf
%config %_sysconfdir/logrotate.d
%config %_sysconfdir/rc.d
%config %_sysconfdir/cron.daily

%_datadir/%name
%doc CHANGES DEINSTALL INSTALL README UPDATING USING src/atslogcat/readme_eng.txt src/atslogcat/readme_rus.txt include/atslog.conf.default

%attr(3770,root,root) %_logdir/%name

%changelog
* Wed Feb 16 2005 Slava Dubrovskiy <slava@elan.com.ua> 1.4-alt0
- Built for Master 2.4

             reply	other threads:[~2005-02-16 11:59 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-16 11:59 Slava Dubrovskiy [this message]
2005-02-16 13:10 ` [Comm] " Michael Shigorin
2005-02-16 13:47   ` Slava Dubrovskiy
2005-02-21 16:55     ` Michael Shigorin
2005-02-16 14:05   ` Slava Dubrovskiy
2005-02-16 14:51     ` Vasya Makarov
2005-02-17  7:05     ` Вячеслав Диконов
2005-02-16 13:42 ` [Comm] " php-coder

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42133585.8030606@elan.com.ua \
    --to=slava@elan.com.ua \
    --cc=Community@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git