2000-12-06 13:56:28 +00:00
|
|
|
# ex:ts=8
|
|
|
|
# Ports collection makefile for: bk2site
|
|
|
|
# Date created: Wed Dec 06, 2000
|
|
|
|
# Whom: clive
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= bk2site
|
2001-01-01 20:26:46 +00:00
|
|
|
PORTVERSION= 1.1.6
|
2001-01-02 23:16:11 +00:00
|
|
|
PORTREVISION= 1
|
2000-12-06 13:56:28 +00:00
|
|
|
CATEGORIES= www
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
|
|
|
|
MAINTAINER= clive@FreeBSD.org
|
|
|
|
|
2001-01-02 23:16:11 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
APXS= ${LOCALBASE}/sbin/apxs
|
|
|
|
.if exists(${APXS})
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13
|
|
|
|
|
|
|
|
# Specify these directories in relative paths to ${PREFIX}.
|
|
|
|
.if !exists(${PREFIX}/www) && exists(${PREFIX}/share/apache)
|
|
|
|
CGIDIR?= share/apache/cgi-bin
|
|
|
|
ICONSDIR?= share/apache/icons
|
|
|
|
.else
|
|
|
|
CGIDIR?= www/cgi-bin/${PORTNAME}
|
|
|
|
ICONSDIR?= www/icons/${PORTNAME}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.else # No apache installed.
|
|
|
|
CGIDIR?= share/${PORTNAME}
|
|
|
|
ICONSDIR?= share/${PORTNAME}
|
|
|
|
.endif
|
|
|
|
|
2001-01-01 20:26:46 +00:00
|
|
|
MAN1= bk2site.1
|
2000-12-06 13:56:28 +00:00
|
|
|
USE_GMAKE= yes
|
2001-01-01 20:26:46 +00:00
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= --prefix="${PREFIX}" --enable-standard-datadir
|
2000-12-06 13:56:28 +00:00
|
|
|
|
2001-01-02 23:16:11 +00:00
|
|
|
PLIST_SUB= CGIDIR="${CGIDIR}" ICONSDIR="${ICONSDIR}"
|
|
|
|
|
2000-12-06 13:56:28 +00:00
|
|
|
post-patch:
|
2001-01-02 23:16:11 +00:00
|
|
|
@${PERL} -pi -e 's,/etc/bk2site,${PREFIX}/etc/bk2site,' \
|
|
|
|
${WRKSRC}/dot.bk2siterc ${WRKSRC}/search.pl ${WRKSRC}/bk2site.1 \
|
|
|
|
${WRKSRC}/bk2site.html
|
|
|
|
@${PERL} -pi -e 's,/icons/,/icons/bk2site/,' ${WRKSRC}/*
|
2000-12-06 13:56:28 +00:00
|
|
|
|
2001-01-01 20:26:46 +00:00
|
|
|
post-install:
|
2000-12-06 13:56:28 +00:00
|
|
|
${MKDIR} ${PREFIX}/etc/${PORTNAME}
|
2001-01-02 23:16:11 +00:00
|
|
|
${MKDIR} ${PREFIX}/${ICONSDIR}
|
|
|
|
${MKDIR} ${PREFIX}/${CGIDIR}
|
2001-01-01 20:26:46 +00:00
|
|
|
${CP} ${WRKSRC}/*.html ${PREFIX}/etc/${PORTNAME}
|
2001-01-02 23:16:11 +00:00
|
|
|
${CP} ${WRKSRC}/*.gif ${PREFIX}/${ICONSDIR}
|
|
|
|
${CP} ${WRKSRC}/*.pl ${PREFIX}/${CGIDIR}
|
2001-01-09 12:12:02 +00:00
|
|
|
${CHMOD} +x ${PREFIX}/${CGIDIR}/*.pl
|
2000-12-06 13:56:28 +00:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
2001-01-02 23:16:11 +00:00
|
|
|
.include <bsd.port.post.mk>
|