View | Details | Raw Unified | Return to bug 179594
Collapse All | Expand All

(-)security/revelation/Makefile (-23 / +8 lines)
Lines 3-8 Link Here
3
3
4
PORTNAME=	revelation
4
PORTNAME=	revelation
5
PORTVERSION=	0.4.14
5
PORTVERSION=	0.4.14
6
PORTREVISION=	1
6
CATEGORIES=	security gnome
7
CATEGORIES=	security gnome
7
MASTER_SITES=	http://cdn.bitbucket.org/erikg/revelation/downloads/
8
MASTER_SITES=	http://cdn.bitbucket.org/erikg/revelation/downloads/
8
9
Lines 11-28 Link Here
11
12
12
LICENSE=	GPLv2
13
LICENSE=	GPLv2
13
14
14
FETCH_DEPENDS=	${NONEXISTENT}:${PORTSDIR}/security/cracklib:patch
15
BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}dbus>0:${PORTSDIR}/devel/py-dbus \
15
BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}dbus>0:${PORTSDIR}/devel/py-dbus \
16
		${PYTHON_PKGNAMEPREFIX}pycrypto>0:${PORTSDIR}/security/py-pycrypto
16
		${PYTHON_PKGNAMEPREFIX}pycrypto>0:${PORTSDIR}/security/py-pycrypto
17
LIB_DEPENDS=	crack:${PORTSDIR}/security/cracklib
17
LIB_DEPENDS=	crack:${PORTSDIR}/security/cracklib
18
RUN_DEPENDS:=	${BULID_DEPENDS}
18
RUN_DEPENDS:=	${BULID_DEPENDS} \
19
		${PYTHON_PKGNAMEPREFIX}cracklib>0:${PORTSDIR}/security/py-cracklib
19
20
20
OPTIONS_DEFINE=	APPLET
21
OPTIONS_DEFINE=	APPLET
21
APPLET_DESC=	Build with applet
22
APPLET_DESC=	Build with applet
22
23
23
USE_BZIP2=	yes
24
USE_BZIP2=	yes
24
USES=		pathfix pkgconfig gettext
25
USES=		desktop-file-utils gettext pathfix pkgconfig \
25
USE_GNOME=	desktopfileutils gnomeprefix pygnome2
26
		shared-mime-info shebangfix
27
SHEBANG_FILES= src/revelation.py
28
USE_GNOME=	gnomeprefix pygnome2
26
USE_PYTHON=	yes
29
USE_PYTHON=	yes
27
USE_GMAKE=	yes
30
USE_GMAKE=	yes
28
GNU_CONFIGURE=	yes
31
GNU_CONFIGURE=	yes
Lines 47-73 Link Here
47
PLIST_SUB+=	APPLET="@comment "
50
PLIST_SUB+=	APPLET="@comment "
48
.endif
51
.endif
49
52
50
.include <bsd.port.pre.mk>
51
52
CRACK_WRKSRC=	$$(cd ${PORTSDIR}/security/cracklib && ${MAKE} -V WRKSRC)	
53
54
post-patch:
53
post-patch:
55
	@${REINPLACE_CMD} -e \
54
	@${REINPLACE_CMD} -e \
56
		's|^#!.*|#!${SETENV} python|' ${WRKSRC}/src/revelation.py
57
	@${REINPLACE_CMD} -e \
58
		'/FascistCheck/s|(password)|(password, "${DICTPATH}")|' \
55
		'/FascistCheck/s|(password)|(password, "${DICTPATH}")|' \
59
		${WRKSRC}/src/lib/util.py
56
		${WRKSRC}/src/lib/util.py
60
57
61
post-build:
58
.include <bsd.port.mk>
62
	@(cd ${CRACK_WRKSRC}/python && ${CC} -shared -fPIC \
63
		-I${PYTHON_INCLUDEDIR} -I${LOCALBASE}/include ${CFLAGS} \
64
		-o _cracklib.so _cracklib.c -L${LOCALBASE}/lib -lcrack -lz)
65
	@${PYTHON_CMD} -m compileall ${CRACK_WRKSRC}/python
66
	@${PYTHON_CMD} -O -m compileall ${CRACK_WRKSRC}/python
67
68
post-install:
69
	(cd ${CRACK_WRKSRC}/python && ${INSTALL_DATA} \
70
		_cracklib.so cracklib.py* \
71
		${PYTHONPREFIX_SITELIBDIR}/revelation)
72
73
.include <bsd.port.post.mk>
(-)security/revelation/pkg-plist (-8 lines)
Lines 1-5 Link Here
1
bin/revelation
1
bin/revelation
2
%%PYTHON_SITELIBDIR%%/revelation/_cracklib.so
3
%%PYTHON_SITELIBDIR%%/revelation/PBKDF2.py
2
%%PYTHON_SITELIBDIR%%/revelation/PBKDF2.py
4
%%PYTHON_SITELIBDIR%%/revelation/PBKDF2.pyc
3
%%PYTHON_SITELIBDIR%%/revelation/PBKDF2.pyc
5
%%PYTHON_SITELIBDIR%%/revelation/PBKDF2.pyo
4
%%PYTHON_SITELIBDIR%%/revelation/PBKDF2.pyo
Lines 21-29 Link Here
21
%%PYTHON_SITELIBDIR%%/revelation/config.py
20
%%PYTHON_SITELIBDIR%%/revelation/config.py
22
%%PYTHON_SITELIBDIR%%/revelation/config.pyc
21
%%PYTHON_SITELIBDIR%%/revelation/config.pyc
23
%%PYTHON_SITELIBDIR%%/revelation/config.pyo
22
%%PYTHON_SITELIBDIR%%/revelation/config.pyo
24
%%PYTHON_SITELIBDIR%%/revelation/cracklib.py
25
%%PYTHON_SITELIBDIR%%/revelation/cracklib.pyc
26
%%PYTHON_SITELIBDIR%%/revelation/cracklib.pyo
27
%%PYTHON_SITELIBDIR%%/revelation/data.py
23
%%PYTHON_SITELIBDIR%%/revelation/data.py
28
%%PYTHON_SITELIBDIR%%/revelation/data.pyc
24
%%PYTHON_SITELIBDIR%%/revelation/data.pyc
29
%%PYTHON_SITELIBDIR%%/revelation/data.pyo
25
%%PYTHON_SITELIBDIR%%/revelation/data.pyo
Lines 112-118 Link Here
112
@dirrm %%PYTHON_SITELIBDIR%%/revelation/datahandler
108
@dirrm %%PYTHON_SITELIBDIR%%/revelation/datahandler
113
@dirrm %%PYTHON_SITELIBDIR%%/revelation/bundle
109
@dirrm %%PYTHON_SITELIBDIR%%/revelation/bundle
114
@dirrm %%PYTHON_SITELIBDIR%%/revelation
110
@dirrm %%PYTHON_SITELIBDIR%%/revelation
115
@exec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true
116
@unexec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true
117
@exec %%LOCALBASE%%/bin/update-mime-database %D/share/mime
118
@unexec %%LOCALBASE%%/bin/update-mime-database %D/share/mime

Return to bug 179594