diff --git a/www/mod_auth_bsd/Makefile b/www/mod_auth_bsd/Makefile new file mode 100644 index 00000000000..8673df764a8 --- /dev/null +++ b/www/mod_auth_bsd/Makefile @@ -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 diff --git a/www/mod_auth_bsd/distinfo b/www/mod_auth_bsd/distinfo new file mode 100644 index 00000000000..240eaf32445 --- /dev/null +++ b/www/mod_auth_bsd/distinfo @@ -0,0 +1,3 @@ +MD5 (bsdauth-0.7.tgz) = 6c2cc552a19dc8485e0bb70a64daea9a +RMD160 (bsdauth-0.7.tgz) = 92b7ae17c5187fad9c9586f19ca85722ed044516 +SHA1 (bsdauth-0.7.tgz) = 47af517acbe4d66c9dab13b41cac5b5370e59ef3 diff --git a/www/mod_auth_bsd/files/mod_auth_bsd-enable b/www/mod_auth_bsd/files/mod_auth_bsd-enable new file mode 100644 index 00000000000..521b2cf45fc --- /dev/null +++ b/www/mod_auth_bsd/files/mod_auth_bsd-enable @@ -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 diff --git a/www/mod_auth_bsd/patches/patch-Makefile b/www/mod_auth_bsd/patches/patch-Makefile new file mode 100644 index 00000000000..af4fd286ff6 --- /dev/null +++ b/www/mod_auth_bsd/patches/patch-Makefile @@ -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 diff --git a/www/mod_auth_bsd/pkg/DEINSTALL b/www/mod_auth_bsd/pkg/DEINSTALL new file mode 100644 index 00000000000..b6d3cda57ad --- /dev/null +++ b/www/mod_auth_bsd/pkg/DEINSTALL @@ -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 diff --git a/www/mod_auth_bsd/pkg/DESCR b/www/mod_auth_bsd/pkg/DESCR new file mode 100644 index 00000000000..a79f48bfe8b --- /dev/null +++ b/www/mod_auth_bsd/pkg/DESCR @@ -0,0 +1,2 @@ +mod_auth_bsd is an Apache module which provides HTTP Basic +authentication via the BSD Authentication framework. diff --git a/www/mod_auth_bsd/pkg/MESSAGE b/www/mod_auth_bsd/pkg/MESSAGE new file mode 100644 index 00000000000..2aa38a2bebc --- /dev/null +++ b/www/mod_auth_bsd/pkg/MESSAGE @@ -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. ++--------------- diff --git a/www/mod_auth_bsd/pkg/PLIST b/www/mod_auth_bsd/pkg/PLIST new file mode 100644 index 00000000000..9f6f99c8ee9 --- /dev/null +++ b/www/mod_auth_bsd/pkg/PLIST @@ -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