diff options
author | Chris PeBenito <pebenito@gentoo.org> | 2003-08-07 19:59:37 +0000 |
---|---|---|
committer | Chris PeBenito <pebenito@gentoo.org> | 2003-08-07 19:59:37 +0000 |
commit | 96e516e112d37c5902b45a9cae156c5df1d12b23 (patch) | |
tree | 34661ca31c8f134501d5228927546d18a5571e17 /sys-apps | |
parent | initial commit (diff) | |
download | gentoo-2-96e516e112d37c5902b45a9cae156c5df1d12b23.tar.gz gentoo-2-96e516e112d37c5902b45a9cae156c5df1d12b23.tar.bz2 gentoo-2-96e516e112d37c5902b45a9cae156c5df1d12b23.zip |
initial commit
Diffstat (limited to 'sys-apps')
-rw-r--r-- | sys-apps/mkinitrd/ChangeLog | 10 | ||||
-rw-r--r-- | sys-apps/mkinitrd/Manifest | 4 | ||||
-rw-r--r-- | sys-apps/mkinitrd/files/digest-mkinitrd-3.5.7 | 1 | ||||
-rw-r--r-- | sys-apps/mkinitrd/files/mkinitrd-selinux.diff | 28 | ||||
-rw-r--r-- | sys-apps/mkinitrd/metadata.xml | 9 | ||||
-rw-r--r-- | sys-apps/mkinitrd/mkinitrd-3.5.7.ebuild | 40 |
6 files changed, 91 insertions, 1 deletions
diff --git a/sys-apps/mkinitrd/ChangeLog b/sys-apps/mkinitrd/ChangeLog new file mode 100644 index 000000000000..0e49aa7913c8 --- /dev/null +++ b/sys-apps/mkinitrd/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for sys-apps/mkinitrd +# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/mkinitrd/ChangeLog,v 1.1 2003/08/07 19:59:33 pebenito Exp $ + +*mkinitrd-3.5.7 (07 Aug 2003) + + 07 Aug 2003; Chris PeBenito <pebenito@gentoo.org> metadata.xml, + mkinitrd-3.5.7.ebuild, files/mkinitrd-selinux.diff: + Initial commit + diff --git a/sys-apps/mkinitrd/Manifest b/sys-apps/mkinitrd/Manifest index 5b46b60f572f..b26f84d8a282 100644 --- a/sys-apps/mkinitrd/Manifest +++ b/sys-apps/mkinitrd/Manifest @@ -1,3 +1,5 @@ -MD5 59a8578dfc3ae372e9300bc1dd9cba20 mkinitrd-3.5.7.ebuild 920 +MD5 471fbf2ab0edd061454bd69f91298500 mkinitrd-3.5.7.ebuild 880 +MD5 d9096ea45a0ff5c79d847301029fa25a metadata.xml 301 +MD5 c61605852de2d6ba7ef5829cefa70c49 ChangeLog 387 MD5 1a8259233cb009f44a8fe20a8aa828b5 files/digest-mkinitrd-3.5.7 66 MD5 0bc4fe62070fcfc54254d0e8c636ef32 files/mkinitrd-selinux.diff 1007 diff --git a/sys-apps/mkinitrd/files/digest-mkinitrd-3.5.7 b/sys-apps/mkinitrd/files/digest-mkinitrd-3.5.7 new file mode 100644 index 000000000000..23b2306d4721 --- /dev/null +++ b/sys-apps/mkinitrd/files/digest-mkinitrd-3.5.7 @@ -0,0 +1 @@ +MD5 42d10a781554d8fda18b321f254e78c5 mkinitrd-3.5.7.tar.bz2 53233 diff --git a/sys-apps/mkinitrd/files/mkinitrd-selinux.diff b/sys-apps/mkinitrd/files/mkinitrd-selinux.diff new file mode 100644 index 000000000000..1eeeca5eda2f --- /dev/null +++ b/sys-apps/mkinitrd/files/mkinitrd-selinux.diff @@ -0,0 +1,28 @@ +diff -urN mkinitrd-3.5.7.orig/mkinitrd mkinitrd-3.5.7/mkinitrd +--- mkinitrd-3.5.7.orig/mkinitrd 2003-07-09 18:26:02.000000000 -0500 ++++ mkinitrd-3.5.7/mkinitrd 2003-08-05 17:00:27.000000000 -0500 +@@ -513,6 +513,12 @@ + inst /sbin/insmod.static "$MNTIMAGE/bin/insmod" + ln -s /sbin/nash $MNTIMAGE/sbin/modprobe + ++# Binary policy file and load_policy utility for loading it. ++mkdir -p $MNTIMAGE/selinux ++mkdir -p $MNTIMAGE/etc/security/selinux ++inst /etc/security/selinux/policy.15 "$MNTIMAGE/etc/security/selinux/policy.15" ++inst /usr/sbin/load_policy "$MNTIMAGE/bin/load_policy" ++ + for MODULE in $MODULES; do + cp $verbose -a /lib/modules/$kernel/$MODULE $MNTIMAGE/lib + done +@@ -567,6 +573,11 @@ + fi + done + ++echo "echo Loading policy" >> $RCFILE ++echo "mount -t selinuxfs none /selinux" >> $RCFILE ++echo "/bin/load_policy /etc/security/selinux/policy.15" >> $RCFILE ++echo "umount /selinux" >> $RCFILE ++ + echo "echo Mounting /proc filesystem" >> $RCFILE + echo "mount -t proc /proc /proc" >> $RCFILE + diff --git a/sys-apps/mkinitrd/metadata.xml b/sys-apps/mkinitrd/metadata.xml new file mode 100644 index 000000000000..76105013afc6 --- /dev/null +++ b/sys-apps/mkinitrd/metadata.xml @@ -0,0 +1,9 @@ +<pkgmetadata> +<herd>no-herd</herd> +<maintainer> + <email>pebenito@gentoo.org</email> + <name>Chris PeBenito</name> + <description>SELinux patch maintainer</description> +</maintainer> +<longdescription>Mkinitrd creates initial ramdisks for use when the kernel first loads.</longdescription> +</pkgmetadata> diff --git a/sys-apps/mkinitrd/mkinitrd-3.5.7.ebuild b/sys-apps/mkinitrd/mkinitrd-3.5.7.ebuild new file mode 100644 index 000000000000..a71d0d297898 --- /dev/null +++ b/sys-apps/mkinitrd/mkinitrd-3.5.7.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/mkinitrd/mkinitrd-3.5.7.ebuild,v 1.1 2003/08/07 19:59:33 pebenito Exp $ + +IUSE="selinux" + +DESCRIPTION="Tools for creating initrd images" +HOMEPAGE="http://www.redhat.com" +SRC_URI="mirror://gentoo/${P}.tar.bz2" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~ppc" + +DEPEND="dev-libs/popt + x86? ( dev-libs/dietlibc )" + +RDEPEND="app-shells/bash" + +S=${WORKDIR}/${P} + +src_unpack() { + unpack ${A} + + cd ${S} + use selinux && epatch ${FILESDIR}/mkinitrd-selinux.diff +} + +src_compile() { + cd ${S}/nash + emake || die "nash compile failed." + + cd ${S}/grubby + emake || die "grubby compile failed." +} + +src_install() { + into / + dosbin ${S}/grubby/grubby ${S}/nash/nash ${S}/mkinitrd + doman ${S}/grubby/grubby.8 ${S}/nash/nash.8 ${S}/mkinitrd.8 +} |