svn commit: r429219 - in head/sysutils/spiped: . files
Colin Percival
cperciva at FreeBSD.org
Fri Dec 23 03:47:40 UTC 2016
Author: cperciva
Date: Fri Dec 23 03:47:39 2016
New Revision: 429219
URL: https://svnweb.freebsd.org/changeset/ports/429219
Log:
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
Modified:
head/sysutils/spiped/Makefile
head/sysutils/spiped/files/spiped.in
Modified: head/sysutils/spiped/Makefile
==============================================================================
--- head/sysutils/spiped/Makefile Fri Dec 23 03:46:34 2016 (r429218)
+++ head/sysutils/spiped/Makefile Fri Dec 23 03:47:39 2016 (r429219)
@@ -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 symm
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
Modified: head/sysutils/spiped/files/spiped.in
==============================================================================
--- head/sysutils/spiped/files/spiped.in Fri Dec 23 03:46:34 2016 (r429218)
+++ head/sysutils/spiped/files/spiped.in Fri Dec 23 03:47:39 2016 (r429219)
@@ -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
}
More information about the svn-ports-all
mailing list