Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Feb 2006 15:03:26 -0200 (BRST)
From:      Marcus Alves Grando <mnag@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        saturnero@gufi.org
Subject:   ports/93439: Update port: mail/proxsmtp to 1.3
Message-ID:  <20060216170327.0A08258@marcus.grupos.com.br>
Resent-Message-ID: <200602161710.k1GHA6ka052867@freefall.freebsd.org>

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

>Number:         93439
>Category:       ports
>Synopsis:       Update port: mail/proxsmtp to 1.3
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 16 17:10:06 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Marcus Alves Grando
>Release:        FreeBSD 6.1-PRERELEASE i386
>Organization:
Grupos Internet S/A
>Environment:
System: FreeBSD marcus.grupos.com.br 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #15: Thu Feb 16 00:50:14 BRST 2006 root@marcus.grupos.com.br:/usr/obj/usr/src/sys/MARCUS i386


	
>Description:
- Update to 1.3
- Pass via CONFIGURE_ARGS PTHREAD_{LIBS,CFLAGS} instead of REINPLACE_CMD. configure support it.
- PORTDOCS does not need defined(NOPORTDOCS) check
- Reorganize rc.d script

Tinderbox test:
http://marcus.grupos.com.br:8080/logs/4-STABLE-FreeBSD/proxsmtp-1.3.log
http://marcus.grupos.com.br:8080/logs/6-STABLE-FreeBSD/proxsmtp-1.3.log

	
>How-To-Repeat:
	
>Fix:

	

--- proxsmtp.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/mail/proxsmtp/Makefile,v
retrieving revision 1.1
diff -u -r1.1 Makefile
--- Makefile	4 May 2005 14:42:03 -0000	1.1
+++ Makefile	16 Feb 2006 16:58:59 -0000
@@ -6,16 +6,18 @@
 #
 
 PORTNAME=	proxsmtp
-PORTVERSION=	1.2.1
+PORTVERSION=	1.3
 CATEGORIES=	mail security
 MASTER_SITES=	http://memberwebs.com/nielsen/software/proxsmtp/
 
 MAINTAINER=	saturnero@gufi.org
 COMMENT=	A flexible SMTP filter which can act also as trasparent proxy
 
-GNU_CONFIGURE=	yes
 USE_GMAKE=	yes
-USE_REINPLACE=	yes
+GNU_CONFIGURE=	yes
+CONFIGURE_TARGET=	--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_ARGS+=	PTHREAD_LIBS="${PTHREAD_LIBS}" PTHREAD_CFLAGS="${PTHREAD_CFLAGS}"
+
 USE_RC_SUBR=	proxsmtpd.sh
 SUB_FILES=	pkg-message
 PKGMESSAGE=	${WRKDIR}/pkg-message
@@ -23,17 +25,12 @@
 MAN5=		proxsmtpd.conf.5
 MAN8=		proxsmtpd.8
 
-.if !defined(NOPORTDOCS)
 PORTDOCS=	*
-.endif
-
-post-patch:
-	@${REINPLACE_CMD} -e "s,%%PTHREAD_LIBS%%,${PTHREAD_LIBS}," ${WRKSRC}/configure
 
 post-install:
 	${INSTALL_DATA} ${WRKSRC}/doc/proxsmtpd.conf ${PREFIX}/etc/proxsmtpd.conf-sample
 .if !defined(NOPORTDOCS)
-	${MKDIR} ${DOCSDIR}
+	@${MKDIR} ${DOCSDIR}
 	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
 .endif
 	@${CAT} ${PKGMESSAGE}
Index: distinfo
===================================================================
RCS file: /home/pcvs/ports/mail/proxsmtp/distinfo,v
retrieving revision 1.2
diff -u -r1.2 distinfo
--- distinfo	22 Jan 2006 12:50:44 -0000	1.2
+++ distinfo	16 Feb 2006 16:58:59 -0000
@@ -1,3 +1,3 @@
-MD5 (proxsmtp-1.2.1.tar.gz) = 7af2d5feafb1386934d347a5f5dc827e
-SHA256 (proxsmtp-1.2.1.tar.gz) = d3511859273515aff203c0ac229b0e3027f65e6b3903a852e6c30a4a6684e6a2
-SIZE (proxsmtp-1.2.1.tar.gz) = 156525
+MD5 (proxsmtp-1.3.tar.gz) = ed488f2444f3796af44eaa92d4fa477e
+SHA256 (proxsmtp-1.3.tar.gz) = 066c206956c66926bd04aadbddabfd854c500171d33cfe50f2d961eaa56bc395
+SIZE (proxsmtp-1.3.tar.gz) = 188684
Index: files/proxsmtpd.sh.in
===================================================================
RCS file: /home/pcvs/ports/mail/proxsmtp/files/proxsmtpd.sh.in,v
retrieving revision 1.1
diff -u -r1.1 proxsmtpd.sh.in
--- files/proxsmtpd.sh.in	4 May 2005 14:42:03 -0000	1.1
+++ files/proxsmtpd.sh.in	16 Feb 2006 16:58:59 -0000
@@ -4,27 +4,28 @@
 #
 # PROVIDE: proxsmtpd
 # REQUIRE: DAEMON
-# KEYWORD: FreeBSD
 #
 # Add the fellowing line to /etc/rc.conf to enable proxsmtpd:
 #
-# proxsmtpd_enable="YES"
+# proxsmtpd_enable (bool):	Set to "YES" to enable proxsmtpd.
+#				Default is "NO".
+# proxsmtpd_conf (file):	Set location of proxsmtpd.conf.
+#				Default is "%%PREFIX%%/etc/proxsmtpd.conf"
 #
 
 . %%RC_SUBR%%
 
-name=proxsmtpd
-rcvar=`set_rcvar`
-
-command=%%PREFIX%%/sbin/${name}
-sig_stop=-KILL
+name="proxsmtpd"
+rcvar=${name}_enable
 
 load_rc_config ${name}
 
-proxsmtpd_enable=${proxsmtpd_enable-"NO"}
-proxsmtpd_conf=${proxsmtpd_conf-"%%PREFIX%%/etc/proxsmtpd.conf"}
-proxsmtpd_debug=${proxsmtpd_debug-"0"}
+: ${proxsmtpd_enable="NO"}
+: ${proxsmtpd_conf="%%PREFIX%%/etc/proxsmtpd.conf"}
 
+required_files="${proxsmtpd_conf}"
+command=%%PREFIX%%/sbin/proxsmtpd
 command_args="-f ${proxsmtpd_conf}"
+sig_stop=-KILL
 
 run_rc_command "$1"
--- proxsmtp.patch ends here ---


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



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