[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / net / ucspi-ssl

File: [cvs.NetBSD.org] / pkgsrc / net / ucspi-ssl / Makefile (download)

Revision 1.1, Wed Jan 11 20:17:58 2006 UTC (13 years, 2 months ago) by schmonz
Branch: MAIN

Initial revision

# $NetBSD: Makefile,v 1.1 2006/01/11 20:17:58 schmonz Exp $
#

DISTNAME=		ucspi-ssl-0.70
CATEGORIES=		net
MASTER_SITES=		http://www.superscript.com/ucspi-ssl/

MAINTAINER=		schmonz@NetBSD.org
HOMEPAGE=		http://www.superscript.com/ucspi-ssl/intro.html
COMMENT=		Command-line tools for SSL client-server applications

DEPENDS+=		ucspi-tcp-[0-9]*:../../net/ucspi-tcp

WRKSRC=			${WRKDIR}/host/superscript.com/net/${PKGNAME_NOREV}
DJB_SLASHPACKAGE=	YES

USE_TOOLS+=		perl:run

SSL_SCRIPTS=		https@ sslcat sslconnect

SUBST_CLASSES+=		paths
SUBST_STAGE.paths=	do-configure
SUBST_FILES.paths=	${SSL_SCRIPTS:S/^/src\//g:S/$/.sh/g}
SUBST_SED.paths=	-e 's|HOME/command/|${PREFIX}/bin/|g'
SUBST_MESSAGE.paths=	"Fixing paths."

DJB_CONFIG_CMDS=							\
	${ECHO} ${LOCALBASE}/bin > conf-tcpbin;				\
	${ECHO} > conf-ssl;						\
	${ECHO} ${PERL5} > conf-perl;					\
	${ECHO} ${PKG_SYSCONFDIR} > conf-cadir

.include "../../mk/bsd.prefs.mk"

# from ../../security/openssl/Makefile
.if ${OPSYS} == "NetBSD"
PKG_SYSCONFDIR.ucspi-ssl?=	/etc/openssl
.endif
PKG_SYSCONFSUBDIR=	openssl

INSTALLATION_DIRS=	bin share/doc/ucspi-ssl

do-install:
.	for i in ${SSL_SCRIPTS}
	  ${INSTALL_SCRIPT} ${WRKSRC}/command/${i} ${PREFIX}/bin
.	endfor

.	for i in sslclient sslserver sslperl
	  ${INSTALL_PROGRAM} ${WRKSRC}/command/${i} ${PREFIX}/bin
.	endfor

.	for i in CHANGES TODO UCSPI-SSL
	  ${INSTALL_DATA} ${WRKSRC}/src/${i} ${PREFIX}/share/doc/ucspi-ssl
.	endfor

.include "../../lang/perl5/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/djbware.mk"
.include "../../mk/bsd.pkg.mk"