initial import
This commit is contained in:
21
daemontools/LICENSE
Normal file
21
daemontools/LICENSE
Normal file
@@ -0,0 +1,21 @@
|
||||
This package was debianized by Gerrit Pape <pape@smarden.org> on
|
||||
Wed, 18 Jul 2001 12:02:57 +0200.
|
||||
|
||||
It was downloaded from
|
||||
http://cr.yp.to/daemontools/daemontools-0.76.tar.gz
|
||||
|
||||
Upstream Author: D. J. Bernstein <djb@cr.yp.to>
|
||||
|
||||
The man-pages in debian/daemontools-man/ were downloaded from
|
||||
http://smarden.org/pape/djb/manpages/daemontools-0.76-man-20020131.tar.gz
|
||||
|
||||
Copyright:
|
||||
|
||||
D. J. Bernstein placed the daemontools package into the public domain.
|
||||
From http://cr.yp.to/distributors.html
|
||||
What are the distribution terms for daemontools?
|
||||
2007.12.28: I hereby place the daemontools package (in particular,
|
||||
daemontools-0.76.tar.gz, with MD5 checksum 1871af2453d6e464034968a0fbcb2bfc)
|
||||
into the public domain. The package is no longer copyrighted.
|
||||
|
||||
The Debian diff is in the public domain.
|
||||
52
daemontools/PKGBUILD
Normal file
52
daemontools/PKGBUILD
Normal file
@@ -0,0 +1,52 @@
|
||||
# Maintainer: Jesus E. <heckyel@riseup.net>
|
||||
|
||||
pkgname=daemontools
|
||||
pkgver=0.76
|
||||
pkgrel=2
|
||||
pkgdesc="A collection of tools for managing services"
|
||||
arch=('i686' 'x86_64')
|
||||
url='http://cr.yp.to/daemontools.html'
|
||||
license=('Public-Domain')
|
||||
source=("https://cr.yp.to/daemontools/${pkgname}-${pkgver}.tar.gz"
|
||||
"http://smarden.org/pape/djb/manpages/$pkgname-$pkgver-man.tar.gz"
|
||||
"daemontools-0.76.errno.patch"
|
||||
"daemontools-0.76.service-path-fix.patch"
|
||||
"svscan.initd"
|
||||
"svscan.confd"
|
||||
"svscan.run"
|
||||
"LICENSE")
|
||||
sha512sums=('e4a7938352b745a03ccc41acdddba1e6782f0ca245e5cae060de62ab6c5a23c841a994c30140298d274405a7f26d53ba7e84e5810a3d185b2c01e4c0feffe6c7'
|
||||
'1767fafb2d92902f903637f08363031971bda007d1b7b53059551c740976d1c643229ccc44171796c1dcb43cbd875a17178edc634e140671817e0ef0ba3ad80b'
|
||||
'02a2d45f221b70e6d0d13127e8bacae0f37e96876d551d445d582c664f604555765e62c9906d0f1faa1e4eb7f5c2ed61ebeeda75c216de99bab7ee14932068eb'
|
||||
'd3af2a13316be8740cd3593f4980fa1b7de345357d0b87dd963bed919e59c0f4f68732632f4b266877646b5cd14f023ea9968eecbdd0b578ef9bb9c417204e76'
|
||||
'0a43467f5354f2f651af4a196d8553eedf53472341e57579551cac12ecf2552074078d508843baa1a8ce90ff5b61fceb06f62fafee4eb11c64e4d01167826f60'
|
||||
'5a5d363744d56da338605037dd610b25543e906cbac26486ff99ecea712cdabd15a8a8f476ccdebb14051672c3a15e43e30fc7a69182841511a5662df56a9dc8'
|
||||
'363c628677afc3a70d6ab20b379626744bd8f440bc0d064909b54e74aa93083fe2a5f851585468e42d9efbc5a1f78efb82e9dfd1685c63ec64db4a97701f3c72'
|
||||
'0f2cd6120ff16af8266f99db48264a2646d9c95727fbf0c7401fc45b39467944ce0ed91106edb9443389b67d5cb9b659b86948a7a59b7e740031098c25d864d5')
|
||||
|
||||
prepare() {
|
||||
cd admin/$pkgname-$pkgver
|
||||
patch -p1 < $srcdir/daemontools-0.76.errno.patch
|
||||
patch -p1 < $srcdir/daemontools-0.76.service-path-fix.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
cd admin/$pkgname-$pkgver
|
||||
package/compile
|
||||
}
|
||||
|
||||
package() {
|
||||
cd admin/$pkgname-$pkgver
|
||||
install -d $pkgdir/usr/sbin
|
||||
cp -a command/* $pkgdir/usr/sbin
|
||||
install -d $pkgdir/usr/share/man/man8
|
||||
cp -a $srcdir/daemontools-man/*.8 $pkgdir/usr/share/man/man8
|
||||
|
||||
# install services
|
||||
install -Dm755 "${srcdir}/svscan.initd" "${pkgdir}/etc/init.d/svscan"
|
||||
install -Dm644 "${srcdir}/svscan.confd" "${pkgdir}/etc/conf.d/svscan"
|
||||
install -Dm755 "${srcdir}/svscan.run" "${pkgdir}/etc/sv/svscan/run"
|
||||
|
||||
# install license
|
||||
install -Dm644 "${srcdir}/LICENSE" -t "$pkgdir"/usr/share/licenses/$pkgname
|
||||
}
|
||||
13
daemontools/daemontools-0.76.errno.patch
Normal file
13
daemontools/daemontools-0.76.errno.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
diff -ur daemontools-0.76.old/src/error.h daemontools-0.76/src/error.h
|
||||
--- daemontools-0.76.old/src/error.h 2001-07-12 11:49:49.000000000 -0500
|
||||
+++ daemontools-0.76/src/error.h 2003-01-09 21:52:01.000000000 -0600
|
||||
@@ -3,7 +3,7 @@
|
||||
#ifndef ERROR_H
|
||||
#define ERROR_H
|
||||
|
||||
-extern int errno;
|
||||
+#include <errno.h>
|
||||
|
||||
extern int error_intr;
|
||||
extern int error_nomem;
|
||||
|
||||
26
daemontools/daemontools-0.76.service-path-fix.patch
Normal file
26
daemontools/daemontools-0.76.service-path-fix.patch
Normal file
@@ -0,0 +1,26 @@
|
||||
--- a/src/Makefile 2021-07-17 16:17:19.349995829 +0200
|
||||
+++ b/src/Makefile 2021-07-17 16:18:50.569995682 +0200
|
||||
@@ -82,10 +82,9 @@
|
||||
chkshsgr.o: chkshsgr.c compile
|
||||
./compile chkshsgr.c
|
||||
|
||||
-choose: choose.sh home warn-auto.sh
|
||||
+choose: choose.sh warn-auto.sh
|
||||
rm -f choose
|
||||
cat warn-auto.sh choose.sh \
|
||||
- | sed s}HOME}"`head -1 home`"}g \
|
||||
> choose
|
||||
chmod 555 choose
|
||||
|
||||
@@ -387,10 +386,9 @@
|
||||
pathexec.h str.h strerr.h svscan.c wait.h
|
||||
./compile svscan.c
|
||||
|
||||
-svscanboot: home svscanboot.sh warn-auto.sh
|
||||
+svscanboot: svscanboot.sh warn-auto.sh
|
||||
rm -f svscanboot
|
||||
cat warn-auto.sh svscanboot.sh \
|
||||
- | sed s}HOME}"`head -1 home`"}g \
|
||||
> svscanboot
|
||||
chmod 555 svscanboot
|
||||
|
||||
7
daemontools/svscan.confd
Normal file
7
daemontools/svscan.confd
Normal file
@@ -0,0 +1,7 @@
|
||||
# /etc/conf.d/svscan: config file for /etc/init.d/svscan
|
||||
|
||||
# pidfile
|
||||
PIDFILE="/var/run/svscan.pid"
|
||||
|
||||
# service-folder
|
||||
SERVICEFOLDER="/etc/service"
|
||||
31
daemontools/svscan.initd
Normal file
31
daemontools/svscan.initd
Normal file
@@ -0,0 +1,31 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2004 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
depend() {
|
||||
use net
|
||||
after firewall
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Starting service scan"
|
||||
setsid start-stop-daemon --start --exec /usr/sbin/svscan \
|
||||
--background --make-pidfile \
|
||||
--pidfile $PIDFILE -- $SERVICEFOLDER
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping service scan"
|
||||
start-stop-daemon --stop --exec /usr/sbin/svscan \
|
||||
--pidfile $PIDFILE
|
||||
eend $?
|
||||
|
||||
ebegin "Stopping service scan services"
|
||||
svc -dx $SERVICEFOLDER/* 2>/dev/null
|
||||
eend $?
|
||||
|
||||
ebegin "Stopping service scan logging"
|
||||
svc -dx $SERVICEFOLDER/*/log 2>/dev/null
|
||||
eend $?
|
||||
}
|
||||
3
daemontools/svscan.run
Normal file
3
daemontools/svscan.run
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
/usr/sbin/svscan
|
||||
exec pause 2>&1
|
||||
Reference in New Issue
Block a user