www-misc/slowcgi[live]: introduce OpenRC supervision scripts, update dependency list
Signed-off-by: Shin'ya Minazuki <shinyoukai@laidback.moe>
This commit is contained in:
13
www-misc/slowcgi/files/slowcgi.confd-r1
Normal file
13
www-misc/slowcgi/files/slowcgi.confd-r1
Normal file
@@ -0,0 +1,13 @@
|
||||
# Copyright 2026 Shin'ya Minazuki
|
||||
# vim: ft=sh
|
||||
|
||||
# Drop privileges to this user instead of nginx:nginx
|
||||
# This is used by the -U and -u switches
|
||||
# slowcgi_user="nginx"
|
||||
|
||||
# Options to pass to the slowcgi(8) daemon
|
||||
# This overrides the default options set in /etc/init.d/slowcgi
|
||||
# slowcgi_args=""
|
||||
|
||||
|
||||
|
||||
18
www-misc/slowcgi/files/slowcgi.initd-r1
Normal file
18
www-misc/slowcgi/files/slowcgi.initd-r1
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 2026 Shin'ya Minazuki
|
||||
|
||||
: ${slowcgi_args=""}
|
||||
: ${slowcgi_user="nginx"}
|
||||
|
||||
name="FastCGI to CGI wrapper server"
|
||||
command=/usr/sbin/slowcgi
|
||||
command_args="${slowcgi_args}"
|
||||
|
||||
depend() {
|
||||
# As declared upstream, www-servers/nginx is a requirement
|
||||
# for this port of OpenBSD's slowcgi(8)
|
||||
# This should not be a problem for other web servers such
|
||||
# as www-servers/apache
|
||||
# ~Shin'ya Minazuki
|
||||
need nginx
|
||||
}
|
||||
@@ -15,7 +15,12 @@ DEPEND="
|
||||
dev-libs/libevent
|
||||
dev-libs/libbsd
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
RDEPEND="
|
||||
acct-group/nginx
|
||||
acct-user/nginx
|
||||
${DEPEND}
|
||||
www-servers/nginx
|
||||
"
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
"
|
||||
@@ -26,4 +31,6 @@ src_compile() {
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" prefix="${EPREFIX}/usr" sbindir="${EPREFIX}/usr/sbin" mandir="${EPREFIX}/usr/share/man" install
|
||||
doinitd "${FILESDIR}/slowcgi.initd-r1"
|
||||
doconfd "${FILESDIR}/slowcgi.confd-r1"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user