aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--security/bjorb/Makefile52
-rw-r--r--security/bjorb/distinfo1
-rw-r--r--security/bjorb/files/patch-aa41
-rw-r--r--security/bjorb/files/patch-ab14
-rw-r--r--security/bjorb/pkg-comment1
-rw-r--r--security/bjorb/pkg-descr11
-rw-r--r--security/bjorb/pkg-plist17
7 files changed, 137 insertions, 0 deletions
diff --git a/security/bjorb/Makefile b/security/bjorb/Makefile
new file mode 100644
index 000000000000..e03b5d9c930b
--- /dev/null
+++ b/security/bjorb/Makefile
@@ -0,0 +1,52 @@
+# New ports collection makefile for: bjorb
+# Version required: 0.5.3p1
+# Date created: May 16, 1998
+# Whom: issei@t-cnet.or.jp
+#
+# $Id$
+
+DISTNAME= bjorb-0.5.3p1
+PKGNAME= bjorb-0.5.3.1
+CATEGORIES= net security
+MASTER_SITES= ftp://ftp.hitachi-ms.co.jp/pub/bjorb/
+
+MAINTAINER= issei@t-cnet.or.jp
+
+BUILD_DEPENDS= ssleay:${PORTSDIR}/security/SSLeay
+RUN_DEPENDS= ssleay:${PORTSDIR}/security/SSLeay
+
+RESTRICTED= "Cryptography"
+
+.if !defined(BATCH)
+INSTALL_TARGET= install certificate
+.endif
+
+HAS_CONFIGURE= yes
+WRKSRC= ${WRKDIR}/${DISTNAME}/src
+DOCSRC= ${WRKDIR}/${DISTNAME}
+DOCS= COPYRIGHT \
+ README \
+ COPYRIGHT.jp \
+ INSTALL.jp \
+ README.jp \
+ doc/bjorb.conf.5.jp.txt \
+ doc/features.jp
+EXAMPLES= doc/sample/mail-server.conf \
+ doc/sample/mail-client.conf \
+ doc/sample/telnet-server.conf \
+ doc/sample/telnet-client.conf
+
+post-install:
+ @${INSTALL_SCRIPT} ${DOCSRC}/doc/sample/bjorb.sh ${PREFIX}/etc/rc.d/bjorb.sh.sample
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${PREFIX}/share/doc/bjorb
+.for i in ${DOCS}
+ @${INSTALL_DATA} ${DOCSRC}/$i ${PREFIX}/share/doc/bjorb
+.endfor
+ @${MKDIR} ${PREFIX}/share/examples/bjorb
+.for i in ${EXAMPLES}
+ @${INSTALL_DATA} ${DOCSRC}/$i ${PREFIX}/share/examples/bjorb
+.endfor
+.endif
+
+.include <bsd.port.mk>
diff --git a/security/bjorb/distinfo b/security/bjorb/distinfo
new file mode 100644
index 000000000000..e34d4641507c
--- /dev/null
+++ b/security/bjorb/distinfo
@@ -0,0 +1 @@
+MD5 (bjorb-0.5.3p1.tar.gz) = 3b6a03837d616981633a3f7ad8539163
diff --git a/security/bjorb/files/patch-aa b/security/bjorb/files/patch-aa
new file mode 100644
index 000000000000..df981902ea23
--- /dev/null
+++ b/security/bjorb/files/patch-aa
@@ -0,0 +1,41 @@
+--- ../../bjorb-0.5.3p1/src/Makefile.in Tue May 26 19:35:33 1998
++++ src/Makefile.in Sun Jul 19 19:32:48 1998
+@@ -27,7 +27,7 @@
+ LDFLAGS =
+ LIBS = @LIBS@
+
+-PREFIX = @prefix@
++PREFIX ?= @prefix@
+ exec_prefix = $(PREFIX)
+ sbindir = $(exec_prefix)/sbin
+ etcdir = $(exec_prefix)/etc
+@@ -43,10 +43,10 @@
+
+ ### SSL Configuration
+
+-SSLTOP = /usr/local/ssl
++SSLTOP = $(PREFIX)
+ SSL_CFLAGS = -I$(SSLTOP)/include
+ SSL_LDFLAGS = -L$(SSLTOP)/lib
+-SSL_LIBS = -lssl -lcrypto
++SSL_LIBS = -lssl -lcrypto -lRSAglue -lrsaref
+
+ ###
+ # %EXPORT%
+@@ -132,9 +132,13 @@
+ autoconf
+
+ certificate::
+- $(SSLTOP)/bin/req -new -x509 -out new.pem -nodes -days 365
+- cat new.pem privkey.pem > $(etcdir)/bjorb.pem
+- @rm new.pem privkey.pem
++ (\
++ [ -f $(PREFIX)/certs/bjorb.pem ] && exit 0; \
++ cd $(PREFIX)/certs; \
++ ssleay req -new -x509 -nodes -days 365 -out bjorb.pem -keyout bjorb.pem; \
++ ln -s bjorb.pem `ssleay x509 -noout -hash < bjorb.pem`.0 ;\
++ chmod 644 $(PREFIX)/certs/bjorb.pem; \
++ )
+
+ install-freebsd::
+ cp ../doc/sample/bjorb.sh /usr/local/etc/rc.d/bjorb.sh
diff --git a/security/bjorb/files/patch-ab b/security/bjorb/files/patch-ab
new file mode 100644
index 000000000000..81ffc306b7e3
--- /dev/null
+++ b/security/bjorb/files/patch-ab
@@ -0,0 +1,14 @@
+--- ../../bjorb-0.5.3p1/doc/sample/bjorb.conf.sample Thu May 21 10:16:37 1998
++++ doc/sample/bjorb.conf.sample Wed Jun 3 02:29:29 1998
+@@ -55,8 +55,9 @@
+ spare_servers 2
+ do_fork true
+ deny_wait 0
+-CA_cert_file /usr/local/etc/bjorb.pem
+-CA_cert_path /usr/local/etc/CA
++#CA_cert_file /usr/local/certs/bjorb.pem
++#CA_cert_path /usr/local/etc/CA
++CA_make "FreeBSD Bjorb", 365, 1024
+
+ # TAG: accept [<interface>:]<port> [with <options>]
+ # options := SSL, VERIFY
diff --git a/security/bjorb/pkg-comment b/security/bjorb/pkg-comment
new file mode 100644
index 000000000000..cba7be0584cf
--- /dev/null
+++ b/security/bjorb/pkg-comment
@@ -0,0 +1 @@
+Secure TCP relay software with SSL.
diff --git a/security/bjorb/pkg-descr b/security/bjorb/pkg-descr
new file mode 100644
index 000000000000..482fef0aebbd
--- /dev/null
+++ b/security/bjorb/pkg-descr
@@ -0,0 +1,11 @@
+Bjorb is secure TCP relay software. Bjorb provides you, secure end-to-end
+connection over insecure network such as Internet.
+
+Features:
+ 1. Encrypt/decrypt any "static port" TCP connection with SSL.
+ 2. Restrcit access by IP address.
+ 3. Server side certification.
+ 4. Client side certification.
+
+Bjorb is written by Kenkichi Mahara <mahara@hitachi-ms.co.jp> and bjorb
+Web page is available at: http://www.hitachi-ms.co.jp/bjorb/
diff --git a/security/bjorb/pkg-plist b/security/bjorb/pkg-plist
new file mode 100644
index 000000000000..397ddff04c72
--- /dev/null
+++ b/security/bjorb/pkg-plist
@@ -0,0 +1,17 @@
+etc/bjorb.conf.sample
+etc/rc.d/bjorb.sh.sample
+sbin/bjorb
+share/doc/bjorb/COPYRIGHT
+share/doc/bjorb/README
+share/doc/bjorb/COPYRIGHT.jp
+share/doc/bjorb/INSTALL.jp
+share/doc/bjorb/README.jp
+share/doc/bjorb/bjorb.conf.5.jp.txt
+share/doc/bjorb/features.jp
+@dirrm share/doc/bjorb
+share/examples/bjorb/mail-client.conf
+share/examples/bjorb/mail-server.conf
+share/examples/bjorb/telnet-client.conf
+share/examples/bjorb/telnet-server.conf
+@dirrm share/examples/bjorb
+@exec ( [ -f %D/certs/bjorb.pem ] && exit ; echo "Making certificate files" ; cd %D/certs ; ssleay req -new -x509 -nodes -days 365 -out bjorb.pem -keyout bjorb.pem; ln -s bjorb.pem `ssleay x509 -noout -hash < bjorb.pem`.0 ; chmod 644 %D/certs/bjorb.pem )