From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Tue, 14 Oct 2008 15:55:59 +0400 From: "Dmitry V. Levin" To: ALT Devel discussion list Message-ID: <20081014115559.GB23976@wo.int.altlinux.org> Mail-Followup-To: ALT Devel discussion list References: <20081014100359.3A44A45D805B@ssh.git.int.altlinux.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="QTprm0S8XgL7H0Dt" Content-Disposition: inline In-Reply-To: <20081014100359.3A44A45D805B@ssh.git.int.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 11:55:59 -0000 Archived-At: List-Archive: List-Post: --QTprm0S8XgL7H0Dt Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 14, 2008 at 02:03:59PM +0400, Konstantin A. Lepikhov wrote: > Update of /people/lakostis/packages/kernel-build-tools.git [...] > 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. > + 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/module= s/*/kernel/sound/*.ko) > + [ -z "$f" ] || echo "$f" ;; > + "$buildroot"/lib/modules/*/*/*.ko) > + [ -z "$f" ] || echo "$f" ;; =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. > + esac > +done --=20 ldv --QTprm0S8XgL7H0Dt Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkj0iM4ACgkQfKvmrJ41Nh41ugCgsow3SLpWFDJ4Jd7cY6geUlbV RUkAnjar7m4MquQ7i741zD/m6CX4GUX4 =+ZTZ -----END PGP SIGNATURE----- --QTprm0S8XgL7H0Dt--