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> |