blob: 280ef6ccdd05aadf6af4bfe1e1670949ade0fb70 (
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
# New ports collection makefile for: oops
# Date created: 15 August 2000
# Whom: Sergey Osokin aka oZZ <osa@FreeBSD.org.ru>
#
# $FreeBSD$
#
PORTNAME= oops
PORTVERSION= ${OOPSVERSION}
PORTREVISION= 2
CATEGORIES= www
MASTER_SITES= http://oops-cache.org/
DISTNAME= ${PORTNAME}-${OOPSVERSION}
MAINTAINER= osa@FreeBSD.org
COMMENT= A caching web proxy server
BUILD_DEPENDS+= gawk:${PORTSDIR}/lang/gawk
OOPSVERSION= 1.5.23
USE_SUBMAKE= yes
USE_AUTOCONF_VER= 213
CONFIGURE_ARGS?=--sbindir=${PREFIX}/sbin \
--sysconfdir=${PREFIX}/etc/oops \
--localstatedir=${OOPSVAR} \
--libdir=${PREFIX}/libexec/oops \
--enable-oops-user=oops \
--enable-large-files
CONFIGURE_ENV+= CFLAGS="${CFLAGS} -fPIC" \
CXXFLAGS="${CXXFLAGS} -fPIC" \
PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
PTHREAD_LIBS="${PTHREAD_LIBS}"
MAN8= oops.8 oopsctl.8
OOPSVAR= /var/run/oops
SCRIPTS_ENV+= WRKDIRPREFIX="${WRKDIRPREFIX}" \
TOUCH="${TOUCH}" \
MKDIR="${MKDIR}"
pre-fetch:
@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.oops
.if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc)
.include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc"
.endif
pre-configure:
@cd ${WRKSRC} && ${AUTOHEADER}
pre-install:
@PKG_PREFIX=${PREFIX} BATCH=${BATCH} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
.include <bsd.port.pre.mk>
post-install:
.if !defined(NOPORTDOCS)
@${INSTALL_MAN} ${WRKSRC}/doc/oops.8 ${PREFIX}/man/man8
@${INSTALL_MAN} ${WRKSRC}/doc/oopsctl.8 ${PREFIX}/man/man8
.endif
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
@ ${ECHO} "------------------------------------------------------------"
@ ${ECHO} "Sample of configuration file placed at ${PREFIX}/etc/oops !"
@ ${ECHO} "Copy oops.cfg.sample to oops.cfg, then run server..."
@ ${ECHO} "------------------------------------------------------------"
@${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
post-clean:
@${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc
.include <bsd.port.post.mk>
|