summaryrefslogtreecommitdiffstats
path: root/converters/dumpasn1/Makefile
blob: 779f3f2857185d83c9dbc925505583fb947f7807 (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
# Created by: kris@FreeBSD.org
# $FreeBSD$

PORTNAME=	dumpasn1
PORTVERSION=	20141219
CATEGORIES=	converters security
MASTER_SITES=	https://www.cs.auckland.ac.nz/~pgut001/
DISTFILES=	dumpasn1.c dumpasn1.cfg
DIST_SUBDIR=	${PORTNAME}-${PORTVERSION}
EXTRACT_ONLY=	yes

MAINTAINER=	ale@FreeBSD.org
COMMENT=	Dumps the contents of an ASN.1 encoded file, e.g. an SSL certificate


do-extract:
	@${MKDIR} ${WRKSRC}
	@${CP} ${DISTDIR}/${DIST_SUBDIR}/dumpasn1.c ${WRKSRC}

do-build:
	cd ${WRKSRC} && \
	${CC} ${CFLAGS} -DCONFIG_NAME=\"${PREFIX}/share/dumpasn1/dumpasn1.cfg\" -o dumpasn1 dumpasn1.c

do-install:
	@${MKDIR} ${STAGEDIR}${PREFIX}/share/dumpasn1
	${INSTALL_PROGRAM} ${WRKSRC}/dumpasn1 ${STAGEDIR}${PREFIX}/bin
	${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/dumpasn1.cfg ${STAGEDIR}${PREFIX}/share/dumpasn1

.include <bsd.port.mk>
OpenPOWER on IntegriCloud