2007-01-15 20:12:26 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.13 2007/01/16 01:12:26 deanna Exp $
|
2006-12-14 02:14:20 -05:00
|
|
|
|
|
|
|
COMMENT= "apache HTTP server"
|
|
|
|
|
|
|
|
V= 2.2.3
|
2007-01-15 20:12:26 -05:00
|
|
|
PKGNAME= apache-httpd-${V}p9
|
2006-12-14 02:14:20 -05:00
|
|
|
DISTNAME= httpd-${V}
|
|
|
|
|
|
|
|
CATEGORIES= www net
|
|
|
|
|
|
|
|
HOMEPAGE= http://httpd.apache.org/
|
|
|
|
|
|
|
|
# Apache
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2007-01-09 05:47:37 -05:00
|
|
|
SHARED_ONLY= Yes
|
2006-12-14 02:14:20 -05:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
2007-01-15 20:12:26 -05:00
|
|
|
WANTLIB= c crypto m ssl expat apr-1 db.>=4 z
|
2006-12-14 02:14:20 -05:00
|
|
|
|
2006-12-14 05:22:03 -05:00
|
|
|
LIB_DEPENDS= aprutil-1.>=2::devel/apr-util
|
|
|
|
|
|
|
|
MODULES= converters/libiconv
|
2006-12-14 02:14:20 -05:00
|
|
|
|
|
|
|
USE_LIBTOOL= Yes
|
|
|
|
|
2006-12-14 06:20:22 -05:00
|
|
|
MASTER_SITES= ${MASTER_SITE_APACHE:=httpd/}
|
2006-12-14 02:14:20 -05:00
|
|
|
|
|
|
|
HTTPD_DIR= /var/apache2
|
2006-12-25 15:40:02 -05:00
|
|
|
CONFDIR= ${SYSCONFDIR}/apache2
|
|
|
|
SUBST_VARS= CONFDIR
|
2006-12-14 02:14:20 -05:00
|
|
|
|
2007-01-09 04:56:57 -05:00
|
|
|
CONFIGURE_STYLE= simple
|
2006-12-14 02:14:20 -05:00
|
|
|
CONFIGURE_ARGS+= --enable-layout=OpenBSD \
|
2007-01-09 04:56:57 -05:00
|
|
|
--prefix=${HTTPD_DIR} \
|
|
|
|
--exec-prefix=${LOCALBASE} \
|
|
|
|
--sysconfdir=${CONFDIR} \
|
2006-12-25 15:40:02 -05:00
|
|
|
--with-apr=${LOCALBASE} \
|
|
|
|
--with-apr-util=${LOCALBASE} \
|
2006-12-14 02:14:20 -05:00
|
|
|
--enable-ssl --with-ssl=/usr \
|
|
|
|
--with-mpm=prefork \
|
2007-01-09 05:47:37 -05:00
|
|
|
--with-program-name=httpd2 \
|
|
|
|
--enable-modules=all \
|
2007-01-09 06:18:13 -05:00
|
|
|
--enable-cache \
|
|
|
|
--enable-disk-cache \
|
|
|
|
--enable-proxy \
|
2007-01-09 05:47:37 -05:00
|
|
|
--enable-mods-shared=all
|
2006-12-14 02:14:20 -05:00
|
|
|
|
|
|
|
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
|
|
|
|
FAKE_FLAGS+= rel_user=_apache2 rel_group=_apache2 \
|
|
|
|
rel_datadir=${HTTPD_DIR} \
|
|
|
|
datadir=${PREFIX}/share/examples/apache2 \
|
|
|
|
sysconfdir=${PREFIX}/share/examples/apache2/conf
|
|
|
|
|
2006-12-25 15:40:02 -05:00
|
|
|
A2SBIN= apachectl apxs dbmmanage htdigest htpasswd \
|
|
|
|
logresolve rotatelogs
|
|
|
|
A2MAN1= dbmmanage htdigest htpasswd
|
|
|
|
A2MAN8= apachectl apxs httpd logresolve rotatelogs suexec
|
2006-12-14 02:14:20 -05:00
|
|
|
|
2006-12-15 19:41:56 -05:00
|
|
|
pre-configure:
|
|
|
|
@perl -pi -e 's,%%PREFIX%%,${PREFIX},' ${WRKSRC}/config.layout
|
2006-12-25 15:40:02 -05:00
|
|
|
@perl -pi -e 's,%%CONFDIR%%,${CONFDIR},' ${WRKSRC}/config.layout \
|
|
|
|
${WRKSRC}/configure
|
2007-01-15 20:12:26 -05:00
|
|
|
@perl -pi -e 's,%%PREFIX%%,${PREFIX},g' ${WRKSRC}/support/apxs.in
|
2006-12-15 19:41:56 -05:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share
|
|
|
|
chown -R ${MANOWN}:${MANGRP} ${PREFIX}/man
|
|
|
|
chown -R ${BINOWN}:${BINGRP} ${PREFIX}/sbin
|
|
|
|
chown -R ${LIBOWN}:${LIBGRP} ${PREFIX}/lib
|
|
|
|
|
2006-12-25 15:40:02 -05:00
|
|
|
.for i in ${A2MAN1}
|
2006-12-15 19:41:56 -05:00
|
|
|
mv ${PREFIX}/man/man1/${i}.1 ${PREFIX}/man/man1/${i}2.1
|
|
|
|
.endfor
|
|
|
|
|
2006-12-25 15:40:02 -05:00
|
|
|
.for i in ${A2MAN8}
|
2006-12-15 19:41:56 -05:00
|
|
|
mv ${PREFIX}/man/man8/${i}.8 ${PREFIX}/man/man8/${i}2.8
|
|
|
|
.endfor
|
|
|
|
|
2006-12-25 15:40:02 -05:00
|
|
|
.for i in ${A2SBIN}
|
2006-12-15 19:41:56 -05:00
|
|
|
mv ${PREFIX}/sbin/${i} ${PREFIX}/sbin/${i}2
|
|
|
|
.endfor
|
2006-12-14 02:14:20 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|