|
1
|
1 |
From ebefdd0429b35e479073ee76d73f35ca55180d14 Mon Sep 17 00:00:00 2001
|
|
|
2 |
From: Tomas Zeman <tzeman@volny.cz>
|
|
|
3 |
Date: Fri, 26 Oct 2007 23:15:37 +0200
|
|
|
4 |
Subject: [PATCH] diet-daemontools-0.76-1-i686.fpm
|
|
|
5 |
* added
|
|
|
6 |
|
|
|
7 |
---
|
|
|
8 |
source/dietlibc/diet-daemontools/FrugalBuild | 42 ++++++++++++++++++++
|
|
|
9 |
.../dietlibc/diet-daemontools/daemontools.install | 37 +++++++++++++++++
|
|
|
10 |
2 files changed, 79 insertions(+), 0 deletions(-)
|
|
|
11 |
create mode 100644 source/dietlibc/diet-daemontools/FrugalBuild
|
|
|
12 |
create mode 100644 source/dietlibc/diet-daemontools/daemontools.install
|
|
|
13 |
|
|
|
14 |
diff --git a/source/dietlibc/diet-daemontools/FrugalBuild b/source/dietlibc/diet-daemontools/FrugalBuild
|
|
|
15 |
new file mode 100644
|
|
|
16 |
index 0000000..3322f94
|
|
|
17 |
--- /dev/null
|
|
|
18 |
+++ b/source/dietlibc/diet-daemontools/FrugalBuild
|
|
|
19 |
@@ -0,0 +1,42 @@
|
|
|
20 |
+# Maintainer: Tomas Zeman <tzeman@volny.cz>
|
|
|
21 |
+
|
|
|
22 |
+branch=diet
|
|
|
23 |
+pkgorig=daemontools
|
|
|
24 |
+pkgname=$branch-$pkgorig
|
|
|
25 |
+pkgver=0.76
|
|
|
26 |
+pkgrel=1
|
|
|
27 |
+pkgdesc="A collection of tools for managing UNIX services."
|
|
|
28 |
+makedepends=(dietlibc)
|
|
|
29 |
+license="public domain"
|
|
|
30 |
+backup=(etc/inittab)
|
|
|
31 |
+url="http://cr.yp.to/daemontools.html"
|
|
|
32 |
+archs=(i686)
|
|
|
33 |
+up2date='lynx -dump -nolist http://cr.yp.to/daemontools/install.html|grep $pkgorig|grep tar.gz|head -1|sed -e "s/.*$pkgorig-\(.*\)\.tar.gz.*$/\1/"'
|
|
|
34 |
+source=(http://cr.yp.to/daemontools/daemontools-$pkgver.tar.gz \
|
|
|
35 |
+ daemontools.install)
|
|
|
36 |
+sha1sums=('70a1be67e7dbe0192a887905846acc99ad5ce5b7' \
|
|
|
37 |
+ '44a7617ed5dbbcbf1f962d6523eeec232504ef00')
|
|
|
38 |
+install="daemontools.install"
|
|
|
39 |
+provides=(daemontools)
|
|
|
40 |
+
|
|
|
41 |
+build() {
|
|
|
42 |
+ mkdir -p $Fdestdir/package/admin
|
|
|
43 |
+ mv $Fsrcdir/admin/daemontools-$pkgver $Fdestdir/package/admin
|
|
|
44 |
+ cd $Fdestdir/package/admin/daemontools-$pkgver
|
|
|
45 |
+
|
|
|
46 |
+ echo "diet gcc $CFLAGS" > src/conf-cc
|
|
|
47 |
+ echo "diet gcc -s -static" > src/conf-ld
|
|
|
48 |
+ ./package/compile || Fdie
|
|
|
49 |
+
|
|
|
50 |
+ rm -rf compile
|
|
|
51 |
+ chown -R root.root $Fdestdir/package/ || Fdie
|
|
|
52 |
+ mkdir -p $Fdestdir/service || Fdie
|
|
|
53 |
+ mkdir -p $Fdestdir/usr/bin || Fdie
|
|
|
54 |
+ mkdir -p $Fdestdir/command || Fdie
|
|
|
55 |
+ for BIN in `cat package/commands`; do
|
|
|
56 |
+ ln -sf /package/admin/daemontools/command/$BIN $Fdestdir/command/$BIN
|
|
|
57 |
+ ln -sf /command/$BIN $Fdestdir/usr/bin/$BIN
|
|
|
58 |
+ done
|
|
|
59 |
+ cd $Fdestdir/package/admin && ln -sf $pkgorig-$pkgver $pkgorig || Fdie
|
|
|
60 |
+}
|
|
|
61 |
+# vim: ft=sh
|
|
|
62 |
diff --git a/source/dietlibc/diet-daemontools/daemontools.install b/source/dietlibc/diet-daemontools/daemontools.install
|
|
|
63 |
new file mode 100644
|
|
|
64 |
index 0000000..1e85fde
|
|
|
65 |
--- /dev/null
|
|
|
66 |
+++ b/source/dietlibc/diet-daemontools/daemontools.install
|
|
|
67 |
@@ -0,0 +1,37 @@
|
|
|
68 |
+# arg 1: the new package version
|
|
|
69 |
+post_install() {
|
|
|
70 |
+ if [ ! "`grep ^SV:345:respawn:/command/svscanboot etc/inittab`" ]; then
|
|
|
71 |
+ if [ ! "`grep ^'# End of file' etc/inittab`" ]; then
|
|
|
72 |
+ # The 'End of file' sentinel is missing, just append it to the end
|
|
|
73 |
+ echo "SV:345:respawn:/command/svscanboot /service" >> etc/inittab
|
|
|
74 |
+ else
|
|
|
75 |
+ # prepend it before 'End of file' sentinel
|
|
|
76 |
+ sed -i "/# End of file/i\
|
|
|
77 |
+SV:345:respawn:/command/svscanboot /service" etc/inittab
|
|
|
78 |
+ fi
|
|
|
79 |
+ telinit q
|
|
|
80 |
+ fi
|
|
|
81 |
+}
|
|
|
82 |
+
|
|
|
83 |
+post_upgrade() {
|
|
|
84 |
+ post_install $1
|
|
|
85 |
+}
|
|
|
86 |
+
|
|
|
87 |
+# arg 1: the old package version
|
|
|
88 |
+pre_remove() {
|
|
|
89 |
+ if [ "`grep ^SV:345:respawn:/command/svscanboot etc/inittab`" ]; then
|
|
|
90 |
+ sed -i "/SV:345:respawn:\/command\/svscanboot \/service/d" etc/inittab
|
|
|
91 |
+ telinit q
|
|
|
92 |
+ fi
|
|
|
93 |
+}
|
|
|
94 |
+
|
|
|
95 |
+# arg 1: the old package version
|
|
|
96 |
+post_remove() {
|
|
|
97 |
+ /bin/true
|
|
|
98 |
+}
|
|
|
99 |
+
|
|
|
100 |
+op=$1
|
|
|
101 |
+shift
|
|
|
102 |
+
|
|
|
103 |
+$op $*
|
|
|
104 |
+# vim: ts=2 sw=2 et ft=sh
|
|
|
105 |
--
|
|
|
106 |
1.5.3.4
|
|
|
107 |
|