summaryrefslogtreecommitdiffstats
path: root/net/delegate/Makefile
blob: 8b619b9f37442b8317a23c80dfdc917dfca9bc8b (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
58
59
60
61
62
63
# New ports collection makefile for:	DeleGate
# Date created:			26 Jan 1997
# Whom:				Masafumi NAKANE <max@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	delegate
PORTVERSION=	7.9.4
CATEGORIES=	net www
MASTER_SITES=	ftp://ftp.delegate.org/pub/DeleGate/ \
		http://www.delegate.org/pub/DeleGate/
DISTNAME=	${PORTNAME}${PORTVERSION}

MAINTAINER=	max@FreeBSD.org

USE_BZIP2=	YES
NO_PACKAGE=	"Insecure program."
IS_INTERACTIVE=	YES

pre-fetch:
.if !defined(FORCE_BUILD) || ${FORCE_BUILD}!="YES"
	@${ECHO} "*********************************************************************"
	@${ECHO} "*   WARNING!     WARNING!     WARNING!     WARNING!     WARNING!    *"
	@${ECHO} "* This program has know security problems which may allow a remote  *"
	@${ECHO} "* attacker to take control of your machine.                         *"
	@${ECHO} "* See FreeBSD security advisory 00:04 for more information.         *"
	@${ECHO} "*                                                                   *"
	@${ECHO} "* It is strongly recommended that you avoid using this program.     *"
	@${ECHO} "*                                                                   *"
	@${ECHO} "* If you would like to use this program despite the danger, run     *"
	@${ECHO} "* make with ``FORCE_BUILD=YES''                                     *"
	@${ECHO} "*   WARNING!     WARNING!     WARNING!     WARNING!     WARNING!    *"
	@${ECHO} "*********************************************************************"
	@${FALSE}
.else
	@${ECHO} "*********************************************************************"
	@${ECHO} "*   WARNING!     WARNING!     WARNING!     WARNING!     WARNING!    *"
	@${ECHO} "* You have chosen to build an insecure program.                     *"
	@${ECHO} "* This program has know security problems which may allow a remote  *"
	@${ECHO} "* attacker to take control of your machine.                         *"
	@${ECHO} "* See FreeBSD security advisory 00:04 for more information.         *"
	@${ECHO} "*********************************************************************"
.endif
.if defined(FTP_PASSIVE_MODE) && ${FTP_PASSIVE_MODE}=="YES"
	@${ECHO} "Note: If you have trouble retrieving the distfile, try"
	@${ECHO} "      \"unsetenv FTP_PASSIVE_MODE\" before running make."
.endif

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/src/delegated ${PREFIX}/sbin
	@${MKDIR} ${PREFIX}/share/examples/delegate
	${INSTALL_DATA} ${FILESDIR}/delegated.sh \
	   ${PREFIX}/share/examples/delegate
.if !defined(NOPORTDOCS)
	@${MKDIR} ${PREFIX}/share/doc/delegate
.for f in Manual.htm tutor-jp.htm tutor-en.htm
	${INSTALL_DATA} ${WRKSRC}/doc/$f ${PREFIX}/share/doc/delegate
.endfor
.endif
	@${CAT} ${PKGMESSAGE}

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