Date: Sun, 1 Sep 2002 20:48:47 +0200 (CEST) From: Stefan Schwarzer <sschwarzer@sschwarzer.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/42296: New port: mod_webkit (adapter between Webware and Apache 1.3) Message-ID: <200209011848.g81ImluF069307@purpurea.rz.tu-clausthal.de>
next in thread | raw e-mail | index | archive | help
>Number: 42296 >Category: ports >Synopsis: New port: mod_webkit (adapter between Webware and Apache 1.3) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Sep 01 11:50:06 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Stefan Schwarzer >Release: FreeBSD 4.6.2-RELEASE i386 >Organization: none >Environment: System: FreeBSD purpurea.rz.tu-clausthal.de 4.6.2-RELEASE FreeBSD 4.6.2-RELEASE #8: Sun Aug 25 17:57:20 CEST 2002 svss@purpurea.rz.tu-clausthal.de:/usr/obj/usr/src/sys/PURPUREA i386 >Description: mod_webkit, a module for Apache 1.3.x, is the fastest way to allow Webware for Python communicate with Apache. Below is a shar file of the port. >How-To-Repeat: n. a. >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # /usr/ports/www/mod_webkit # /usr/ports/www/mod_webkit/pkg-deinstall # /usr/ports/www/mod_webkit/distinfo # /usr/ports/www/mod_webkit/pkg-comment # /usr/ports/www/mod_webkit/Makefile # /usr/ports/www/mod_webkit/pkg-descr # /usr/ports/www/mod_webkit/pkg-install # /usr/ports/www/mod_webkit/pkg-plist # echo c - /usr/ports/www/mod_webkit mkdir -p /usr/ports/www/mod_webkit > /dev/null 2>&1 echo x - /usr/ports/www/mod_webkit/pkg-deinstall sed 's/^X//' >/usr/ports/www/mod_webkit/pkg-deinstall << 'END-of-/usr/ports/www/mod_webkit/pkg-deinstall' X#! /bin/sh X X# $FreeBSD$ X XPATH=/bin:/usr/bin X Xcase $2 in XPOST-DEINSTALL) X # comment out the LoadModule and AddModule lines in httpd.conf X cp ${PKG_PREFIX}/etc/apache/httpd.conf \ X ${PKG_PREFIX}/etc/apache/httpd.conf.new X sed -e "s|^LoadModule webkit_module|#LoadModule webkit_module|" \ X -e "s|^AddModule mod_webkit.c|#AddModule mod_webkit.c|" \ X < ${PKG_PREFIX}/etc/apache/httpd.conf.new \ X > ${PKG_PREFIX}/etc/apache/httpd.conf X rm ${PKG_PREFIX}/etc/apache/httpd.conf.new X ;; Xesac X END-of-/usr/ports/www/mod_webkit/pkg-deinstall echo x - /usr/ports/www/mod_webkit/distinfo sed 's/^X//' >/usr/ports/www/mod_webkit/distinfo << 'END-of-/usr/ports/www/mod_webkit/distinfo' XMD5 (Webware-0.7.tar.gz) = 08d55131471dca4ab29107dccacd9dba END-of-/usr/ports/www/mod_webkit/distinfo echo x - /usr/ports/www/mod_webkit/pkg-comment sed 's/^X//' >/usr/ports/www/mod_webkit/pkg-comment << 'END-of-/usr/ports/www/mod_webkit/pkg-comment' XWebKit adapter for Apache in C (see port www/Webware) END-of-/usr/ports/www/mod_webkit/pkg-comment echo x - /usr/ports/www/mod_webkit/Makefile sed 's/^X//' >/usr/ports/www/mod_webkit/Makefile << 'END-of-/usr/ports/www/mod_webkit/Makefile' X# New ports collection makefile for: mod_webkit X# Date created: 17 July 2002 X# Whom: sschwarzer@sschwarzer.net X# X# $FreeBSD$ X# X XPORTNAME= mod_webkit X# same as Webware for Python's XPORTVERSION= 0.7 XPORTREVISION= 1 XCATEGORIES= www python X XMAINTAINER= sschwarzer@sschwarzer.net X XMASTER_SITES?= ${MASTER_SITE_SOURCEFORGE} XMASTER_SITE_SUBDIR?=webware XWRKSRC?= ${WRKDIR}/${PORTNAME} XDISTNAME?= Webware-${PORTVERSION} X XAPXS?= ${LOCALBASE}/sbin/apxs XRUN_DEPENDS= ${APXS}:${PORTSDIR}/www/apache13 \ X ${LOCALBASE}/share/webware:${PORTSDIR}/www/Webware XBUILD_DEPENDS= ${APXS}:${PORTSDIR}/www/apache13 X Xpost-extract: X# we only need the mod_webkit subdirectory X ${MV} ${WRKDIR}/Webware/WebKit/Native/mod_webkit ${WRKDIR} X ${RM} -rf ${WRKDIR}/Webware X Xpre-build: X ${CP} ${WRKSRC}/Makefile ${WRKSRC}/Makefile.new X# assume the change to be within the first 10 lines X ${SED} -e "1,10s|APXS=/usr/sbin/apxs|APXS=${APXS}|" \ X < ${WRKSRC}/Makefile.new > ${WRKSRC}/Makefile X ${RM} ${WRKSRC}/Makefile.new X Xpost-build: X ${STRIP_CMD} ${WRKSRC}/mod_webkit.so X X.include <bsd.port.mk> END-of-/usr/ports/www/mod_webkit/Makefile echo x - /usr/ports/www/mod_webkit/pkg-descr sed 's/^X//' >/usr/ports/www/mod_webkit/pkg-descr << 'END-of-/usr/ports/www/mod_webkit/pkg-descr' Xmod_webkit is an Apache 1.3 module that interfaces with the application Xserver WebKit from the Webware for Python distribution (see port www/Webware). X XUsing this module is recommended for the deployment of software that runs with XWebKit. For development the WebKit.cgi and OneShot.cgi adapters, which are Xincluded in the Webware port, suffice. X XWWW: http://webware.sourceforge.net/ X X- Stefan Schwarzer Xsschwarzer@sschwarzer.net END-of-/usr/ports/www/mod_webkit/pkg-descr echo x - /usr/ports/www/mod_webkit/pkg-install sed 's/^X//' >/usr/ports/www/mod_webkit/pkg-install << 'END-of-/usr/ports/www/mod_webkit/pkg-install' X#! /bin/sh X X# $FreeBSD$ X XPATH=/bin:/usr/bin XAPXS=${APXS:-/usr/local/sbin/apxs} XMODULE_DIR=${PKG_PREFIX}/libexec/apache XMODULE=mod_webkit.so XTMP_DIR=${TMP_DIR:-/tmp} X Xcase $2 in XPOST-INSTALL) X # Because apxs (as of Apache 1.3.26) isn't able to only modify httpd.conf X # and also breaks if the source module file is already in Apache's X # libexec directory, we have to copy mod_webkit.so somewhere else so X # apxs can work. X cp ${MODULE_DIR}/${MODULE} ${TMP_DIR} X # install from ${TMP_DIR} X (cd ${TMP_DIR} && ${APXS} -i -a -n 'webkit' ${MODULE}) X # clean up X rm -f ${TMP_DIR}/${MODULE} X ;; Xesac X END-of-/usr/ports/www/mod_webkit/pkg-install echo x - /usr/ports/www/mod_webkit/pkg-plist sed 's/^X//' >/usr/ports/www/mod_webkit/pkg-plist << 'END-of-/usr/ports/www/mod_webkit/pkg-plist' Xlibexec/apache/mod_webkit.so END-of-/usr/ports/www/mod_webkit/pkg-plist exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200209011848.g81ImluF069307>