summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorjwise <jwise@pkgsrc.org>2001-10-16 18:23:21 +0000
committerjwise <jwise@pkgsrc.org>2001-10-16 18:23:21 +0000
commit97a178caaa5f0a69e49dbcf69b009951fc22ff66 (patch)
treea2ef21fe1a6c12980e53fad459f4bae405133e81 /www
parent2b552b1acff9c753f278d4b974039c883224e94d (diff)
downloadpkgsrc-97a178caaa5f0a69e49dbcf69b009951fc22ff66.tar.gz
Import Userworld's Apache mod_xslt into pkgsrc.
mod_xslt provides a simple, fast mechanism for doing XSLT transformations of XML content for presentation to the user. It doesn't seek to provide all the bells and whistles of, say, Cocoon, but being implemented natively and using an XSLT parser (sablotron) which is implemented natively, it provides a nice lightweight solution.
Diffstat (limited to 'www')
-rw-r--r--www/ap-xslt/Makefile18
-rw-r--r--www/ap-xslt/distinfo6
-rw-r--r--www/ap-xslt/patches/patch-aa17
-rw-r--r--www/ap-xslt/patches/patch-ab11
-rw-r--r--www/ap-xslt/pkg/DESCR12
-rw-r--r--www/ap-xslt/pkg/PLIST2
6 files changed, 66 insertions, 0 deletions
diff --git a/www/ap-xslt/Makefile b/www/ap-xslt/Makefile
new file mode 100644
index 00000000000..8659d1781aa
--- /dev/null
+++ b/www/ap-xslt/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1.1.1 2001/10/16 18:23:21 jwise Exp $
+
+DISTNAME= modxslt
+PKGNAME= ap-xslt-1.1
+CATEGORIES= www
+MASTER_SITES= http://modxslt.userworld.com/
+
+MAINTAINER= jwise@netbsd.org
+HOMEPAGE= http://modxslt.userworld.com/
+COMMENT= Simple, fast XSLT transformations for apache
+
+DEPENDS+= apache{,6}-1.3.*:../../www/apache
+DEPENDS+= sablotron-*:../../textproc/sablotron
+
+do-install:
+ ${LOCALBASE}/sbin/apxs -i ${WRKSRC}/mod_xslt.so
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/www/ap-xslt/distinfo b/www/ap-xslt/distinfo
new file mode 100644
index 00000000000..6fa87ec1a87
--- /dev/null
+++ b/www/ap-xslt/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2001/10/16 18:23:21 jwise Exp $
+
+SHA1 (modxslt.tar.gz) = 136edef75ef6caf53eb865102a2ebfa15383df47
+Size (modxslt.tar.gz) = 11693 bytes
+SHA1 (patch-aa) = c5615792fac77828431a9fa6cabe4ff07b5654e4
+SHA1 (patch-ab) = 2bc2b9cade4dc96b5bf4e4f5a565a5121519a640
diff --git a/www/ap-xslt/patches/patch-aa b/www/ap-xslt/patches/patch-aa
new file mode 100644
index 00000000000..8664cba2092
--- /dev/null
+++ b/www/ap-xslt/patches/patch-aa
@@ -0,0 +1,17 @@
+--- Makefile.orig Wed Aug 23 22:30:50 2000
++++ Makefile Tue Sep 25 15:12:22 2001
+@@ -1,12 +1,12 @@
+ # the used tools
+-APXS=/usr/local/lib/httpd/bin/apxs
++APXS=${PREFIX}/sbin/apxs
+
+ # the default target
+ all: mod_xslt.so
+
+ # compile the shared object file
+ mod_xslt.so: mod_xslt.c
+- $(APXS) -c mod_xslt.c -o mod_xslt.so
++ $(APXS) -c -I${LOCALBASE}/include mod_xslt.c -o mod_xslt.so -L${LOCALBASE}/lib -R${LOCALBASE}/lib -lsablot -lstdc++ -lm
+
+ # cleanup
+ clean:
diff --git a/www/ap-xslt/patches/patch-ab b/www/ap-xslt/patches/patch-ab
new file mode 100644
index 00000000000..13059eb13fc
--- /dev/null
+++ b/www/ap-xslt/patches/patch-ab
@@ -0,0 +1,11 @@
+--- mod_xslt.c.orig Tue Sep 25 15:15:15 2001
++++ mod_xslt.c Tue Sep 25 15:15:42 2001
+@@ -43,7 +43,7 @@
+ #include "http_protocol.h"
+ #include "ap_config.h"
+ #include "util_uri.h"
+-#include "alloc.h"
++#include "ap_alloc.h"
+ #include "http_core.h"
+ #include "sablot.h"
+ #include "http_log.h"
diff --git a/www/ap-xslt/pkg/DESCR b/www/ap-xslt/pkg/DESCR
new file mode 100644
index 00000000000..b3dedb4bb5b
--- /dev/null
+++ b/www/ap-xslt/pkg/DESCR
@@ -0,0 +1,12 @@
+mod_xslt is a simple Apache module to serve XML based content. Data
+is stored in XML files on the server. The user requests the XML
+file and the translation method via a url such as
+this:http://localhost/sourcefile.html The module will parse this
+URL into a XML source file and an XSL source file. In the example
+above, the XML file will be sourcefile.xml. The module will open
+sourcefile.xml and determine its DOCTYPE. Based on the DOCTYPE,
+the XSL file will be opened. Should the DOCTYPE be "tutorial", the
+XSL file opened would be tutorial_html.xsl. The content-type returned
+to the browser is text/html. The translation occurs transparently
+to the user.
+
diff --git a/www/ap-xslt/pkg/PLIST b/www/ap-xslt/pkg/PLIST
new file mode 100644
index 00000000000..29aababd764
--- /dev/null
+++ b/www/ap-xslt/pkg/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2001/10/16 18:23:21 jwise Exp $
+lib/httpd/mod_xslt.so