summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2009-07-28 10:43:54 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2009-07-28 10:43:54 +0000
commitd26190280b46830b257984d63e5892f383092ce4 (patch)
treeaebcf0cd75ec40fb4818e5764b43ca15361e0032 /dev-dotnet
parentRdepend on krosspython. Per bug #244649. Force due to notfully updated cvs (diff)
downloadhistorical-d26190280b46830b257984d63e5892f383092ce4.tar.gz
historical-d26190280b46830b257984d63e5892f383092ce4.tar.bz2
historical-d26190280b46830b257984d63e5892f383092ce4.zip
Add new version that properly executes after procfs have been mounted.
Package-Manager: portage-2.2_rc33/cvs/Linux x86_64
Diffstat (limited to 'dev-dotnet')
-rw-r--r--dev-dotnet/pe-format/ChangeLog8
-rw-r--r--dev-dotnet/pe-format/Manifest14
-rw-r--r--dev-dotnet/pe-format/files/pe-format.init-153
-rw-r--r--dev-dotnet/pe-format/pe-format-1.ebuild35
4 files changed, 108 insertions, 2 deletions
diff --git a/dev-dotnet/pe-format/ChangeLog b/dev-dotnet/pe-format/ChangeLog
index 212807c76ed8..c6f2f14e6ab9 100644
--- a/dev-dotnet/pe-format/ChangeLog
+++ b/dev-dotnet/pe-format/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-dotnet/pe-format
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-dotnet/pe-format/ChangeLog,v 1.11 2009/03/20 23:14:50 jmbsvicetto Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-dotnet/pe-format/ChangeLog,v 1.12 2009/07/28 10:43:54 flameeyes Exp $
+
+*pe-format-1 (28 Jul 2009)
+
+ 28 Jul 2009; Diego E. Pettenò <flameeyes@gentoo.org>
+ +files/pe-format.init-1, +pe-format-1.ebuild:
+ Add new version that properly executes after procfs have been mounted.
20 Mar 2009; Jorge Manuel B. S. Vicetto <jmbsvicetto@gentoo.org>
pe-format-0.ebuild:
diff --git a/dev-dotnet/pe-format/Manifest b/dev-dotnet/pe-format/Manifest
index da0f0c809627..e371598731b3 100644
--- a/dev-dotnet/pe-format/Manifest
+++ b/dev-dotnet/pe-format/Manifest
@@ -1,5 +1,17 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
AUX pe-format.conf 377 RMD160 08fc930c1bfd7e34ba5b3dedb64563b3f7957aa2 SHA1 e4abf6ab9611ce7e1e2244a9caaf45e58cc64655 SHA256 e01a56fe5e39eb13fec642bd0803fbf279831b4139555ea18aa4156d98759a89
AUX pe-format.init 1228 RMD160 c03ed30834a845a774a962945b874cf7af50a7f3 SHA1 947d868f5209d773d1a503765836b1152f25318e SHA256 d2313aceae0983e76ecac39223c2335598f5789fe4cb670571f481ac250b7a9a
+AUX pe-format.init-1 1262 RMD160 941599bbffe6e0a58f5aa44bf7a41bb1dd8a77e5 SHA1 f2c2bb5ec2510168a9e3fa7e090917236ac6f2c8 SHA256 a2e3a313f138388a289695bf870d0e1ae306fd7380a35b08232bf2677f90256a
EBUILD pe-format-0.ebuild 844 RMD160 0461c860dd738f214cccc8aa9c6f609e0d4eee11 SHA1 2dfe0378dd89cb8cf861db1d3710435628c32d8b SHA256 c680e11b2f8923f1e3b4300ccba4e75b25a2c60c74ac7fca292c21ae7ecef088
-MISC ChangeLog 1564 RMD160 c047c5999c81e81ce9602dce801aa103a612bfac SHA1 1bd2a92b65e5d41359fcb917bdb6cbf43092051a SHA256 525163e0a554b6511b53e03cefddbd732414385bb3550d5ff8afe1823c5ef2ff
+EBUILD pe-format-1.ebuild 846 RMD160 224a358e8f0e59516627f2468ab8a4374509c125 SHA1 7dfc1011591e0d13b6ee2a7aacdacf2532ae9b0d SHA256 41f59c0916c56d52eef7f0c69a255f4f3d2ec6c84ce5b29f12a507bcfe84ab38
+MISC ChangeLog 1768 RMD160 7345c87b78c2477f71e7b72815916fbaaf180479 SHA1 954f5b5a0c692ba21e6e0780c4441ec12489d859 SHA256 96d7f838ecbf9f0bdc1fd04a04e2a87e0077e600b4b0702d7adfa68e060c8ac4
MISC metadata.xml 209 RMD160 84b81c405c307d7d9e8126a0f277df1610571c31 SHA1 6725dc0b89f6f9831d26ca7aeb8a04f036d035f0 SHA256 6b4da01a3cae41740a8d5c9073c1ee024099cfdf70c2fa668665516b9008141a
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.11 (GNU/Linux)
+
+iEYEARECAAYFAkpu1nUACgkQAiZjviIA2XjE5QCgpSAogbS3SX3E+kTTbOzne2Eh
+bfYAoO2Ek8Ash6+3Ue5vl2743Dli+++B
+=QeZ+
+-----END PGP SIGNATURE-----
diff --git a/dev-dotnet/pe-format/files/pe-format.init-1 b/dev-dotnet/pe-format/files/pe-format.init-1
new file mode 100644
index 000000000000..0816edacde52
--- /dev/null
+++ b/dev-dotnet/pe-format/files/pe-format.init-1
@@ -0,0 +1,53 @@
+#!/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-1,v 1.1 2009/07/28 10:43:54 flameeyes Exp $
+
+depend() {
+ after procfs
+}
+
+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!"
+ eend 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
+ 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/pe-format'
+ 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/pe-format-1.ebuild b/dev-dotnet/pe-format/pe-format-1.ebuild
new file mode 100644
index 000000000000..eff5c596a492
--- /dev/null
+++ b/dev-dotnet/pe-format/pe-format-1.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-dotnet/pe-format/pe-format-1.ebuild,v 1.1 2009/07/28 10:43:54 flameeyes Exp $
+
+inherit eutils
+
+DESCRIPTION="PE Format binfmt_misc entry"
+HOMEPAGE="http://www.kernel.org/"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~x86-fbsd"
+IUSE=""
+
+RDEPEND="|| ( dev-lang/mono dev-dotnet/pnet )"
+
+src_compile() {
+ true;
+}
+
+src_install() {
+ newinitd "${FILESDIR}/pe-format.init-1" 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
+}