From 79715802ed5a69fed419b9042407b73231424734 Mon Sep 17 00:00:00 2001
From: Tomas Zeman <tzeman@volny.cz>
Date: Sun, 4 Nov 2007 12:50:46 +0100
Subject: [PATCH] minit-0.10-2-i686:
 * added

---
 source/dietlibc/minit/FrugalBuild                |   31 +++++++++++++++++++
 source/dietlibc/minit/minit-scripts-other.tar.gz |  Bin 0 -> 3770 bytes
 source/dietlibc/minit/minit.install              |   36 ++++++++++++++++++++++
 3 files changed, 67 insertions(+), 0 deletions(-)
 create mode 100644 source/dietlibc/minit/FrugalBuild
 create mode 100644 source/dietlibc/minit/minit-scripts-other.tar.gz
 create mode 100644 source/dietlibc/minit/minit.install

diff --git a/source/dietlibc/minit/FrugalBuild b/source/dietlibc/minit/FrugalBuild
new file mode 100644
index 0000000..a733f3c
--- /dev/null
+++ b/source/dietlibc/minit/FrugalBuild
@@ -0,0 +1,31 @@
+# Maintainer: Tomas Zeman <tzeman@volny.cz>
+
+pkgname=minit
+pkgver=0.10
+pkgrel=2
+pkgdesc="a small yet feature-complete init"
+url="http://www.fefe.de/minit/"
+makedepends=(dietlibc)
+archs=(i686)
+up2date='lynx -dump -nolist $url|grep $pkgname|grep tar.bz2|head -1|sed -e "s/.*$pkgname-\([0-9\.]\+\)\.tar\.bz2.*$/\1/"'
+source=(http://dl.fefe.de/$pkgname-$pkgver.tar.bz2 \
+	http://icculus.org/~boris/data/$pkgname-scripts.tar.bz2 \
+	minit-scripts-other.tar.gz)
+sha1sums=('f4ca32bafb3e9567bbc21f13f2f06fe009fe64db' \
+          '32bce667773a26008d5de0e08cb8060f6065e735' \
+          '1d8c5e4f7b07a08f51df3ead29d8d05d1b65b395')
+install=$pkgname.install
+
+build() {
+	Fcd
+	make || Fdie
+	make install-files DESTDIR=$Fdestdir || Fdie
+	install -m 700 killall5 $Fdestdir/sbin/killall5.minit || Fdie
+	Fmkdir /usr/share/$pkgname
+	mv $Fsrcdir/$pkgname-scripts $Fdestdir/usr/share/$pkgname || Fdie
+	mv $Fsrcdir/$pkgname-scripts-other $Fdestdir/usr/share/$pkgname || Fdie
+	mv $Fsrcdir/$pkgname-$pkgver/contrib $Fdestdir/usr/share/$pkgname || Fdie
+	Fmv /sbin/shutdown /sbin/shutdown.minit
+	chmod 700 $Fdestdir/sbin/shutdown.minit || Fdie
+	Frm /sbin/init
+}
diff --git a/source/dietlibc/minit/minit-scripts-other.tar.gz b/source/dietlibc/minit/minit-scripts-other.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..b38450a05c71fc586aa12f9711ab33087856a99b
GIT binary patch
diff --git a/source/dietlibc/minit/minit.install b/source/dietlibc/minit/minit.install
new file mode 100644
index 0000000..0330a23
--- /dev/null
+++ b/source/dietlibc/minit/minit.install
@@ -0,0 +1,36 @@
+# arg 1:  the new package version
+post_install() {
+  post_upgrade
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_upgrade() {
+  if [ ! -L /sbin/shutdown -a ! -e /sbin/shutdown.sysv ]; then
+  	mv /sbin/shutdown /sbin/shutdown.sysv
+	ln -sf /sbin/shutdown.minit /sbin/shutdown
+  fi
+  for i in in out; do
+  	if [ ! -p /etc/minit/$i ]; then
+		rm -f /etc/minit/$i
+		mkfifo -m 600 /etc/minit/$i
+	fi
+  done
+  /bin/true
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  if [ -L /sbin/shutdown -a -e /sbin/shutdown.sysv ]; then
+	rm /sbin/shutdown && mv /sbin/shutdown.sysv /sbin/shutdown
+  fi
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+op=$1
+shift
+$op $*
-- 
1.5.3.4

