openbsd-ports/security/py-paramiko/Makefile

45 lines
1.1 KiB
Makefile
Raw Normal View History

2010-11-20 12:22:40 -05:00
# $OpenBSD: Makefile,v 1.23 2010/11/20 17:22:45 espie Exp $
2009-08-31 21:29:02 -04:00
COMMENT = Python module that implements the SSH2 protocol
MODPY_EGG_VERSION = 1.7.6
2009-08-31 21:29:02 -04:00
DISTNAME = paramiko-${MODPY_EGG_VERSION}
PKGNAME = py-${DISTNAME}
2010-08-30 17:16:17 -04:00
REVISION= 0
2009-08-31 21:29:02 -04:00
CATEGORIES = security
2009-08-31 21:29:02 -04:00
HOMEPAGE = http://www.lag.net/paramiko/
2009-08-31 21:29:02 -04:00
MAINTAINER = Benoit Lecocq <benoit@openbsd.org>
# LGPL
2009-08-31 21:29:02 -04:00
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM = Yes
PERMIT_DISTFILES_FTP = Yes
2009-08-31 21:29:02 -04:00
MASTER_SITES = ${HOMEPAGE}download/
2009-08-31 21:29:02 -04:00
MODULES = lang/python
2009-08-31 21:29:02 -04:00
MODPY_SETUPTOOLS = Yes
2010-11-20 12:22:40 -05:00
RUN_DEPENDS = security/py-crypto
REGRESS_DEPENDS = ${RUN_DEPENDS}
pre-build:
2009-08-31 21:29:02 -04:00
@perl -pi -e "s,^\#\!/usr/bin/env python,#!${MODPY_BIN}," \
${WRKSRC}/demos/*.py
post-install:
2009-08-31 21:29:02 -04:00
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/py-paramiko
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/py-paramiko
${INSTALL_DATA} ${WRKSRC}/docs/* ${PREFIX}/share/doc/py-paramiko
${INSTALL_DATA} ${WRKSRC}/demos/* \
${PREFIX}/share/examples/py-paramiko
do-regress:
cd ${WRKSRC} && ${MODPY_BIN} test.py --verbose
.include <bsd.port.mk>