diff options
author | Saleem Abdulrasool <compnerd@gentoo.org> | 2006-12-21 00:53:52 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@gentoo.org> | 2006-12-21 00:53:52 +0000 |
commit | 4b1c315f77a3be28fb9fc5d2dab0572da213c847 (patch) | |
tree | 0a32141086b41d87f4afc7d5589c0b17ce2cf900 /dev-dotnet | |
parent | Added ~sparc-fbsd keyword (diff) | |
download | historical-4b1c315f77a3be28fb9fc5d2dab0572da213c847.tar.gz historical-4b1c315f77a3be28fb9fc5d2dab0572da213c847.tar.bz2 historical-4b1c315f77a3be28fb9fc5d2dab0572da213c847.zip |
initial import of pe-format init script
Package-Manager: portage-2.1.2_rc3-r7
Diffstat (limited to 'dev-dotnet')
-rw-r--r-- | dev-dotnet/pe-format/ChangeLog | 11 | ||||
-rw-r--r-- | dev-dotnet/pe-format/Manifest | 23 | ||||
-rw-r--r-- | dev-dotnet/pe-format/files/digest-pe-format-0 | 0 | ||||
-rw-r--r-- | dev-dotnet/pe-format/files/pe-format.conf | 11 | ||||
-rw-r--r-- | dev-dotnet/pe-format/files/pe-format.init | 50 | ||||
-rw-r--r-- | dev-dotnet/pe-format/metadata.xml | 12 | ||||
-rw-r--r-- | dev-dotnet/pe-format/pe-format-0.ebuild | 35 |
7 files changed, 142 insertions, 0 deletions
diff --git a/dev-dotnet/pe-format/ChangeLog b/dev-dotnet/pe-format/ChangeLog new file mode 100644 index 000000000000..7ad4c4c9484d --- /dev/null +++ b/dev-dotnet/pe-format/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for dev-dotnet/pe-format +# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-dotnet/pe-format/ChangeLog,v 1.1 2006/12/21 00:53:52 compnerd Exp $ + +*pe-format-0 (21 Dec 2006) + + 21 Dec 2006; Saleem Abdulrasool <compnerd@gentoo.org> + +files/pe-format.conf, +files/pe-format.init, +metadata.xml, + +pe-format-0.ebuild: + Initial import of ebuild + diff --git a/dev-dotnet/pe-format/Manifest b/dev-dotnet/pe-format/Manifest new file mode 100644 index 000000000000..a051954182ff --- /dev/null +++ b/dev-dotnet/pe-format/Manifest @@ -0,0 +1,23 @@ +AUX pe-format.conf 377 RMD160 08fc930c1bfd7e34ba5b3dedb64563b3f7957aa2 SHA1 e4abf6ab9611ce7e1e2244a9caaf45e58cc64655 SHA256 e01a56fe5e39eb13fec642bd0803fbf279831b4139555ea18aa4156d98759a89 +MD5 e7e06e853e28327d824f5fd7b5fb39a7 files/pe-format.conf 377 +RMD160 08fc930c1bfd7e34ba5b3dedb64563b3f7957aa2 files/pe-format.conf 377 +SHA256 e01a56fe5e39eb13fec642bd0803fbf279831b4139555ea18aa4156d98759a89 files/pe-format.conf 377 +AUX pe-format.init 1247 RMD160 3c6b184d52647fa5cc023372d0295b3b3c47b847 SHA1 dba1fb333a7a47e304ebbf8750bb3fd6a4119e39 SHA256 076315ba14a225306cfce16de0cfc417c6e901e2b2a72510d1bca23b92a60dd8 +MD5 36c8f12d1f5a04006a1b7e9e03722ae6 files/pe-format.init 1247 +RMD160 3c6b184d52647fa5cc023372d0295b3b3c47b847 files/pe-format.init 1247 +SHA256 076315ba14a225306cfce16de0cfc417c6e901e2b2a72510d1bca23b92a60dd8 files/pe-format.init 1247 +EBUILD pe-format-0.ebuild 810 RMD160 304e1d3d4ad437c89e6eb4c12939f6ac98c565f4 SHA1 7d4bb7588f90cdb5b5ccee551bbb19b5da625d52 SHA256 25db4cdb2041cb26b4b4ab7cb546d2383c48fcc4e960921218a041294f68e64a +MD5 6183dae55549d51dc75860dd4ef66b70 pe-format-0.ebuild 810 +RMD160 304e1d3d4ad437c89e6eb4c12939f6ac98c565f4 pe-format-0.ebuild 810 +SHA256 25db4cdb2041cb26b4b4ab7cb546d2383c48fcc4e960921218a041294f68e64a pe-format-0.ebuild 810 +MISC ChangeLog 413 RMD160 c2024c76a22f56d672645ae5576bb934262cbf76 SHA1 212d2414b31eb068df3c337c42fbbc4351bb5e63 SHA256 77f5a84f0d8179f3ab9a1c63b87b66a1c297cbd8cff6df245118a98f2e5f222c +MD5 ebdd72010f9dc5d078dccde525f8c476 ChangeLog 413 +RMD160 c2024c76a22f56d672645ae5576bb934262cbf76 ChangeLog 413 +SHA256 77f5a84f0d8179f3ab9a1c63b87b66a1c297cbd8cff6df245118a98f2e5f222c ChangeLog 413 +MISC metadata.xml 310 RMD160 c764dad83b394da6654ab875b447278ca9285698 SHA1 30575c0ce433cf190446b8d5df46c08baba2c8b8 SHA256 119c5927a59f0b7a3c495c8cbdb19b4f1ab881c049ac88a045df921485adabf1 +MD5 ac2e938f6e780bfe666577d0dcd0cfb2 metadata.xml 310 +RMD160 c764dad83b394da6654ab875b447278ca9285698 metadata.xml 310 +SHA256 119c5927a59f0b7a3c495c8cbdb19b4f1ab881c049ac88a045df921485adabf1 metadata.xml 310 +MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-pe-format-0 0 +RMD160 9c1185a5c5e9fc54612808977ee8f548b2258d31 files/digest-pe-format-0 0 +SHA256 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 files/digest-pe-format-0 0 diff --git a/dev-dotnet/pe-format/files/digest-pe-format-0 b/dev-dotnet/pe-format/files/digest-pe-format-0 new file mode 100644 index 000000000000..e69de29bb2d1 --- /dev/null +++ b/dev-dotnet/pe-format/files/digest-pe-format-0 diff --git a/dev-dotnet/pe-format/files/pe-format.conf b/dev-dotnet/pe-format/files/pe-format.conf new file mode 100644 index 000000000000..b432728b0869 --- /dev/null +++ b/dev-dotnet/pe-format/files/pe-format.conf @@ -0,0 +1,11 @@ +# /etc/conf.d/pe-format + +# Define what to register with PE binaries so you can avoid running them with +# "<.NET runtime> program.exe" +# NOTE: In order to get this working you need to 'chmod +x' your program + +# CLR determines the executor for the PE binaries. +# mono - Use the mono runtime engine 'mono' +# ilrun - Use the DotGNU Portable .NET runtime engine 'ilrun' + +CLR="mono" diff --git a/dev-dotnet/pe-format/files/pe-format.init b/dev-dotnet/pe-format/files/pe-format.init new file mode 100644 index 000000000000..74735a40926a --- /dev/null +++ b/dev-dotnet/pe-format/files/pe-format.init @@ -0,0 +1,50 @@ +#!/sbin/runscript +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-dotnet/pe-format/files/pe-format.init,v 1.1 2006/12/21 00:53:52 compnerd Exp $ + +start() { + ebegin "Registering PE binaries with ${CLR}" + + if [[ ! -d /proc/sys/fs/binfmt_misc ]] ; then + eerror "You need support for \"misc binaries\" in your kernel!" + exit 1 + fi + + if [[ $(mount | grep -c binfmt_misc) -eq 0 ]] ; then + mount -t binfmt_misc binfmt_misc /proc/sys/fs/binfmt_misc &> /dev/null + local result=$? + + if [[ $result -ne 0 ]] ; then + eend $result + exit $result + fi + fi + + case "${CLR}" in + mono) + echo ':PE:M::MZ::/usr/bin/mono:' > /proc/sys/fs/binfmt_misc/register + eend 0 + ;; + ilrun) + echo ':PE:M::MZ::/usr/bin/ilrun:' > /proc/sys/fs/binfmt_misc/register + eend 0 + ;; + *) + eerror 'Please enter a valid option in /etc/conf.d/dotnet' + eend 1 + ;; + esac +} + +stop() { + ebegin "Unregistering PE binaries" + + if [[ -f /proc/sys/fs/binfmt_misc/PE ]] ; then + echo '-1' > /proc/sys/fs/binfmt_misc/PE + fi + + eend $? +} + +# vim: ts=4 : diff --git a/dev-dotnet/pe-format/metadata.xml b/dev-dotnet/pe-format/metadata.xml new file mode 100644 index 000000000000..b3b7749b4151 --- /dev/null +++ b/dev-dotnet/pe-format/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>dotnet</herd> + <maintainer> + <email>compnerd@gentoo.org</email> + <name>Saleem Abdulrasool</name> + </maintainer> + <longdescription lang="en"> + </longdescription> +</pkgmetadata> + diff --git a/dev-dotnet/pe-format/pe-format-0.ebuild b/dev-dotnet/pe-format/pe-format-0.ebuild new file mode 100644 index 000000000000..765b95c3bddc --- /dev/null +++ b/dev-dotnet/pe-format/pe-format-0.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-dotnet/pe-format/pe-format-0.ebuild,v 1.1 2006/12/21 00:53:52 compnerd Exp $ + +inherit eutils + +DESCRIPTION="PE Format binfmt_misc entry" +HOMEPAGE="http://www.kernel.org/" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +RDEPEND="|| ( dev-lang/mono dev-dotnet/pnet )" + +src_compile() { + true; +} + +src_install() { + newinitd ${FILESDIR}/pe-format.init pe-format || die "failed to install init script" + newconfd ${FILESDIR}/pe-format.conf pe-format || die "failed to install config" +} + +pkg_postinst() { + ebeep 5 + + einfo + ewarn "Using this script will confuse applications which are designed to use PE" + ewarn "applications such as Wine and Cedega." + einfo + + epause 5 +} |