aboutsummaryrefslogtreecommitdiffstats
path: root/www/mod_auth_remote
diff options
context:
space:
mode:
Diffstat (limited to 'www/mod_auth_remote')
-rw-r--r--www/mod_auth_remote/Makefile10
-rw-r--r--www/mod_auth_remote/files/patch-mod_auth_remote.c20
-rw-r--r--www/mod_auth_remote/pkg-plist5
3 files changed, 27 insertions, 8 deletions
diff --git a/www/mod_auth_remote/Makefile b/www/mod_auth_remote/Makefile
index 906bc8adfe49..52e1f0bdb7f2 100644
--- a/www/mod_auth_remote/Makefile
+++ b/www/mod_auth_remote/Makefile
@@ -7,6 +7,7 @@
PORTNAME= mod_auth_remote
PORTVERSION= 0.1
+PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= http://sheepkiller.nerim.net/ports/${PORTNAME}/ \
http://www.cultdeadsheep.org/FreeBSD/ports/download/distfiles/
@@ -16,11 +17,10 @@ DIST_SUBDIR= apache
MAINTAINER= sheepkiller@cultdeadsheep.org
COMMENT= Allows users to authenticate on a remote web server
-BUILD_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache2
-RUN_DEPENDS= ${BUILD_DEPENDS}
-
-APXS?= ${LOCALBASE}/sbin/apxs
+USE_APACHE= YES
+WITH_APACHE2= YES
+PORTDOCS= readme.txt
do-build:
@(cd ${WRKSRC} && ${APXS} -c ${PORTNAME}.c)
@@ -28,7 +28,7 @@ do-install:
@(cd ${WRKSRC} && ${APXS} -A -i ${PORTNAME}.la)
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
- @${INSTALL_DATA} ${WRKSRC}/readme.txt ${DOCSDIR}
+ @${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${DOCSDIR}
.endif
.include <bsd.port.mk>
diff --git a/www/mod_auth_remote/files/patch-mod_auth_remote.c b/www/mod_auth_remote/files/patch-mod_auth_remote.c
new file mode 100644
index 000000000000..1ce13b1cb68b
--- /dev/null
+++ b/www/mod_auth_remote/files/patch-mod_auth_remote.c
@@ -0,0 +1,20 @@
+--- mod_auth_remote.c.orig Tue Jan 21 16:44:53 2003
++++ mod_auth_remote.c Sun Dec 7 22:42:36 2003
+@@ -141,8 +141,8 @@
+ itemp = strlen(user_pass);
+ encoded = apr_palloc(r->pool, (((itemp+2)/3)*4)+2);
+ apr_base64_encode(encoded, user_pass, itemp);
+- req_b = apr_pstrcat(r->pool, "HEAD ", conf->remote_uri," HTTP/1.0 ",
+- "\nAuthorization: Basic ",encoded,CRLF,CRLF,NULL);
++ req_b = apr_pstrcat(r->pool, "HEAD ", conf->remote_uri," HTTP/1.0",
++ CRLF,"Authorization: Basic ",encoded,CRLF,CRLF,NULL);
+ bytes = strlen(req_b);
+ val = apr_send(socket, req_b, &bytes);
+ if(val != APR_SUCCESS)
+@@ -194,4 +194,4 @@
+ NULL,
+ auth_remote_cmds,
+ register_hooks
+-};
+\ No newline at end of file
++};
diff --git a/www/mod_auth_remote/pkg-plist b/www/mod_auth_remote/pkg-plist
index c69c83c731d2..d10699c0d592 100644
--- a/www/mod_auth_remote/pkg-plist
+++ b/www/mod_auth_remote/pkg-plist
@@ -1,5 +1,4 @@
libexec/apache2/mod_auth_remote.so
-@exec %D/sbin/apxs -e -a -n auth_remote %D/%f
-%%PORTDOCS%%%%DOCSDIR%%/readme.txt
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
+@exec %D/sbin/apxs -e -A -n auth_remote %D/%f
+@unexec %D/sbin/apxs -e -A -n auth_remote %D/%f
@unexec echo "===> If you do not plan on reinstalling mod_auth_remote, you must manually remove"; echo "===> references to it in httpd.conf."