blob: cd1d7a70d31d3f9d22246dca518a7c2def35137a (
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
# Created by: Kay Lehmann <kay_lehmann@web.de>
# $FreeBSD$
PORTNAME= gorilla
PORTVERSION= 1.5.3.6
DISTVERSIONSUFFIX= a72f9d7
CATEGORIES= security
MASTER_SITES= LOCAL/crees/gorilla/ \
http://www.bayofrum.net/dist/${PORTNAME}/
DISTFILES= zdia-${PORTNAME}-v${DISTVERSION}-0-g${DISTVERSIONSUFFIX}${EXTRACT_SUFX}
MAINTAINER= crees@FreeBSD.org
COMMENT= Password Gorilla is a cross-platform Password Manager
LICENSE= GPLv2
RUN_DEPENDS= itcl>=3.4:${PORTSDIR}/lang/itcl \
wish:${PORTSDIR}/x11-toolkits/tk-wrapper
.include <bsd.port.options.mk>
.if ${ARCH} == i386
GORILLAARCH= FreeBSD-x86
DISTFILES+= gorilla-sha256-${DISTVERSION}_1${EXTRACT_SUFX}
.elif ${ARCH} == amd64
GORILLAARCH= FreeBSD-${ARCH}
DISTFILES+= gorilla-sha256-${DISTVERSION}_1${EXTRACT_SUFX}
.else
GORILLAARCH= bogus
WITHOUTSO= "@comment "
.endif
PLIST_SUB+= GORILLAARCH=${GORILLAARCH:L} WITHOUTSO=${WITHOUTSO}
WRKSRC= ${WRKDIR}/zdia-${PORTNAME}-${DISTVERSIONSUFFIX}
USES= tk:85+,run
SUB_FILES= gorilla
SUB_LIST= WISH=${WISH}
PORTDOCS= *
SRC_DIRS= blowfish modules msgs pics pwsafe tcllib twofish
post-patch:
# We don't want Linux/Windows/Darwin binaries thank you
.for irrelevant in linux-ix86 linux-x86_64 macosx-ix86 \
macosx-x86_64 win32-ix86 win32-x86_64
${RM} -r ${WRKSRC}/sources/tcllib/sha256c/${irrelevant}
.endfor
.for irrelevant in f32-Darwin-x86.dylib f32-Windows-x86.dll \
f32-Linux-x86.so f32-Linux-x86_64.so
${RM} ${WRKSRC}/sources/twofish/${irrelevant}
.endfor
do-build:
.if !defined(WITHOUTSO)
${MV} ${WRKDIR}/${PORTNAME}-sha256/sha256/${GORILLAARCH}/ \
${WRKSRC}/sources/tcllib/sha256c/${GORILLAARCH:L}
.endif
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/gorilla
@${INSTALL_SCRIPT} ${WRKSRC}/sources/*.tcl \
${STAGEDIR}${PREFIX}/lib/gorilla
.for dir in ${SRC_DIRS}
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/${dir}
@cd ${WRKSRC}/sources/${dir} \
&& ${COPYTREE_SHARE} \* \
${STAGEDIR}${PREFIX}/lib/${PORTNAME}/${dir}
.endfor
@${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/README \
${WRKSRC}/sources/README.install-from-source \
${WRKSRC}/sources/CHANGES.txt \
${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|