removed extraneous kernel configuration dependency.
authorArmando Di Cianno <fafhrd@gentoo.org>
Mon, 1 Nov 2004 04:30:51 +0000 (04:30 +0000)
committerArmando Di Cianno <fafhrd@gentoo.org>
Mon, 1 Nov 2004 04:30:51 +0000 (04:30 +0000)
sys-apps/realtime-lsm/ChangeLog
sys-apps/realtime-lsm/Manifest
sys-apps/realtime-lsm/files/digest-realtime-lsm-0.8.3 [new file with mode: 0644]
sys-apps/realtime-lsm/realtime-lsm-0.8.2_pre20041022.ebuild
sys-apps/realtime-lsm/realtime-lsm-0.8.3.ebuild [new file with mode: 0644]

index 5444b6cf11fed41920ab3bfc0270ff8b7a3797f0..9682048d3130fd08ef85d7b1d1c3336dba360293 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for sys-apps/realtime-lsm
 # Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/realtime-lsm/ChangeLog,v 1.3 2004/10/23 06:38:20 fafhrd Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/realtime-lsm/ChangeLog,v 1.4 2004/11/01 04:30:51 fafhrd Exp $
+
+*realtime-lsm-0.8.3 (31 Oct 2004)
+
+  31 Oct 2004; Armando Di Cianno <fafhrd@gentoo.org>
+  realtime-lsm-0.8.2_pre20041022.ebuild, +realtime-lsm-0.8.3.ebuild:
+  Kernel config depend on SELinux support =y removed; version bump as well
 
   23 Oct 2004; Armando Di Cianno <fafhrd@gentoo.org> metadata.xml,
   realtime-lsm-0.8.2_pre20041022.ebuild:
index 08a6216fce8f1b077668fa4fe476ff8ad92fd1f6..01e80e30c3b3ed7ec8cfc386523d0e31e006dd2a 100644 (file)
@@ -1,5 +1,7 @@
+MD5 436848ad9b831d8a0851661b3ed611f1 ChangeLog 1147
 MD5 1b52e1c64bba7ce301fd90cafe5ed480 metadata.xml 1378
-MD5 ffdc9635890627e643c45434cd537a92 ChangeLog 914
-MD5 a08cf6ceb44b1236b343149830347bc4 realtime-lsm-0.8.2_pre20041022.ebuild 2874
+MD5 bc08c4a53b44df574117cfd8b09f798b realtime-lsm-0.8.2_pre20041022.ebuild 2524
+MD5 14bf21c4e2d1a0ae69771d87e1e4591b realtime-lsm-0.8.3.ebuild 2530
 MD5 c2a4f8c235326082b353136c6393b4f0 files/digest-realtime-lsm-0.8.2_pre20041022 81
 MD5 bd10dcd7b669d837d013107c02b4d17d files/kmisc.patch-0.8.2_pre20041022 679
+MD5 2ed4d388f1dcb7e905726ac4203fd666 files/digest-realtime-lsm-0.8.3 69
diff --git a/sys-apps/realtime-lsm/files/digest-realtime-lsm-0.8.3 b/sys-apps/realtime-lsm/files/digest-realtime-lsm-0.8.3
new file mode 100644 (file)
index 0000000..4e01c84
--- /dev/null
@@ -0,0 +1 @@
+MD5 b82409e407828c7865b8b429a869334c realtime-lsm-0.8.3.tar.gz 11430
index d4fa6fed6c518c5377ec82995df094013bf2cb1e..1f11b76b6f2362a0878f6ebe72f7417ecc339694 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/realtime-lsm/realtime-lsm-0.8.2_pre20041022.ebuild,v 1.3 2004/10/23 06:38:20 fafhrd Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/realtime-lsm/realtime-lsm-0.8.2_pre20041022.ebuild,v 1.4 2004/11/01 04:30:51 fafhrd Exp $
 
 inherit kernel-mod eutils
 
