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
|
2002-03-12 22:40:15 +00:00
|
|
|
PORTVERSION= ${OOPSVERSION}.${OOPSDATE}
|
2000-09-17 22:36:32 +00:00
|
|
|
CATEGORIES= www
|
2002-07-25 17:24:10 +00:00
|
|
|
MASTER_SITES= http://oops-cache.org/
|
2002-03-12 22:40:15 +00:00
|
|
|
DISTNAME= ${PORTNAME}-${OOPSVERSION}
|
|
|
|
|
|
|
|
PATCH_SITES= ${MASTER_SITES}
|
2003-03-24 15:13:35 +00:00
|
|
|
PATCHFILES= ${PORTNAME}-${OOPSVERSION}-${OOPSDATE}.patch.gz
|
2002-07-25 17:24:10 +00:00
|
|
|
PATCH_DIST_STRIP= -d ${WRKDIR}/${DISTNAME}
|
2000-09-17 22:36:32 +00:00
|
|
|
|
2003-06-06 13:27:54 +00:00
|
|
|
MAINTAINER= osa@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
|
|
|
|
|
2002-03-12 22:40:15 +00:00
|
|
|
OOPSVERSION= 1.5.22
|
2003-04-03 14:36:01 +00:00
|
|
|
OOPSDATE= 20030403
|
2002-03-12 22:40:15 +00:00
|
|
|
|
2002-03-25 09:19:20 +00:00
|
|
|
USE_SUBMAKE= yes
|
2002-07-26 12:14:00 +00:00
|
|
|
USE_AUTOCONF= yes
|
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
|
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
|
|
|
|
|
2002-02-20 07:42:14 +00:00
|
|
|
SCRIPTS_ENV+= WRKDIRPREFIX="${WRKDIRPREFIX}" \
|
|
|
|
TOUCH="${TOUCH}" \
|
|
|
|
MKDIR="${MKDIR}"
|
|
|
|
|
2002-02-14 14:04:58 +00:00
|
|
|
pre-fetch:
|
|
|
|
@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.oops
|
|
|
|
|
|
|
|
.if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc)
|
|
|
|
.include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc"
|
|
|
|
.endif
|
2000-12-14 17:31:34 +00:00
|
|
|
|
2002-07-26 12:14:00 +00:00
|
|
|
pre-configure:
|
|
|
|
@cd ${WRKSRC} && ${AUTOHEADER}
|
|
|
|
|
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
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
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
|
2000-09-17 22:36:32 +00:00
|
|
|
@ ${ECHO} "------------------------------------------------------------"
|
|
|
|
@ ${ECHO} "Sample of configuration file placed at ${PREFIX}/etc/oops !"
|
|
|
|
@ ${ECHO} "Copy oops.cfg.sample to oops.cfg, then run server..."
|
|
|
|
@ ${ECHO} "------------------------------------------------------------"
|
2002-02-14 14:04:58 +00:00
|
|
|
@${MKDIR} ${OOPSVAR}
|
|
|
|
@${CHMOD} 750 ${OOPSVAR}
|
|
|
|
@${CHOWN} oops ${OOPSVAR}
|
|
|
|
|
|
|
|
${ECHO} "Installing ${PREFIX}/etc/rc.d/oops.sh.sample startup file."
|
|
|
|
${INSTALL_SCRIPT} -m 751 ${FILESDIR}/oops.sh ${PREFIX}/etc/rc.d/oops.sh.sample
|
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>
|