summaryrefslogtreecommitdiffstats
path: root/security/bugs/Makefile
blob: 2fb483c84f7915fec1cc7594be349aae0a74ca2f (plain)
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
# New ports collection makefile for:	bugs
# Date created:		20 June 1998
# Whom:			Stephane Legrand
#
# $FreeBSD$
#

PORTNAME=		bugs
PORTVERSION=		4.1.0
CATEGORIES=		security
MASTER_SITES=		http://www.encryptsolutions.com/english/download/ \
			http://www.bcrypt.com/english/download/
EXTRACT_SUFX=		.tgz

MAINTAINER=		stephane@freebsd-fr.org
COMMENT=	Great cryptography library and sample programs

PLIST_SUB+=		PORTVERSION=${PORTVERSION}

USE_GMAKE=		yes

# No Manual page

# Cryptography = be extra careful...
NO_CDROM=	may contain export-restricted material
NO_PACKAGE=	may contain export-restricted material

post-configure:
	(cd ${WRKSRC}; ${MAKE} bsd)
	${MV} ${WRKSRC}/Makefile ${WRKSRC}/Makefile.pre_sed
	${SED} -e 's:^INSTALL_PATH = "/usr/local/bugs-.*":INSTALL_PATH = "${PREFIX}/${DISTNAME}":' \
		-e 's/^install: instchoice all/install: instchoice/' \
		< ${WRKSRC}/Makefile.pre_sed > ${WRKSRC}/Makefile

post-build:
	${CP} ${WRKSRC}/lib/unix/*.a ${WRKSRC}/lib/

pre-install:
	(cd ${WRKSRC}; ${MAKE} test)

post-install:
.if !defined(NOPORTDOCS)
	${CP} -R ${WRKSRC}/doc ${PREFIX}/${DISTNAME}
.endif
	${CP} -R ${WRKSRC}/include ${PREFIX}/${DISTNAME}
	strip ${PREFIX}/${DISTNAME}/bchat \
		${PREFIX}/${DISTNAME}/bcrypt \
		${PREFIX}/${DISTNAME}/bhide \
		${PREFIX}/${DISTNAME}/bkey \
		${PREFIX}/${DISTNAME}/block \
		${PREFIX}/${DISTNAME}/blogin \
		${PREFIX}/${DISTNAME}/bmore \
		${PREFIX}/${DISTNAME}/bpass \
		${PREFIX}/${DISTNAME}/bpassdel \
		${PREFIX}/${DISTNAME}/bunlock \

.include <bsd.port.mk>
OpenPOWER on IntegriCloud