diff options
author | krion <krion@FreeBSD.org> | 2003-08-31 16:49:28 +0800 |
---|---|---|
committer | krion <krion@FreeBSD.org> | 2003-08-31 16:49:28 +0800 |
commit | 518d448fd71db671f29e057228608348a2a6cad4 (patch) | |
tree | d3bb7bf5d85553520e8b3cac6efbf4b1390ce7ee /security | |
parent | 2b59e1d5001c97542eebc72c77802b8a6f9d7e6c (diff) | |
download | freebsd-ports-gnome-518d448fd71db671f29e057228608348a2a6cad4.tar.gz freebsd-ports-gnome-518d448fd71db671f29e057228608348a2a6cad4.tar.zst freebsd-ports-gnome-518d448fd71db671f29e057228608348a2a6cad4.zip |
- New port: security/tinyca version 0.4.9
TinyCA is a simple graphical userinterface written in Perl/Tk
to manage a small CA (Certification Authority).
PR: 54571
Submitted by: Janos Mohacsi <janos.mohacsi@bsd.hu>
Diffstat (limited to 'security')
-rw-r--r-- | security/Makefile | 1 | ||||
-rw-r--r-- | security/tinyca/Makefile | 45 | ||||
-rw-r--r-- | security/tinyca/distinfo | 1 | ||||
-rw-r--r-- | security/tinyca/files/patch-lib::CA.pm | 11 | ||||
-rw-r--r-- | security/tinyca/files/patch-tinyca | 29 | ||||
-rw-r--r-- | security/tinyca/pkg-descr | 22 | ||||
-rw-r--r-- | security/tinyca/pkg-plist | 11 |
7 files changed, 120 insertions, 0 deletions
diff --git a/security/Makefile b/security/Makefile index fb074cd29fb8..6b255a973423 100644 --- a/security/Makefile +++ b/security/Makefile @@ -361,6 +361,7 @@ SUBDIR += tea-total SUBDIR += termlog SUBDIR += tinc + SUBDIR += tinyca SUBDIR += trinokiller SUBDIR += tripwire SUBDIR += tripwire-131 diff --git a/security/tinyca/Makefile b/security/tinyca/Makefile new file mode 100644 index 000000000000..624b76bcef96 --- /dev/null +++ b/security/tinyca/Makefile @@ -0,0 +1,45 @@ +# New ports collection makefile for: tinyca +# Date created: 17 July 2003 +# Whom: Janos.Mohacsi@bsd.hu +# +# $FreeBSD$ +# + +PORTNAME= tinyca +PORTVERSION= 0.4.9 +CATEGORIES= security net +MASTER_SITES= http://tinyca.sm-zone.net/ + +MAINTAINER= Janos.Mohacsi@bsd.hu +COMMENT= Simple graphical interface to manage a small Certification Authority + +RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Tk.pm:${PORTSDIR}/x11-toolkits/p5-Tk \ + ${SITE_PERL}/${PERL_ARCH}/Locale/gettext.pm:${PORTSDIR}/devel/p5-Locale-gettext \ + zip:${PORTSDIR}/archivers/zip + +WRKSRC= ${WRKDIR}/TinyCA +USE_PERL5= yes +USE_OPENSSL= yes +NO_BUILD= yes +DOC_FILES= INSTALL +LIB_FILES= CA.pm CERT.pm GUI.pm KEY.pm OpenSSL.pm REQ.pm TCONFIG.pm + +do-install: + @${MKDIR} ${SITE_PERL}/${PORTNAME}/ +.for file in ${LIB_FILES} + @${INSTALL_DATA} ${WRKSRC}/lib/${file} ${SITE_PERL}/${PORTNAME} +.endfor + @${INSTALL_DATA} ${WRKSRC}/templates/openssl.cnf ${PREFIX}/etc/tinyca.cnf + @${SED} -e "s:%%PREFIX%%:${PREFIX}:g" -e "s:%%SITE_PERL%%:${SITE_PERL}:g" \ + ${WRKSRC}/tinyca >${WRKSRC}/tinyca.new + @${INSTALL_SCRIPT} ${WRKSRC}/tinyca.new ${PREFIX}/bin/tinyca + +post-install: +.ifndef(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} +.for file in ${DOC_FILES} + @${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} +.endfor +.endif + +.include <bsd.port.mk> diff --git a/security/tinyca/distinfo b/security/tinyca/distinfo new file mode 100644 index 000000000000..1fb694d799de --- /dev/null +++ b/security/tinyca/distinfo @@ -0,0 +1 @@ +MD5 (tinyca-0.4.9.tar.gz) = eabbf1023c77c2e0e0b8300999462f83 diff --git a/security/tinyca/files/patch-lib::CA.pm b/security/tinyca/files/patch-lib::CA.pm new file mode 100644 index 000000000000..bccae6296ffd --- /dev/null +++ b/security/tinyca/files/patch-lib::CA.pm @@ -0,0 +1,11 @@ +--- lib/CA.pm.orig Tue Jul 1 00:33:18 2003 ++++ lib/CA.pm Tue Jul 15 17:05:35 2003 +@@ -328,7 +328,7 @@ + }; + + # create configuration file +- my $in = $self->{'init'}->{'templatedir'}."/openssl.cnf"; ++ my $in = $self->{'init'}->{'templatedir'}."/tinyca.cnf"; + my $out = $self->{$name}->{'dir'}."/openssl.cnf"; + + open(IN, "<$in") || do { diff --git a/security/tinyca/files/patch-tinyca b/security/tinyca/files/patch-tinyca new file mode 100644 index 000000000000..c8d200f0e7fe --- /dev/null +++ b/security/tinyca/files/patch-tinyca @@ -0,0 +1,29 @@ +--- tinyca.orig Thu Jul 3 19:20:48 2003 ++++ tinyca Thu Jul 17 11:21:29 2003 +@@ -18,7 +18,7 @@ + # along with this program; if not, write to the Free Software + # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + +-BEGIN { push(@INC, './lib'); } # put here the location of the modules ++BEGIN { push(@INC, '%%SITE_PERL%%/tinyca'); } # put here the location of the modules + + use strict; + +@@ -47,7 +47,7 @@ + + # location of openssl + $init->{'opensslbin'} = "/usr/bin/openssl"; +-$init->{'zipbin'} = "/usr/bin/zip"; ++$init->{'zipbin'} = "%%PREFIX%%/bin/zip"; + + if(not -x $init->{'opensslbin'}) { + printf(gettext("Can't execute %s.\n"), $init->{'opensslbin'}); +@@ -61,7 +61,7 @@ + } + + # directory with the templates +-$init->{'templatedir'} = "./templates"; ++$init->{'templatedir'} = "%%PREFIX%%/etc"; + + if(not -d $init->{'templatedir'}) { + print gettext("Can't find templatedir.\n"); diff --git a/security/tinyca/pkg-descr b/security/tinyca/pkg-descr new file mode 100644 index 000000000000..a73a620dad7a --- /dev/null +++ b/security/tinyca/pkg-descr @@ -0,0 +1,22 @@ +TinyCA is a simple graphical userinterface written in Perl/Tk to manage a +small CA (Certification Authority). +Features: + +Currently TinyCA supports the following features: + + * Creation and Revocation of x509 - S/MIME certificates + * PKCS#10 Requests can be imported and signed + * Servercertificates + o Certificates can be exported as: PEM, DER, TXT and PKCS#12 + o Certificates may be used with e.g. Apache, Postfix, OpenLDAP, + Cyrus and FreeS/WAN + * Clientcertificates + o Certificates can be exported as: PEM, DER, TXT and PKCS#12 + o Certificates may be used with e.g. Netscape, Konqueror, Opera, + Internet Explorer, Outlook (Express) and FreeS/WAN + * Certificate Revocation List + o CRLs can be exported as: PEM, DER and TXT + +WWW: http://tinyca.sm-zone.net/ + +Janos Mohacsi <janos.mohacsi@bsd.hu> diff --git a/security/tinyca/pkg-plist b/security/tinyca/pkg-plist new file mode 100644 index 000000000000..002ded0d0208 --- /dev/null +++ b/security/tinyca/pkg-plist @@ -0,0 +1,11 @@ +bin/tinyca +%%SITE_PERL%%/tinyca/CA.pm +%%SITE_PERL%%/tinyca/CERT.pm +%%SITE_PERL%%/tinyca/GUI.pm +%%SITE_PERL%%/tinyca/KEY.pm +%%SITE_PERL%%/tinyca/OpenSSL.pm +%%SITE_PERL%%/tinyca/REQ.pm +%%SITE_PERL%%/tinyca/TCONFIG.pm +@dirrm %%SITE_PERL%%/tinyca/ +%%PORTDOCS%%%%DOCSDIR%%/INSTALL +%%PORTDOCS%%@dirrm %%DOCSDIR%% |