FreeBSD Bugzilla – Attachment 226050 Details for
Bug 256829
dns/doh-proxy: add rc script
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
rc script
1.patch (text/plain), 1.50 KB, created by
Konstantin Belousov
on 2021-06-25 12:28:56 UTC
(
hide
)
Description:
rc script
Filename:
MIME Type:
Creator:
Konstantin Belousov
Created:
2021-06-25 12:28:56 UTC
Size:
1.50 KB
patch
obsolete
>commit 65fed6d94fa3f5ef7ba90deced4263a85731061b >Author: Konstantin Belousov <kib@FreeBSD.org> >Date: Fri Jun 25 15:25:36 2021 +0300 > > dns/doh-proxy: add rc script > >diff --git a/dns/doh-proxy/Makefile b/dns/doh-proxy/Makefile >index 8bc26d1cf3d9..f7b1a4db9d34 100644 >--- a/dns/doh-proxy/Makefile >+++ b/dns/doh-proxy/Makefile >@@ -2,6 +2,7 @@ > > PORTNAME= doh-proxy > DISTVERSION= 0.9.0 >+PORTREVISION= 1 > CATEGORIES= dns > MASTER_SITES= CRATESIO > DISTFILES= ${CARGO_DIST_SUBDIR}/${DISTNAME}${CARGO_CRATE_EXT} >@@ -12,6 +13,8 @@ COMMENT= DNS-over-HTTP server proxy > LICENSE= MIT > LICENSE_FILE= ${WRKSRC}/LICENSE > >+USE_RC_SUBR= doh-proxy >+ > USES= cargo > > PLIST_FILES= bin/doh-proxy >diff --git a/dns/doh-proxy/files/doh-proxy.in b/dns/doh-proxy/files/doh-proxy.in >new file mode 100755 >index 000000000000..dc656afb51e5 >--- /dev/null >+++ b/dns/doh-proxy/files/doh-proxy.in >@@ -0,0 +1,36 @@ >+#!/bin/sh >+ >+# PROVIDE: doh-proxy >+# REQUIRE: DAEMON >+# KEYWORD: shutdown >+ >+# Add the following line in /etc/rc.conf to enable doh-proxy: >+# >+# doh_proxy_enable="YES" >+# doh_proxy_flags="<set as needed>" >+# >+ >+. /etc/rc.subr >+ >+name=doh_proxy >+rcvar=doh_proxy_enable >+ >+load_rc_config ${name} >+ >+: ${doh_proxy_enable:="NO"} >+: ${doh_proxy_flags:=""} >+ >+command="%%PREFIX%%/bin/doh-proxy" >+pidfile="/var/run/${name}.pid" >+ >+start_cmd="${name}_start" >+ >+doh_proxy_start() >+{ >+ echo -n "Starting ${name}." >+ /usr/sbin/daemon -u nobody -S -p ${pidfile} \ >+ ${command} ${doh_proxy_flags} && \ >+ echo "Done" >+} >+ >+run_rc_command "$1"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 256829
: 226050