pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/ap2-xslt2 Initial import of ap2-xslt2 (known as mo...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/453e76ee2000
branches:  trunk
changeset: 522324:453e76ee2000
user:      xtraeme <xtraeme%pkgsrc.org@localhost>
date:      Thu Dec 07 02:34:01 2006 +0000

description:
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:

 www/ap2-xslt2/DESCR            |  23 +++++++++++++++++++++++
 www/ap2-xslt2/Makefile         |  28 ++++++++++++++++++++++++++++
 www/ap2-xslt2/PLIST            |  14 ++++++++++++++
 www/ap2-xslt2/distinfo         |  10 ++++++++++
 www/ap2-xslt2/patches/patch-aa |  14 ++++++++++++++
 www/ap2-xslt2/patches/patch-ab |  23 +++++++++++++++++++++++
 www/ap2-xslt2/patches/patch-ac |  18 ++++++++++++++++++
 www/ap2-xslt2/patches/patch-ad |  23 +++++++++++++++++++++++
 www/ap2-xslt2/patches/patch-ae |  17 +++++++++++++++++
 9 files changed, 170 insertions(+), 0 deletions(-)

diffs (206 lines):

diff -r e9f81081c76f -r 453e76ee2000 www/ap2-xslt2/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ap2-xslt2/DESCR       Thu Dec 07 02:34:01 2006 +0000
@@ -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 -r e9f81081c76f -r 453e76ee2000 www/ap2-xslt2/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ap2-xslt2/Makefile    Thu Dec 07 02:34:01 2006 +0000
@@ -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@localhost
+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 -r e9f81081c76f -r 453e76ee2000 www/ap2-xslt2/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ap2-xslt2/PLIST       Thu Dec 07 02:34:01 2006 +0000
@@ -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 -r e9f81081c76f -r 453e76ee2000 www/ap2-xslt2/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ap2-xslt2/distinfo    Thu Dec 07 02:34:01 2006 +0000
@@ -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 -r e9f81081c76f -r 453e76ee2000 www/ap2-xslt2/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ap2-xslt2/patches/patch-aa    Thu Dec 07 02:34:01 2006 +0000
@@ -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 -r e9f81081c76f -r 453e76ee2000 www/ap2-xslt2/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ap2-xslt2/patches/patch-ab    Thu Dec 07 02:34:01 2006 +0000
@@ -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 -r e9f81081c76f -r 453e76ee2000 www/ap2-xslt2/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ap2-xslt2/patches/patch-ac    Thu Dec 07 02:34:01 2006 +0000
@@ -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 -r e9f81081c76f -r 453e76ee2000 www/ap2-xslt2/patches/patch-ad
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ap2-xslt2/patches/patch-ad    Thu Dec 07 02:34:01 2006 +0000
@@ -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 -r e9f81081c76f -r 453e76ee2000 www/ap2-xslt2/patches/patch-ae
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ap2-xslt2/patches/patch-ae    Thu Dec 07 02:34:01 2006 +0000
@@ -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}



Home | Main Index | Thread Index | Old Index