summaryrefslogtreecommitdiff
path: root/security/tinyca/Makefile
blob: 2f49c4c96164065ce74da093460ea621fa56d172 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# $NetBSD: Makefile,v 1.6 2006/01/24 07:32:33 wiz Exp $

DISTNAME=	tinyca-0.6.8
PKGREVISION=	1
CATEGORIES=	security
MASTER_SITES=	http://tinyca.sm-zone.net/

MAINTAINER=	adrianp@NetBSD.org
HOMEPAGE=	http://tinyca.sm-zone.net/
COMMENT=	GUI written in Perl/Gtk to manage a small CA

DEPENDS+=	p5-gtk>=0.7009:../../x11/p5-gtk
DEPENDS+=	p5-Gdk-Imlib>=0.7009:../../graphics/p5-Gdk-Imlib
DEPENDS+=	p5-Gnome>=0.7009:../../graphics/p5-Gnome
DEPENDS+=	p5-gettext-[0-9]*:../../devel/p5-gettext
DEPENDS+=	zip-[0-9]*:../../archivers/zip

NO_BUILD=	YES
CADIR=		${PREFIX}/share/tinyca

USE_TOOLS+=	perl:run
REPLACE_PERL=	tinyca

BUILDLINK_DEPENDS.openssl+=	openssl>=0.9.7d

SUBST_CLASSES+=		script
SUBST_STAGE.script=	post-patch
SUBST_FILES.script=	tinyca
SUBST_SED.script=	-e "s|./lib|${CADIR}|g" \
			-e "s|/usr/bin/openssl\
			|${BUILDLINK_PREFIX.openssl}/bin/openssl|g" \
			-e "s|/usr/bin/zip|${PREFIX}/bin/zip|g" \
			-e "s|./templates|${CADIR}/templates|g"
SUBST_MESSAGE.script=	"Fixing hardcoded paths."

INSTALLATION_DIRS=	bin

.include "../../security/openssl/buildlink3.mk"

do-install:
	${INSTALL_DATA_DIR} ${CADIR}
	${INSTALL_DATA_DIR} ${CADIR}/GUI
	${INSTALL_DATA_DIR} ${CADIR}/templates
	${INSTALL_SCRIPT} ${WRKSRC}/tinyca ${PREFIX}/bin
	${INSTALL_DATA} ${WRKSRC}/lib/*.pm ${CADIR}
	${INSTALL_DATA} ${WRKSRC}/lib/GUI/*.pm ${CADIR}/GUI
	${INSTALL_DATA} ${WRKSRC}/templates/openssl.cnf ${CADIR}/templates

.include "../../mk/bsd.pkg.mk"