switch to apache-module framework

initially from espie@, ok ckuethe@ (maintainer)
This commit is contained in:
simon 2007-06-21 20:59:13 +00:00
parent d422adf4f6
commit ff66b0258c
4 changed files with 14 additions and 31 deletions

View File

@ -1,14 +1,14 @@
# $OpenBSD: Makefile,v 1.6 2007/02/19 16:14:01 ckuethe Exp $
SHARED_ONLY= Yes
# $OpenBSD: Makefile,v 1.7 2007/06/21 20:59:13 simon Exp $
COMMENT= "Apache Kerberos authentication module"
DISTNAME= mod_auth_kerb-5.3
PKGNAME= ${DISTNAME}p0
CATEGORIES= www
HOMEPAGE= http://modauthkerb.sourceforge.net/
MODULES+= apache-module
MAINTAINER= Chris Kuethe <ckuethe@openbsd.org>
# combination of 2- and 3-clause BSD, MIT, and export crypto warnings
@ -23,19 +23,19 @@ MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=modauthkerb/}
NO_REGRESS= Yes
USE_GMAKE= Yes
MODAPACHE_NAME= auth_kerb
MODAPACHE_LOCATION= ${WRKBUILD}/src
CONFIGURE_STYLE=gnu
CONFIGURE_ENV= KRB5_CPPFLAGS="-I/usr/include/kerberosV" \
KRB5_LDFLAGS="-lkrb5 -lgssapi -lssl -lcrypto"
post-build:
sed 's,!!PREFIX!!,${PREFIX},' \
< ${FILESDIR}/mod_auth_kerb-enable \
> ${WRKBUILD}/mod_auth_kerb-enable
@${MODAPACHE_CREATE_ENABLE_SCRIPT}
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mod_auth_kerb
${INSTALL_DATA} ${FILESDIR}/README ${PREFIX}/share/doc/mod_auth_kerb
${INSTALL_DATA} ${WRKBUILD}/src/mod_auth_kerb.so ${PREFIX}/lib
${INSTALL_SCRIPT} ${WRKBUILD}/mod_auth_kerb-enable ${PREFIX}/sbin
${MODAPACHE_INSTALL}
.include <bsd.port.mk>

View File

@ -1,18 +0,0 @@
#!/bin/sh
#
# $OpenBSD: mod_auth_kerb-enable,v 1.1.1.1 2005/11/03 16:23:13 alek Exp $
MODULE=!!PREFIX!!/lib/mod_auth_kerb.so
if [ `id -u` -ne 0 ]; then
echo "You must be root to run this script."
exit
fi
if [ ! -f ${MODULE} ]; then
echo "Cannot find mod_auth_krb module (${MODULE})"
exit 1
else
echo "Enabling Kerberos Authentication module..."
/usr/sbin/apxs -i -a -n auth_kerb ${MODULE}
fi

View File

@ -1,7 +1,7 @@
To finish the install of mod_auth_kerb, you need
to enable the module using the following command
${PREFIX}/sbin/mod_auth_kerb-enable
${PREFIX}/sbin/${MODAPACHE_ENABLE}
If you already have Apache running on your machine,
you should not use "apachectl restart" - instead,

View File

@ -1,6 +1,7 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2005/11/03 16:23:13 alek Exp $
lib/mod_auth_kerb.so
sbin/mod_auth_kerb-enable
@comment $OpenBSD: PLIST,v 1.2 2007/06/21 20:59:13 simon Exp $
lib/${MODAPACHE_MODULE}
@exec-update test -f ${MODAPACHE_FINAL} && cp -fp %D/%F ${MODAPACHE_FINAL}
sbin/${MODAPACHE_ENABLE}
share/doc/mod_auth_kerb/
share/doc/mod_auth_kerb/README
@unexec rm -f /usr/lib/apache/modules/mod_auth_kerb.so
@unexec-delete rm -f ${MODAPACHE_FINAL}