svn commit: r306478 - in head/security/authforce: . files
Baptiste Daroussin
bapt at FreeBSD.org
Fri Oct 26 23:54:33 UTC 2012
Author: bapt
Date: Fri Oct 26 23:54:32 2012
New Revision: 306478
URL: http://svn.freebsd.org/changeset/ports/306478
Log:
- Update MASTER_SITES and WWW: line
- Add LICENSE
- Add MAKE_JOBS_SAFE
- Support PLIST_FILES
Remove file:
files/patch-ad
pkg-plist
Comment for now USE_READLINE as it is buggy
PR: ports/172053
Submitted by: KATO Tsuguru <tkato432 at yahoo.com>
Feature safe: yes
Deleted:
head/security/authforce/files/
head/security/authforce/pkg-plist
Modified:
head/security/authforce/Makefile
head/security/authforce/pkg-descr
Modified: head/security/authforce/Makefile
==============================================================================
--- head/security/authforce/Makefile Fri Oct 26 23:32:25 2012 (r306477)
+++ head/security/authforce/Makefile Fri Oct 26 23:54:32 2012 (r306478)
@@ -1,38 +1,63 @@
-# Ports collection makefile for: authforce
-# Date created: 08.05.2002
-# Whom: ache
-#
+# Created by: ache
# $FreeBSD$
-#
PORTNAME= authforce
PORTVERSION= 0.9.9
CATEGORIES= security www
-MASTER_SITES= http://www.divineinvasion.net/authforce/
+MASTER_SITES= http://cloud.github.com/downloads/zlandau/authforce/
MAINTAINER= ports at FreeBSD.org
COMMENT= HTTP authentication brute forcer
-DEPRECATED= No more public distfiles
-EXPIRATION_DATE= 2012-10-20
+LICENSE= GPLv2
-LIB_DEPENDS= curl.6:${PORTSDIR}/ftp/curl
+OPTIONS_DEFINE= CURL NLS
-CONFIGURE_ENV= LIBS="-lintl"
-LDFLAGS+= -L${LOCALBASE}/lib
-CPPFLAGS+= -I${LOCALBASE}/include
+USE_NCURSES= yes
+#USE_READLINE= yes
GNU_CONFIGURE= yes
USE_BZIP2= yes
-USE_GETTEXT= yes
+MAKE_JOBS_SAFE= yes
+NO_CCACHE= yes
-INFO= authforce
-MAN1= authforce.1
MANCOMPRESSED= yes
+MAN1= authforce.1
+INFO= authforce
+
+PLIST_FILES= bin/authforce \
+ %%DATADIR%%/blank.lst \
+ %%DATADIR%%/dummy.lst \
+ %%DATADIR%%/password.lst \
+ %%DATADIR%%/username.lst \
+ %%DATADIR%%/userpass.lst
+
+PLIST_DIRS= %%DATADIR%%
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MCURL}
+LIB_DEPENDS+= curl:${PORTSDIR}/ftp/curl
+.else
+CONFIGURE_ARGS+= --without-curl
+.endif
+
+.if ${PORT_OPTIONS:MNLS}
+USE_GETTEXT= yes
+PLIST_FILES+= share/locale/nl/LC_MESSAGES/authforce.mo
+.else
+CONFIGURE_ARGS+= --disable-nls
+.endif
post-patch:
- @${REINPLACE_CMD} -e '/#include <malloc.h>/d' ${WRKSRC}/src/methods.c ${WRKSRC}/src/misc.c
- @${REINPLACE_CMD} -e 's|#include <malloc.h>|#include <stdlib.h>|' ${WRKSRC}/src/extract.c
- @${REINPLACE_CMD} -e '/^pwlistsdir = / s|/data$$||' ${WRKSRC}/data/Makefile.in
- @${REINPLACE_CMD} -e '/<curl\/types.h>/d' ${WRKSRC}/src/http.c
+ @${REINPLACE_CMD} -e \
+ '/^pwlistsdir = / s|/data$$||' ${WRKSRC}/data/Makefile.in
+ @${REINPLACE_CMD} -e \
+ '/^mangdir = / s|/mang$$|/man1|' ${WRKSRC}/doc/Makefile.in
+ @${REINPLACE_CMD} -e \
+ '/<curl\/types.h>/d' ${WRKSRC}/src/http.c
+.for i in extract.c methods.c misc.c
+ @${REINPLACE_CMD} -e \
+ 's|<malloc.h>|<stdlib.h>|' ${WRKSRC}/src/${i}
+.endfor
.include <bsd.port.mk>
Modified: head/security/authforce/pkg-descr
==============================================================================
--- head/security/authforce/pkg-descr Fri Oct 26 23:32:25 2012 (r306477)
+++ head/security/authforce/pkg-descr Fri Oct 26 23:54:32 2012 (r306478)
@@ -5,4 +5,4 @@ and common username/password pairs. It i
of your site and to prove the insecurity of HTTP authentication based on
the fact that users just don't pick good passwords.
-WWW: http://www.divineinvasion.net/authforce/
+WWW: https://github.com/zlandau/authforce
More information about the svn-ports-all
mailing list