From adox@mcx2.org  Thu Sep 25 16:21:32 2008
Return-Path: <adox@mcx2.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 0D7BC106568D
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 25 Sep 2008 16:21:32 +0000 (UTC)
	(envelope-from adox@mcx2.org)
Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.187])
	by mx1.freebsd.org (Postfix) with ESMTP id 86DCF8FC2E
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 25 Sep 2008 16:21:30 +0000 (UTC)
	(envelope-from adox@mcx2.org)
Received: by nf-out-0910.google.com with SMTP id h3so210314nfh.33
        for <FreeBSD-gnats-submit@freebsd.org>; Thu, 25 Sep 2008 09:21:28 -0700 (PDT)
Received: by 10.103.170.13 with SMTP id x13mr6092470muo.27.1222359688043;
        Thu, 25 Sep 2008 09:21:28 -0700 (PDT)
Received: from localhost ( [80.144.218.198])
        by mx.google.com with ESMTPS id j9sm387315mue.3.2008.09.25.09.21.16
        (version=TLSv1/SSLv3 cipher=RC4-MD5);
        Thu, 25 Sep 2008 09:21:22 -0700 (PDT)
Message-Id: <48dbba82.09a1660a.3e99.11ed@mx.google.com>
Date: Thu, 25 Sep 2008 09:21:22 -0700 (PDT)
From: Dennis Herrmann <adox@mcx2.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [PATCH] lighttpd dir_favicon
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         127636
>Category:       ports
>Synopsis:       [PATCH] www/lighttpd: lighttpd dir_favicon
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    mnag
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 25 16:30:08 UTC 2008
>Closed-Date:    Sun Jun 28 22:19:14 UTC 2009
>Last-Modified:  Sun Jun 28 22:19:14 UTC 2009
>Originator:     Dennis Herrmann
>Release:        FreeBSD 7.1-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD contempt 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #2: Sun Sep 14 08:19:18 CEST 2008 root@contempt:/usr/obj/usr/src/sys/CONTEMPT i386

>Description:
	I wrote a little patch that allow add an favicon.ico to the dirlisting, as example look at http://dev.mcx2.org/ .I change the Makfile from lighttpd i think is a good idea to add it :)
>How-To-Repeat:
>Fix:

--- lighttpd-dir_favicon.patch begins here ---
diff -ruN lighttpd.orig/Makefile lighttpd/Makefile
--- lighttpd.orig/Makefile	2008-09-24 18:54:54.000000000 +0200
+++ lighttpd/Makefile	2008-09-24 18:43:22.000000000 +0200
@@ -33,6 +33,7 @@
 OPTIONS=	BZIP2		"Enable Bzip2 support" off \
 		CML		"Enable Cache Meta Language support" off \
 		FAM		"Enable fam/gamin support" off \
+		FAV		"Enable favicon patch by Dennis Herrmann" on \
 		GDBM		"Enable gdbm storage support" off \
 		IPV6		"Enable IPV6 support" on \
 		MAGNET		"Enable magnet support" off \
@@ -71,6 +72,12 @@
 CONFIGURE_ENV+=		FAM_CFLAGS="-I${LOCALBASE}/include" FAM_LIBS="-L${LOCALBASE}/lib"
 .endif
 
+.if defined(WITH_FAV)
+PATCH_SITES+=	http://dev.mcx2.org/dir_favicon/:fav
+PATCHFILES+=	dir_favicon-lighttpd.diff:fav
+PATCH_DIST_STRIP=	-p1
+.endif
+
 .if defined(WITH_GDBM)
 LIB_DEPENDS+=		gdbm:${PORTSDIR}/databases/gdbm
 CONFIGURE_ARGS+=	--with-gdbm
@@ -143,4 +150,13 @@
 .endif
 	@${LIBTOOL} --finish ${PREFIX}/lib
 
+.if !defined(WITHOUT_FAV)
+	@${ECHO} ""
+	@${ECHO} "If you use favicon for dirlisting you need add:"
+	@${ECHO} "		dir-listing.show-favicon 	= \"enable\" "
+	@${ECHO} "to your lighttpd.conf. Visit http://dev.mcx2.org/dir_favicon for more information"
+	@${ECHO} "----------------------------------------------------------------------"
+	@${ECHO} ""
+.endif
+
 .include <bsd.port.post.mk>
diff -ruN lighttpd.orig/distinfo lighttpd/distinfo
--- lighttpd.orig/distinfo	2008-09-24 18:54:54.000000000 +0200
+++ lighttpd/distinfo	2008-09-24 18:52:04.000000000 +0200
@@ -1,3 +1,6 @@
 MD5 (lighttpd-1.4.19.tar.bz2) = d787374e4e4aaa09d5cfa9ab9d23ad40
 SHA256 (lighttpd-1.4.19.tar.bz2) = a239323239c3735a04290f7c063a14ed2c4560a88c15181c253fcd68c6c2f1d7
 SIZE (lighttpd-1.4.19.tar.bz2) = 610347
+MD5 (dir_favicon-lighttpd.diff) = 7138372e040ea93221e43bd7d4bb33e6
+SHA256 (dir_favicon-lighttpd.diff) = bda78dd96aa008d0ed2d2b15f95029919d955d693505676e41854063059f2f93
+SIZE (dir_favicon-lighttpd.diff) = 4348
--- lighttpd-dir_favicon.patch ends here ---


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->mnag 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Thu Sep 25 18:42:56 UTC 2008 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=127636 

From: Dennis Herrmann <adox@mcx2.org>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/127636: [PATCH] www/lighttpd: lighttpd dir_favicon
Date: Wed, 8 Oct 2008 21:25:20 +0200

 i update my patch to lighttpd-1.4.20 ;)
 
 --- lighttpd-distinfo.diff begins here ---
 --- lighttpd.orig/distinfo	2008-10-08 03:17:28.000000000 +0200
 +++ lighttpd/distinfo	2008-10-08 21:05:41.000000000 +0200
 @@ -1,3 +1,6 @@
  MD5 (lighttpd-1.4.20.tar.bz2) = ed6ee0bb714f393219a32768d86984d8
  SHA256 (lighttpd-1.4.20.tar.bz2) = 3cda2ce779f24948062f765f2630b5865e483f5fab7149681a2a25422fd61176
  SIZE (lighttpd-1.4.20.tar.bz2) = 618018
 +MD5 (dir_favicon-lighttpd.diff) = f6b5cb6b4776334d3e30649c655930af
 +SHA256 (dir_favicon-lighttpd.diff) = 245299e1647657d7db555160bfbe2786f79fa4c92f612ed04ff139c6f0647630
 +SIZE (dir_favicon-lighttpd.diff) = 4418
 --- lighttpd-distinfo.diff ends here ---
State-Changed-From-To: open->closed 
State-Changed-By: mnag 
State-Changed-When: Sun Jun 28 22:19:13 UTC 2009 
State-Changed-Why:  
Please, ask for upstream lighttpd guys to include this in next version. 
It's the main way for this. Thanks. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=127636 
>Unformatted:
