pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/www/p5-HTML-Mason Added MESSAGE file in order to tell ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/248380cf4fe5
branches: trunk
changeset: 533817:248380cf4fe5
user: heinz <heinz%pkgsrc.org@localhost>
date: Mon Oct 01 21:29:32 2007 +0000
description:
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).
diffstat:
www/p5-HTML-Mason/MESSAGE | 18 ++++++++++++++++++
www/p5-HTML-Mason/Makefile | 23 +++++++++++++++++++----
www/p5-HTML-Mason/PLIST | 10 +++++++++-
3 files changed, 46 insertions(+), 5 deletions(-)
diffs (98 lines):
diff -r 4162fca7fc3a -r 248380cf4fe5 www/p5-HTML-Mason/MESSAGE
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www/p5-HTML-Mason/MESSAGE Mon Oct 01 21:29:32 2007 +0000
@@ -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 -r 4162fca7fc3a -r 248380cf4fe5 www/p5-HTML-Mason/Makefile
--- a/www/p5-HTML-Mason/Makefile Mon Oct 01 15:49:17 2007 +0000
+++ b/www/p5-HTML-Mason/Makefile Mon Oct 01 21:29:32 2007 +0000
@@ -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 @@
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_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 -r 4162fca7fc3a -r 248380cf4fe5 www/p5-HTML-Mason/PLIST
--- a/www/p5-HTML-Mason/PLIST Mon Oct 01 15:49:17 2007 +0000
+++ b/www/p5-HTML-Mason/PLIST Mon Oct 01 21:29:32 2007 +0000
@@ -1,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
Home |
Main Index |
Thread Index |
Old Index