pkgsrc-Changes-HG archive

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

pkgsrc: www/yaws: Update to 2.0.5. Add SMF support.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/479f48505c54
branches:  trunk
changeset: 306261:479f48505c54
user:      fhajny <fhajny%pkgsrc.org@localhost>
date:      Fri Apr 13 16:12:13 2018 +0000
description:
www/yaws: Update to 2.0.5. Add SMF support.

No changelog or release notes. Commit log available from the website:

  http://yaws.hyber.org/

diffstat:

 www/yaws/Makefile                            |  69 +++++++++------------------
 www/yaws/PLIST                               |  36 ++++++++-----
 www/yaws/distinfo                            |  13 ++--
 www/yaws/files/smf/manifest.xml              |  28 +++++++++++
 www/yaws/files/yaws.conf                     |   4 +-
 www/yaws/patches/patch-ai                    |  24 ++++++--
 www/yaws/patches/patch-scripts_yaws.template |  18 +++++++
 7 files changed, 117 insertions(+), 75 deletions(-)

diffs (truncated from 349 to 300 lines):

diff -r 29e3601df290 -r 479f48505c54 www/yaws/Makefile
--- a/www/yaws/Makefile Fri Apr 13 16:05:52 2018 +0000
+++ b/www/yaws/Makefile Fri Apr 13 16:12:13 2018 +0000
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.14 2016/07/09 06:39:15 wiz Exp $
+# $NetBSD: Makefile,v 1.15 2018/04/13 16:12:13 fhajny Exp $
 #
 
-DISTNAME=              yaws-1.97
-PKGREVISION=           5
+DISTNAME=              yaws-2.0.5
 CATEGORIES=            www
 MASTER_SITES=          http://yaws.hyber.org/download/
 
@@ -13,51 +12,42 @@
 
 BUILD_DEFS+=           VARBASE
 
-USE_TOOLS+=            gmake perl pax autoconf
+USE_TOOLS+=            gmake perl tar
 GNU_CONFIGURE=         yes
-AUTOCONF_REQD=         2.50
+
+PKG_SYSCONFSUBDIR=     yaws
 
-CONFIGURE_ARGS+=       --sysconfdir=${PKG_SYSCONFDIR}/yaws
+.include "../../mk/bsd.prefs.mk"
+
 CONFIGURE_ARGS+=       --localstatedir=${VARBASE}
 CONFIGURE_ARGS+=       --with-extrainclude=${PAMBASE}/include/security
+CONFIGURE_ARGS+=       ERLANG_INSTALL_LIB_DIR_yaws=${PREFIX}/lib/yaws
+CONFIGURE_ARGS+=       wwwdir=${WWWDIR}
+
+# Not compatible with SunOS PAM headers
+.if ${OPSYS} == "SunOS"
+CONFIGURE_ARGS+=       --disable-pam
+.endif
 
 EGDIR=                 ${PREFIX}/share/examples/yaws
-CONF_FILES=            ${EGDIR}/yaws.conf ${PKG_SYSCONFDIR}/yaws/yaws.conf
+CONF_FILES=            ${EGDIR}/yaws.conf ${PKG_SYSCONFDIR}/yaws.conf
 RCD_SCRIPTS=           yaws
 RCD_SCRIPT_SRC.yaws=   ${WRKSRC}/scripts/netbsd/yaws.sh
 
-LIBDIR=                        ${PREFIX}/lib/yaws
 WWWDIR=                        ${PREFIX}/share/yaws/www
-INSTALLATION_DIRS=     ${EGDIR}
-INSTALLATION_DIRS+=    ${LIBDIR}/ebin ${LIBDIR}/include
-INSTALLATION_DIRS+=    ${LIBDIR}/priv ${WWWDIR}
 
 OWN_DIRS=              ${VARBASE}/log/yaws
 
 REPLACE_PYTHON=                www/cgi-bin/foo.py
-#CHECK_INTERPRETER_SKIP=       ${WWWDIR}/cgi-bin/foo.py
 CHECK_INTERPRETER_SKIP=        share/yaws/www/cgi-bin/foo.py
 
-INSTALLATION_DIRS+=    bin
-INSTALLATION_DIRS+=    ${PKGMANDIR}/man1
-INSTALLATION_DIRS+=    ${PKGMANDIR}/man5
+INSTALL_MAKE_FLAGS+=   sysconfdir=${PREFIX}/share/examples
+
+FILES_SUBST+=          PKG_SYSCONFDIR=${PKG_SYSCONFDIR}
 