@@ -50,16 +50,6 @@ src_unpack() {
                die "Default Linux capabilities (security) not detected."
        fi
 
-       if ! kernel-mod_configoption_present SECURITY_SELINUX
-       then
-               eerror ""
-               eerror "${PN} requires that 'NSA SELinux Support' be compiled into your kernel."
-               eerror "In your .config: CONFIG_SECURITY_SELINUX=y"
-               eerror "Through 'make menuconfig': Security options-> [*] NSA SELinux Support"
-               eerror ""
-               die "NSA SELinux support not detected."
-       fi
-
        unpack ${A}
 
        kernel-mod_getversion
diff --git a/sys-apps/realtime-lsm/realtime-lsm-0.8.3.ebuild b/sys-apps/realtime-lsm/realtime-lsm-0.8.3.ebuild
new file mode 100644 (file)
index 0000000..b22c1f7
--- /dev/null
@@ -0,0 +1,90 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/realtime-lsm/realtime-lsm-0.8.3.ebuild,v 1.1 2004/11/01 04:30:51 fafhrd Exp $
+
+inherit kernel-mod eutils
+
+DESCRIPTION="Enable realtime capabilties via a security module."
+
+HOMEPAGE="http://www.sourceforge.net/projects/realtime-lsm/"
+SRC_URI="http://www.joq.us/realtime/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~ppc"
+
+IUSE=""
+DEPEND="virtual/linux-sources
+       sys-apps/module-init-tools"
+RDEPEND="
+       sys-apps/module-init-tools"
+
+src_unpack() {
+       if ! kernel-mod_configoption_present MODULES
+       then
+               eerror ""
+               eerror "${PN} requires support for modules in your kernel."
+               eerror "In your .config: CONFIG_MODULES=y"
+               eerror "Through 'make menuconfig': Loadable module support-> [*] Enable loadable module support"
+               eerror ""
+               die "Module support not detected."
+       fi
+
+       if ! kernel-mod_configoption_present SECURITY
+       then
+               eerror ""
+               eerror "${PN} requires you to compile in the 'different security models option."
+               eerror "In your .config: CONFIG_SECURITY=y"
+               eerror "Through 'make menuconfig': Security options-> [*] Enable different security models"
+               eerror ""
+               die "Security support not detected."
+       fi
+
+       if ! kernel-mod_configoption_module SECURITY_CAPABILITIES
+       then
+               eerror ""
+               eerror "${PN} requires that 'Default Linux Capabilities' be compiled as a module."
+               eerror "In your .config: CONFIG_SECURITY_CAPABILITIES=m"
+               eerror "Through 'make menuconfig': Security options-> <M> Default Linux Capabilties"
+               eerror ""
+               die "Default Linux capabilities (security) not detected."
+       fi
+
+       unpack ${A}
+
+       kernel-mod_getversion
+
+       if ! kernel-mod_is_2_6_kernel
+       then
+               die "A Linux kernel of version 2.6 is required."
+       fi
+
+       cd ${S}
+       epatch ${FILESDIR}/kmisc.patch-0.8.2_pre20041022
+}
+
+src_compile() {
+       set_arch_to_kernel
+
+       if [ "${ARCH}" == "ppc" ]; then
+               emake KSRC=${ROOT}/usr/src/linux all TOUT=${TMP}/tmp-gas-check || die "compilation stage failed"
+       else
+               # non ppc arches shouldn't need the TOUT weirdness
+               emake KSRC=${ROOT}/usr/src/linux all || die "compilation stage failed"
+       fi
+}
+
+src_install() {
+       set_arch_to_kernel
+
+       emake KSRC=${ROOT}/usr/src/linux KMISC=${D}/lib/modules/${KV}/extra install || die "module installation has failed."
+
+       dodoc AUTHORS ChangeLog README
+}
+
+pkg_postinst() {
+       einfo "Checking kernel module dependencies"
+       test -r "${ROOT}/usr/src/linux/System.map" && \
+               depmod -ae -F "${ROOT}/usr/src/linux/System.map" -b "${ROOT}" -r ${KV}
+}
+