ports/127636: [PATCH] lighttpd dir_favicon

Dennis Herrmann adox at mcx2.org
Thu Sep 25 16:30:09 UTC 2008


>Number:         127636
>Category:       ports
>Synopsis:       [PATCH] lighttpd dir_favicon
>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 Sep 25 16:30:08 UTC 2008
>Closed-Date:
>Last-Modified:
>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 at 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:
>Unformatted:



More information about the freebsd-ports-bugs mailing list