ports/125032: new port www/mod_gzip2

Stefan `Sec` Zehl sec at 42.org
Thu Jun 26 23:50:01 UTC 2008


>Number:         125032
>Category:       ports
>Synopsis:       new port www/mod_gzip2
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 26 23:50:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Stefan `Sec` Zehl
>Release:        FreeBSD 7.0-STABLE amd64
>Organization:
>Environment:
System: FreeBSD ice 7.0-STABLE FreeBSD 7.0-STABLE #13: Thu May 8 15:00:23 CEST 2008 root at ice:/usr/obj/usr/src/sys/ICE amd64


	
>Description:

	The existing www/mod_gzip port only builds&runs on apache 1.x.
	This port is for apache 2.0 and 2.2.
	mod_gzip offers better configurability and logging over 
	the apache2 standard mod_deflate.

>How-To-Repeat:
	
>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:
#
#	mod_gzip2/Makefile
#	mod_gzip2/distinfo
#	mod_gzip2/files
#	mod_gzip2/files/patch-Makefile
#	mod_gzip2/files/patch-mod_gzip
#	mod_gzip2/files/patch-zutil.h
#	mod_gzip2/pkg-descr
#	mod_gzip2/pkg-plist
#
echo x - mod_gzip2/Makefile
sed 's/^X//' >mod_gzip2/Makefile << 'END-of-mod_gzip2/Makefile'
X# New ports collection makefile for:	mod_gzip Apache module
X# Date created:		2008-06-27
X# Whom:			Stefan `Sec` Zehl <sec at 42.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	mod_gzip2
XPORTVERSION=	2.1.0
XCATEGORIES=	www
XMASTER_SITES=	http://www.gknw.net/development/apache/httpd-2.0/unix/modules/
XDISTNAME=	mod_gzip-${PORTVERSION}
X#EXTRACT_SUFX=	.tgz
X
XMAINTAINER=	sec at 42.org
XCOMMENT=	An Internet Content Acceleration module for Apache2+
X
XUSE_APACHE=	2.0+
XMAKE_ENV+=	"APXS=${APXS}"
XUSE_GMAKE=	yes
X
Xpost-install:
X	@${MKDIR} ${EXAMPLESDIR}
X	@${INSTALL_DATA} ${WRKSRC}/my_cfg.txt ${EXAMPLESDIR}/mod_gzip2.conf.sample
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X	@${INSTALL_DATA} ${WRKSRC}/commands.txt ${WRKSRC}/samples.txt ${DOCSDIR}
X.endif
X
X.include <bsd.port.mk>
END-of-mod_gzip2/Makefile
echo x - mod_gzip2/distinfo
sed 's/^X//' >mod_gzip2/distinfo << 'END-of-mod_gzip2/distinfo'
XMD5 (mod_gzip-2.1.0.tar.gz) = 9011aa2dc4701c0301e6c608269f8835
XSHA256 (mod_gzip-2.1.0.tar.gz) = 56bb3dafd0adc7ebf54fedf1f120974c3ea8bf3eb6190daf3baf393543718fdd
XSIZE (mod_gzip-2.1.0.tar.gz) = 76887
END-of-mod_gzip2/distinfo
echo c - mod_gzip2/files
mkdir -p mod_gzip2/files > /dev/null 2>&1
echo x - mod_gzip2/files/patch-Makefile
sed 's/^X//' >mod_gzip2/files/patch-Makefile << 'END-of-mod_gzip2/files/patch-Makefile'
X--- Makefile.org	2005-05-12 04:25:40.000000000 +0200
X+++ Makefile	2008-06-27 01:08:33.000000000 +0200
X@@ -2,17 +2,17 @@
X TARGET=mod_gzip
X 
X #   the used tools
X-APXS=/usr/local/apache2/bin/apxs
X+#APXS=/usr/local/apache2/bin/apxs
X APACHECTL=/usr/local/apache2/bin/apachectl
X 
X #   additional defines, includes and libraries
X-LIBDIR=/usr/lib
X+#LIBDIR=/usr/lib
X #INC=-I/usr/include/zlib
X LIB=-lz -L$(LIBDIR)
X 
X #   the default target
X-OPT=-Wc,-Wall
X-OPT+=-Wl,--rpath -Wl,$(LIBDIR)
X+#OPT=-Wc,-Wall
X+#OPT+=-Wl,--rpath -Wl,$(LIBDIR)
X 
X #   the default target
X all: $(TARGET).la
END-of-mod_gzip2/files/patch-Makefile
echo x - mod_gzip2/files/patch-mod_gzip
sed 's/^X//' >mod_gzip2/files/patch-mod_gzip << 'END-of-mod_gzip2/files/patch-mod_gzip'
X--- mod_gzip.c.org	2005-05-11 03:13:14.000000000 +0200
X+++ mod_gzip.c	2008-06-27 01:13:37.000000000 +0200
X@@ -86,6 +86,7 @@
X /* included automatically at this point in a pre-2.0 compile... */
X 
X #include <sys/stat.h> /* For stat() call */
X+#include <unistd.h>
X 
X /* Version information... */
X 
END-of-mod_gzip2/files/patch-mod_gzip
echo x - mod_gzip2/files/patch-zutil.h
sed 's/^X//' >mod_gzip2/files/patch-zutil.h << 'END-of-mod_gzip2/files/patch-zutil.h'
X--- /dev/null	2008-06-27 01:11:00.000000000 +0200
X+++ zutil.h	2008-06-27 01:12:57.000000000 +0200
X@@ -0,0 +1,67 @@
X+/* zutil.h -- stripped version just containing  OS_CODE 
X+ * Copyright (C) 1995-2005 Jean-loup Gailly.
X+ * For conditions of distribution and use, see copyright notice in zlib.h
X+ */
X+
X+/* WARNING: this file should *not* be used by applications. It is
X+   part of the implementation of the compression library and is
X+   subject to change. Applications should only use zlib.h.
X+ */
X+
X+/* @(#) $Id$ */
X+
X+#ifndef ZUTIL_H
X+#define ZUTIL_H
X+
X+#define ZLIB_INTERNAL
X+#include "zlib.h"
X+
X+        /* target dependencies */
X+
X+#if defined(MSDOS) || (defined(WINDOWS) && !defined(WIN32))
X+#  define OS_CODE  0x00
X+#endif
X+
X+#ifdef AMIGA
X+#  define OS_CODE  0x01
X+#endif
X+
X+#if defined(VAXC) || defined(VMS)
X+#  define OS_CODE  0x02
X+#endif
X+
X+#if defined(ATARI) || defined(atarist)
X+#  define OS_CODE  0x05
X+#endif
X+
X+#ifdef OS2
X+#  define OS_CODE  0x06
X+#  ifdef M_I86
X+     #include <malloc.h>
X+#  endif
X+#endif
X+
X+#if defined(MACOS) || defined(TARGET_OS_MAC)
X+#  define OS_CODE  0x07
X+#endif
X+
X+#ifdef TOPS20
X+#  define OS_CODE  0x0a
X+#endif
X+
X+#ifdef WIN32
X+#  ifndef __CYGWIN__  /* Cygwin is Unix, not Win32 */
X+#    define OS_CODE  0x0b
X+#  endif
X+#endif
X+
X+#ifdef __50SERIES /* Prime/PRIMOS */
X+#  define OS_CODE  0x0f
X+#endif
X+
X+        /* common defaults */
X+
X+#ifndef OS_CODE
X+#  define OS_CODE  0x03  /* assume Unix */
X+#endif
X+#endif
END-of-mod_gzip2/files/patch-zutil.h
echo x - mod_gzip2/pkg-descr
sed 's/^X//' >mod_gzip2/pkg-descr << 'END-of-mod_gzip2/pkg-descr'
Xmod_gzip is an Internet Content Acceleration module for the popular
XApache Web Server. 
X
Xmod_gzip uses the well established and publicly available IETF
XContent-Encoding standards in conjunction with publicy available GZIP
Xcompression libraries such as ZLIB to deliver dynamically compressed
Xcontent 'on the fly' to any browser or user-agent that is capable of
Xreceiving it.
X
XThis is the updated mod_gzip for apache version 2.0 and above.
XIt has better compression and better logging than the builtin module
Xmod_deflate.
END-of-mod_gzip2/pkg-descr
echo x - mod_gzip2/pkg-plist
sed 's/^X//' >mod_gzip2/pkg-plist << 'END-of-mod_gzip2/pkg-plist'
Xlibexec/apache22/mod_gzip.so
X at exec %D/sbin/apxs -e -A -n gzip %f
X at unexec %D/sbin/apxs -e -A -n gzip %f
X%%PORTDOCS%%share/doc/mod_gzip2/commands.txt
X%%PORTDOCS%%share/doc/mod_gzip2/samples.txt
Xshare/examples/mod_gzip2/mod_gzip2.conf.sample
X at dirrm share/examples/mod_gzip2
X%%PORTDOCS%%@dirrm share/doc/mod_gzip2
END-of-mod_gzip2/pkg-plist
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list