From: Sergey Vlasov <vsu@altlinux.ru>
To: ALT Linux Kernel Development <devel-kernel@altlinux.ru>
Subject: Re: [d-kernel] [RFC] new macros for kernel-build-tools
Date: Fri, 18 Jun 2004 18:06:16 +0400
Message-ID: <20040618140616.GB2705@sirius.home> (raw)
In-Reply-To: <20040618103542.GD11601@basalt.office.altlinux.org>
[-- Attachment #1: Type: text/plain, Size: 1572 bytes --]
On Fri, Jun 18, 2004 at 02:35:42PM +0400, Dmitry V. Levin wrote:
> On Thu, Jun 17, 2004 at 07:13:07PM +0400, Sergey Vlasov wrote:
> > Hello!
> >
> > Предлагается добавить в kernel-build-tools следующие макросы:
> >
> > =======================================================================
> > # Standard %%post script for kernel-image-* packages
> > %post_kernel_image() \
> > /sbin/installkernel %1 \
> > %nil
>
> Просьба не использовать макросы-функции без необходимости.
>
> Например,
> %post_kernel_image /sbin/installkernel
> выглядит проще и понятней.
Хорошо, тогда так:
# Standard %%post script for kernel-image-* packages
%post_kernel_image /sbin/installkernel
# Standard %%preun script for kernel-image-* packages
%preun_kernel_image /sbin/modprobe loop > /dev/null 2>&1 ||: \
/sbin/installkernel --remove
# Standard %%post script for kernel-headers-* packages
%post_kernel_headers [ -x %_sbindir/adjust_kernel_headers ] && %_sbindir/adjust_kernel_headers ||:
# Standard %%postun script for kernel-headers-* packages
%postun_kernel_headers [ -x %_sbindir/adjust_kernel_headers ] && %_sbindir/adjust_kernel_headers ||:
# Standard %%post script for kernel-modules-* packages
%post_kernel_modules() [ -n "$DURING_INSTALL" ] || \
/sbin/depmod -a -F /boot/System.map-%1 %1 \
%nil
# Standard %%postun script for kernel-modules-* packages
%postun_kernel_modules() [ -n "$DURING_INSTALL" ] || \
[ ! -f /boot/System.map-%1 ] || \
/sbin/depmod -a -F /boot/System.map-%1 %1 \
%nil
Против этого есть возражения?
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2004-06-18 14:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-17 15:13 Sergey Vlasov
2004-06-17 15:15 ` Anton Farygin
2004-06-18 10:35 ` Dmitry V. Levin
2004-06-18 14:06 ` Sergey Vlasov [this message]
2004-06-21 12:14 ` Dmitry V. Levin
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=20040618140616.GB2705@sirius.home \
--to=vsu@altlinux.ru \
--cc=devel-kernel@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 kernel packages development
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel-kernel/0 devel-kernel/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 devel-kernel devel-kernel/ http://lore.altlinux.org/devel-kernel \
devel-kernel@altlinux.org devel-kernel@altlinux.ru devel-kernel@altlinux.com
public-inbox-index devel-kernel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel-kernel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git