diff options
author | Stuart Herbert <stuart@gentoo.org> | 2003-08-26 13:34:55 +0000 |
---|---|---|
committer | Stuart Herbert <stuart@gentoo.org> | 2003-08-26 13:34:55 +0000 |
commit | 5a27dfd28ca88335516fc97fa0b26c2f56589ec3 (patch) | |
tree | ba9d6e6155442f8c28d52d2669cff2f7ced57626 /sys-apps/cloop | |
parent | Added experimental test for Linux kernel 2.4 (diff) | |
download | gentoo-2-5a27dfd28ca88335516fc97fa0b26c2f56589ec3.tar.gz gentoo-2-5a27dfd28ca88335516fc97fa0b26c2f56589ec3.tar.bz2 gentoo-2-5a27dfd28ca88335516fc97fa0b26c2f56589ec3.zip |
Added experimental test for Linux kernel 2.4
Diffstat (limited to 'sys-apps/cloop')
-rw-r--r-- | sys-apps/cloop/ChangeLog | 7 | ||||
-rw-r--r-- | sys-apps/cloop/Manifest | 4 | ||||
-rw-r--r-- | sys-apps/cloop/cloop-0.68.ebuild | 26 |
3 files changed, 28 insertions, 9 deletions
diff --git a/sys-apps/cloop/ChangeLog b/sys-apps/cloop/ChangeLog index da7d7053d9ac..ab4c08442c18 100644 --- a/sys-apps/cloop/ChangeLog +++ b/sys-apps/cloop/ChangeLog @@ -1,9 +1,12 @@ # ChangeLog for sys-apps/cloop # Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/cloop/ChangeLog,v 1.1 2003/08/25 20:33:17 stuart Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/cloop/ChangeLog,v 1.2 2003/08/26 13:34:47 stuart Exp $ + + 26 Aug 2003; stuart cloop-0.68.ebuild: + Added test to abort if Linux kernel != 2.4.x *cloop-1.0 (25 Aug 2003) - 25 Aug 2003; root <root@gentoo.org> cloop-0.68.ebuild, cloop-1.0.ebuild: + 25 Aug 2003; stuart <stuart@gentoo.org> cloop-0.68.ebuild, cloop-1.0.ebuild: Initial import diff --git a/sys-apps/cloop/Manifest b/sys-apps/cloop/Manifest index e153060bdbf5..cd6235bf2543 100644 --- a/sys-apps/cloop/Manifest +++ b/sys-apps/cloop/Manifest @@ -1,5 +1,5 @@ -MD5 027ae545c663e6e1b891c3bee5c713fa cloop-0.68.ebuild 1381 +MD5 2d078537e117fa80bb44f33d7c6f709d cloop-0.68.ebuild 1381 MD5 060ea54ec6b5cd528c7fc7cdcd8ccee7 cloop-1.0.ebuild 952 -MD5 9ec9c9bc644955a6edea38457874445d ChangeLog 422 +MD5 9ec91c542059e29f7cb6b2120c0708ef ChangeLog 422 MD5 35d772e2810697ea7458e58d4cd8dac1 files/digest-cloop-1.0 62 MD5 a2d81d30f83079df12804981e490bd8c files/digest-cloop-0.68 64 diff --git a/sys-apps/cloop/cloop-0.68.ebuild b/sys-apps/cloop/cloop-0.68.ebuild index 75c31664b7ca..350ee90ff8b0 100644 --- a/sys-apps/cloop/cloop-0.68.ebuild +++ b/sys-apps/cloop/cloop-0.68.ebuild @@ -1,6 +1,8 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/cloop/cloop-0.68.ebuild,v 1.1 2003/08/25 20:33:17 stuart Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/cloop/cloop-0.68.ebuild,v 1.2 2003/08/26 13:34:47 stuart Exp $ + +inherit kernel-mod MY_PV="${PV}-3" MY_P="${PN}_${MY_PV}" @@ -13,20 +15,31 @@ KEYWORDS="x86" IUSE="" DEPEND="" -KERNEL_DIR="${KERNEL_DIR:-/usr/src/linux}" - # Run-time dependencies, same as DEPEND if RDEPEND isn't defined: #RDEPEND="" S=${WORKDIR}/${PN}-${PV} +badversion () { + eerror "This version of cloop will only compile against Linux 2.4.x" + eerror "Please change where /usr/src/linux points to, or export the KERNEL_DIR" + eerror "environment variable like this:" + eerror + eerror " KERNEL_DIR=\"<dir>\" emerge cloop" + + die "cloop ${PV} only works with Linux 2.4" +} + src_compile() { + kernel-mod_getversion + + [ "$KV_MAJOR" = "2" ] && [ "$KV_MINOR" != "4" ] && badversion - emake KERNEL_DIR=${KERNEL_DIR} || die + kernel-mod_src_compile } src_install() { - insinto /lib/modules/misc + insinto /lib/modules/$KV_VERSION_FULL/misc doins cloop.o dobin create_compressed_fs compressloop doman debian/create_compressed_fs.1 @@ -35,5 +48,8 @@ src_install() { pkg_postinst () { einfo "Adding /dev/cloop device" + if [ -e /dev/cloop ] ; then + rm -f /dev/cloop + fi mknod /dev/cloop b 240 0 || die } |