freebsd-ports/security/revelation/Makefile
Tobias Kortkamp 401bff0e0b security/revelation: Chase dictionary rename from r408137
r408137 of security/cracklib renamed pw_dict to cracklib-words and
revelation now fails to check passwords with 9 characters or more:

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/revelation/dialog.py", line 1183, in __cb_changed
    util.check_password(password)
  File "/usr/local/lib/python2.7/site-packages/revelation/util.py", line 97, in check_password
    cracklib.FascistCheck(password, "/usr/local/libdata/cracklib/pw_dict")
OSError: [Errno 2] No such file or directory: '/usr/local/libdata/cracklib/pw_dict.pwd'

PR:		212367
Submitted by:	Tomoaki AOKI <junchoon@dec.sakura.ne.jp>
2018-10-09 08:45:49 +00:00

41 lines
1.2 KiB
Makefile

# Created by: ports@c0decafe.net
# $FreeBSD$
PORTNAME= revelation
PORTVERSION= 0.4.14
PORTREVISION= 6
CATEGORIES= security gnome
MASTER_SITES= https://bitbucket.org/erikg/revelation/downloads/
MAINTAINER= ports@FreeBSD.org
COMMENT= Password manager for the GNOME 2 desktop
LICENSE= GPLv2
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dbus>0:devel/py-dbus@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pycrypto>0:security/py-pycrypto@${PY_FLAVOR}
LIB_DEPENDS= libcrack.so:security/cracklib
RUN_DEPENDS:= ${BUILD_DEPENDS} \
${PYTHON_PKGNAMEPREFIX}cracklib>0:security/py-cracklib@${PY_FLAVOR}
USES= desktop-file-utils gettext gmake pathfix pkgconfig python:2.7 \
shared-mime-info shebangfix tar:bzip2
SHEBANG_FILES= src/revelation.py
USE_GNOME= gnomeprefix pygnome2 intltool
GNU_CONFIGURE= yes
INSTALLS_ICONS= yes
CONFIGURE_ARGS= --without-applet --disable-desktop-update --disable-mime-update
GCONF_SCHEMAS= revelation.schemas
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
DICTPATH= ${LOCALBASE}/libdata/cracklib/cracklib-words
post-patch:
@${REINPLACE_CMD} -e \
'/FascistCheck/s|(password)|(password, "${DICTPATH}")|' \
${WRKSRC}/src/lib/util.py
.include <bsd.port.mk>