ports/90621: update port www/serendipity

Babak Farrokhi babak at farrokhi.net
Mon Dec 19 00:40:04 UTC 2005


>Number:         90621
>Category:       ports
>Synopsis:       update port www/serendipity
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 19 00:40:02 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Babak Farrokhi
>Release:        FreeBSD 5.4-STABLE i386
>Organization:
>Environment:
System: FreeBSD royalway.propagation.net 5.4-STABLE FreeBSD 5.4-STABLE #6: Thu Jun 30 05:11:17 CDT 2005 root at royalway.propagation.net:/usr/obj/usr/src/sys/GENERIC i386


	
>Description:
	
- Don't propose sqlite backend if PHP_VER != 5
>How-To-Repeat:
	
>Fix:

	

--- serendipity.patch begins here ---
diff -ruN serendipity.orig/Makefile serendipity/Makefile
--- serendipity.orig/Makefile	Mon Dec 19 03:54:10 2005
+++ serendipity/Makefile	Mon Dec 19 03:57:46 2005
@@ -22,10 +22,20 @@
 SUB_LIST+=	SERENDIPITY=${SERENDIPITY}
 SUB_FILES=	pkg-message
 
+LOCALBASE?=     /usr/local
+
 OPTIONS=	MYSQL "Use MySQL backend" on \
-		PGSQL "Use PostgreSQL backend" off \
-		SQLITE "Use SQLite backend (PHP5)" off \
-		MAGICK "Use ImageMagick Library" on
+		PGSQL "Use PostgreSQL backend" off
+
+.if exists(${LOCALBASE}/etc/php.conf)
+.include "${LOCALBASE}/etc/php.conf"
+.endif
+
+.if defined(PHP_VER) && ${PHP_VER} == 5
+OPTIONS+=	SQLITE "Use SQLite backend" off
+.endif
+
+OPTIONS+=	MAGICK "Use ImageMagick Library" on
 
 PORT_DBDIR?=	/var/db/ports
 LATEST_LINK=	${PORTNAME}${PKGNAMESUFFIX}
--- serendipity.patch ends here ---


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



More information about the freebsd-ports-bugs mailing list