summaryrefslogtreecommitdiffstats
path: root/abs/core/sysvinit
diff options
context:
space:
mode:
authorMichael Hanson <hansonorders@verizon.net>2010-12-03 00:01:15 (GMT)
committerMichael Hanson <hansonorders@verizon.net>2010-12-03 00:01:15 (GMT)
commit43339472df2c287378c3cdfd131d07b1de3c3f1e (patch)
treef2a974f26b81406ee51878971743348a146babe7 /abs/core/sysvinit
parent8bcd3604981cb7f65cd1732bbee9160df7fa65db (diff)
parent066bcb38c4b416f0c380e9c8292a50f9103b72b6 (diff)
downloadlinhes_pkgbuild-43339472df2c287378c3cdfd131d07b1de3c3f1e.zip
linhes_pkgbuild-43339472df2c287378c3cdfd131d07b1de3c3f1e.tar.gz
linhes_pkgbuild-43339472df2c287378c3cdfd131d07b1de3c3f1e.tar.bz2
Merge branch 'testing' of knoppmyth.net:linhes_pkgbuild into testing
Diffstat (limited to 'abs/core/sysvinit')
-rw-r--r--abs/core/sysvinit/PKGBUILD9
-rw-r--r--abs/core/sysvinit/__changelog20
-rw-r--r--abs/core/sysvinit/halt-init.patch12
3 files changed, 37 insertions, 4 deletions
diff --git a/abs/core/sysvinit/PKGBUILD b/abs/core/sysvinit/PKGBUILD
index 56d779f..110d93c 100644
--- a/abs/core/sysvinit/PKGBUILD
+++ b/abs/core/sysvinit/PKGBUILD
@@ -4,7 +4,7 @@
pkgname=sysvinit
pkgver=2.88
-pkgrel=2
+pkgrel=3
pkgdesc="Linux System V Init"
arch=('i686' 'x86_64')
url="http://savannah.nongnu.org/projects/sysvinit"
@@ -12,12 +12,11 @@ license=('GPL')
groups=('base')
depends=('shadow' 'util-linux' 'coreutils' 'glibc' 'awk')
install=sysvinit.install
-source=(http://download.savannah.gnu.org/releases/sysvinit/${pkgname}-${pkgver}dsf.tar.bz2)
-md5sums=('6eda8a97b86e0a6f59dabbf25202aa6f')
-sha1sums=('f2ca149df1314a91f3007cccd7a0aa47d990de26')
+source=(http://download.savannah.gnu.org/releases/sysvinit/${pkgname}-${pkgver}dsf.tar.bz2 halt-init.patch)
build() {
cd "${srcdir}/${pkgname}-${pkgver}dsf"
+ patch -p0 < ${srcdir}/halt-init.patch
make || return 1
}
@@ -25,3 +24,5 @@ package() {
cd "${srcdir}/${pkgname}-${pkgver}dsf"
make ROOT="${pkgdir}" install
}
+md5sums=('6eda8a97b86e0a6f59dabbf25202aa6f'
+ 'cd4c5767f63ca5881e3e1f1c4f10f896')
diff --git a/abs/core/sysvinit/__changelog b/abs/core/sysvinit/__changelog
new file mode 100644
index 0000000..9dc0b73
--- /dev/null
+++ b/abs/core/sysvinit/__changelog
@@ -0,0 +1,20 @@
+patch halt to work with runit
+
+--- src/halt.c.orig 2008-08-30 17:25:02.000000000 +0000
++++ src/halt.c 2008-08-30 18:10:29.000000000 +0000
+@@ -186,6 +186,14 @@
+ if (!strcmp(progname, "reboot")) do_reboot = 1;
+ if (!strcmp(progname, "poweroff")) do_poweroff = 1;
+
++ if (!strcmp(progname, "reboot.init")) do_reboot = 1;
++ if (!strcmp(progname, "poweroff.init")) do_poweroff = 1;
++
++ //fprintf(stderr, "%d: do_reboot \n ", do_reboot);
++ //fprintf(stderr, "%d: do_poweroff \n ", do_poweroff);
++ //fprintf(stderr, "%s: \n", progname);
++ //do_nothing = 1;
++
+ /*
+ * Get flags
+ */
+
diff --git a/abs/core/sysvinit/halt-init.patch b/abs/core/sysvinit/halt-init.patch
new file mode 100644
index 0000000..0885252
--- /dev/null
+++ b/abs/core/sysvinit/halt-init.patch
@@ -0,0 +1,12 @@
+--- src/halt.c.orig 2010-02-26 13:45:49.000000000 +0000
++++ src/halt.c 2010-12-02 17:42:51.000000000 +0000
+@@ -198,6 +198,9 @@
+ if (!strcmp(progname, "reboot")) do_reboot = 1;
+ if (!strcmp(progname, "poweroff")) do_poweroff = 1;
+
++ if (!strcmp(progname, "reboot.init")) do_reboot = 1;
++ if (!strcmp(progname, "poweroff.init")) do_poweroff = 1;
++
+ /*
+ * Get flags
+ */