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 | 3b51bbc222af820856935f180a58f288596efca5 (patch) | |
tree | a6ac8011852dc5496a6444d85555b2d0085beb0b /dev-dotnet | |
parent | Added ~sparc-fbsd keyword (diff) | |
download | gentoo-2-3b51bbc222af820856935f180a58f288596efca5.tar.gz gentoo-2-3b51bbc222af820856935f180a58f288596efca5.tar.bz2 gentoo-2-3b51bbc222af820856935f180a58f288596efca5.zip |
initial import of pe-format init script
(Portage version: 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..01e3158da459 --- /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 1142 RMD160 5fe684f5672503cc754aff5134d0a2ba7dc6702a SHA1 32cfba6f6e1a2a1f3c87ca08fe8b116855f7f94c SHA256 3403a7dfef87f8a739170936ad2639a79186869c4062d44e2059445b25b24c80 +MD5 83bae13280fa970d7bfbf2cbcce6463e files/pe-format.init 1142 +RMD160 5fe684f5672503cc754aff5134d0a2ba7dc6702a files/pe-format.init 1142 +SHA256 3403a7dfef87f8a739170936ad2639a79186869c4062d44e2059445b25b24c80 files/pe-format.init 1142 +EBUILD pe-format-0.ebuild 707 RMD160 cb710b82e9b97950e596fc32c530adab37f027e4 SHA1 4deb8396cb1cb5f2dab30abfee7978e6b4ec02a7 SHA256 879389260d7c3a794ac9afe47f3968acb6da4f0b3cca118096a08a6dd93dcab8 +MD5 a888a1a030a19684171e5d562784f0cd pe-format-0.ebuild 707 +RMD160 cb710b82e9b97950e596fc32c530adab37f027e4 pe-format-0.ebuild 707 +SHA256 879389260d7c3a794ac9afe47f3968acb6da4f0b3cca118096a08a6dd93dcab8 pe-format-0.ebuild 707 +MISC ChangeLog 319 RMD160 c146765146f513f1e2b01bbdcc2c989d25a47476 SHA1 67a49d79f7c8440d3436696b76dadfb2a241a977 SHA256 d3f15161326b249cdc45ac2f17e95741d1331f7720127bf0857f8360a4d44c5f +MD5 9dddb5c4883d7ff6b0280304647bbaba ChangeLog 319 +RMD160 c146765146f513f1e2b01bbdcc2c989d25a47476 ChangeLog 319 +SHA256 d3f15161326b249cdc45ac2f17e95741d1331f7720127bf0857f8360a4d44c5f ChangeLog 319 +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 +} |