reinstate tinyca; this works again now that Perl is linked -lpthread
(note that xca has more, and more modern, options - but tinyca can be a bit easier to get working) ok jasper@
This commit is contained in:
parent
c15631e1ad
commit
3d4d40074f
47
security/tinyca/Makefile
Normal file
47
security/tinyca/Makefile
Normal file
@ -0,0 +1,47 @@
|
||||
# $OpenBSD: Makefile,v 1.9 2013/03/27 11:16:32 sthen Exp $
|
||||
|
||||
COMMENT= GUI to manage a certification authority
|
||||
|
||||
DISTNAME= tinyca2-0.7.5
|
||||
REVISION= 1
|
||||
CATEGORIES= security
|
||||
|
||||
HOMEPAGE= http://tinyca.sm-zone.net/
|
||||
|
||||
# GPLv2+
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
|
||||
MASTER_SITES= ${HOMEPAGE}
|
||||
|
||||
RUN_DEPENDS= archivers/zip \
|
||||
devel/p5-Locale-gettext \
|
||||
x11/p5-Gtk2
|
||||
BUILD_DEPENDS= ${RUN_DEPENDS}
|
||||
|
||||
NO_BUILD= Yes
|
||||
NO_TEST= Yes
|
||||
|
||||
PKG_ARCH= *
|
||||
|
||||
LANGS= cs de es fr sv
|
||||
|
||||
do-configure:
|
||||
@${SUBST_CMD} ${WRKSRC}/tinyca2
|
||||
|
||||
do-install:
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/tinyca2 ${PREFIX}/bin
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/tinyca2/templates
|
||||
${INSTALL_DATA} ${WRKSRC}/templates/openssl.cnf \
|
||||
${PREFIX}/share/tinyca2/templates
|
||||
|
||||
.for l in ${LANGS}
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/tinyca2/locale/$l/LC_MESSAGES/
|
||||
@msgfmt ${WRKSRC}/po/$l.po \
|
||||
-o ${PREFIX}/share/tinyca2/locale/$l/LC_MESSAGES/tinyca2.mo
|
||||
.endfor
|
||||
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/lib/tinyca2/GUI
|
||||
${INSTALL_DATA} ${WRKSRC}/lib/*.pm ${PREFIX}/lib/tinyca2
|
||||
${INSTALL_DATA} ${WRKSRC}/lib/GUI/*.pm ${PREFIX}/lib/tinyca2/GUI
|
||||
|
||||
.include <bsd.port.mk>
|
2
security/tinyca/distinfo
Normal file
2
security/tinyca/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (tinyca2-0.7.5.tar.gz) = QievOP7jEHQdop/waBu6VfVHVI2YtqXmGz92hYjeR90=
|
||||
SIZE (tinyca2-0.7.5.tar.gz) = 290081
|
41
security/tinyca/patches/patch-tinyca2
Normal file
41
security/tinyca/patches/patch-tinyca2
Normal file
@ -0,0 +1,41 @@
|
||||
$OpenBSD: patch-tinyca2,v 1.3 2013/03/27 11:16:32 sthen Exp $
|
||||
--- tinyca2.orig Thu Jul 13 11:57:01 2006
|
||||
+++ tinyca2 Thu Jul 13 12:03:39 2006
|
||||
@@ -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 { unshift(@INC, './lib'); # put here the location of the modules
|
||||
+BEGIN { unshift(@INC, '${TRUEPREFIX}/lib/tinyca2'); # put here the location of the modules
|
||||
}
|
||||
|
||||
use strict;
|
||||
@@ -46,7 +46,7 @@ use KEY;
|
||||
use TCONFIG;
|
||||
|
||||
setlocale(LC_MESSAGES, "");
|
||||
-bindtextdomain("tinyca2", "./locale/");
|
||||
+bindtextdomain("tinyca2", "${TRUEPREFIX}/share/tinyca2/locale/");
|
||||
textdomain("tinyca2");
|
||||
|
||||
# https://bugs.gentoo.org/show_bug.cgi?id=78576
|
||||
@@ -55,8 +55,8 @@ $ENV{XLIB_SKIP_ARGB_VISUALS}= '1';
|
||||
my $init = {};
|
||||
|
||||
# location of openssl
|
||||
-$init->{'opensslbin'} = "/usr/bin/openssl";
|
||||
-$init->{'zipbin'} = "/usr/bin/zip";
|
||||
+$init->{'opensslbin'} = "/usr/sbin/openssl";
|
||||
+$init->{'zipbin'} = "${LOCALBASE}/bin/zip";
|
||||
$init->{'tarbin'} = "/bin/tar";
|
||||
|
||||
if(not -x $init->{'opensslbin'}) {
|
||||
@@ -76,7 +76,7 @@ if(not -x $init->{'zipbin'}) {
|
||||
}
|
||||
|
||||
# directory with the templates
|
||||
-$init->{'templatedir'} = "./templates";
|
||||
+$init->{'templatedir'} = "${TRUEPREFIX}/share/tinyca2/templates";
|
||||
|
||||
if(not -d $init->{'templatedir'}) {
|
||||
print gettext("Can't find templatedir.\n");
|
3
security/tinyca/pkg/DESCR
Normal file
3
security/tinyca/pkg/DESCR
Normal file
@ -0,0 +1,3 @@
|
||||
TinyCA is a simple graphical userinterface written in Perl/Gtk2 to
|
||||
manage a small CA (Certification Authority). TinyCA works as a frontend
|
||||
for OpenSSL.
|
37
security/tinyca/pkg/PLIST
Normal file
37
security/tinyca/pkg/PLIST
Normal file
@ -0,0 +1,37 @@
|
||||
@comment $OpenBSD: PLIST,v 1.6 2013/03/27 11:16:32 sthen Exp $
|
||||
bin/tinyca2
|
||||
lib/tinyca2/
|
||||
lib/tinyca2/CA.pm
|
||||
lib/tinyca2/CERT.pm
|
||||
lib/tinyca2/GUI/
|
||||
lib/tinyca2/GUI.pm
|
||||
lib/tinyca2/GUI/CALLBACK.pm
|
||||
lib/tinyca2/GUI/HELPERS.pm
|
||||
lib/tinyca2/GUI/TCONFIG.pm
|
||||
lib/tinyca2/GUI/WORDS.pm
|
||||
lib/tinyca2/GUI/X509_browser.pm
|
||||
lib/tinyca2/GUI/X509_infobox.pm
|
||||
lib/tinyca2/HELPERS.pm
|
||||
lib/tinyca2/KEY.pm
|
||||
lib/tinyca2/OpenSSL.pm
|
||||
lib/tinyca2/REQ.pm
|
||||
lib/tinyca2/TCONFIG.pm
|
||||
share/tinyca2/
|
||||
share/tinyca2/locale/
|
||||
share/tinyca2/locale/cs/
|
||||
share/tinyca2/locale/cs/LC_MESSAGES/
|
||||
share/tinyca2/locale/cs/LC_MESSAGES/tinyca2.mo
|
||||
share/tinyca2/locale/de/
|
||||
share/tinyca2/locale/de/LC_MESSAGES/
|
||||
share/tinyca2/locale/de/LC_MESSAGES/tinyca2.mo
|
||||
share/tinyca2/locale/es/
|
||||
share/tinyca2/locale/es/LC_MESSAGES/
|
||||
share/tinyca2/locale/es/LC_MESSAGES/tinyca2.mo
|
||||
share/tinyca2/locale/fr/
|
||||
share/tinyca2/locale/fr/LC_MESSAGES/
|
||||
share/tinyca2/locale/fr/LC_MESSAGES/tinyca2.mo
|
||||
share/tinyca2/locale/sv/
|
||||
share/tinyca2/locale/sv/LC_MESSAGES/
|
||||
share/tinyca2/locale/sv/LC_MESSAGES/tinyca2.mo
|
||||
share/tinyca2/templates/
|
||||
share/tinyca2/templates/openssl.cnf
|
Loading…
Reference in New Issue
Block a user