aboutsummaryrefslogtreecommitdiff
path: root/security/titus
diff options
context:
space:
mode:
Diffstat (limited to 'security/titus')
-rw-r--r--security/titus/Makefile38
-rw-r--r--security/titus/distinfo2
-rw-r--r--security/titus/files/titus.in34
-rw-r--r--security/titus/pkg-descr5
-rw-r--r--security/titus/pkg-plist3
5 files changed, 82 insertions, 0 deletions
diff --git a/security/titus/Makefile b/security/titus/Makefile
new file mode 100644
index 000000000000..c1aaa66a9b26
--- /dev/null
+++ b/security/titus/Makefile
@@ -0,0 +1,38 @@
+# Created by: Mark Felder <feld@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= titus
+PORTVERSION= 0.3
+CATEGORIES= security
+
+MAINTAINER= feld@FreeBSD.org
+COMMENT= TLS/SSL proxy server
+
+LICENSE= MIT
+
+USES= compiler:c++11-lang
+USE_RC_SUBR= titus
+
+USE_OPENSSL= yes
+
+USE_GITHUB= yes
+GH_ACCOUNT= AGWA
+
+USERS= titus titus-keys
+GROUPS= nogroup
+
+MAKE_ENV+= MANDIR=${MANPREFIX}/man
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 1002000
+BROKEN= Requires FreeBSD 10.2 or higher
+.endif
+
+post-patch:
+ ${REINPLACE_CMD} 's|/var/lib/titus/empty|/var/empty|' ${WRKSRC}/titus.conf.example
+
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/titus.conf.example ${STAGEDIR}${PREFIX}/etc/titus.conf.sample
+
+.include <bsd.port.post.mk>
diff --git a/security/titus/distinfo b/security/titus/distinfo
new file mode 100644
index 000000000000..4d6e3d5b1f07
--- /dev/null
+++ b/security/titus/distinfo
@@ -0,0 +1,2 @@
+SHA256 (AGWA-titus-0.3_GH0.tar.gz) = 2b10e4a4e4df2b577465813b748e5d5f05e4e96cd5b48d64e3a148ab80c275bf
+SIZE (AGWA-titus-0.3_GH0.tar.gz) = 29521
diff --git a/security/titus/files/titus.in b/security/titus/files/titus.in
new file mode 100644
index 000000000000..3122f5550702
--- /dev/null
+++ b/security/titus/files/titus.in
@@ -0,0 +1,34 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: titus
+# REQUIRE: NETWORKING SERVERS
+# BEFORE: DAEMON
+# KEYWORD: shutdown
+
+#
+# Add some of the following variables to /etc/rc.conf to configure titus:
+# titus_enable (bool): Set to "NO" by default.
+# Set it to "YES" to enable titus.
+# titus_config (str): Default "%%ETCDIR%%/titus.conf"
+#
+
+. /etc/rc.subr
+
+name="titus"
+rcvar=titus_enable
+
+load_rc_config $name
+
+: ${titus_enable="NO"}
+: ${titus_config="%%PREFIX%%/etc/${name}.conf"}
+
+pidfile=/var/run/titus.pid
+command="%%PREFIX%%/bin/titus"
+command_args="--daemon yes --pid-file ${pidfile} --config ${titus_config}"
+
+required_files="${titus_config}"
+
+run_rc_command "$1"
diff --git a/security/titus/pkg-descr b/security/titus/pkg-descr
new file mode 100644
index 000000000000..4b2a184bdf70
--- /dev/null
+++ b/security/titus/pkg-descr
@@ -0,0 +1,5 @@
+titus is a TLS/SSL proxy server (like stunnel or stud) that protects you
+from vulnerabilities in the TLS implementation such as Heartbleed (or
+worse).
+
+WWW: https://opsmate.com/titus/
diff --git a/security/titus/pkg-plist b/security/titus/pkg-plist
new file mode 100644
index 000000000000..ee7d04c7d02e
--- /dev/null
+++ b/security/titus/pkg-plist
@@ -0,0 +1,3 @@
+bin/titus
+@sample etc/titus.conf.sample
+man/man8/titus.8.gz