switch to apache-module framework
ok mbalmer@ (maintainer)
This commit is contained in:
parent
a4069f17af
commit
70b1f1147c
@ -1,8 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.2 2007/04/28 11:49:56 mbalmer Exp $
|
||||
|
||||
# This port currently only works with archs supporting dynamic loading
|
||||
# and has Apache that supports DSO's.
|
||||
SHARED_ONLY= Yes
|
||||
# $OpenBSD: Makefile,v 1.3 2007/06/22 14:48:23 simon Exp $
|
||||
|
||||
COMMENT= "Apache FastCGI module"
|
||||
|
||||
@ -15,6 +11,9 @@ HOMEPAGE= http://www.fastcgi.com/
|
||||
|
||||
MASTER_SITES= ${HOMEPAGE}dist/
|
||||
|
||||
MODULES= apache-module
|
||||
MODAPACHE_NAME= fastcgi
|
||||
|
||||
MAINTAINER= Marc Balmer <mbalmer@openbsd.org>
|
||||
|
||||
# Proprietary license
|
||||
@ -29,14 +28,11 @@ do-build:
|
||||
(cd ${WRKBUILD}; apxs -o mod_fastcgi.so -c *.c)
|
||||
|
||||
post-build:
|
||||
sed 's,!!PREFIX!!,${PREFIX},' \
|
||||
< ${FILESDIR}/mod_fastcgi-enable \
|
||||
> ${WRKBUILD}/mod_fastcgi-enable
|
||||
@${MODAPACHE_CREATE_ENABLE_SCRIPT}
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA} ${WRKBUILD}/mod_fastcgi.so ${PREFIX}/lib
|
||||
${INSTALL_SCRIPT} ${WRKBUILD}/mod_fastcgi-enable ${PREFIX}/sbin
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mod_fastcgi
|
||||
${INSTALL_DATA} ${WRKBUILD}/docs/* ${PREFIX}/share/doc/mod_fastcgi
|
||||
${MODAPACHE_INSTALL}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,18 +0,0 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $OpenBSD: mod_fastcgi-enable,v 1.1.1.1 2005/02/14 06:23:23 mbalmer Exp $
|
||||
|
||||
MODULE=!!PREFIX!!/lib/mod_fastcgi.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_fastcgi module (${MODULE})"
|
||||
exit 1
|
||||
else
|
||||
echo "Enabling FastCGI module..."
|
||||
/usr/sbin/apxs -i -a -n fastcgi ${MODULE}
|
||||
fi
|
@ -1,7 +1,7 @@
|
||||
To finish the install of mod_fastcgi, you need
|
||||
to enable the module using the following command
|
||||
|
||||
${PREFIX}/sbin/mod_fastcgi-enable
|
||||
${PREFIX}/sbin/${MODAPACHE_ENABLE}
|
||||
|
||||
If you already have Apache running on your machine,
|
||||
you should not use "apachectl restart" - instead,
|
||||
|
@ -1,6 +1,9 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2005/02/14 06:23:23 mbalmer Exp $
|
||||
lib/mod_fastcgi.so
|
||||
sbin/mod_fastcgi-enable
|
||||
@comment $OpenBSD: PLIST,v 1.2 2007/06/22 14:48:23 simon Exp $
|
||||
lib/${MODAPACHE_MODULE}
|
||||
@exec-update test -f ${MODAPACHE_FINAL} && cp -fp %D/%F ${MODAPACHE_FINAL}
|
||||
sbin/${MODAPACHE_ENABLE}
|
||||
share/doc/mod_fastcgi/
|
||||
share/doc/mod_fastcgi/LICENSE.TERMS
|
||||
share/doc/mod_fastcgi/mod_fastcgi.html
|
||||
@unexec-delete rm -f ${MODAPACHE_FINAL}
|
||||
@comment share/doc/mod_fastcgi/mod_fastcgi.html.orig
|
||||
|
@ -1,13 +1,9 @@
|
||||
# $OpenBSD: Makefile,v 1.3 2006/10/29 18:48:24 steven Exp $
|
||||
|
||||
# This port currently only works with archs supporting dynamic loading
|
||||
# and has Apache that supports DSO's.
|
||||
SHARED_ONLY= Yes
|
||||
# $OpenBSD: Makefile,v 1.4 2007/06/22 14:53:20 simon Exp $
|
||||
|
||||
COMMENT= "Apache LDAP based virtual hosts module"
|
||||
|
||||
DISTNAME= mod_ldapvhost-1.0.2
|
||||
PKGNAME= ${DISTNAME}p1
|
||||
PKGNAME= ${DISTNAME}p2
|
||||
CATEGORIES= www
|
||||
|
||||
HOMEPAGE= https://www.msys.ch/products/unix/mod_ldapvhost/
|
||||
@ -16,6 +12,7 @@ MAINTAINER= Marc Balmer <mbalmer@openbsd.org>
|
||||
|
||||
MASTER_SITES= ftp://ftp.etc.msys.ch/pub/sources/mod_ldapvhost/
|
||||
EXTRACT_SUFX= .tgz
|
||||
MODULES+= apache-module
|
||||
|
||||
# BSD
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
@ -23,6 +20,8 @@ PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
MODAPACHE_NAME= ldapvhost
|
||||
|
||||
NO_REGRESS= Yes
|
||||
|
||||
LIB_DEPENDS= ldap,lber::databases/openldap
|
||||
@ -31,16 +30,13 @@ do-build:
|
||||
(cd ${WRKBUILD}; make)
|
||||
|
||||
post-build:
|
||||
sed 's,!!PREFIX!!,${PREFIX},' \
|
||||
< ${FILESDIR}/mod_ldapvhost-enable \
|
||||
> ${WRKBUILD}/mod_ldapvhost-enable
|
||||
@${MODAPACHE_CREATE_ENABLE_SCRIPT}
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA} ${WRKBUILD}/mod_ldapvhost.so ${PREFIX}/lib
|
||||
${INSTALL_SCRIPT} ${WRKBUILD}/mod_ldapvhost-enable ${PREFIX}/sbin
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mod_ldapvhost
|
||||
${INSTALL_DATA} ${WRKBUILD}/*.schema ${PREFIX}/share/doc/mod_ldapvhost/
|
||||
${INSTALL_DATA} ${WRKBUILD}/mod_ldapvhost.conf \
|
||||
${PREFIX}/share/doc/mod_ldapvhost/
|
||||
${MODAPACHE_INSTALL}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,18 +0,0 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $OpenBSD: mod_ldapvhost-enable,v 1.1.1.1 2006/10/22 08:55:38 mbalmer Exp $
|
||||
|
||||
MODULE=!!PREFIX!!/lib/mod_ldapvhost.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_ldapvhost module (${MODULE})"
|
||||
exit 1
|
||||
else
|
||||
echo "Enabling LDAP virtual hosts module..."
|
||||
/usr/sbin/apxs -i -a -n ldapvhost ${MODULE}
|
||||
fi
|
@ -1,7 +1,7 @@
|
||||
To finish the installation of mod_ldapvhost, you need to enable the module
|
||||
using the following command
|
||||
|
||||
${PREFIX}/sbin/mod_ldapvhost-enable
|
||||
${PREFIX}/sbin/${MODAPACHE_ENABLE}
|
||||
|
||||
If you already have Apache running on your machine, you should not use
|
||||
"apachectl restart" - instead, you should fully stop and then restart the
|
||||
|
@ -1,7 +1,9 @@
|
||||
@comment $OpenBSD: PLIST,v 1.2 2006/10/22 09:04:03 mbalmer Exp $
|
||||
lib/mod_ldapvhost.so
|
||||
sbin/mod_ldapvhost-enable
|
||||
@comment $OpenBSD: PLIST,v 1.3 2007/06/22 14:53:20 simon Exp $
|
||||
lib/${MODAPACHE_MODULE}
|
||||
@exec-update test -f ${MODAPACHE_FINAL} && cp -fp %D/%F ${MODAPACHE_FINAL}
|
||||
sbin/${MODAPACHE_ENABLE}
|
||||
share/doc/mod_ldapvhost/
|
||||
share/doc/mod_ldapvhost/mod_ldapvhost.conf
|
||||
share/doc/mod_ldapvhost/msys.schema
|
||||
share/doc/mod_ldapvhost/vhost.schema
|
||||
@unexec-delete rm -f ${MODAPACHE_FINAL}
|
||||
|
Loading…
Reference in New Issue
Block a user