diff options
-rw-r--r-- | media-sound/alsa-driver/ChangeLog | 9 | ||||
-rw-r--r-- | media-sound/alsa-driver/alsa-driver-0.5.11.ebuild | 31 | ||||
-rw-r--r-- | media-sound/alsa-driver/alsa-driver-0.5.12a.ebuild | 31 | ||||
-rw-r--r-- | media-sound/alsa-driver/alsa-driver-0.9.0_beta10.ebuild | 31 |
4 files changed, 52 insertions, 50 deletions
diff --git a/media-sound/alsa-driver/ChangeLog b/media-sound/alsa-driver/ChangeLog index 1c9e566bd12b..4a7756394c2d 100644 --- a/media-sound/alsa-driver/ChangeLog +++ b/media-sound/alsa-driver/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for media-sound/alsa-driver # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL -# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-driver/ChangeLog,v 1.2 2002/02/04 04:53:19 tod Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-driver/ChangeLog,v 1.3 2002/02/09 01:44:32 woodchip Exp $ + + 8 Feb 2002; Donny Davies <woodchip@gentoo.org> ChangeLog, + alsa-driver-0.5.11.ebuild, alsa-driver-0.5.12a.ebuild, + alsa-driver-0.9.0_beta10.ebuild: + + Moved the code looking for the kernel sources into pkg_setup(). + Closes bug #273. No revisions bumped, mostly a cosmetic change. *alsa-driver-0.9.0_beta10 (3 Feb 2002) diff --git a/media-sound/alsa-driver/alsa-driver-0.5.11.ebuild b/media-sound/alsa-driver/alsa-driver-0.5.11.ebuild index f81a6d693ac3..dfaa78621fe4 100644 --- a/media-sound/alsa-driver/alsa-driver-0.5.11.ebuild +++ b/media-sound/alsa-driver/alsa-driver-0.5.11.ebuild @@ -1,7 +1,7 @@ # Copyright 1999-2001 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author Daniel Robbins <drobbins@gentoo.org> -# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-driver/alsa-driver-0.5.11.ebuild,v 1.4 2001/08/08 09:50:26 hallski Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-driver/alsa-driver-0.5.11.ebuild,v 1.5 2002/02/09 01:44:32 woodchip Exp $ S=${WORKDIR}/${P} DESCRIPTION="Advanced Linux Sound Architecture modules" @@ -11,18 +11,20 @@ HOMEPAGE="http://www.alsa-project.org" #virtual/glibc should depend on specific kernel headers DEPEND="sys-devel/autoconf virtual/glibc" PROVIDE="virtual/alsa" +KV="" -#might be good to roll this into Portage at some point. -KV=`readlink /usr/src/linux` -if [ $? -ne 0 ] -then - echo - echo "/usr/src/linux symlink does not exist; cannot continue." - echo - exit 1 -fi -#alsa-driver will compile modules for the kernel pointed to by /usr/src/linux -KV=${KV/linux-/} +pkg_setup() { + KV=`readlink /usr/src/linux` + if [ $? -ne 0 ] ; then + echo + echo "/usr/src/linux symlink does not exist; cannot continue." + echo + die + else + #alsa-driver will compile modules for the kernel pointed to by /usr/src/linux + KV=${KV/linux-/} + fi +} src_unpack() { unpack ${A} @@ -52,8 +54,5 @@ src_install () { } pkg_postinst() { - if [ -e /sbin/update-modules ] - then - /sbin/update-modules - fi + /usr/sbin/update-modules || return 0 } diff --git a/media-sound/alsa-driver/alsa-driver-0.5.12a.ebuild b/media-sound/alsa-driver/alsa-driver-0.5.12a.ebuild index e87ac23ff47a..3ed23d7124b7 100644 --- a/media-sound/alsa-driver/alsa-driver-0.5.12a.ebuild +++ b/media-sound/alsa-driver/alsa-driver-0.5.12a.ebuild @@ -1,7 +1,7 @@ # Copyright 1999-2001 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author Daniel Robbins <drobbins@gentoo.org> -# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-driver/alsa-driver-0.5.12a.ebuild,v 1.2 2002/01/02 22:00:27 woodchip Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-driver/alsa-driver-0.5.12a.ebuild,v 1.3 2002/02/09 01:44:32 woodchip Exp $ S=${WORKDIR}/${P} DESCRIPTION="Advanced Linux Sound Architecture modules" @@ -11,18 +11,20 @@ HOMEPAGE="http://www.alsa-project.org" #virtual/glibc should depend on specific kernel headers DEPEND="sys-devel/autoconf virtual/glibc" PROVIDE="virtual/alsa" +KV="" -#might be good to roll this into Portage at some point. -KV=`readlink /usr/src/linux` -if [ $? -ne 0 ] -then - echo - echo "/usr/src/linux symlink does not exist; cannot continue." - echo - exit 1 -fi -#alsa-driver will compile modules for the kernel pointed to by /usr/src/linux -KV=${KV/linux-/} +pkg_setup() { + KV=`readlink /usr/src/linux` + if [ $? -ne 0 ] ; then + echo + echo "/usr/src/linux symlink does not exist; cannot continue." + echo + die + else + #alsa-driver will compile modules for the kernel pointed to by /usr/src/linux + KV=${KV/linux-/} + fi +} src_unpack() { unpack ${A} @@ -51,8 +53,5 @@ src_install () { } pkg_postinst() { - if [ -e /sbin/update-modules ] - then - /sbin/update-modules - fi + /usr/sbin/update-modules || return 0 } diff --git a/media-sound/alsa-driver/alsa-driver-0.9.0_beta10.ebuild b/media-sound/alsa-driver/alsa-driver-0.9.0_beta10.ebuild index 5966b05ab5d9..90241f27d352 100644 --- a/media-sound/alsa-driver/alsa-driver-0.9.0_beta10.ebuild +++ b/media-sound/alsa-driver/alsa-driver-0.9.0_beta10.ebuild @@ -11,6 +11,7 @@ #transform P to match tarball versioning MYPV=${PV/_beta/beta} MYP="${PN}-${MYPV}" +KV="" S=${WORKDIR}/${MYP} @@ -24,17 +25,18 @@ HOMEPAGE="http://www.alsa-project.org" DEPEND="sys-devel/autoconf virtual/glibc" PROVIDE="virtual/alsa" -#might be good to roll this into Portage at some point. -KV=`readlink /usr/src/linux` -if [ $? -ne 0 ] -then - echo - echo "/usr/src/linux symlink does not exist; cannot continue." - echo - exit 1 -fi -#alsa-driver will compile modules for the kernel pointed to by /usr/src/linux -KV=${KV/linux-/} +pkg_setup() { + KV=`readlink /usr/src/linux` + if [ $? -ne 0 ] ; then + echo + echo "/usr/src/linux symlink does not exist; cannot continue." + echo + die + else + #alsa-driver will compile modules for the kernel pointed to by /usr/src/linux + KV=${KV/linux-/} + fi +} src_compile() { @@ -69,10 +71,5 @@ src_install () { } pkg_postinst () { - - if [ -e /sbin/update-modules ] - then - /sbin/update-modules - fi - + /usr/sbin/update-modules || return 0 } |