summaryrefslogtreecommitdiff
path: root/net/bb/Makefile
blob: 1af527c97f8657b4c73d3ca3b77d44d1b3bbc920 (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
# New ports collection makefile for:	bb
# Version required:     1.04H
# Date created:         So  17 Nov 1996 16:59:23 MET
# Whom:                 Andreas Klemm <andreas@klemm.gtn.com>
#
# $Id: Makefile,v 1.33 1999/08/27 22:29:52 mharo Exp $
#

DISTNAME=	bb-1.2a
CATEGORIES=	net
MASTER_SITES=	http://maclawran.ca/~sean/bb-dnld/ \
		http://freefall.freebsd.org/~andreas/download/

MAINTAINER=	andreas@FreeBSD.ORG

# The FreeBSD Ports Team has permission to include this in our CDROM
# from the author, but others who wish to do likewise will have to
# contact Sean MacGuire <sean@iti.qc.ca>.

WRKSRC=		${WRKDIR}/bb

pre-configure:
	@${ECHO_MSG} "==================================================="
	@${ECHO_MSG} "You need to install a WWW Server to use this port"
	@${ECHO_MSG} "For example: - apache13 or "
	@${ECHO_MSG} "             - apache13-modssl
	@${ECHO_MSG} "port."
	@${ECHO_MSG} "==================================================="

post-configure:
	( cd ${WRKSRC}/doc; ${SH} bbconfig freebsd )
	@${CP} ${FILESDIR}/Makefile ${WRKSRC}

do-install:
	@cd ${WRKDIR} && find . -name "*.orig" | xargs ${RM}
	@cd ${WRKDIR}; tar --exclude 'src' -c -f - bb \
		| ( cd ${PREFIX}; tar xpf - )
	@${LN} -fs ${PREFIX}/bb/www ${PREFIX}/share/apache/htdocs/bb
	@${LN} -fs bb.html ${PREFIX}/bb/www/index.html
	@${LN} -fs ${PREFIX}/bb/web/bb-ack.sh ${PREFIX}/share/apache/cgi-bin
	@${MV} -f ${PREFIX}/bb/doc/bbclient ${PREFIX}/bb/bin
	@${MV} -f ${PREFIX}/bb/doc/bbconfig ${PREFIX}/bb/bin
	@${MV} -f ${PREFIX}/bb/doc ${PREFIX}/share/doc/bb
	@${MKDIR} ${PREFIX}/share/bb/bbclients
	@${TOUCH} ${PREFIX}/share/bb/bbclients/.keep_me
	@${RM} ${PREFIX}/bb/KNOWN.BUGS
	@${RM} ${PREFIX}/bb/README
	@${RM} ${PREFIX}/bb/README.CHANGES
	@${RM} ${PREFIX}/bb/README.INSTALL
	@${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>