From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Tue, 14 Oct 2008 16:20:43 +0400 From: "Dmitry V. Levin" To: ALT Devel discussion list Message-ID: <20081014122043.GA27661@wo.int.altlinux.org> Mail-Followup-To: ALT Devel discussion list References: <20081014100359.3A44A45D805B@ssh.git.int.altlinux.org> <20081014115559.GB23976@wo.int.altlinux.org> <48F48B7A.9020401@altlinux.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="2oS5YaxWCcQjTEyO" Content-Disposition: inline In-Reply-To: <48F48B7A.9020401@altlinux.org> X-fingerprint: FE4C 93AB E19A 2E4C CB5D 3E4E 7CAB E6AC 9E35 361E Subject: Re: [devel] [SCM] packages/kernel-build-tools: heads/master X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.10b3 Precedence: list Reply-To: ALT Linux Team development discussions List-Id: ALT Linux Team development discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Oct 2008 12:20:44 -0000 Archived-At: List-Archive: List-Post: --2oS5YaxWCcQjTEyO Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 14, 2008 at 04:07:22PM +0400, Konstantin A. Lepikhov wrote: > 14.10.2008 15:55, Dmitry V. Levin =D0=C9=DB=C5=D4: > > On Tue, Oct 14, 2008 at 02:03:59PM +0400, Konstantin A. Lepikhov wrote: > > =20 > >> Update of /people/lakostis/packages/kernel-build-tools.git > >> =20 > > [...] > > =20 > >> new file mode 100755 > >> index 0000000..66f7500 > >> --- /dev/null > >> +++ b/modalias.prov > >> @@ -0,0 +1,20 @@ > >> +#!/bin/sh -efu > >> +# > >> +# Copyright (c) 2008 Konstantin Lepikhov . > >> +#=20 > >> +# This program is free software; you can redistribute it and/or modify > >> +# it under the terms of the GNU General Public License as published by > >> +# the Free Software Foundation; either version 2 of the License, or > >> +# (at your option) any later version. > >> + > >> +. /usr/lib/rpm/functions > >> +. /usr/lib/rpm/find-package > >> + > >> +ModaliasReq() { > >> + local f t > > > > =F0=CF=D3=CB=CF=CC=D8=CB=D5 =D4=C9=D0 =CE=C5 =D0=D2=CF=D7=C5=D2=D1=D4= =C5=D3=D1, t =DA=C4=C5=D3=D8 =CC=C9=DB=CE=C9=CA. > > =20 > =ED=CF=D6=CE=CF =C9 =D4=C9=D0 =D0=D2=CF=D7=C5=D2=C9=D4=D8 ;) =F7=CF=D0=D2=CF=D3 =CE=C5 =D3=CF=D7=D3=C5=CD =D0=D2=C1=DA=C4=CE=D9=CA. =EE= =C1=D0=D2=C9=CD=C5=D2, =CB=C1=CB =CC=D5=DE=DB=C5 =CF=C2=D2=C1=C2=C1=D4=D9= =D7=C1=D4=D8 =D3=D3=D9=CC=CB=C9. > >> + for f in "$@"; do > >> + /sbin/modinfo -F alias "$f" |sed -e 's/.*/modalias:&/' -e 's/[,]/?/= g' > >> + done > >> +} > >> + > >> +ArgvFileAction ModaliasReq "$@" > >> diff --git a/modalias.prov.files b/modalias.prov.files > >> new file mode 100755 > >> index 0000000..b209954 > >> --- /dev/null > >> +++ b/modalias.prov.files > >> @@ -0,0 +1,11 @@ > >> +#!/bin/sh -efu > >> +buildroot=3D"${RPM_BUILD_ROOT-}"=20 > >> + > >> +while IFS=3D$'\t' read -r f t; do > >> + case "$f" in > >> + "$buildroot"/lib/modules/*/kernel/drivers/*.ko|"$buildroot"/lib/mod= ules/*/kernel/sound/*.ko) > >> + [ -z "$f" ] || echo "$f" ;; > >> + "$buildroot"/lib/modules/*/*/*.ko) > >> + [ -z "$f" ] || echo "$f" ;; > >> =20 > > > > =E9=DA=C2=D9=D4=CF=DE=CE=CF=D3=D4=D8: =D0=CF=D3=CC=C5=C4=CE=C9=CA case = =D7=D0=CF=CC=CE=C5 =D0=CF=CB=D2=D9=D7=C1=C5=D4 =D0=C5=D2=D7=D9=C5 =C4=D7=C1. =EB=D3=D4=C1=D4=C9, [ -z "$f" ] =D4=CF=D6=C5 =CC=C9=DB=CE=C9=CA, =D0=D2=CF= =D3=D4=CF=C7=CF echo =C4=CF=D3=D4=C1=D4=CF=DE=CE=CF. > =F4=CF=C7=C4=C1 =D7=CF=D0=D2=CF=D3 - =CB=C1=CB =DC=D4=CF =D3=C4=C5=CC=C1= =D4=D8 =D0=D2=C1=D7=C9=CC=D8=CE=CF, =C5=D3=CC=C9 =CE=D5=D6=CE=CF =D0=D2=CF= =D7=C5=D2=D1=D4=D8 =CB=C1=D4=C1=CC=CF=C7=C9 >=20 > $buildroot"/lib/modules//kernel/drivers/*.ko|"$buildroot"/lib/modul= es//kernel/sound/*.ko >=20 > =C9=20 >=20 > $buildroot"/lib/modules//<=D3=D4=D2=CF=C7=CF =CF=C4=C9=CE =D5=D2=CF= =D7=C5=CE=D8 =C9 =CE=C5 kernel>/*.ko =E5=D3=CC=C9 =D0=D2=CF=C4=CF=CC=D6=C1=D4=D8 =D3=D4=C9=CC=C9=D3=D4=C9=CB=D5 = case/esac, =D4=CF=D6=CE=CF =D4=C1=CB: "$buildroot"/lib/modules/*/kernel/drivers/*.ko|"$buildroot"/lib/modules/*/k= ernel/sound/*.ko) echo "$f" ;; "$buildroot"/lib/modules/*/kernel/*|"$buildroot"/lib/modules/*/*/*/*.ko) continue ;; "$buildroot"/lib/modules/*/*/*.ko) echo "$f" ;; =E1 =D3=D4=CF=C9=D4 =CC=C9 =D4=C1=CB =D3=D5=D6=C1=D4=D8 =CD=CE=CF=D6=C5=D3= =D4=D7=CF =CF=C2=D2=C1=C2=C1=D4=D9=D7=C1=C5=CD=D9=C8 .ko-=C6=C1=CA=CC=CF=D7? =F2=C1=DA=D7=C5 =D7 =C4=D2=D5=C7=C9=C8 =CD=C5=D3=D4=C1=C8 depmod/modprobe = =C9=C8 =CE=C5 =CE=C1=CA=C4=D5=D4? --=20 ldv --2oS5YaxWCcQjTEyO Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkj0jpsACgkQfKvmrJ41Nh4YHwCeIN244TnOh3UWV4oPss4sfLCr ywYAoJz+j68Ha8Amyqfbe2D+UYHuKyEJ =EYHd -----END PGP SIGNATURE----- --2oS5YaxWCcQjTEyO--