freebsd-ports/security/authforce/Makefile
Baptiste Daroussin 7990f81066 Install texinfo files (GNU info) into ${PREFIX}/share/info
After a discussion on the mailing list on moving manpages to
${PREFIX}/share/man for consistency with base where it is
installed in usr/share/man, it appeared the same should happen
to GNU info files which were installed under share in base and
not in ports.

Now texinfo is not in base on any of the supported version of FreeBSD
it is possible to proceed to this move and it is easier to do than
the manpage change.

Other benefit than consistency are less patching: all build tools but
cmake are expecting info files to be under share/info and cmake (patched here)
was having an exception for BSD so the patch makes FreeBSD case less
specific for them

Bump revision of all impacted ports

PR:		232907
exp-run by:	antoine
Differential Revision:	https://reviews.freebsd.org/D17816
2018-11-10 18:12:57 +00:00

53 lines
1.2 KiB
Makefile

# Created by: ache
# $FreeBSD$
PORTNAME= authforce
PORTVERSION= 0.9.9
PORTREVISION= 6
CATEGORIES= security www
MASTER_SITES= GHC
MAINTAINER= ports@FreeBSD.org
COMMENT= HTTP authentication brute forcer
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
NO_CCACHE= yes
WRKSRC= ${WRKDIR}/${DISTNAME}
USE_GITHUB= yes
GH_ACCOUNT= zlandau
USES= localbase:ldflags ncurses readline tar:bzip2
GNU_CONFIGURE= yes
INFO= authforce
PLIST_FILES= bin/authforce \
man/man1/authforce.1.gz \
%%DATADIR%%/blank.lst \
%%DATADIR%%/dummy.lst \
%%DATADIR%%/password.lst \
%%DATADIR%%/username.lst \
%%DATADIR%%/userpass.lst
OPTIONS_DEFINE= CURL NLS
CURL_LIB_DEPENDS= libcurl.so:ftp/curl
CURL_CONFIGURE_WITH= curl
NLS_USES= gettext
NLS_CONFIGURE_ENABLE= nls
NLS_PLIST_FILES= share/locale/nl/LC_MESSAGES/authforce.mo
post-patch:
@${REINPLACE_CMD} -e \
'/^pwlistsdir = / s|/data$$||' ${WRKSRC}/data/Makefile.in
@${REINPLACE_CMD} -e \
'/^mangdir = / s|/mang$$|/man1|' ${WRKSRC}/doc/Makefile.in
@${FIND} ${WRKSRC}/src -name "*.c" | ${XARGS} ${REINPLACE_CMD} -e \
's|^\(#include <curl/types.h>\)|/* \1 */| ; \
s|^\(#include <malloc.h>\)|/* \1 */|'
.include <bsd.port.mk>