diff options
author | heinz <heinz@pkgsrc.org> | 2007-10-01 21:29:32 +0000 |
---|---|---|
committer | heinz <heinz@pkgsrc.org> | 2007-10-01 21:29:32 +0000 |
commit | 1df07ef8e26a154339cad02fa953fd9ebe8d87d2 (patch) | |
tree | b79999387b40f574fa20b27241d622e0d96343d6 | |
parent | d0dee6f9735e5576d121841f2903651e02b929e8 (diff) | |
download | pkgsrc-1df07ef8e26a154339cad02fa953fd9ebe8d87d2.tar.gz |
Added MESSAGE file in order to tell users they have to do a minimum
amount of configuration (ie, set the data directory).
Added the supplied sample files to the pkgsrc package.
This should solve PR pkg/31460 by Stefan Schumacher.
While here, added support for installation to DESTDIR and marked the
package as a pure Perl package (no compiler necessary).
-rw-r--r-- | www/p5-HTML-Mason/MESSAGE | 18 | ||||
-rw-r--r-- | www/p5-HTML-Mason/Makefile | 23 | ||||
-rw-r--r-- | www/p5-HTML-Mason/PLIST | 10 |
3 files changed, 46 insertions, 5 deletions
diff --git a/www/p5-HTML-Mason/MESSAGE b/www/p5-HTML-Mason/MESSAGE new file mode 100644 index 00000000000..f3950da5997 --- /dev/null +++ b/www/p5-HTML-Mason/MESSAGE @@ -0,0 +1,18 @@ +=========================================================================== +$NetBSD: MESSAGE,v 1.1 2007/10/01 21:29:32 heinz Exp $ + +In order to use HTML::Mason with mod_perl and Apache you have to create +the "data directory" (aka data_dir), which is used by Mason for various +features and optimizations, and change your web server configuration +accordingly. +The data directory must be writable by the user account specified for the +Apache process in your httpd.conf file. + +As an example, if you use "/var/mason" as your data directory you have +to add the following line to httpd.conf: + + PerlSetVar MasonDataDir /var/mason + +For more details, have a look at the "Mason Administrator's Manual" at +http://www.masonhq.com/. +=========================================================================== diff --git a/www/p5-HTML-Mason/Makefile b/www/p5-HTML-Mason/Makefile index 6f25fec1ca0..8a3034e7075 100644 --- a/www/p5-HTML-Mason/Makefile +++ b/www/p5-HTML-Mason/Makefile @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.27 2007/06/30 16:09:09 joerg Exp $ +# $NetBSD: Makefile,v 1.28 2007/10/01 21:29:32 heinz Exp $ DISTNAME= HTML-Mason-1.3101 PKGNAME= p5-HTML-Mason-1.31.1 -PKGREVISION= 3 +PKGREVISION= 4 SVR4_PKGNAME= p5hma CATEGORIES= www perl5 MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=HTML/} @@ -11,11 +11,15 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://www.masonhq.com/ COMMENT= Perl-based web site development and delivery system +PKG_DESTDIR_SUPPORT= user-destdir + DEPENDS+= p5-Cache-Cache>=1.0:../../devel/p5-Cache-Cache DEPENDS+= p5-Params-Validate>=0.04:../../devel/p5-Params-Validate DEPENDS+= p5-Exception-Class>=1.14:../../devel/p5-Exception-Class DEPENDS+= p5-Class-Container>=0.10:../../devel/p5-Class-Container +USE_LANGUAGES= # empty + PERL5_MODULE_TYPE= Module::Build PERL5_PACKLIST= auto/HTML/Mason/.packlist @@ -23,18 +27,29 @@ PKG_OPTIONS_VAR= PKG_OPTIONS.p5-HTML-Mason PKG_SUPPORTED_OPTIONS= modperl PKG_SUGGESTED_OPTIONS= modperl +EGDIR= ${PREFIX}/share/examples/${PKGBASE} + .include "../../mk/bsd.options.mk" .if !empty(PKG_OPTIONS:Mmodperl) . include "../../mk/apache.mk" . if ${PKG_APACHE} == "apache13" DEPENDS+= p5-libapreq>=0.32:../../www/p5-libapreq -.include "../../www/ap-perl/buildlink3.mk" +. include "../../www/ap-perl/buildlink3.mk" . elif ${PKG_APACHE} == "apache2" || ${PKG_APACHE} == "apache22" DEPENDS+= p5-libapreq2-[0-9]*:../../www/p5-libapreq2 -.include "../../www/ap2-perl/buildlink3.mk" +. include "../../www/ap2-perl/buildlink3.mk" . endif .endif +post-install: + ${INSTALL_DATA_DIR} ${DESTDIR:Q}${EGDIR:Q} + ${INSTALL_DATA} ${WRKSRC}/samples/README ${DESTDIR:Q}${EGDIR:Q} + ${INSTALL_DATA} ${WRKSRC}/samples/dump-request ${DESTDIR:Q}${EGDIR:Q} + ${INSTALL_DATA} ${WRKSRC}/samples/show-env ${DESTDIR:Q}${EGDIR:Q} + ${INSTALL_DATA} ${WRKSRC}/eg/httpd.conf ${DESTDIR:Q}${EGDIR:Q} + ${INSTALL_DATA_DIR} ${DESTDIR:Q}${EGDIR:Q}/MyApp + ${INSTALL_DATA} ${WRKSRC}/eg/MyApp/* ${DESTDIR:Q}${EGDIR:Q}/MyApp + .include "../../lang/perl5/module.mk" .include "../../mk/bsd.pkg.mk" diff --git a/www/p5-HTML-Mason/PLIST b/www/p5-HTML-Mason/PLIST index b192668af01..d9911de2b75 100644 --- a/www/p5-HTML-Mason/PLIST +++ b/www/p5-HTML-Mason/PLIST @@ -1 +1,9 @@ -@comment $NetBSD: PLIST,v 1.1 2001/11/01 02:18:02 zuntum Exp $ +@comment $NetBSD: PLIST,v 1.2 2007/10/01 21:29:33 heinz Exp $ +share/examples/p5-HTML-Mason/MyApp/Mason.pm +share/examples/p5-HTML-Mason/MyApp/MasonWithSession.pm +share/examples/p5-HTML-Mason/README +share/examples/p5-HTML-Mason/dump-request +share/examples/p5-HTML-Mason/httpd.conf +share/examples/p5-HTML-Mason/show-env +@dirrm share/examples/p5-HTML-Mason/MyApp +@dirrm share/examples/p5-HTML-Mason |