Revision bump to not use kmod.eclass and config-kernel.
authorPeter Johanson <latexer@gentoo.org>
Wed, 13 Oct 2004 00:51:10 +0000 (00:51 +0000)
committerPeter Johanson <latexer@gentoo.org>
Wed, 13 Oct 2004 00:51:10 +0000 (00:51 +0000)
sys-fs/submount/ChangeLog
sys-fs/submount/Manifest
sys-fs/submount/files/digest-submount-0.9-r1 [new file with mode: 0644]
sys-fs/submount/submount-0.9-r1.ebuild [new file with mode: 0644]

index b4e49a3c79cc46dca7d716859a0c8e6a7d832490..dec5dbf234f6f43d1b63423a94fe15ddcbcdd004 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for sys-fs/submount
 # Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/submount/ChangeLog,v 1.6 2004/09/27 19:48:24 dsd Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/submount/ChangeLog,v 1.7 2004/10/13 00:51:10 latexer Exp $
+
+*submount-0.9-r1 (12 Oct 2004)
+
+  12 Oct 2004; <peter@gentoo.org> +submount-0.9-r1.ebuild:
+  Revision bump that doesn't use deprecated kmod + config-kernel. Needs quick
+  testing so it can be marked x86 and ppc and then we can un package.mask this.
 
   27 Sep 2004; Daniel Drake <dsd@gentoo.org> submount-0.9.ebuild:
   Fix unpack on 2.4 based systems
index 783eb6cf344653e214373e9dc1c278437716e1a1..f34b6c2b06ae8a165f36e8ab335749edfbfe69be 100644 (file)
@@ -1,4 +1,6 @@
 MD5 6097e401c04aa5d24eccd4a88d52d623 submount-0.9.ebuild 1375
-MD5 d36532b852e3e576f009b41a7215d955 ChangeLog 725
+MD5 0c2bfdc5b0b668ba9bfbbc6534806821 submount-0.9-r1.ebuild 1739
+MD5 a1f08696d103c0df6a4515b831c379fb ChangeLog 979
 MD5 c3aedbfe00ee1a825a9d5760b4b4271e metadata.xml 316
+MD5 f4303204067c19d5a000a8b0eac1213c files/digest-submount-0.9-r1 63
 MD5 f4303204067c19d5a000a8b0eac1213c files/digest-submount-0.9 63
diff --git a/sys-fs/submount/files/digest-submount-0.9-r1 b/sys-fs/submount/files/digest-submount-0.9-r1
new file mode 100644 (file)
index 0000000..7d8dd43
--- /dev/null
@@ -0,0 +1 @@
+MD5 f6abac328dbfb265eff18561065575c6 submount-0.9.tar.gz 75476
diff --git a/sys-fs/submount/submount-0.9-r1.ebuild b/sys-fs/submount/submount-0.9-r1.ebuild
new file mode 100644 (file)
index 0000000..da113f2
--- /dev/null
@@ -0,0 +1,94 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/submount/submount-0.9-r1.ebuild,v 1.1 2004/10/13 00:51:10 latexer Exp $
+
+inherit eutils kernel-mod
+
+IUSE=""
+
+DESCRIPTION="Submount is a new attempt to solve the removable media problem for Linux."
+HOMEPAGE="http://submount.sourceforge.net/"
+
+DEPEND="virtual/linux-sources"
+
+SLOT="${KV}"
+
+LICENSE="GPL-2"
+KEYWORDS="~x86 ~alpha ~ppc ~sparc ~amd64"
+
+if [ "${KV_MINOR}" == "4" ]
+then
+       EXTRA_V="-2.4"
+else
+       EXTRA_V=""
+       RESTRICT=nouserpriv
+fi
+
+MY_P="${PN}${EXTRA_V}-${PV}"
+S="${WORKDIR}/${MY_P}"
+KMOD_SOURCES="${MY_P}.tar.gz"
+
+SRC_URI="mirror://sourceforge/${PN}/${KMOD_SOURCES}"
+
+src_unpack()
+{
+       unpack ${A}
+       cd ${S}
+       kernel-mod_getversion
+
+       if [ "${KV_MINOR}" -gt 5 ] && [ "${KV_PATCH}" -gt 5 ]
+       then
+               sed -i "s:SUBDIRS=:M=:" \
+                       ${S}/subfs${EXTRA_V}-${PV}/Makefile
+       else
+               eerror "This version of submount requires a kernel of 2.6.6 or greater"
+               die "Too old of a kernel found."
+       fi
+}
+
+src_compile ()
+{
+       cd ${S}/subfs${EXTRA_V}-${PV}
+       set_arch_to_kernel
+       emake KDIR=${ROOT}/usr/src/linux || die
+       set_arch_to_portage
+
+       cd ${S}/submountd${EXTRA_V}-${PV}
+       econf \
+       --sbindir=/sbin \
+       || die "Confugure error"
+
+       make || die "Make error"
+}
+
+src_install ()
+{
+       local KV_OBJ
+       if [ "${KV_MINOR}" -gt 4 ]
+       then
+               KV_OBJ=ko
+       else
+               KV_OBJ=o
+       fi
+
+       cd ${S}/submountd${EXTRA_V}-${PV}
+       make install DESTDIR=${D} mandir=/usr/share/man
+
+       cd ${S}/subfs${EXTRA_V}-${PV}
+
+       insinto /lib/modules/${KV}/fs/subfs
+
+       doins subfs.$KV_OBJ
+
+       cd ${S}
+       ./rename-docs ${PV}
+       dodoc README* COPYING INSTALL*
+}
+
+pkg_postinst ()
+{
+       if [ "${ROOT}" = / ]
+       then
+       [ -x /usr/sbin/update-modules ] && /usr/sbin/update-modules
+       fi
+}