Bug 60395

Summary: FIX and update ports: qmail-scanner
Product: Ports & Packages Reporter: jfkimura
Component: Individual Port(s)Assignee: Sergei Kolobov <sergei>
Status: Closed FIXED    
Severity: Affects Only Me CC: moeti-freebsd
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description jfkimura 2003-12-19 11:30:15 UTC
It became abnormal to install qmail-scanner into my PC.
A revision was necessary about the following items.

 1.Addition of QMAILSCAN_QUEUEBINARY
	Appointment of -- qmail-queue-binary became /usr/local/bin.
	I tried to change it to needing it with /var/qmail/bin as a default.

 2.A change of a patch file
	When there is not appointment of a soft-headed mission,
	   mkdir becomes an error in FreeBSD 4.9 (Perl version 5.005_03)
	   in qmail-scanner-queue.template.
	I revised it to solve this. (like a permission mode 0755)

 3.A change of pkg-plist
	I revise that there is the file makes '1' at the time of deinstall.

 4.A change of pkg-install
	Because a script did not work by a lack of authority justly, I added a hand.
	(because qmail-scanner-queue-version.txt quarantine-attachments.db was not generated)


And,

In addition, I added the following for convenience.

 * Addition of QMAILSCAN_LANG
	It is convenient to update it in portupgrade.	
	Just like: MAILSCAN_LANG=ja_JP.EUC


When this ports does not do setuid for /usr/bin/suidperl
 when it is carried out in Perl version 5.005_03, I become an introduction error.
This is thing previous work business and thinks that one to display
 a necessary thing by a message is preferable.
	# chmod 4711 /usr/bin/suidperl

Fix: Check:
	FreeBSD 4.9-RELEASE
	FreeBSD 5.1-RELEASE

==== Begin here
How-To-Repeat: 
[FreeBSD 4.9 RELEASE]
Sending standard test message - no viruses...
Not enough arguments for mkdir at /usr/local/bin/qmail-scanner-queue.pl line 299, near ""$scandir/tmp") "
BEGIN not safe after errors--compilation aborted at /usr/local/bin/qmail-scanner-queue.pl line 1017.
qmail-inject: fatal: qq temporary problem (#4.3.0)
Bad error. qmail-inject died
*** Error code 1

etc..
Comment 1 Sergei Kolobov freebsd_committer freebsd_triage 2003-12-19 13:57:20 UTC
Responsible Changed
From-To: freebsd-ports-bugs->sergei

I am working on this with the maintainer.
Comment 2 Sergei Kolobov freebsd_committer freebsd_triage 2003-12-29 18:07:25 UTC
State Changed
From-To: open->feedback

pkg-plist patch was committed. 
Still waiting maintainer's feedback on the rest of the changes.
Comment 3 Sergei Kolobov freebsd_committer freebsd_triage 2004-01-03 00:13:12 UTC
State Changed
From-To: feedback->closed

According to the maintainer, these issues have been addressed 
during recent upgrade to 1.20.  

Please submit another PR if you still have problems with the port.