mod_auth_bsd-0.7, provides HTTP Basic authentication via bsd auth
This commit is contained in:
parent
11f56ff440
commit
413663022e
37
www/mod_auth_bsd/Makefile
Normal file
37
www/mod_auth_bsd/Makefile
Normal file
@ -0,0 +1,37 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2004/07/11 06:54:50 jolan Exp $
|
||||
|
||||
COMMENT= "provides HTTP Basic authentication via bsd auth"
|
||||
DISTNAME= bsdauth-0.7
|
||||
EXTRACT_SUFX= .tgz
|
||||
PKGNAME= ${DISTNAME:L:S/bsdauth/mod_auth_bsd/}
|
||||
CATEGORIES= www
|
||||
MASTER_SITES= http://www.25thandclement.com/~william/projects/releases/
|
||||
|
||||
HOMEPAGE= http://www.25thandclement.com/~william/projects/bsdauth.html
|
||||
|
||||
# ISC-like
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
|
||||
NO_REGRESS= Yes
|
||||
|
||||
do-configure:
|
||||
@perl -pi -e 's,/usr/local,${PREFIX},g' \
|
||||
${WRKSRC}/INSTALL
|
||||
|
||||
post-build:
|
||||
@sed 's,_PREFIX_,${PREFIX},' \
|
||||
< ${FILESDIR}/mod_auth_bsd-enable \
|
||||
> ${WRKBUILD}/mod_auth_bsd-enable
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mod_auth_bsd
|
||||
${INSTALL_DATA} ${WRKSRC}/INSTALL \
|
||||
${PREFIX}/share/doc/mod_auth_bsd/README
|
||||
${INSTALL_DATA} ${WRKBUILD}/mod_auth_bsd.so ${PREFIX}/lib
|
||||
${INSTALL_PROGRAM} ${WRKBUILD}/login_bsd ${PREFIX}/libexec
|
||||
${INSTALL_SCRIPT} ${WRKBUILD}/mod_auth_bsd-enable ${PREFIX}/sbin
|
||||
|
||||
.include <bsd.port.mk>
|
3
www/mod_auth_bsd/distinfo
Normal file
3
www/mod_auth_bsd/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (bsdauth-0.7.tgz) = 6c2cc552a19dc8485e0bb70a64daea9a
|
||||
RMD160 (bsdauth-0.7.tgz) = 92b7ae17c5187fad9c9586f19ca85722ed044516
|
||||
SHA1 (bsdauth-0.7.tgz) = 47af517acbe4d66c9dab13b41cac5b5370e59ef3
|
17
www/mod_auth_bsd/files/mod_auth_bsd-enable
Normal file
17
www/mod_auth_bsd/files/mod_auth_bsd-enable
Normal file
@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
# $OpenBSD: mod_auth_bsd-enable,v 1.1.1.1 2004/07/11 06:54:50 jolan Exp $
|
||||
|
||||
MODULE=_PREFIX_/lib/mod_auth_bsd.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 auth_bsd module (${MODULE})"
|
||||
exit 1
|
||||
else
|
||||
echo "Enabling BSD Authentication module..."
|
||||
/usr/sbin/apxs -i -a -n bsd_auth ${MODULE}
|
||||
fi
|
13
www/mod_auth_bsd/patches/patch-Makefile
Normal file
13
www/mod_auth_bsd/patches/patch-Makefile
Normal file
@ -0,0 +1,13 @@
|
||||
$OpenBSD: patch-Makefile,v 1.1.1.1 2004/07/11 06:54:50 jolan Exp $
|
||||
--- Makefile.orig 2003-10-17 13:33:53.000000000 -0500
|
||||
+++ Makefile 2003-10-18 23:46:46.000000000 -0500
|
||||
@@ -1,7 +1,7 @@
|
||||
|
||||
-CC=cc -ansi -Wall -pedantic -O2
|
||||
+#CC=cc -ansi -Wall -pedantic -O2
|
||||
APXS=apxs
|
||||
-LIBEXECDIR=/usr/local/libexec
|
||||
+LIBEXECDIR=${PREFIX}/libexec
|
||||
|
||||
WRAPPER=login_bsd
|
||||
WRAPPER_MODE=2555
|
27
www/mod_auth_bsd/pkg/DEINSTALL
Normal file
27
www/mod_auth_bsd/pkg/DEINSTALL
Normal file
@ -0,0 +1,27 @@
|
||||
#!/bin/sh
|
||||
# $OpenBSD: DEINSTALL,v 1.1.1.1 2004/07/11 06:54:50 jolan Exp $
|
||||
|
||||
set -e
|
||||
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
||||
PREFIX=${PKG_PREFIX:-/usr/local}
|
||||
CONF=`apxs -q SYSCONFDIR`/httpd.conf
|
||||
MODULE=/usr/lib/apache/modules/mod_auth_bsd.so
|
||||
|
||||
rm -f ${MODULE}
|
||||
|
||||
echo
|
||||
echo "+---------------"
|
||||
echo "| To completely deinstall the $1 package you should edit:"
|
||||
echo "|"
|
||||
echo "| ${CONF}"
|
||||
echo "|"
|
||||
echo "| and remove the line that starts with:"
|
||||
echo "|"
|
||||
echo "| LoadModule bsd_auth_module"
|
||||
echo "|"
|
||||
echo "| Do not do this if you plan on re-installing the $1"
|
||||
echo "| package before the next apache restart."
|
||||
echo "+---------------"
|
||||
echo
|
||||
|
||||
exit 0
|
2
www/mod_auth_bsd/pkg/DESCR
Normal file
2
www/mod_auth_bsd/pkg/DESCR
Normal file
@ -0,0 +1,2 @@
|
||||
mod_auth_bsd is an Apache module which provides HTTP Basic
|
||||
authentication via the BSD Authentication framework.
|
10
www/mod_auth_bsd/pkg/MESSAGE
Normal file
10
www/mod_auth_bsd/pkg/MESSAGE
Normal file
@ -0,0 +1,10 @@
|
||||
+---------------
|
||||
| To finish the install of mod_auth_bsd, you need
|
||||
| to enable the module using the following command:
|
||||
|
|
||||
| # ${PREFIX}/sbin/mod_auth_bsd-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 server.
|
||||
+---------------
|
10
www/mod_auth_bsd/pkg/PLIST
Normal file
10
www/mod_auth_bsd/pkg/PLIST
Normal file
@ -0,0 +1,10 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2004/07/11 06:54:50 jolan Exp $
|
||||
lib/mod_auth_bsd.so
|
||||
@group auth
|
||||
@mode 2555
|
||||
libexec/login_bsd
|
||||
@mode
|
||||
@group
|
||||
sbin/mod_auth_bsd-enable
|
||||
share/doc/mod_auth_bsd/README
|
||||
@dirrm share/doc/mod_auth_bsd
|
Loading…
Reference in New Issue
Block a user