From 8751bc0197dcc99a4b449c80f782de8146acbc1c Mon Sep 17 00:00:00 2001 From: Akinori MUSHA Date: Mon, 5 Mar 2001 12:35:23 +0000 Subject: Bentofy. Show some instruction and point at the example file and the documents instead of directly modifying httpd.conf by apxs -A. --- www/mod_roaming/Makefile | 10 ++++++---- www/mod_roaming/files/httpd.conf.mod_roaming | 20 ++++++++++++++++++++ www/mod_roaming/pkg-message | 16 +++++++++------- www/mod_roaming/pkg-plist | 3 +-- 4 files changed, 36 insertions(+), 13 deletions(-) create mode 100644 www/mod_roaming/files/httpd.conf.mod_roaming (limited to 'www/mod_roaming') diff --git a/www/mod_roaming/Makefile b/www/mod_roaming/Makefile index 7ebed6b2dcbb..98f44a0bc4fd 100644 --- a/www/mod_roaming/Makefile +++ b/www/mod_roaming/Makefile @@ -7,6 +7,7 @@ PORTNAME= mod_roaming PORTVERSION= 1.0.2 +PORTREVISION= 1 CATEGORIES= www MASTER_SITES= http://www.klomp.org/mod_roaming/ @@ -24,13 +25,14 @@ do-build: ${APXS} -c mod_roaming.c do-install: - ${APXS} -i -A -n roaming ${WRKSRC}/mod_roaming.so + ${APXS} -i -n roaming ${WRKSRC}/mod_roaming.so + ${INSTALL_DATA} ${FILESDIR}/httpd.conf.${PORTNAME} ${PREFIX}/etc/apache/ .if !defined(NOPORTDOCS) - ${MKDIR} ${PREFIX}/share/doc/mod_roaming + ${MKDIR} ${PREFIX}/share/doc/${PORTNAME} .for f in ${DOCS} - ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/mod_roaming/ + ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/${PORTNAME}/ .endfor .endif - ${CAT} ${PKGMESSAGE} + @${CAT} ${PKGMESSAGE} .include diff --git a/www/mod_roaming/files/httpd.conf.mod_roaming b/www/mod_roaming/files/httpd.conf.mod_roaming new file mode 100644 index 000000000000..b55a57334b8d --- /dev/null +++ b/www/mod_roaming/files/httpd.conf.mod_roaming @@ -0,0 +1,20 @@ +# +# Example configuration for the mod_roaming module +# +# $FreeBSD$ +# + +LoadModule roaming_module libexec/apache/mod_roaming.so + +AddModule mod_roaming.c + + + RoamingAlias /roaming /usr/local/etc/apache/roaming + + + AuthUserFile /usr/local/etc/apache/roaming-htpasswd + AuthType Basic + AuthName "Roaming Access" + require valid-user + + diff --git a/www/mod_roaming/pkg-message b/www/mod_roaming/pkg-message index c1d3bf270a09..c700b771f874 100644 --- a/www/mod_roaming/pkg-message +++ b/www/mod_roaming/pkg-message @@ -1,13 +1,15 @@ ************************************************************ -Please edit your apache.conf or httpd.conf to enable and -setup this module, and you might also need to create an -htpasswd file, if you introduce basic authentication. +Please edit your Apache configuration file to enable and set +up this module. You may also need to create an htpasswd +file if you are going to use basic authentication. -You can always refer to the useful documents held in -${PREFIX}/share/doc/mod_roaming/, where ${PREFIX} is -typically /usr/local. +Look at the file ${PREFIX}/etc/apache/httpd.conf.mod_roaming +and the documents held in ${PREFIX}/share/doc/mod_roaming/ +for indications on what to do. -When it's done, do the following to take effect: +(${PREFIX} is typically /usr/local) + +When it's all set up, do the following to take effect: apachectl configtest (and correct any errors reported) apachectl restart diff --git a/www/mod_roaming/pkg-plist b/www/mod_roaming/pkg-plist index a083fa817e1d..78a02ee60c59 100644 --- a/www/mod_roaming/pkg-plist +++ b/www/mod_roaming/pkg-plist @@ -1,6 +1,5 @@ +etc/apache/httpd.conf.mod_roaming libexec/apache/mod_roaming.so -@exec %D/sbin/apxs -e -A -n roaming %D/%F -@unexec %D/sbin/apxs -e -A -n roaming %D/%F %%PORTDOCS%%share/doc/mod_roaming/CHANGES %%PORTDOCS%%share/doc/mod_roaming/INSTALL %%PORTDOCS%%share/doc/mod_roaming/LICENSE -- cgit v1.2.3