Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Mar 2002 13:01:54 GMT
From:      Olafur Osvaldsson <oli@isnic.is>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        dinoex@FreeBSD.org
Subject:   ports/36005: mail/noattach: Version update and minor fixes
Message-ID:  <200203171301.g2HD1sM4078567@amun.isnic.is>

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

>Number:         36005
>Category:       ports
>Synopsis:       mail/noattach: Version update and minor fixes
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 17 05:10:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Olafur Osvaldsson
>Release:        FreeBSD 4.5-STABLE i386
>Organization:
>Environment:
System: FreeBSD amun.isnic.is 4.5-STABLE FreeBSD 4.5-STABLE #0: Sat Feb 9 02:20:22 GMT 2002 root@amun.isnic.is:/u0/obj/usr/src/sys/VA1220 i386


	
>Description:
Version update and minor fixes

	
>How-To-Repeat:
	
>Fix:

diff -ruN noattach.orig/Makefile noattach/Makefile
--- noattach.orig/Makefile	Sun Feb 17 15:11:50 2002
+++ noattach/Makefile	Sun Mar 17 12:18:12 2002
@@ -6,7 +6,8 @@
 #
 
 PORTNAME=	noattach
-PORTVERSION=	1.0beta10
+PORTVERSION=	1.0beta11
+#PORTREVISION=	1
 CATEGORIES=	mail
 MASTER_SITES=	ftp://ftp.rhnet.is/pub/noattach/
 
@@ -17,7 +18,7 @@
 CFLAGS+=	${PTHREAD_CFLAGS:S=""==}
 FLAGS+=		${PTHREAD_LIBS}
 GNU_CONFIGURE=	yes
-DOCSFILES=	AUTHORS THANKS COPYING INSTALL NEWS README ChangeLog
+DOCSFILES=	AUTHORS THANKS COPYING INSTALL NEWS README README.libmilter TODO ChangeLog
 SAMPLEFILES=	README noattach.patterns noattach.patterns.johncon
 
 .include <bsd.port.pre.mk>
@@ -46,5 +47,8 @@
 	${INSTALL_DATA} ${WRKSRC}/examples/${i} ${EXAMPLESDIR}/
 .endfor
 .endif
+
+post-install:
+	${CHMOD} 444 ${PREFIX}/etc/rc.d/noattach.sh.sample
 
 .include <bsd.port.post.mk>
diff -ruN noattach.orig/distinfo noattach/distinfo
--- noattach.orig/distinfo	Mon Feb 18 04:00:12 2002
+++ noattach/distinfo	Sun Mar 17 12:48:49 2002
@@ -1 +1 @@
-MD5 (noattach-1.0beta10.tar.gz) = 8d4c471115331fdc682c02c967c5a09d
+MD5 (noattach-1.0beta11.tar.gz) = 8a64ef9107470cded040af2dc61501d4
diff -ruN noattach.orig/files/noattach.sh noattach/files/noattach.sh
--- noattach.orig/files/noattach.sh	Sun Feb 10 06:04:46 2002
+++ noattach/files/noattach.sh	Sun Mar 17 12:36:53 2002
@@ -1,23 +1,26 @@
 #!/bin/sh
 #
-# $FreeBSD: ports/mail/noattach/files/noattach.sh,v 1.1 2002/02/10 06:04:46 dinoex Exp $
-# 
-if ! test -x %%PREFIX%%/libexec/noattach
-then
-	exit 0
+# $FreeBSD: $
+#
+if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then
+    echo "$0: Cannot determine the PREFIX" >&2
+    exit 1
 fi
-case $1 in
+
+case "$1" in
 start)
-	rm -f /var/run/noattach.pid
-	%%PREFIX%%/libexec/noattach -p local:/var/run/noattach &&
-	echo -n ' noattach'
+	[ -x ${PREFIX}/libexec/noattach ] &&
+		${PREFIX}/libexec/noattach -p local:/var/run/noattach &&
+		echo -n ' noattach'
 	;;
 stop)
-	killall noattach
-	rm -f /var/run/noattach.pid
+	[ -r /var/run/noattach.pid ] &&
+		kill `cat /var/run/noattach.pid` &&
+		echo -n ' noattach'
 	;;
 *)
-	echo "Usage: $0: [ start | stop ]" 2>&1
-	exit 65
+	echo "Usage: `basename $0` {start|stop}" >&2
 	;;
 esac
+
+exit 0
diff -ruN noattach.orig/pkg-plist noattach/pkg-plist
--- noattach.orig/pkg-plist	Mon Feb 18 04:00:12 2002
+++ noattach/pkg-plist	Sun Mar 17 12:14:25 2002
@@ -6,7 +6,9 @@
 %%PORTDOCS%%share/doc/noattach/INSTALL
 %%PORTDOCS%%share/doc/noattach/NEWS
 %%PORTDOCS%%share/doc/noattach/README
+%%PORTDOCS%%share/doc/noattach/README.libmilter
 %%PORTDOCS%%share/doc/noattach/THANKS
+%%PORTDOCS%%share/doc/noattach/TODO
 %%PORTDOCS%%share/doc/noattach/ChangeLog
 %%PORTDOCS%%@dirrm share/doc/noattach
 %%PORTDOCS%%share/examples/noattach/README

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

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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