aboutsummaryrefslogtreecommitdiff
path: root/security/revelation/Makefile
blob: e5a4a8134233f19deb709ffe89812b69b1d25f79 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Created by: ports@c0decafe.net
# $FreeBSD$

PORTNAME=	revelation
PORTVERSION=	0.4.14
PORTREVISION=	1
CATEGORIES=	security gnome
MASTER_SITES=	http://cdn.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:${PORTSDIR}/devel/py-dbus \
		${PYTHON_PKGNAMEPREFIX}pycrypto>0:${PORTSDIR}/security/py-pycrypto
LIB_DEPENDS=	crack:${PORTSDIR}/security/cracklib
RUN_DEPENDS:=	${BULID_DEPENDS} \
		${PYTHON_PKGNAMEPREFIX}cracklib>0:${PORTSDIR}/security/py-cracklib

OPTIONS_DEFINE=	APPLET
APPLET_DESC=	Build with applet

USE_BZIP2=	yes
USES=		desktop-file-utils gettext pathfix pkgconfig \
		shared-mime-info shebangfix
SHEBANG_FILES= src/revelation.py
USE_GNOME=	gnomeprefix pygnome2
USE_PYTHON=	yes
USE_GMAKE=	yes
GNU_CONFIGURE=	yes
INSTALLS_ICONS=	yes
MAKE_JOBS_SAFE=	yes

GCONF_SCHEMAS=	revelation.schemas

CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib

DICTPATH=	${LOCALBASE}/libdata/cracklib/pw_dict

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MAPPLET}
USE_GNOME+=	pygnomedesktop pygnomeextras
CONFIGURE_ARGS+=	--with-applet
GCONF_SCHEMAS+=	revelation-applet.schemas
PLIST_SUB+=	APPLET=""
.else
PLIST_SUB+=	APPLET="@comment "
.endif

post-patch:
	@${REINPLACE_CMD} -e \
		'/FascistCheck/s|(password)|(password, "${DICTPATH}")|' \
		${WRKSRC}/src/lib/util.py

.include <bsd.port.mk>