FreeBSD Bugzilla – Attachment 178212 Details for
Bug 215501
sysutils/spiped: allow setting optional flags per spiped instance in rc script
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
v1 patch
file_215501.txt (text/plain), 1.83 KB, created by
Dave Cottlehuber
on 2016-12-22 22:19:46 UTC
(
hide
)
Description:
v1 patch
Filename:
MIME Type:
Creator:
Dave Cottlehuber
Created:
2016-12-22 22:19:46 UTC
Size:
1.83 KB
patch
obsolete
>From 7f546b897fabb54569f22fc9a8f25029da6a6968 Mon Sep 17 00:00:00 2001 >From: Dave Cottlehuber <dch@skunkwerks.at> >Date: Wed, 21 Dec 2016 14:09:22 +0100 >Subject: [PATCH] sysutils/spiped: add optional flags for each pipe instance > >--- > sysutils/spiped/Makefile | 3 +-- > sysutils/spiped/files/spiped.in | 4 +++- > 2 files changed, 4 insertions(+), 3 deletions(-) > >diff --git a/sysutils/spiped/Makefile b/sysutils/spiped/Makefile >index a1b69bc..c4e5d12 100644 >--- a/sysutils/spiped/Makefile >+++ b/sysutils/spiped/Makefile >@@ -14,8 +14,7 @@ LICENSE_FILE= ${WRKSRC}/COPYRIGHT > > # The spiped build only needs C99, but this will help to get us a compiler > # which has support for AESNI on x86 systems >-USES= compiler:c11 tar:tgz >-USE_OPENSSL= YES >+USES= compiler:c11 tar:tgz ssl > > # Install into ${STAGEDIR}${PREFIX} > MAKE_ARGS+= BINDIR=${STAGEDIR}${PREFIX}/bin >diff --git a/sysutils/spiped/files/spiped.in b/sysutils/spiped/files/spiped.in >index 49f301d..baa3520 100644 >--- a/sysutils/spiped/files/spiped.in >+++ b/sysutils/spiped/files/spiped.in >@@ -15,6 +15,7 @@ > # spiped_pipe_X_source: Source address of pipe X. > # spiped_pipe_X_target: Target address of pipe X. > # spiped_pipe_X_key: Key file for pipe X. >+# spiped_pipe_X_flags: Optional flags for pipe X. See spiped(1) for details. > > . /etc/rc.subr > >@@ -39,6 +40,7 @@ spiped_start() > eval SOURCE=\$spiped_pipe_${P}_source > eval TARGET=\$spiped_pipe_${P}_target > eval KEY=\$spiped_pipe_${P}_key >+ eval FLAGS=\$spiped_pipe_${P}_flags > case "$MODE" in > encrypt | client) > MODEFLAG="-e" >@@ -50,7 +52,7 @@ spiped_start() > echo Invalid value for spiped_pipe_${P}_mode: $MODE > continue > esac >- ${command} -D $MODEFLAG -s $SOURCE -t $TARGET -k $KEY -p $PIDFILE >+ ${command} -D $MODEFLAG -s $SOURCE -t $TARGET -k $KEY -p $PIDFILE $FLAGS > done > }
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 Raw
Actions:
View
Attachments on
bug 215501
: 178212
Working