-# remove after upgrading to a now()-less yaws:
-SUBST_CLASSES+=                now
-SUBST_STAGE.now=       post-patch
-SUBST_FILES.now=       */*.erl
-SUBST_SED.now=         -e 's|\([^:a-zA-Z]\)now()|\1erlang:timestamp()|g'
-SUBST_SED.now+=                -e 's|\([^:a-zA-Z]\)erlang:now()|\1erlang:timestamp()|g'
-SUBST_MESSAGE.now=     Replacing now().
-
-post-patch:
-       ${RM} ${WRKDIR}/yaws
-       ${RM} -Rf ${WRKSRC}/www/.xvpics
+post-extract:
+       cd ${WRKSRC} && ${CHMOD} -R g-w www
        ${RM} -Rf ${WRKSRC}/www/testdir
-       ${FIND} ${WRKSRC} -name \*.orig -o -name .empty | ${XARGS} ${RM} -f
-
-pre-configure:
-       cd ${WRKSRC} && autoconf
 
 post-configure:
        ${SED} -e "s|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g" \
@@ -65,22 +55,9 @@
                -e "s|@VARBASE@|${VARBASE}|g" \
                ${FILESDIR}/yaws.conf > ${WRKDIR}/yaws.conf
 
-do-install:
-       ${INSTALL_SCRIPT} ${WRKSRC}/bin/yaws ${DESTDIR}${PREFIX}/bin
-       ${INSTALL_DATA} ${WRKDIR}/yaws.conf ${DESTDIR}${EGDIR}
-
-       ${INSTALL_DATA} ${WRKSRC}/ebin/* ${DESTDIR}${LIBDIR}/ebin
-       ${INSTALL_DATA} ${WRKSRC}/include/* ${DESTDIR}${LIBDIR}/include
-       cd ${WRKSRC}/priv && pax -rw . ${DESTDIR}${LIBDIR}/priv
-
-       cd ${WRKSRC}/www && pax -rw . ${DESTDIR}${WWWDIR}
-
-       ${INSTALL_MAN} ${WRKSRC}/man/yaws.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
-       ${INSTALL_MAN} ${WRKSRC}/man/*.5 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5
-
-       ${INSTALL_DATA_DIR} ${DESTDIR}${PKG_SYSCONFDIR}/yaws
-
-BUILDLINK_API_DEPENDS.erlang+= erlang>=18.0
+post-install:
+       ${RM} -f ${DESTDIR}${WWWDIR}/code/Makefile*
+       ${RM} -f ${DESTDIR}${WWWDIR}/shoppingcart/Makefile*
 
 .include "../../lang/erlang/buildlink3.mk"
 .include "../../mk/pam.buildlink3.mk"
diff -r 29e3601df290 -r 479f48505c54 www/yaws/PLIST
--- a/www/yaws/PLIST    Fri Apr 13 16:05:52 2018 +0000
+++ b/www/yaws/PLIST    Fri Apr 13 16:12:13 2018 +0000
@@ -1,7 +1,7 @@
-@comment $NetBSD: PLIST,v 1.4 2014/03/11 14:05:18 jperkin Exp $
+@comment $NetBSD: PLIST,v 1.5 2018/04/13 16:12:13 fhajny Exp $
 bin/yaws
+lib/pkgconfig/yaws.pc
 lib/yaws/ebin/haxe.beam
-lib/yaws/ebin/json.beam
 lib/yaws/ebin/json2.beam
 lib/yaws/ebin/jsonrpc.beam
 lib/yaws/ebin/mime_type_c.beam
@@ -20,6 +20,7 @@
 lib/yaws/ebin/yaws_ctl.beam
 lib/yaws/ebin/yaws_debug.beam
 lib/yaws/ebin/yaws_dime.beam
+lib/yaws/ebin/yaws_dynopts.beam
 lib/yaws/ebin/yaws_exhtml.beam
 lib/yaws/ebin/yaws_generated.beam
 lib/yaws/ebin/yaws_html.beam
@@ -50,8 +51,16 @@
 lib/yaws/ebin/yaws_trace.beam
 lib/yaws/ebin/yaws_vdir.beam
 lib/yaws/ebin/yaws_websockets.beam
+lib/yaws/ebin/yaws_ws_sup.beam
 lib/yaws/ebin/yaws_xmlrpc.beam
 lib/yaws/ebin/yaws_zlib.beam
+lib/yaws/examples/ebin/advanced_echo_callback.beam
+lib/yaws/examples/ebin/authmod_gssapi.beam
+lib/yaws/examples/ebin/basic_echo_callback.beam
+lib/yaws/examples/ebin/basic_echo_callback_extended.beam
+lib/yaws/examples/ebin/myappmod.beam
+lib/yaws/examples/ebin/server_sent_events.beam
+lib/yaws/examples/ebin/shopcart.beam
 lib/yaws/include/soap-envelope.hrl
 lib/yaws/include/soap.hrl
 lib/yaws/include/wsdl11soap12.hrl
@@ -60,12 +69,8 @@
 lib/yaws/include/yaws_dav.hrl
 lib/yaws/include/yaws_lock.hrl
 lib/yaws/include/yaws_soap.hrl
-lib/yaws/priv/charset.def
-lib/yaws/priv/charset.def.in
 lib/yaws/priv/envelope.xsd
-lib/yaws/priv/epam
-lib/yaws/priv/lib/.gitignore
-lib/yaws/priv/lib/setuid_drv.so
+lib/yaws/priv/lib/setuid_drv.la
 lib/yaws/priv/mime.types
 lib/yaws/priv/soap-envelope.xsd
 lib/yaws/priv/soap.xsd
@@ -76,22 +81,25 @@
 man/man5/yaws.conf.5
 man/man5/yaws_api.5
 man/man5/yaws_soap_lib.5
+share/examples/yaws/dhparams.pem
+share/examples/yaws/yaws-cert.pem
+share/examples/yaws/yaws-key.pem
 share/examples/yaws/yaws.conf
+share/examples/yaws/yaws.conf.template
 share/yaws/www/END
 share/yaws/www/END2
 share/yaws/www/HEAD
-share/yaws/www/Makefile
 share/yaws/www/TAB.inc
 share/yaws/www/api.yaws
 share/yaws/www/appmods.yaws
 share/yaws/www/arg.yaws
 share/yaws/www/arg2.yaws
+share/yaws/www/articles.yaws
 share/yaws/www/bindings.yaws
 share/yaws/www/cgi-bin/foo.py
 share/yaws/www/cgi.yaws
 share/yaws/www/code.yaws
-share/yaws/www/code/Makefile
-share/yaws/www/code/myappmod.beam
+share/yaws/www/code/.deps/myappmod.Pbeam
 share/yaws/www/code/myappmod.erl
 share/yaws/www/compile_layout.dia
 share/yaws/www/compile_layout.png
@@ -248,6 +256,7 @@
 share/yaws/www/query.yaws
 share/yaws/www/readcookie.yaws
 share/yaws/www/readpcookie.yaws
+share/yaws/www/rebar_release.yaws
 share/yaws/www/redirect.yaws
 share/yaws/www/redirect2.yaws
 share/yaws/www/redirect3.yaws
@@ -258,13 +267,12 @@
 share/yaws/www/session1.yaws
 share/yaws/www/setcookie.yaws
 share/yaws/www/setpcookie.yaws
-share/yaws/www/shoppingcart/Makefile
+share/yaws/www/shoppingcart/.deps/shopcart.Pbeam
 share/yaws/www/shoppingcart/buy.yaws
 share/yaws/www/shoppingcart/index.yaws
-share/yaws/www/shoppingcart/junk.jpg
+share/yaws/www/shoppingcart/junk.png
 share/yaws/www/shoppingcart/loginpost.yaws
 share/yaws/www/shoppingcart/logout.yaws
-share/yaws/www/shoppingcart/shopcart.beam
 share/yaws/www/shoppingcart/shopcart.erl
 share/yaws/www/shoppingcart/shopcart_form.yaws
 share/yaws/www/shoppingcart/source.html
@@ -301,4 +309,4 @@
 share/yaws/www/ybed.erl
 share/yaws/www/ybed_sup.erl
 share/yaws/www/yman.yaws
-@pkgdir etc/yaws
+@pkgdir lib/yaws/examples/include
diff -r 29e3601df290 -r 479f48505c54 www/yaws/distinfo
--- a/www/yaws/distinfo Fri Apr 13 16:05:52 2018 +0000
+++ b/www/yaws/distinfo Fri Apr 13 16:12:13 2018 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.4 2015/11/04 02:47:42 agc Exp $
+$NetBSD: distinfo,v 1.5 2018/04/13 16:12:13 fhajny Exp $
 
-SHA1 (yaws-1.97.tar.gz) = 4b8b811c40e6408ba03d25d31fa004483aede2b2
-RMD160 (yaws-1.97.tar.gz) = 21c6138cf982b67f608ef8fd7228d17c754fe959
-SHA512 (yaws-1.97.tar.gz) = b91fa598ea91a190e341dda35f7bc0ee468454fd5eb6bf7cbae722c59816e6b6da81a08aea5f2f6fa49fafaeccd42c85025ed21be9f208c4e2b73b624586db12
-Size (yaws-1.97.tar.gz) = 1242089 bytes
-SHA1 (patch-ai) = fff8d3007722922d1b40ab579817626616740be6
+SHA1 (yaws-2.0.5.tar.gz) = ab9ad5cc79a179d303cdae12d37abcb703ecef1a
+RMD160 (yaws-2.0.5.tar.gz) = bcaa6d9230fbcf6b83dfdedbfad5c878c15c10b0
+SHA512 (yaws-2.0.5.tar.gz) = ef800751765673cecef6d095a99aa8e632a3ea980382d83b4afb33e42927ff768520bb2933210d48085d191a0afcae3817bccfbe1db5d0ec515f71e335c8f2e5
+Size (yaws-2.0.5.tar.gz) = 1660693 bytes
+SHA1 (patch-ai) = 097339fc81ab7421f90f337b11094b655e7a9bee
+SHA1 (patch-scripts_yaws.template) = a7941269c33a345916b05845c11312ca3d47c066
diff -r 29e3601df290 -r 479f48505c54 www/yaws/files/smf/manifest.xml
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/yaws/files/smf/manifest.xml   Fri Apr 13 16:12:13 2018 +0000
@@ -0,0 +1,28 @@
+<?xml version="1.0"?>
+<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
+<service_bundle type="manifest" name="export">
+  <service name="@SMF_PREFIX@/@SMF_NAME@" type="service" version="1">
+    <create_default_instance enabled="false" />
+    <single_instance />
+    <dependency name='network' grouping='require_all' restart_on='error' type='service'>
+      <service_fmri value='svc:/milestone/network:default' />
+    </dependency>
+    <dependency name='filesystem-local' grouping='require_all' restart_on='none' type='service'>
+      <service_fmri value='svc:/system/filesystem/local:default' />
+    </dependency>
+    <exec_method type="method" name="start" exec="@PREFIX@/bin/yaws --daemon --conf %{config_file}" timeout_seconds="60" />
+    <exec_method type="method" name="stop" exec=":kill" timeout_seconds="60" />
+    <property_group name="startd" type="framework">
+      <propval name="duration" type="astring" value="contract" />
+      <propval name="ignore_error" type="astring" value="core,signal" />
+    </property_group>
+    <property_group name="application" type="application">
+      <propval name="config_file" type="astring" value="@PKG_SYSCONFDIR@/yaws.conf" />
+    </property_group>
+    <template>
+      <common_name>
+        <loctext xml:lang="C">Yaws webserver</loctext>
+      </common_name>
+    </template>
+  </service>
+</service_bundle>
diff -r 29e3601df290 -r 479f48505c54 www/yaws/files/yaws.conf
--- a/www/yaws/files/yaws.conf  Fri Apr 13 16:05:52 2018 +0000
+++ b/www/yaws/files/yaws.conf  Fri Apr 13 16:12:13 2018 +0000
@@ -121,7 +121,7 @@
 #      listen = 0.0.0.0
 #      dir_listings = true
 #      <ssl>
-#              keyfile = @PKG_SYSCONFDIR@/yaws/yaws-key.pem
-#              certfile = @PKG_SYSCONFDIR@/yaws/yaws-cert.pem
+#              keyfile = @PKG_SYSCONFDIR@/yaws-key.pem
+#              certfile = @PKG_SYSCONFDIR@/yaws-cert.pem
 #      </ssl>
 #</server>
diff -r 29e3601df290 -r 479f48505c54 www/yaws/patches/patch-ai
--- a/www/yaws/patches/patch-ai Fri Apr 13 16:05:52 2018 +0000
+++ b/www/yaws/patches/patch-ai Fri Apr 13 16:12:13 2018 +0000
@@ -1,22 +1,32 @@
-$NetBSD: patch-ai,v 1.1.1.1 2011/08/26 13:46:43 cheusov Exp $
+$NetBSD: patch-ai,v 1.2 2018/04/13 16:12:13 fhajny Exp $
 
 Replace '%var%' with '@VAR@'
---- scripts/netbsd/yaws.sh.orig        2009-07-05 22:20:13.000000000 +0400
-+++ scripts/netbsd/yaws.sh     2009-10-01 03:53:05.000000000 +0400
+
+--- scripts/netbsd/yaws.sh.orig        2018-04-10 10:32:09.000000000 +0000
++++ scripts/netbsd/yaws.sh
 @@ -1,4 +1,4 @@
 -#!/bin/sh
 +#!@RCD_SCRIPTS_SHELL@



Home | Main Index | Thread Index | Old Index