FreeBSD Bugzilla – Attachment 226358 Details for
Bug 257074
databases/go-pgweb: Add rc.d script
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Git diff
go-pgweb.diff (text/plain), 2.84 KB, created by
Daniel Morante
on 2021-07-10 20:40:10 UTC
(
hide
)
Description:
Git diff
Filename:
MIME Type:
Creator:
Daniel Morante
Created:
2021-07-10 20:40:10 UTC
Size:
2.84 KB
patch
obsolete
>diff --git a/databases/go-pgweb/Makefile b/databases/go-pgweb/Makefile >index b8113f84e8a0..6b6a4e3c7853 100644 >--- a/databases/go-pgweb/Makefile >+++ b/databases/go-pgweb/Makefile >@@ -1,6 +1,7 @@ > PORTNAME= pgweb > DISTVERSIONPREFIX= v > DISTVERSION= 0.11.7 >+PORTREVISION= 1 > CATEGORIES= databases www > PKGNAMEPREFIX= go- > >@@ -15,4 +16,14 @@ GH_ACCOUNT= sosedoff > GO_PKGNAME= github.com/sosedoff/pgweb > PLIST_FILES= bin/pgweb > >+USE_RC_SUBR= ${PORTNAME} >+ >+SUB_FILES+= pkg-message >+SUB_LIST+= PORTNAME=${PORTNAME} \ >+ PGWEBUSER=${USERS} \ >+ PGWEBGROUP=${GROUPS} >+ >+USERS= www >+GROUPS= www >+ > .include <bsd.port.mk> >diff --git a/databases/go-pgweb/files/pgweb.in b/databases/go-pgweb/files/pgweb.in >new file mode 100644 >index 000000000000..e945d0de9c26 >--- /dev/null >+++ b/databases/go-pgweb/files/pgweb.in >@@ -0,0 +1,50 @@ >+#!/bin/sh >+# >+# >+# PROVIDE: %%PORTNAME%% >+# REQUIRE: NETWORKING >+# KEYWORD: >+# >+# Add the following lines to /etc/rc.conf to enable %%PORTNAME%%: >+# %%PORTNAME%%_enable="YES" >+# >+# %%PORTNAME%%_enable (bool): Set to YES to enable %%PORTNAME%% >+# Default: NO >+# %%PORTNAME%%_bind (str): HTTP server host >+# Default: localhost >+# %%PORTNAME%%_listen (str): HTTP server listen port >+# Default: 8081 >+# %%PORTNAME%%_user (str): %%PORTNAME%% daemon user >+# Default: %%PGWEBUSER%% >+# %%PORTNAME%%_group (str): %%PORTNAME%% daemon group >+# Default: %%PGWEBGROUP%% >+ >+. /etc/rc.subr >+ >+name="%%PORTNAME%%" >+rcvar="%%PORTNAME%%_enable" >+load_rc_config $name >+ >+: ${%%PORTNAME%%_user:="www"} >+: ${%%PORTNAME%%_group:="www"} >+: ${%%PORTNAME%%_enable:="NO"} >+: ${%%PORTNAME%%_bind:="localhost"} >+: ${%%PORTNAME%%_flags=""} >+: ${%%PORTNAME%%_facility:="daemon"} >+: ${%%PORTNAME%%_priority:="debug"} >+: ${%%PORTNAME%%_listen:="8081"} >+ >+procname="%%PREFIX%%/bin/${name}" >+pidfile="/var/run/${name}.pid" >+start_precmd="${name}_precmd" >+command=/usr/sbin/daemon >+command_args="-S -l ${%%PORTNAME%%_facility} -s ${%%PORTNAME%%_priority} -T ${name} -t ${name} -p ${pidfile} \ >+ ${procname} --bind=${%%PORTNAME%%_bind} --listen=${%%PORTNAME%%_listen} ${%%PORTNAME%%_flags}" >+ >+%%PORTNAME%%_precmd() >+{ >+ install -o ${%%PORTNAME%%_user} /dev/null ${pidfile} >+} >+ >+run_rc_command "$1" >+ >diff --git a/databases/go-pgweb/files/pkg-message.in b/databases/go-pgweb/files/pkg-message.in >new file mode 100644 >index 000000000000..c391e85d3cd2 >--- /dev/null >+++ b/databases/go-pgweb/files/pkg-message.in >@@ -0,0 +1,22 @@ >+[ >+{ type: install >+ message: <<EOM >+ >+To run Pgweb at startup, enable it in your /etc/rc.conf: >+sysrc pgweb_enable="YES" >+ >+To start Pgweb: >+service pgweb start >+ >+Pgweb will listen on port 8081 and bind to localhost. >+This can be changed by setting "pgweb_bind" and "pgweb_listen" >+in /etc/rc.conf. >+ >+sysrc pgweb_bind="0.0.0.0" pgweb_listen="80" >+ >+Additional options can be set using "pgweb_flags". See 'pgweb --help' for a list >+of all options. >+ >+EOM >+} >+]
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 257074
:
226320
|
226358
|
226577