Bug 56658

Summary: Convert security/amavisd startup scripts to use rc.subr
Product: Ports & Packages Reporter: Scot W. Hetzel <hetzelsw>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Scot W. Hetzel 2003-09-10 01:50:11 UTC
	Convert security/amavisd startup scripts to use sysutils/rc_subr.

	Add PTHREADS_LIBS and PTHREADS_CFLAGS to CONFIGURE_ENV, fixes the
	build of amavis-milter to work on -CURRENT.  Since, -pthreads was
	removed.

	NOTE: The configuration of amavisd with milter support (-DWITH_MILTER)
	will fail, if either the libsmutil.a (<8.12) or libsm.a (8.12+) is not
	installed in /usr/lib.  To fix this problem change INTERNALLIB to NOPIC
	in /usr/src/lib/libsm/Makefile, then make obj && make && make install.

Fix: Changed Files:
	    Makefile
	    pkg-plist
	    files/amavisd-milter.sh
	    files/amavisd.sh

	Removed Files:
	    pkg-plist.milter
Comment 1 Scot W. Hetzel 2003-09-10 02:09:28 UTC
amavisd.sh needs a small change in it's comment before commiting, change:

# Define these amavisd_milter_* variables in one of these files:

to

# Define these amavisd_* variables in one of these files:

Scot
Comment 2 Scot W. Hetzel 2003-09-11 02:13:04 UTC
Acording to Greg Shapiro, sendmail 8.12.9 no longer needs libsm.a
library when building milter daemons.  The configure script in amavisd
has an error where it adds "-lsm" to LIBS, when all tests fail to find
a *strlcpy.

Below is a patch that fixes the configure script by moving the assignment
of "-lsm" into the HAVE_SM_SM_STRLCPY test, which makes it similar to the
HAVE_SMUTIL_STRLCPY test.

Scot W. Hetzel

Index: files/patch-configure
===================================================================
RCS file: files/patch-configure
diff -N files/patch-configure
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-configure	11 Sep 2003 00:34:39 -0000
@@ -0,0 +1,15 @@
+--- configure-orig	Wed Feb 19 08:22:25 2003
++++ configure	Wed Sep 10 19:34:30 2003
+@@ -3083,11 +3083,11 @@
+ #define HAVE_SM_SM_STRLCPY 1
+ EOF
+ 
++                   LIBS="-lsm $LIBS"
+ else
+   echo "$ac_t""no" 1>&6
+ fi
+ 
+-                   LIBS="-lsm $LIBS"
+ fi
+ 
+
Comment 3 Edwin Groothuis freebsd_committer freebsd_triage 2004-01-13 09:35:09 UTC
State Changed
From-To: feedback->closed

mail bounces: 

<hetzels@westbend.net>: host mail.westbend.net[65.114.87.48] said: 553 5.0.0    
<hetzels@westbend.net>... Viruses are not being sent or accepted for this 
address,Check the message headers and notify the appropriate ISP (in reply 
to RCPT TO command)
Comment 4 Edwin Groothuis freebsd_committer freebsd_triage 2004-01-13 09:35:09 UTC
State Changed
From-To: open->closed

mail bounces: 

<hetzels@westbend.net>: host mail.westbend.net[65.114.87.48] said: 553 5.0.0    
<hetzels@westbend.net>... Viruses are not being sent or accepted for this 
address,Check the message headers and notify the appropriate ISP (in reply 
to RCPT TO command)
Comment 5 Edwin Groothuis freebsd_committer freebsd_triage 2004-01-13 09:35:09 UTC
State Changed
From-To: open->closed

mail bounces: 

<hetzels@westbend.net>: host mail.westbend.net[65.114.87.48] said: 553 5.0.0    
<hetzels@westbend.net>... Viruses are not being sent or accepted for this 
address,Check the message headers and notify the appropriate ISP (in reply 
to RCPT TO command)
Comment 6 Mark Linimon freebsd_committer freebsd_triage 2004-01-13 14:39:33 UTC
State Changed
From-To: closed->open

Closed incorrectly.  Submitter's email address has been 
changed due to spam.  Please contact me for followup.
Comment 7 Mark Linimon freebsd_committer freebsd_triage 2004-03-14 02:04:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->linimon

Look after this one.
Comment 8 Mark Linimon freebsd_committer freebsd_triage 2004-03-26 15:22:45 UTC
Responsible Changed
From-To: linimon->freebsd-ports-bugs

I haven't heard back from the sumbmitter in 2 weeks.  Whether this 
PR should just be closed at this point, I don't know; someone with 
more knowledge of the underlying problem should look at it, and 
that won't happen with the maintainer MIA and the PR assigned to me.
Comment 9 Pav Lucistnik freebsd_committer freebsd_triage 2004-05-30 12:33:47 UTC
State Changed
From-To: open->closed

Committed, thank you!