freebsd-ports/security/dropbear/Makefile
Clement Laforet ef8dc8e847 Security fix.
- Update to 0.43
  This release fixes a DSS verification vulnerability.
  See:
  http://www.freebsd.org/ports/portaudit/0316f983-dfb6-11d8-9b0a-000347a4fa7d.html
2004-07-31 09:10:43 +00:00

46 lines
1.4 KiB
Makefile

# New ports collection makefile for: dropbear
# Date created: 20 August 2003
# Whom: Clement Laforet <sheepkiller@cultdeadsheep.org>
#
# $FreeBSD$
#
PORTNAME= dropbear
PORTVERSION= 0.43
CATEGORIES= security ipv6
MASTER_SITES= http://matt.ucc.asn.au/dropbear/releases/
MAINTAINER= clement@FreeBSD.org
COMMENT= An SSH 2 server, designed to be usable in small memory environments
GNU_CONFIGURE= YES
USE_GMAKE= YES
USE_REINPLACE= YES
.if defined(WANT_STATIC)
CONFIGURE_ENV= LDFLAGS=-static
.endif
post-patch:
@${REINPLACE_CMD} -e "s,_PRIV_FILENAME \"/etc/,_PRIV_FILENAME \"${PREFIX}/etc/,g; \
s,/usr/bin/X11/,${X11BASE}/,g" ${WRKSRC}/options.h
@${REINPLACE_CMD} -e "s,sys/dir.h,dirent.h," ${WRKSRC}/*.[ch]
${REINPLACE_CMD} -e "s,make clean,\$${MAKE} clean," \
${WRKSRC}/libtomcrypt/makefile
@${SED} -e 's:__PREFIX__:${PREFIX}:g' \
${FILESDIR}/dropbear.sh > ${WRKSRC}/dropbear.sh
post-install:
@${MKDIR} ${PREFIX}/etc/dropbear
@${ECHO_MSG} ""
@${INSTALL_SCRIPT} ${WRKSRC}/dropbear.sh ${PREFIX}/etc/rc.d/dropbear.sh.sample
@${ECHO_MSG} " Now you have to create your SSH host key."
@${ECHO_MSG} ""
@${ECHO_MSG} " To create RSA key:"
@${ECHO_MSG} " ${PREFIX}/sbin/dropbearkey -t rsa -f ${PREFIX}/etc/dropbear/dropbear_rsa_host_key"
@${ECHO_MSG} ""
@${ECHO_MSG} " For more details, run ${PREFIX}/sbin/dropbearkey -h"
@${ECHO_MSG} ""
.include <bsd.port.mk>