summaryrefslogtreecommitdiff
path: root/www/ap2-xslt2
diff options
context:
space:
mode:
authorxtraeme <xtraeme>2006-12-07 02:34:01 +0000
committerxtraeme <xtraeme>2006-12-07 02:34:01 +0000
commit8805ad2af921bbf719be010581adbd233052d6ef (patch)
treebf376031eb038152dd4f650d17d403b139723386 /www/ap2-xslt2
parent0448fab84bf830086aaa3110a404bd614a0f6ced (diff)
downloadpkgsrc-8805ad2af921bbf719be010581adbd233052d6ef.tar.gz
Initial import of ap2-xslt2 (known as mod-xslt2).
mod-xslt2 is a server side module able to transform ``xml'' documents in ``html'' (or to any other format) before they even get back to the browser. mod-xslt2 main features include: * Ability to parse generated xml (ability to parse the output of php or perl scripts). * Ability to use the ``xslt'' indicated by the <?xml-stylesheet processing instruction. * Ability to send back the xml file unparsed to the browser. * Ability to fetch xslt or DTDs from scripts rather than from static files. * Ability to fetch a different xslt depending on the content of the request headers, of the get parameters or the web server environment. * Ability to allow xslt stylesheets to make use of these variables to generate output. -- http://www.mod-xslt2.com/
Diffstat (limited to 'www/ap2-xslt2')
-rw-r--r--www/ap2-xslt2/DESCR23
-rw-r--r--www/ap2-xslt2/Makefile28
-rw-r--r--www/ap2-xslt2/PLIST14
-rw-r--r--www/ap2-xslt2/distinfo10
-rw-r--r--www/ap2-xslt2/patches/patch-aa14
-rw-r--r--www/ap2-xslt2/patches/patch-ab23
-rw-r--r--www/ap2-xslt2/patches/patch-ac18
-rw-r--r--www/ap2-xslt2/patches/patch-ad23
-rw-r--r--www/ap2-xslt2/patches/patch-ae17
9 files changed, 170 insertions, 0 deletions
diff --git a/www/ap2-xslt2/DESCR b/www/ap2-xslt2/DESCR
new file mode 100644
index 00000000000..2b07456b07b
--- /dev/null
+++ b/www/ap2-xslt2/DESCR
@@ -0,0 +1,23 @@
+mod-xslt2 is a server side module able to transform ``xml''
+documents in ``html'' (or to any other format) before they
+even get back to the browser.
+
+mod-xslt2 main features include:
+
+* Ability to parse generated xml (ability to parse the output of
+ php or perl scripts).
+
+* Ability to use the ``xslt'' indicated by the <?xml-stylesheet
+ processing instruction.
+
+* Ability to send back the xml file unparsed to the browser.
+
+* Ability to fetch xslt or DTDs from scripts rather than from
+ static files.
+
+* Ability to fetch a different xslt depending on the content of
+ the request headers, of the get parameters or the web server
+ environment.
+
+* Ability to allow xslt stylesheets to make use of these
+ variables to generate output.
diff --git a/www/ap2-xslt2/Makefile b/www/ap2-xslt2/Makefile
new file mode 100644
index 00000000000..de6d4669308
--- /dev/null
+++ b/www/ap2-xslt2/Makefile
@@ -0,0 +1,28 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/12/07 02:34:01 xtraeme Exp $
+#
+
+DISTNAME= modxslt-${DIST_VER}
+PKGNAME= ap2-xslt2-${DIST_VER}
+CATEGORIES= www
+MASTER_SITES= http://www.mod-xslt2.com/software/archive/${DIST_VER}/
+
+MAINTAINER= xtraeme@NetBSD.org
+HOMEPAGE= http://www.mod-xslt2.com/
+COMMENT= Apache module able to apply stylesheets to XML data on the fly
+
+GNU_CONFIGURE= yes
+USE_LIBTOOL= yes
+USE_TOOLS+= gmake
+
+APACHE_MODULE= yes
+DIST_VER= 2004112100
+
+CONFIGURE_ARGS+= --enable-fallback-wraparound
+CONFIGURE_ARGS+= --enable-libxslt-hack
+
+.include "../../devel/pcre/buildlink3.mk"
+.include "../../textproc/libxml2/buildlink3.mk"
+.include "../../textproc/libxslt/buildlink3.mk"
+.include "../../www/apache2/buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/www/ap2-xslt2/PLIST b/www/ap2-xslt2/PLIST
new file mode 100644
index 00000000000..9e412a6399f
--- /dev/null
+++ b/www/ap2-xslt2/PLIST
@@ -0,0 +1,14 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2006/12/07 02:34:01 xtraeme Exp $
+bin/modxslt-config
+bin/modxslt-parse
+bin/modxslt-perror
+include/modxslt2/modxslt-system.h
+include/modxslt2/modxslt-table.h
+include/modxslt2/modxslt-version.h
+include/modxslt2/modxslt.h
+lib/httpd/mod_xslt.la
+lib/libmodxslt0.la
+man/man1/modxslt-config.1
+man/man1/modxslt-parse.1
+man/man1/modxslt-perror.1
+@dirrm include/modxslt2
diff --git a/www/ap2-xslt2/distinfo b/www/ap2-xslt2/distinfo
new file mode 100644
index 00000000000..604eb4f6017
--- /dev/null
+++ b/www/ap2-xslt2/distinfo
@@ -0,0 +1,10 @@
+$NetBSD: distinfo,v 1.1.1.1 2006/12/07 02:34:01 xtraeme Exp $
+
+SHA1 (modxslt-2004112100.tar.gz) = a9b4d43695f2f0ac7baa42063a2abb2d0aa6f774
+RMD160 (modxslt-2004112100.tar.gz) = 0fcbc99d22632f3a7535bd19eae0466a729828a8
+Size (modxslt-2004112100.tar.gz) = 1740676 bytes
+SHA1 (patch-aa) = c292443b9d72ad1e37054cf4c6a2b615b8dd735d
+SHA1 (patch-ab) = 326350cd9db151315e0ba8143ffb90d5dd9a78fc
+SHA1 (patch-ac) = 4f9d75ef323d585bf8b72142bee0b7be17ca706c
+SHA1 (patch-ad) = f7e5ce7c710822eaae27e1295ecfcf2b813e3f25
+SHA1 (patch-ae) = 986bf5dfd9116991d27c56b67838d094a641f38f
diff --git a/www/ap2-xslt2/patches/patch-aa b/www/ap2-xslt2/patches/patch-aa
new file mode 100644
index 00000000000..9a63fffe6c9
--- /dev/null
+++ b/www/ap2-xslt2/patches/patch-aa
@@ -0,0 +1,14 @@
+$NetBSD: patch-aa,v 1.1.1.1 2006/12/07 02:34:01 xtraeme Exp $
+
+--- sapi/apache2/modxslt.c.orig 2006-12-07 02:21:14.000000000 +0100
++++ sapi/apache2/modxslt.c 2006-12-07 02:22:21.000000000 +0100
+@@ -470,7 +470,8 @@
+
+
+ #ifdef HAVE_NETWORK_IOCTLS
+-# include <net/if.h>
++#include <sys/sockio.h>
++#include <net/if.h>
+
+ static int mxslt_ap2_setanyiplist(mxslt_table_t * ips_table) {
+ struct ifconf ifc;
diff --git a/www/ap2-xslt2/patches/patch-ab b/www/ap2-xslt2/patches/patch-ab
new file mode 100644
index 00000000000..a9815b506f3
--- /dev/null
+++ b/www/ap2-xslt2/patches/patch-ab
@@ -0,0 +1,23 @@
+$NetBSD: patch-ab,v 1.1.1.1 2006/12/07 02:34:01 xtraeme Exp $
+
+--- lib/Makefile.in.orig 2004-10-02 10:24:02.000000000 +0200
++++ lib/Makefile.in 2006-12-07 02:53:57.000000000 +0100
+@@ -156,13 +156,13 @@
+ install: install-library install-headers
+
+ install-library: libmodxslt$(LIB_VERSION).la
+- $(LIBTOOL) --mode=install install $(IFLAGS) -D -m 0644 -o root -g root \
+- libmodxslt$(LIB_VERSION).la $(DESTDIR)$(libdir)/libmodxslt$(LIB_VERSION).la
++ $(LIBTOOL) --mode=install $(BSD_INSTALL_LIB) \
++ libmodxslt$(LIB_VERSION).la $(DESTDIR)$(libdir)
+
+ install-headers:
+- $(INSTALL) -d -m 0755 -o root -g root $(DESTDIR)$(includedir)/modxslt$(LIB_VERSION)
+- $(INSTALL) -m 0644 -o root -g root $(srcdir)/modxslt$(LIB_VERSION)/*.h $(DESTDIR)$(includedir)/modxslt$(LIB_VERSION)
+- $(INSTALL) -m 0644 -o root -g root ./modxslt$(LIB_VERSION)/*.h $(DESTDIR)$(includedir)/modxslt$(LIB_VERSION)
++ $(BSD_INSTALL_DATA_DIR) $(DESTDIR)$(includedir)/modxslt2
++ $(BSD_INSTALL_DATA) $(srcdir)/modxslt$(LIB_VERSION)/*.h $(DESTDIR)$(includedir)/modxslt2
++ $(BSD_INSTALL_DATA) ./modxslt$(LIB_VERSION)/*.h $(DESTDIR)$(includedir)/modxslt2
+
+ uninstall: uninstall-library uninstall-headers
+
diff --git a/www/ap2-xslt2/patches/patch-ac b/www/ap2-xslt2/patches/patch-ac
new file mode 100644
index 00000000000..f601d87f179
--- /dev/null
+++ b/www/ap2-xslt2/patches/patch-ac
@@ -0,0 +1,18 @@
+$NetBSD: patch-ac,v 1.1.1.1 2006/12/07 02:34:01 xtraeme Exp $
+
+--- sapi/apache2/Makefile.in.orig 2004-10-02 10:24:09.000000000 +0200
++++ sapi/apache2/Makefile.in 2006-12-07 03:05:49.000000000 +0100
+@@ -92,12 +92,7 @@
+ install: mod_xslt.la install-stamp Makefile
+
+ install-stamp: mod_xslt.la Makefile
+- test "x$$UID" = "x" || test "x$$UID" = "x0" || { echo 'You must be root!'; exit 1; }
+- $(LIBTOOL) --mode=install $(INSTALL) $(STRIP) -D -o root -g root -m 0644 mod_xslt.la '$(DESTDIR)$(APXS_INSTALLDIR)'
+- @echo Removing extra files...
+- FILE=`grep dlname mod_xslt.la | sed -e "s/[^']*'\([^']*\).*/\1/"` && \
+- find '$(DESTDIR)$(APXS_INSTALLDIR)' -name 'mod_xslt.*'|grep -v "$$FILE"|xargs rm -f && \
+- echo '$(DESTDIR)$(APXS_INSTALLDIR)'/$(FILE) > install-stamp
++ $(LIBTOOL) --mode=install $(BSD_INSTALL_LIB) mod_xslt.la '$(DESTDIR)$(APXS_INSTALLDIR)'
+
+ uninstall:
+ test -f install-stamp && rm -f `cat install-stamp`
diff --git a/www/ap2-xslt2/patches/patch-ad b/www/ap2-xslt2/patches/patch-ad
new file mode 100644
index 00000000000..cf626f43807
--- /dev/null
+++ b/www/ap2-xslt2/patches/patch-ad
@@ -0,0 +1,23 @@
+$NetBSD: patch-ad,v 1.1.1.1 2006/12/07 02:34:01 xtraeme Exp $
+
+--- utils/Makefile.in.orig 2006-12-07 03:03:58.000000000 +0100
++++ utils/Makefile.in 2006-12-07 03:05:11.000000000 +0100
+@@ -126,15 +126,15 @@
+ install: install-modxslt-parse install-modxslt-config install-modxslt-perror
+
+ install-modxslt-perror:
+- $(LIBTOOL) --mode=install install $(IFLAGS) -D -m 0755 -o root -g root modxslt-perror \
++ $(LIBTOOL) --mode=install $(BSD_INSTALL_PROGRAM) modxslt-perror \
+ $(DESTDIR)$(bindir)/modxslt-perror
+
+ install-modxslt-parse:
+- $(LIBTOOL) --mode=install install $(IFLAGS) -D -m 0755 -o root -g root modxslt-parse \
++ $(LIBTOOL) --mode=install $(BSD_INSTALL_PROGRAM) modxslt-parse \
+ $(DESTDIR)$(bindir)/modxslt-parse
+
+ install-modxslt-config:
+- install -D -m 0755 -o root -g root modxslt-config \
++ $(BSD_INSTALL_SCRIPT) modxslt-config \
+ $(DESTDIR)$(bindir)/modxslt-config
+
+ uninstall: uninstall-modxslt-parse uninstall-modxslt-config uninstall-modxslt-perror
diff --git a/www/ap2-xslt2/patches/patch-ae b/www/ap2-xslt2/patches/patch-ae
new file mode 100644
index 00000000000..f36ac27ff24
--- /dev/null
+++ b/www/ap2-xslt2/patches/patch-ae
@@ -0,0 +1,17 @@
+$NetBSD: patch-ae,v 1.1.1.1 2006/12/07 02:34:01 xtraeme Exp $
+
+--- doc/man/Makefile.in.orig 2004-10-02 10:24:10.000000000 +0200
++++ doc/man/Makefile.in 2006-12-07 03:17:46.000000000 +0100
+@@ -77,8 +77,10 @@
+ $(XSLT) $(XSLTPARAM) modxslt-parse.xml
+
+ install: modxslt-config.1 modxslt-perror.1 modxslt-parse.1
+- $(INSTALL) -d $(DESTDIR)$(mandir)/man1
+- $(INSTALL) --mode=0644 --owner=root --group=root $^ $(DESTDIR)$(mandir)/man1
++ $(BSD_INSTALL_MAN_DIR) $(DESTDIR)$(mandir)/man1
++ $(BSD_INSTALL_MAN) modxslt-config.1 $(DESTDIR)$(mandir)/man1
++ $(BSD_INSTALL_MAN) modxslt-perror.1 $(DESTDIR)$(mandir)/man1
++ $(BSD_INSTALL_MAN) modxslt-parse.1 $(DESTDIR)$(mandir)/man1
+
+ uninstall:
+ rm $(DESTDIR)$(mandir)/man1/{modxslt-config.1,modxslt-parse.1,modxslt-perror.1}