c2d1a14c7c
- Bump PORTREVISION for ftp/curl shlib change - Add TEST_DEPENDS - Convert to new options framework - Adjust options: - Add COOKIES - Add CYASSL, NSS, POLARSSL, THREADED_RESOLVER, TLS_SRP [1] - Add GSSAPI and SPNEGO [2] - Remove KERBEROS4 - Rename LIBIDN to IDN - Remove TRACKMEMORY [1] - Sort option handler - Add SLAVEDIRS: ftp/curl-hiphop - Cosmetic change - Cleanup Makefile header - While I'm here, fix typo (PORTREVSION) in x11-wm/ede/Makefile Changes: http://curl.haxx.se/changes.html PR: ports/172325 (-exp run), ports/177369 (based on) [1] Submitted by: Hirohisa Yamaguchi <umq@ueo.co.jp> [1], hrs (via email) [2] Exp run by: miwi
66 lines
1.4 KiB
Makefile
66 lines
1.4 KiB
Makefile
# Created by: ache
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= authforce
|
|
PORTVERSION= 0.9.9
|
|
PORTREVISION= 2
|
|
CATEGORIES= security www
|
|
MASTER_SITES= http://cloud.github.com/downloads/zlandau/authforce/
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= HTTP authentication brute forcer
|
|
|
|
LICENSE= GPLv2
|
|
|
|
OPTIONS_DEFINE= CURL NLS
|
|
|
|
USES= ncurses
|
|
#USE_READLINE= yes
|
|
GNU_CONFIGURE= yes
|
|
USE_BZIP2= yes
|
|
MAKE_JOBS_SAFE= yes
|
|
NO_CCACHE= yes
|
|
|
|
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}
|
|
USES+= gettext
|
|
PLIST_FILES+= share/locale/nl/LC_MESSAGES/authforce.mo
|
|
CONFIGURE_ENV+= CPPFLAGS=-I${PREFIX}/include LDFLAGS=-L${PREFIX}/lib
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-nls
|
|
.endif
|
|
|
|
post-patch:
|
|
@${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>
|