2000-09-17 22:36:32 +00:00
|
|
|
# New ports collection makefile for: oops
|
|
|
|
# Date created: 15 August 2000
|
2003-03-24 15:13:35 +00:00
|
|
|
# Whom: Sergey Osokin aka oZZ <osa@FreeBSD.org.ru>
|
2000-09-17 22:36:32 +00:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= oops
|
2003-11-20 10:35:27 +00:00
|
|
|
PORTVERSION= ${OOPSVERSION}
|
2005-08-24 17:56:38 +00:00
|
|
|
PORTREVISION= 4
|
2000-09-17 22:36:32 +00:00
|
|
|
CATEGORIES= www
|
2006-04-22 08:36:04 +00:00
|
|
|
MASTER_SITES= http://oops-cache.org/ \
|
|
|
|
ftp://kucha.ru/pub/misc/oops/
|
2002-03-12 22:40:15 +00:00
|
|
|
DISTNAME= ${PORTNAME}-${OOPSVERSION}
|
|
|
|
|
2004-10-12 15:03:52 +00:00
|
|
|
MAINTAINER= marck@FreeBSD.org
|
2003-02-20 19:21:36 +00:00
|
|
|
COMMENT= A caching web proxy server
|
2000-09-17 22:36:32 +00:00
|
|
|
|
2002-12-13 23:09:44 +00:00
|
|
|
BUILD_DEPENDS+= gawk:${PORTSDIR}/lang/gawk
|
|
|
|
|
2005-02-05 18:33:40 +00:00
|
|
|
OOPSVERSION= 1.5.24
|
2002-03-12 22:40:15 +00:00
|
|
|
|
2002-03-25 09:19:20 +00:00
|
|
|
USE_SUBMAKE= yes
|
2005-11-15 06:52:12 +00:00
|
|
|
USE_AUTOTOOLS= autoconf:259
|
2002-02-14 14:04:58 +00:00
|
|
|
CONFIGURE_ARGS?=--sbindir=${PREFIX}/sbin \
|
2000-09-17 22:36:32 +00:00
|
|
|
--sysconfdir=${PREFIX}/etc/oops \
|
2002-02-14 14:04:58 +00:00
|
|
|
--localstatedir=${OOPSVAR} \
|
2000-09-17 22:36:32 +00:00
|
|
|
--libdir=${PREFIX}/libexec/oops \
|
2001-04-30 16:07:28 +00:00
|
|
|
--enable-oops-user=oops \
|
2002-02-14 14:04:58 +00:00
|
|
|
--enable-large-files
|
2004-02-12 14:04:59 +00:00
|
|
|
CONFIGURE_ENV+= CFLAGS="${CFLAGS} -fPIC" \
|
|
|
|
CXXFLAGS="${CXXFLAGS} -fPIC" \
|
2003-11-20 10:35:27 +00:00
|
|
|
PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
|
2003-09-24 09:51:07 +00:00
|
|
|
PTHREAD_LIBS="${PTHREAD_LIBS}"
|
2000-09-17 22:36:32 +00:00
|
|
|
|
2000-12-14 17:31:34 +00:00
|
|
|
MAN8= oops.8 oopsctl.8
|
2002-02-14 14:04:58 +00:00
|
|
|
OOPSVAR= /var/run/oops
|
2005-02-05 18:33:40 +00:00
|
|
|
OOPSLOG= /var/log/oops
|
2002-02-14 14:04:58 +00:00
|
|
|
|
2005-02-05 18:33:40 +00:00
|
|
|
USE_RC_SUBR= YES
|
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
|
2005-05-30 21:20:39 +00:00
|
|
|
OPTIONS= GIGABASE "GigaBase storage" on \
|
|
|
|
DB4 "Berkeley DB v4 storage" off \
|
|
|
|
MYSQL "MySQL auth support" off \
|
|
|
|
PGSQL "PostgreSQL auth support" off \
|
|
|
|
PCRE "PCRE support" off
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_GIGABASE)
|
|
|
|
.if defined (WITH_DB4)
|
|
|
|
BROKEN= "Only one DB storage can be used (First)"
|
|
|
|
.endif
|
2005-02-05 18:33:40 +00:00
|
|
|
LIB_DEPENDS+= gigabase_r.2:${PORTSDIR}/databases/gigabase
|
|
|
|
CONFIGURE_ARGS+= --without-DB
|
|
|
|
.endif
|
|
|
|
|
2005-05-30 21:20:39 +00:00
|
|
|
.if defined(WITH_DB4)
|
|
|
|
.if defined(WITHOUT_GIGABASE)
|
|
|
|
LIB_DEPENDS+= db4.0:${PORTSDIR}/databases/db4
|
|
|
|
CONFIGURE_ARGS+= --without-GB
|
|
|
|
.else
|
|
|
|
BROKEN= "Only one DB storage can be used"
|
|
|
|
.endif
|
|
|
|
.endif
|
2002-02-14 14:04:58 +00:00
|
|
|
|
2005-05-30 21:20:39 +00:00
|
|
|
.if defined(WITH_MYSQL)
|
|
|
|
USE_MYSQL= YES
|
|
|
|
CONFIGURE_ARGS+= --with-MYSQL=${PREFIX}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_PGSQL)
|
|
|
|
USE_PGSQL= YES
|
|
|
|
CONFIGURE_ARGS+= --with-PGSQL=${PREFIX}/pgsql
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_PCRE)
|
|
|
|
LIB_DEPENDS+= pcre.0:${PORTSDIR}/devel/pcre
|
|
|
|
CONFIGURE_ARGS+= --with-regexp=pcre
|
2002-02-14 14:04:58 +00:00
|
|
|
.endif
|
2000-12-14 17:31:34 +00:00
|
|
|
|
2002-07-26 12:14:00 +00:00
|
|
|
pre-configure:
|
|
|
|
@cd ${WRKSRC} && ${AUTOHEADER}
|
|
|
|
|
2005-02-05 18:33:40 +00:00
|
|
|
post-build:
|
|
|
|
@${SED} -e 's=%%RC_SUBR%%=${RC_SUBR}=g;s=%%PREFIX%%=${PREFIX}=g' \
|
|
|
|
${FILESDIR}/${PORTNAME}.sh > ${WRKDIR}/${PORTNAME}.sh
|
|
|
|
|
2000-09-17 22:36:32 +00:00
|
|
|
pre-install:
|
2002-12-13 23:09:44 +00:00
|
|
|
@PKG_PREFIX=${PREFIX} BATCH=${BATCH} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
2000-09-17 22:36:32 +00:00
|
|
|
|
|
|
|
post-install:
|
2002-02-14 14:04:58 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2000-12-14 17:31:34 +00:00
|
|
|
@${INSTALL_MAN} ${WRKSRC}/doc/oops.8 ${PREFIX}/man/man8
|
|
|
|
@${INSTALL_MAN} ${WRKSRC}/doc/oopsctl.8 ${PREFIX}/man/man8
|
2002-02-14 14:04:58 +00:00
|
|
|
.endif
|
2000-10-08 10:23:48 +00:00
|
|
|
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
2005-02-05 18:33:40 +00:00
|
|
|
@${MKDIR} -m 750 ${OOPSVAR}
|
2002-02-14 14:04:58 +00:00
|
|
|
@${CHOWN} oops ${OOPSVAR}
|
2005-02-05 18:33:40 +00:00
|
|
|
@${MKDIR} -m 750 ${OOPSLOG}
|
|
|
|
@${CHOWN} oops ${OOPSLOG}
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/oops.sh ${PREFIX}/etc/rc.d
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
2000-09-17 22:36:32 +00:00
|
|
|
|
2002-02-14 14:04:58 +00:00
|
|
|
post-clean:
|
|
|
|
@${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc
|
2000-09-17 22:36:32 +00:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|