2012-11-22 12:30:39 +00:00
|
|
|
# Created by: Emanuel Haupt <ehaupt@FreeBSD.org>
|
2006-10-05 12:50:47 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= sshfp
|
2012-11-22 12:30:39 +00:00
|
|
|
PORTVERSION= 1.2.2
|
2006-10-05 12:50:47 +00:00
|
|
|
CATEGORIES= dns security
|
|
|
|
|
|
|
|
MAINTAINER= ehaupt@FreeBSD.org
|
|
|
|
COMMENT= Generate SSHFP DNS records from knownhosts files or ssh-keyscan
|
|
|
|
|
2011-12-27 15:14:23 +00:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2011-04-16 20:44:14 +00:00
|
|
|
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/dns/__init__.py:${PORTSDIR}/dns/py-dnspython \
|
2012-11-22 12:30:39 +00:00
|
|
|
${PYTHON_PKGNAMEPREFIX}argparse>=0.8.0:${PORTSDIR}/devel/py-argparse \
|
|
|
|
${PYTHON_PKGNAMEPREFIX}ipcalc>=0.6:${PORTSDIR}/net-mgmt/py-ipcalc \
|
|
|
|
${PYTHON_SITELIBDIR}/ldns.py:${PORTSDIR}/dns/py-ldns
|
2006-10-05 12:50:47 +00:00
|
|
|
|
|
|
|
NO_BUILD= yes
|
2014-01-13 21:00:02 +00:00
|
|
|
USE_PYTHON= yes
|
2012-11-22 12:30:39 +00:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= xelerance
|
|
|
|
GH_TAGNAME= ${PORTVERSION}
|
|
|
|
GH_COMMIT= 3378f7d
|
2006-10-05 12:50:47 +00:00
|
|
|
|
2011-04-16 20:44:14 +00:00
|
|
|
PY_FILES= sshfp dane
|
2006-10-05 12:50:47 +00:00
|
|
|
|
2012-11-22 12:30:39 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${GH_ACCOUNT}-${PORTNAME}-${GH_COMMIT}
|
|
|
|
|
2006-10-05 12:50:47 +00:00
|
|
|
post-patch:
|
2012-11-22 12:30:39 +00:00
|
|
|
.for f in ${PY_FILES} daneldnsx.py
|
2011-04-16 20:44:14 +00:00
|
|
|
@${REINPLACE_CMD} -e '1s|.*|#!${PYTHON_CMD}|' ${WRKSRC}/${f}
|
|
|
|
.endfor
|
2006-10-05 12:50:47 +00:00
|
|
|
|
|
|
|
do-install:
|
2011-04-16 20:44:14 +00:00
|
|
|
.for f in ${PY_FILES}
|
2013-11-13 13:02:56 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/${f} ${STAGEDIR}${PREFIX}/bin
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/${f}.1 ${STAGEDIR}${MANPREFIX}/man/man1
|
2011-04-16 20:44:14 +00:00
|
|
|
.endfor
|
2013-11-13 13:02:56 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/daneldnsx.py ${STAGEDIR}${PYTHON_SITELIBDIR}
|
2006-10-05 12:50:47 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|