Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Dec 2006 12:10:09 +0300 (MSK)
From:      Mark Starovoytov <mark_sf@kikg.ifmo.ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/106762: [patch] mail/dbmail: add rc-script for dbmail-timsieved
Message-ID:  <200612150910.kBF9A98P002741@kikg.ifmo.ru>
Resent-Message-ID: <200612150910.kBF9ABIW005349@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         106762
>Category:       ports
>Synopsis:       [patch] mail/dbmail: add rc-script for dbmail-timsieved
>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:   Fri Dec 15 09:10:11 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Mark Starovoytov
>Release:        FreeBSD 4.11-STABLE i386
>Organization:
>Environment:
System: FreeBSD kikg.ifmo.ru 4.11-STABLE FreeBSD 4.11-STABLE #0: Fri Mar 24 01:40:43 MSK 2006 root@:/usr/obj/usr/src/sys/GENERIC i386


	
>Description:
- add rc-script for dbmail-timsieved
- fix potential problem with LDFLAGS
- edit pkg-descr to make portlint a bit happier
	
>How-To-Repeat:
	
>Fix:

--- dbmail-2.1.7_2.diff begins here ---
diff -urN /usr/ports/mail/dbmail21/Makefile /usr/home/mark/port-updates/dbmail21/Makefile
--- /usr/ports/mail/dbmail21/Makefile	Sat Dec  2 01:13:26 2006
+++ /usr/home/mark/port-updates/dbmail21/Makefile	Thu Dec 14 11:26:11 2006
@@ -7,14 +7,14 @@
 
 PORTNAME=	dbmail
 PORTVERSION=	2.1.7
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	mail
 MASTER_SITES=	http://www.dbmail.org/download/2.1/
 
 MAINTAINER=	mark_sf@kikg.ifmo.ru
 COMMENT=	An SQL database-based mail system (POP3 and IMAP)
 
-CONFLICTS=	dbmail-*-2.0.*
+CONFLICTS=	dbmail-*-2.0.* dbmail-2.2.*
 
 OPTIONS=	MYSQL		"Build with MySQL support" on \
 		POSTGRESQL	"Build with PostgreSQL support"	off \
@@ -28,14 +28,14 @@
 USE_GMAKE=	YES
 USE_GCC=	3.2+
 USE_LDCONFIG=	${PREFIX}/lib/dbmail
-USE_RC_SUBR=	dbmail-pop3d.sh dbmail-lmtpd.sh dbmail-imapd.sh
+USE_RC_SUBR=	dbmail-pop3d.sh dbmail-lmtpd.sh dbmail-imapd.sh dbmail-timsieved.sh
 
 LIB_DEPENDS+=	gmime-2.0.4:${PORTSDIR}/mail/gmime2
 USE_GNOME=	glib20
 USE_OPENSSL=	YES
 
-CFLAGS+=	-fPIC -I${LOCALBASE}/include -L${LOCALBASE}/lib
-LDFLAGS+=	${PTHREAD_LIBS}
+CFLAGS+=	-fPIC -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
+LDFLAGS+=	-L${LOCALBASE}/lib ${PTHREAD_LIBS}
 CONFIGURE_ENV+=	LDFLAGS="${LDFLAGS}" LOCALBASE=${LOCALBASE}
 
 PORTDOCS=	AUTHORS BUGS COPYING INSTALL NEWS README \
diff -urN /usr/ports/mail/dbmail21/files/dbmail-timsieved.sh.in /usr/home/mark/port-updates/dbmail21/files/dbmail-timsieved.sh.in
--- /usr/ports/mail/dbmail21/files/dbmail-timsieved.sh.in	Thu Jan  1 03:00:00 1970
+++ /usr/home/mark/port-updates/dbmail21/files/dbmail-timsieved.sh.in	Thu Dec 14 11:26:21 2006
@@ -0,0 +1,32 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: dbmail-timsieved
+# REQUIRE: DAEMON
+# KEYWORD: shutdown
+
+#
+# Add the following lines to /etc/rc.conf to enable dbmail-timsieved:
+#
+#dbmail_timsieved_enable="YES"
+#
+# See dbmail-timsieved(8) for flags
+#
+
+. %%RC_SUBR%%
+
+name=dbmail_timsieved
+rcvar=`set_rcvar`
+
+command=%%PREFIX%%/sbin/dbmail-timsieved
+pidfile=/var/run/dbmail-timsieved.pid
+required_files=%%PREFIX%%/etc/dbmail.conf
+
+# read settings, set default values
+load_rc_config "$name"
+: ${dbmail_timsieved_enable="NO"}
+: ${dbmail_timsieved_flags=""}
+
+run_rc_command "$1"
diff -urN /usr/ports/mail/dbmail21/pkg-descr /usr/home/mark/port-updates/dbmail21/pkg-descr
--- /usr/ports/mail/dbmail21/pkg-descr	Thu Nov 23 16:55:03 2006
+++ /usr/home/mark/port-updates/dbmail21/pkg-descr	Thu Dec 14 11:26:22 2006
@@ -2,8 +2,6 @@
 of storing and retrieving mail messages from a database (currently
 MySQL, PostgreSQL or SQLite).
 
-What are the advantages?
-
     * Scalability.
       Dbmail is as scalable as the database that is used for the
       mail storage.
--- dbmail-2.1.7_2.diff ends here ---


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200612150910.kBF9A98P002741>