diff options
author | cperciva <cperciva@FreeBSD.org> | 2016-12-23 11:47:39 +0800 |
---|---|---|
committer | cperciva <cperciva@FreeBSD.org> | 2016-12-23 11:47:39 +0800 |
commit | 79bd9e194fe09e78c8ace91dda60a8ef3d419fc5 (patch) | |
tree | 96b4f2fd4ba354f6dbc21cb655fa241be26a086e /sysutils/spiped | |
parent | 43d005afb0862c9285740cb472fb4d7cc847473a (diff) | |
download | freebsd-ports-gnome-79bd9e194fe09e78c8ace91dda60a8ef3d419fc5.tar.gz freebsd-ports-gnome-79bd9e194fe09e78c8ace91dda60a8ef3d419fc5.tar.zst freebsd-ports-gnome-79bd9e194fe09e78c8ace91dda60a8ef3d419fc5.zip |
Add support for passing additional flags to spiped via new
spiped_pipe_X_flags variables. Replace USE_OPENSSL with
USES ssl. [1]
While I'm here, clarify the comment about needing C99 but
preferring a compiler with AESNI support; it applies to the
USES compiler:c11 part but not tar:tgz or ssl.
PR: 215501
Submitted by: Dave Cottlehuber
Diffstat (limited to 'sysutils/spiped')
-rw-r--r-- | sysutils/spiped/Makefile | 9 | ||||
-rw-r--r-- | sysutils/spiped/files/spiped.in | 4 |
2 files changed, 7 insertions, 6 deletions
diff --git a/sysutils/spiped/Makefile b/sysutils/spiped/Makefile index a1b69bc7c756..67eadef5eab4 100644 --- a/sysutils/spiped/Makefile +++ b/sysutils/spiped/Makefile @@ -2,7 +2,7 @@ PORTNAME= spiped PORTVERSION= 1.5.0 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= sysutils security MASTER_SITES= http://www.tarsnap.com/spiped/ @@ -12,10 +12,9 @@ COMMENT= Daemon for creating secure symmetric pipes LICENSE= BSD2CLAUSE 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 +# The spiped build only needs C99, but asking for compiler:c11 will help to +# get us a compiler which has support for AESNI on x86 systems +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 49f301d57012..baa3520b5fcf 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 } |