mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-26 00:55:14 +00:00
b2d4b657d1
- Trim headers while I am here - Clean up some trailing whitespace
44 lines
1.0 KiB
Makefile
44 lines
1.0 KiB
Makefile
# Created by: Janos Mohacsi <janos.mohacsi@bsd.hu>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= denyhosts
|
|
PORTVERSION= 2.6
|
|
PORTREVISION= 4
|
|
CATEGORIES= security
|
|
MASTER_SITES= SF
|
|
DISTNAME= DenyHosts-${PORTVERSION}
|
|
|
|
MAINTAINER= jmohacsi@bsd.hu
|
|
COMMENT= Script to thwart ssh attacks
|
|
|
|
USE_PYTHON= yes
|
|
USE_PYDISTUTILS= yes
|
|
PYDISTUTILS_PKGNAME= DenyHosts
|
|
|
|
USE_RC_SUBR= denyhosts
|
|
SUB_LIST+= PYTHON=${PYTHON_CMD}
|
|
SUB_FILES= pkg-message
|
|
|
|
PORTDOCS= CHANGELOG.txt LICENSE.txt README.txt
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},' \
|
|
${WRKSRC}/daemon-control-dist \
|
|
${WRKSRC}/denyhosts.cfg-dist \
|
|
${WRKSRC}/setup.py
|
|
@${RM} ${WRKSRC}/scripts/restricted_from_passwd.py.orig
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKSRC}/denyhosts.cfg-dist ${PREFIX}/etc/denyhosts.conf-dist
|
|
[ -f ${PREFIX}/etc/denyhosts.conf ] || \
|
|
${INSTALL_DATA} ${WRKSRC}/denyhosts.cfg-dist ${PREFIX}/etc/denyhosts.conf
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
. for f in ${PORTDOCS}
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
|
|
. endfor
|
|
.endif
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.mk>
|