From: Michael Shigorin <mike@osdn.org.ua> To: Community@altlinux.ru Subject: [Comm] Re: Покритикуйте spec Date: Wed, 16 Feb 2005 15:10:49 +0200 Message-ID: <20050216131049.GB30602@osdn.org.ua> (raw) In-Reply-To: <42133585.8030606@elan.com.ua> On Wed, Feb 16, 2005 at 01:59:01PM +0200, Slava Dubrovskiy wrote: > 1. Как выбрать приоритеты для start/stop? По вкусу, сообразуясь с требованиями (сеть, база, syslog, ...). > 2. Что лучше, сделать исправление в спеке чтобы он добавлял > необходимые строки в файл сервиса или делать Patch? Патч обычно удобней. Впрочем, инитскрипт обычно проще переписать с нуля (точнее, с /etc/init.d/template). > Может еще что-то не правильно? > Summary: Mini-ATS loger logger :) > %define atsloginit atslog > > %prep > %setup > cd %_builddir/%name-%version/include > %__subst "s/\/usr\/local\/etc/\/etc/g" atslogcleardb.pl atslogd atslogdaily atslogdb.pl atslogmaster atslogrotate Может быть удобней так: %__subst "s,/usr/local/etc/,/etc,g" atslogcleardb.pl atslogd atslogdaily atslogdb.pl atslogmaster atslogrotate или так: %__subst "s|/usr/local/etc/|/etc|g" atslogcleardb.pl atslogd atslogdaily atslogdb.pl atslogmaster atslogrotate > %__subst "s/\/usr\/local//g" atslogdinit.asplinux Это не будет соответствовать текущей полиси по инитскриптам -- они должны применять start-stop-service, а не RH functions. > %__install -pD -m 755 src/atslogcat/atslogcat %buildroot%_bindir/atslogcat Для краткости можно %__install -pD -m755 src/atslogcat/atslogcat %buildroot%_bindir/ (при уже созданном %buildroot%_bindir/ -- я обычно такие каталоги создаю пачкой заранее, а то установку файлов читать трудно) > %doc CHANGES DEINSTALL INSTALL README UPDATING USING src/atslogcat/readme_eng.txt src/atslogcat/readme_rus.txt include/atslog.conf.default Можно разбить: %doc CHANGES DEINSTALL INSTALL README UPDATING USING %doc src/atslogcat/readme_eng.txt src/atslogcat/readme_rus.txt %doc include/atslog.conf.default -- ---- WBR, Michael Shigorin <mike@altlinux.ru> ------ Linux.Kiev http://www.linux.kiev.ua/
next prev parent reply other threads:[~2005-02-16 13:10 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2005-02-16 11:59 [Comm] " Slava Dubrovskiy 2005-02-16 13:10 ` Michael Shigorin [this message] 2005-02-16 13:47 ` [Comm] " 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=20050216131049.GB30602@osdn.org.ua \ --to=mike@osdn.org.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