From owner-freebsd-ports Tue Nov 19 14:10: 8 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8B13A37B401 for ; Tue, 19 Nov 2002 14:10:02 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id BE85343E6E for ; Tue, 19 Nov 2002 14:10:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id gAJMA1x3021551 for ; Tue, 19 Nov 2002 14:10:01 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id gAJMA1nF021550; Tue, 19 Nov 2002 14:10:01 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 604B037B401 for ; Tue, 19 Nov 2002 14:03:14 -0800 (PST) Received: from cultdeadsheep.org (charon.cultdeadsheep.org [80.65.226.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9701843E3B for ; Tue, 19 Nov 2002 14:03:12 -0800 (PST) (envelope-from root@cultdeadsheep.org) Received: (qmail 29716 invoked by uid 0); 19 Nov 2002 22:03:10 -0000 Message-Id: <20021119220310.29715.qmail@cultdeadsheep.org> Date: 19 Nov 2002 22:03:10 -0000 From: Clement Laforet Reply-To: Clement Laforet To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/45496: [New Port] www/mod_layout2 : mod_layout Apache2 module Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 45496 >Category: ports >Synopsis: [New Port] www/mod_layout2 : mod_layout Apache2 module >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: Tue Nov 19 14:10:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Clement Laforet >Release: FreeBSD 4.6-STABLE i386 >Organization: COTDS >Environment: System: FreeBSD goofy.cultdeadsheep.org 4.6-STABLE FreeBSD 4.6-STABLE #0: Thu Jul 4 10:05:12 CEST 2002 root@goofy.cultdeadsheep.org:/usr/obj/usr/src/sys/GOOFY i386 >Description: As I'm maintainer mod_layout port and mod_layout for apache 2 is useable, here's the port. Short description : mod_layout2 is an Apache2 module to wrap served pages with a header and/or footer >How-To-Repeat: N/A >Fix: --- mod_layout2.shar begins here --- # 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: # # mod_layout2 # mod_layout2/Makefile # mod_layout2/distinfo # mod_layout2/pkg-comment # mod_layout2/pkg-descr # mod_layout2/pkg-message # mod_layout2/pkg-plist # mod_layout2/files # mod_layout2/files/patch-Makefile # echo c - mod_layout2 mkdir -p mod_layout2 > /dev/null 2>&1 echo x - mod_layout2/Makefile sed 's/^X//' >mod_layout2/Makefile << 'END-of-mod_layout2/Makefile' X# New ports collection makefile for: mod_layout Apache 2 module X# Date created: Nov 15 2002 X# Whom: Clement Laforet X# X# $FreeBSD: ports/www/mod_layout2/Makefile,v 1.9 2002/08/07 03:07:44 pat Exp $ X# X XPORTNAME= mod_layout XPORTVERSION= 4.0.1a XCATEGORIES= www XMASTER_SITES= http://software.tangent.org/download/ X XMAINTAINER= sheepkiller@cultdeadsheep.org X XBUILD_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache2 XRUN_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache2 X XUSE_REINPLACE= yes XMAKE_ARGS+= builddir=${WRKSRC} X Xpost-install: X.if !defined(NOPORTDOCS) X @${MKDIR} ${DOCSDIR} X ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/README X.endif X @${CAT} ${PKGMESSAGE} X X.include END-of-mod_layout2/Makefile echo x - mod_layout2/distinfo sed 's/^X//' >mod_layout2/distinfo << 'END-of-mod_layout2/distinfo' XMD5 (mod_layout-4.0.1a.tar.gz) = 253c4a2c0f44b788648fc7564f246e87 END-of-mod_layout2/distinfo echo x - mod_layout2/pkg-comment sed 's/^X//' >mod_layout2/pkg-comment << 'END-of-mod_layout2/pkg-comment' XApache2 module to wrap served pages with a header and/or footer END-of-mod_layout2/pkg-comment echo x - mod_layout2/pkg-descr sed 's/^X//' >mod_layout2/pkg-descr << 'END-of-mod_layout2/pkg-descr' Xmod_layout is a utility to wrap served webpages. This means it can Xadd a footer or header to a document. This allows you to create a Xstandard look and feel throughout a website without using SSI. XSome example uses are adding standard disclaimers to the bottom of Xall pages, banner ads to the top of all pages, or even a menu at Xthe beginning of a page. There are many other per-document settings Xyou can modify with mod_layout; Currently this mod_layout version Xis still an alpha version. But it can be used in production Xenvironment for people who need Apache 2.0.x. XTHIS VERSION IS ONLY FOR APACHE 2.0.X XNew mod_layout features won't be backported to mod_layout 3.x designed Xfor apache 1.3.x. XSee, for more informations : XWWW: http://software.tangent.org/projects.pl?view=mod_layout X X- Clem Xsheepkiller@cultdeadsheep.org END-of-mod_layout2/pkg-descr echo x - mod_layout2/pkg-message sed 's/^X//' >mod_layout2/pkg-message << 'END-of-mod_layout2/pkg-message' X----------------------------------------------------------------- XYou have installed mod_layout, a module that can automatically add Xa footer or header to pages served. XPlease Add : X LoadModule layout_module libexec/apache2/liblayout.so Xto your httpd.conf. X XPlease note that this module is an alpha version. X----------------------------------------------------------------- END-of-mod_layout2/pkg-message echo x - mod_layout2/pkg-plist sed 's/^X//' >mod_layout2/pkg-plist << 'END-of-mod_layout2/pkg-plist' Xlibexec/apache2/mod_layout.so Xlibexec/apache2/liblayout.so X@exec %D/sbin/apxs -e -a -n layout %D/%f X@unexec echo "===> If you do not plan on reinstalling mod_layout, you must manually remove"; echo "===> references to it in httpd.conf." X%%PORTDOCS%%share/doc/mod_layout/README X%%PORTDOCS%%@dirrm share/doc/mod_layout END-of-mod_layout2/pkg-plist echo c - mod_layout2/files mkdir -p mod_layout2/files > /dev/null 2>&1 echo x - mod_layout2/files/patch-Makefile sed 's/^X//' >mod_layout2/files/patch-Makefile << 'END-of-mod_layout2/files/patch-Makefile' X--- Makefile.orig Mon Oct 21 19:38:28 2002 X+++ Makefile Sat Nov 16 16:10:44 2002 X@@ -1,17 +1,17 @@ X ## X ## Makefile -- Build procedure for mod_layout Apache module X ## X-builddir=$(shell pwd) X-top_srcdir=/usr/local/apache2 X-top_builddir=/usr/local/apache2 X-include /usr/local/apache2/build/special.mk X+#builddir=${WRKSRC} X+top_srcdir=${LOCALBASE}/share/apache2 X+top_builddir=${LOCALBASE}/share/apache2 X+include ${LOCALBASE}/share/apache2/build/special.mk X X # the used tools X-APXS=/usr/local/apache2/bin/apxs X+APXS=${LOCALBASE}/sbin/apxs X APACHECTL=apachectl X CC=`$(APXS) -q CC` X INC=-I`$(APXS) -q INCLUDEDIR` `$(APXS) -q CFLAGS` #-DLAYOUT_FILEOWNER_NAME X-LD_SHLIB=`apxs -q LDFLAGS_SHLIB` X+LD_SHLIB=`apxs -q LDFLAGS_SHLIB` -lapr -L/usr/local/apache2 X VERSION = 4.0.1a X DISTNAME = mod_layout X DISTVNAME = $(DISTNAME)-$(VERSION) X@@ -36,7 +36,7 @@ X # Apache itself won't compile with it this strict X #DEF = -Wall -DDEBUG -Wtraditional -Wshadow -Wid-clash-len -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings-Wconversion -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wlong-long -Winline -Werror X #DEF = -Wall -DDEBUG X- X+DEF= -L/usr/local/lib/apache2 -lapr X # the default target X all: mod_layout.so X X@@ -44,8 +44,6 @@ X #mod_layout.so: $(OBJ) Makefile X mod_layout.so: $(OBJ) X $(APXS) -o liblayout.la -c $(SOBJ) X- #$(APXS) -c -o liblayout $(SOBJ) X- #$(APXS) -i -a mod_layout.la X X mod_layout.o : mod_layout.c X $(APXS) -c mod_layout.c X@@ -63,17 +61,7 @@ X $(APXS) -c header.c X # install the shared object file into Apache X install: X- $(APXS) -i -n liblayout.so -e liblayout.la X- @echo "+--------------------------------------------------------+"; \ X- echo "| All done. |"; \ X- echo "| |"; \ X- echo "| You will need to add the directive: |"; \ X- echo "| LoadModule layout_module modules/liblayout.so |"; \ X- echo "| |"; \ X- echo "| So that you can begin to use mod_layout. |"; \ X- echo "| |"; \ X- echo "| Thanks for installing mod_layout. |"; \ X- echo "+--------------------------------------------------------+"; \ X+ $(APXS) -a -i -n liblayout.so -e liblayout.la X X rpm: #all dist X cp $(DISTVNAME).tar$(SUFFIX) /usr/src/redhat/SOURCES END-of-mod_layout2/files/patch-Makefile exit --- mod_layout2.shar ends here --- >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message