Added ldap flavor which includes mod_authnz_ldap + mod_ldap

Removed quotes around COMMENT while here.

From Peter Hessler with tweaks by me.
Advice from Brad.  Help from deanna@, simon@.
ok dlg@, simon@
This commit is contained in:
merdely 2007-09-06 07:33:53 +00:00
parent 9c5f5dcd0d
commit bbe11aa1ab
4 changed files with 34 additions and 5 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.14 2007/03/25 17:40:55 deanna Exp $
# $OpenBSD: Makefile,v 1.15 2007/09/06 07:33:53 merdely Exp $
COMMENT= "apache HTTP server"
COMMENT= apache HTTP server
V= 2.2.4
PKGNAME= apache-httpd-${V}
PKGNAME= apache-httpd-${V}p0
DISTNAME= httpd-${V}
CATEGORIES= www net
@ -21,7 +21,17 @@ NO_REGRESS= Yes
WANTLIB= c crypto m ssl expat apr-1 db.>=4 z
FLAVORS= ldap
FLAVOR?=
.if ${FLAVOR:L:Mldap}
CONFIGURE_ARGS+= --with-ldap --enable-ldap --enable-authnz-ldap
WANTLIB+= asn1 com_err gssapi krb5 sasl2
LIB_DEPENDS+= ldap,lber::databases/openldap
LIB_DEPENDS+= aprutil-1.>=2:apr-util-*-ldap:devel/apr-util,ldap
.else
LIB_DEPENDS= aprutil-1.>=2::devel/apr-util
.endif
MODULES= converters/libiconv
@ -86,4 +96,13 @@ post-install:
mv ${PREFIX}/sbin/${i} ${PREFIX}/sbin/${i}2
.endfor
.if ${FLAVOR:L:Mldap}
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ap2-mod_auth_ldap
.for i in mod_ldap.html mod_authnz_ldap.html.en \
mod_authnz_ldap.html mod_ldap.html.en
${INSTALL_DATA} ${WRKSRC}/docs/manual/mod/${i} \
${PREFIX}/share/doc/ap2-mod_auth_ldap/
.endfor
.endif
.include <bsd.port.mk>

View File

@ -8,4 +8,5 @@ This package provides an unaudited version of apache. For security
reasons, users are STRONGLY encouraged to use the system httpd(8)
instead, if at all possible.
Flavors:
ldap - Enable LDAP authentication and caching support

View File

@ -0,0 +1,8 @@
@comment $OpenBSD: PFRAG.ldap,v 1.1 2007/09/06 07:33:53 merdely Exp $
lib/apache2/mod_authnz_ldap.so
lib/apache2/mod_ldap.so
share/doc/ap2-mod_auth_ldap/
share/doc/ap2-mod_auth_ldap/mod_authnz_ldap.html
share/doc/ap2-mod_auth_ldap/mod_authnz_ldap.html.en
share/doc/ap2-mod_auth_ldap/mod_ldap.html
share/doc/ap2-mod_auth_ldap/mod_ldap.html.en

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.9 2007/01/09 11:18:13 dlg Exp $
@comment $OpenBSD: PLIST,v 1.10 2007/09/06 07:33:53 merdely Exp $
@newgroup _apache2:576
@newuser _apache2:576:576:daemon:Apache HTTP Server:/var/empty:/sbin/nologin
include/apache2/
@ -1441,3 +1441,4 @@ share/examples/apache2/icons/world2.png
@sample /var/apache2/icons/world2.png
share/examples/apache2/logs/
@sample /var/apache2/logs/
%%ldap%%