Index: head/security/bruteblock/Makefile =================================================================== --- head/security/bruteblock/Makefile (revision 383614) +++ head/security/bruteblock/Makefile (revision 383615) @@ -1,40 +1,40 @@ # Created by: Dmitry Marakasov # $FreeBSD$ PORTNAME= bruteblock PORTVERSION= 0.0.5 -PORTREVISION= 6 +PORTREVISION= 7 CATEGORIES= security MASTER_SITES= http://samm.kiev.ua/bruteblock/ \ http://mirror.amdmi3.ru/distfiles/ MAINTAINER= amdmi3@FreeBSD.org COMMENT= Software for blocking bruteforce attacks with ipfw LIB_DEPENDS= libpcre.so:${PORTSDIR}/devel/pcre PKGMESSAGE= ${WRKDIR}/pkg-message SUB_FILES= pkg-message USE_RC_SUBR= bruteblockd CONFDIR= ${PREFIX}/etc/${PORTNAME} PORTDOCS= FAQ README CHANGES OPTIONS_DEFINE= DOCS do-install: ${INSTALL_PROGRAM} ${WRKSRC}/bruteblock ${STAGEDIR}${PREFIX}/sbin/ ${INSTALL_PROGRAM} ${WRKSRC}/bruteblockd ${STAGEDIR}${PREFIX}/sbin/ ${MKDIR} ${STAGEDIR}${CONFDIR} .for file in ssh proftpd ${INSTALL_DATA} ${WRKSRC}/etc/${file}.conf ${STAGEDIR}${CONFDIR}/${file}.conf.dist .endfor ${INSTALL_MAN} ${WRKSRC}/doc/bruteblock.8 ${STAGEDIR}${MAN8PREFIX}/man/man8/ ${MKDIR} ${STAGEDIR}${DOCSDIR} .for file in ${PORTDOCS} ${INSTALL_DATA} ${WRKSRC}/doc/${file} ${STAGEDIR}${DOCSDIR}/ .endfor .include Index: head/security/bruteblock/files/patch-bruteblock.c =================================================================== --- head/security/bruteblock/files/patch-bruteblock.c (revision 383614) +++ head/security/bruteblock/files/patch-bruteblock.c (revision 383615) @@ -1,11 +1,12 @@ --- bruteblock.c.orig 2006-08-20 08:22:37.000000000 +0200 +++ bruteblock.c 2014-10-15 16:19:19.000000000 +0200 @@ -99,7 +99,7 @@ snprintf(table, sizeof(table), "%d", ipfw2_table_no); argv[1] = table; argv[2] = command; - snprintf(utime, sizeof(utime), "%d", +- time(NULL) + reset_ip); + snprintf(utime, sizeof(utime), "%lld", - time(NULL) + reset_ip); ++ (long long)(time(NULL) + reset_ip)); argv[4] = utime; argv[3] = host;