diff options
author | rene <rene@FreeBSD.org> | 2013-08-21 22:45:47 +0800 |
---|---|---|
committer | rene <rene@FreeBSD.org> | 2013-08-21 22:45:47 +0800 |
commit | dfca73cce26e4ea45b1cd327c2f802f3fbd428d0 (patch) | |
tree | 6cf80455e6c41927a1d05b5b1def5e2912090af0 | |
parent | 83a1d576a2b9727389372675d0e7aa132ec4d136 (diff) | |
download | freebsd-ports-gnome-dfca73cce26e4ea45b1cd327c2f802f3fbd428d0.tar.gz freebsd-ports-gnome-dfca73cce26e4ea45b1cd327c2f802f3fbd428d0.tar.zst freebsd-ports-gnome-dfca73cce26e4ea45b1cd327c2f802f3fbd428d0.zip |
Add two new options for the rc.d script:
- NO_GUI_RPC to not create a socket for communication with external
user interfaces, setting this breaks net/boinc_curses
- NO_NET_INFO to not send your host address and host name to the
BOINC servers.
While here use bsd.port.options.mk
PR: ports/176724 (part)
Submitted by: Andrey Simonenko <simon@comsys.ntu-kpi.kiev.ua>
-rw-r--r-- | net/boinc-client/Makefile | 11 | ||||
-rw-r--r-- | net/boinc-client/files/boinc-client.in | 2 |
2 files changed, 10 insertions, 3 deletions
diff --git a/net/boinc-client/Makefile b/net/boinc-client/Makefile index 57ebe529a486..de68a8870795 100644 --- a/net/boinc-client/Makefile +++ b/net/boinc-client/Makefile @@ -38,6 +38,8 @@ CPPFLAGS+= -I${LOCALBASE}/include NO_OPTIONS_SORT= yes OPTIONS_DEFINE= CLIENT MANAGER X11 LINUX USER SKINS OPTIMIZE OPTIONS_DEFAULT= CLIENT MANAGER X11 USER +OPTIONS_GROUP= SCRIPT +OPTIONS_GROUP_SCRIPT= NO_GUI_RPC NO_NET_INFO CLIENT_DESC= Build BOINC client MANAGER_DESC= Build BOINC manager GUI X11_DESC= Build graphics API @@ -45,8 +47,11 @@ LINUX_DESC= Accept Linux science applications USER_DESC= Create/check BOINC client user SKINS_DESC= Install more skins for BOINC manager OPTIMIZE_DESC= Enable compiler optimization flags +SCRIPT_DESC= Command line options in script +NO_GUI_RPC_DESC= Do not allow GUI RPC, do not make socket (breaks boinc_curses) +NO_NET_INFO_DESC= Do not send host address and name to servers -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> .if defined(BOINC_USER) || defined(BOINC_GROUP) || defined(BOINC_HOME) pre-extract: @@ -101,6 +106,8 @@ PLIST_SUB+= BOINC_MANAGER="@comment " LIB_DEPENDS+= curl:${PORTSDIR}/ftp/curl RUN_DEPENDS+= ${LOCALBASE}/share/certs/ca-root-nss.crt:${PORTSDIR}/security/ca_root_nss PLIST_SUB+= BOINC_CLIENT="" +SUB_LIST+= OPTION_NO_GUI_RPC=${PORT_OPTIONS:MNO_GUI_RPC:S/^NO_GUI_RPC$/--no_gui_rpc/} \ + OPTION_NO_NET_INFO=${PORT_OPTIONS:MNO_NET_INFO:S/^NO_NET_INFO$/--suppress_net_info/} .else CONFIGURE_ARGS+=--disable-client PLIST_SUB+= BOINC_CLIENT="@comment " @@ -178,4 +185,4 @@ post-install: ${CP} -R ${WRKSRC}/api/txf ${PREFIX}/share/boinc .endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/net/boinc-client/files/boinc-client.in b/net/boinc-client/files/boinc-client.in index 11a503933b11..2d2d3235f2b3 100644 --- a/net/boinc-client/files/boinc-client.in +++ b/net/boinc-client/files/boinc-client.in @@ -24,7 +24,7 @@ command="%%PREFIX%%/bin/boinc_client" pidfile="/var/run/${name}.pid" boinc_client_user=%%BOINC_CLIENT_USER%% -command_args="--daemon --dir \"%%BOINC_CLIENT_HOME%%\"" +command_args="--daemon %%OPTION_NO_GUI_RPC%% %%OPTION_NO_NET_INFO%% --dir \"%%BOINC_CLIENT_HOME%%\"" start_cmd=boinc_client_start stop_postcmd=boinc_client_poststop |