Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Sep 2012 02:26:18 +0900
From:      KATO Tsuguru <tkato432@yahoo.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/172053: security/authforce: Update MASTER_SITES
Message-ID:  <20120926022618.424fbeadb6be9170e9593250@yahoo.com>
Resent-Message-ID: <201209251820.q8PIKFv7034692@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         172053
>Category:       ports
>Synopsis:       security/authforce: Update MASTER_SITES
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 25 18:20:14 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 7.4-RELEASE-p10 i386
>Organization:
>Environment:
>Description:
- Update MASTER_SITES and WWW: line
- Add LICENSE
- Add MAKE_JOBS_SAFE
- Support PLIST_FILES

Remove file:
files/patch-ad
pkg-plist

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/security/authforce/Makefile security/authforce/Makefile
--- /usr/ports/security/authforce/Makefile	2012-09-21 19:07:33.000000000 +0900
+++ security/authforce/Makefile	2012-09-25 03:40:54.000000000 +0900
@@ -1,38 +1,64 @@
-# Ports collection makefile for:  authforce
-# Date created:                   08.05.2002
-# Whom:                           ache
-#
+# Created by: ache
 # $FreeBSD: ports/security/authforce/Makefile,v 1.22 2012/09/21 10:07:33 bapt Exp $
-#
 
 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@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
+OPTIONS_DEFAULT=CURL
 
-CONFIGURE_ENV=	LIBS="-lintl"
-LDFLAGS+=	-L${LOCALBASE}/lib
-CPPFLAGS+=	-I${LOCALBASE}/include
-GNU_CONFIGURE=	yes
 USE_BZIP2=	yes
-USE_GETTEXT=	yes
+USE_NCURSES=	yes
+USE_READLINE=	yes
+GNU_CONFIGURE=	yes
+MAKE_JOBS_SAFE=	yes
+
+CPPFLAGS+=	-I${LOCALBASE}/include
+LDFLAGS+=	-L${LOCALBASE}/lib
 
-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>
diff -urN /usr/ports/security/authforce/files/patch-ad security/authforce/files/patch-ad
--- /usr/ports/security/authforce/files/patch-ad	2011-09-02 01:54:01.000000000 +0900
+++ security/authforce/files/patch-ad	1970-01-01 09:00:00.000000000 +0900
@@ -1,11 +0,0 @@
---- doc/Makefile.in.orig	2007-05-14 06:54:38.000000000 +0800
-+++ doc/Makefile.in	2011-08-30 16:43:21.864890601 +0800
-@@ -68,7 +68,7 @@
- AM_MAKEINFOHTMLFLAGS = $(AM_MAKEINFOFLAGS)
- DVIPS = dvips
- am__installdirs = "$(DESTDIR)$(infodir)" "$(DESTDIR)$(mangdir)"
--mangdir = $(mandir)/mang
-+mangdir = $(mandir)/man1
- NROFF = nroff
- MANS = $(man_MANS)
- DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
diff -urN /usr/ports/security/authforce/pkg-descr security/authforce/pkg-descr
--- /usr/ports/security/authforce/pkg-descr	2011-09-02 01:54:01.000000000 +0900
+++ security/authforce/pkg-descr	2012-09-22 04:44:11.000000000 +0900
@@ -5,4 +5,4 @@
 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
diff -urN /usr/ports/security/authforce/pkg-plist security/authforce/pkg-plist
--- /usr/ports/security/authforce/pkg-plist	2011-09-02 01:54:01.000000000 +0900
+++ security/authforce/pkg-plist	1970-01-01 09:00:00.000000000 +0900
@@ -1,8 +0,0 @@
-bin/authforce
-%%DATADIR%%/blank.lst
-%%DATADIR%%/dummy.lst
-%%DATADIR%%/password.lst
-%%DATADIR%%/username.lst
-%%DATADIR%%/userpass.lst
-share/locale/nl/LC_MESSAGES/authforce.mo
-@dirrm %%DATADIR%%
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120926022618.424fbeadb6be9170e9593250>