[arch-commits] Commit in mono/trunk (PKGBUILD mono.binfmt.d mono.rc.d)

Tom Gundersen tomegun at archlinux.org
Sat Oct 6 23:52:54 UTC 2012


    Date: Saturday, October 6, 2012 @ 19:52:54
  Author: tomegun
Revision: 168256

upgpkg: mono 2.10.8-2

remove rc script in favor of binfmt config

this is also used by systemd, so no systemd service file required

Added:
  mono/trunk/mono.binfmt.d
Modified:
  mono/trunk/PKGBUILD
Deleted:
  mono/trunk/mono.rc.d

---------------+
 PKGBUILD      |   13 ++++++-------
 mono.binfmt.d |    1 +
 mono.rc.d     |   35 -----------------------------------
 3 files changed, 7 insertions(+), 42 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2012-10-06 23:51:34 UTC (rev 168255)
+++ PKGBUILD	2012-10-06 23:52:54 UTC (rev 168256)
@@ -4,7 +4,7 @@
 
 pkgname=mono
 pkgver=2.10.8
-pkgrel=1
+pkgrel=2
 pkgdesc="Free implementation of the .NET platform including runtime and compiler"
 arch=(i686 x86_64)
 license=('GPL' 'LGPL2' 'MPL' 'custom:MITX11')
@@ -15,9 +15,7 @@
 provides=('monodoc')
 conflicts=('monodoc')
 source=(http://download.mono-project.com/sources/${pkgname}/${pkgname}-${pkgver}.tar.gz
-        mono.rc.d)
-md5sums=('411a2d9bcfc37a61eb9aedba88b40533'
-         '8315e46c6a6e9625502521fc0ad1a322')
+        mono.binfmt.d)
 
 build() {
   cd ${srcdir}/${pkgname}-${pkgver}
@@ -40,9 +38,8 @@
   make DESTDIR=${pkgdir} prefix=/usr INSTALL=../../install-sh install
   cd ${srcdir}/${pkgname}-${pkgver}
 
-  # install daemons and pathes
-  mkdir -p ${pkgdir}/etc/rc.d
-  install -m755 ${srcdir}/mono.rc.d ${pkgdir}/etc/rc.d/mono
+  # install binfmt conf file and pathes
+  install -D -m644 ${srcdir}/mono.binfmt.d ${pkgdir}/usr/lib/binfmt.d/mono.conf
 
   #install license
   mkdir -p ${pkgdir}/usr/share/licenses/${pkgname}
@@ -51,3 +48,5 @@
   #fix .pc file to be able to request mono on what it depends, fixes #go-oo build
   sed -i -e "s:#Requires:Requires:" ${pkgdir}/usr/lib/pkgconfig/mono.pc
 }
+md5sums=('411a2d9bcfc37a61eb9aedba88b40533'
+         'b9ef8a65fea497acf176cca16c1e2402')

Added: mono.binfmt.d
===================================================================
--- mono.binfmt.d	                        (rev 0)
+++ mono.binfmt.d	2012-10-06 23:52:54 UTC (rev 168256)
@@ -0,0 +1 @@
+:CLR:M::MZ::/usr/bin/mono:

Deleted: mono.rc.d
===================================================================
--- mono.rc.d	2012-10-06 23:51:34 UTC (rev 168255)
+++ mono.rc.d	2012-10-06 23:52:54 UTC (rev 168256)
@@ -1,35 +0,0 @@
-#!/bin/bash
-. /etc/rc.conf
-. /etc/rc.d/functions
- 
-case "$1" in
-  start)
-    stat_busy "Registering .NET IL binaries with mono"
-    if [ ! -d /proc/sys/fs/binfmt_misc ]; then
-      stat_die "You need support for \"misc binaries\" in your kernel!"
-    fi
-    mount | grep -q binfmt_misc
-    if [ $? != 0 ]; then
-      mount -t binfmt_misc binfmt_misc /proc/sys/fs/binfmt_misc
-      if [ $? != 0 ]; then
-        stat_die
-      fi
-    fi
-    echo ':CLR:M::MZ::/usr/bin/mono:' > /proc/sys/fs/binfmt_misc/register
-    stat_done
-    ;;
-  stop)
-
-    stat_busy "Unregistering .NET IL binaries"
-    if [ -f /proc/sys/fs/binfmt_misc/CLR ]; then
-      echo '-1' > /proc/sys/fs/binfmt_misc/CLR
-    fi
-    stat_done
-    ;;
-  restart)
-    $0 stop
-    $0 start
-    ;;
-  *)
-    echo "usage: $0 {start|stop|restart}"
-esac 




More information about the arch-commits mailing list