head	1.11;
access;
symbols
	RELEASE_6_1_0:1.10
	RELEASE_5_5_0:1.10
	RELEASE_6_0_0:1.7
	RELEASE_5_4_0:1.6
	RELEASE_4_11_0:1.6
	RELEASE_5_3_0:1.4
	RELEASE_4_10_0:1.4
	RELEASE_5_2_1:1.1
	RELEASE_5_2_0:1.1;
locks; strict;
comment	@# @;


1.11
date	2006.09.02.21.52.20;	author kris;	state dead;
branches;
next	1.10;

1.10
date	2006.01.22.02.50.18;	author edwin;	state Exp;
branches;
next	1.9;

1.9
date	2005.12.20.14.26.11;	author marius;	state Exp;
branches;
next	1.8;

1.8
date	2005.09.28.15.41.25;	author marius;	state Exp;
branches;
next	1.7;

1.7
date	2005.07.10.15.04.00;	author marius;	state Exp;
branches;
next	1.6;

1.6
date	2004.12.11.21.28.36;	author marius;	state Exp;
branches;
next	1.5;

1.5
date	2004.10.20.18.22.23;	author marius;	state Exp;
branches;
next	1.4;

1.4
date	2004.03.08.08.03.50;	author netchild;	state Exp;
branches;
next	1.3;

1.3
date	2004.03.05.15.08.29;	author netchild;	state Exp;
branches;
next	1.2;

1.2
date	2004.02.20.16.48.54;	author netchild;	state Exp;
branches;
next	1.1;

1.1
date	2003.09.24.13.47.38;	author netchild;	state Exp;
branches;
next	;


desc
@@


1.11
log
@Remove expired ports.
@
text
@@@unexec if cmp -s %D/AntiVir/antivir-dist_avmilter %D/AntiVir/antivir; then rm -f %D/AntiVir/antivir; fi
AntiVir/antivir-dist_avmilter
@@exec [ -f %B/antivir ] || cp -p %B/%f %B/antivir
@@unexec if cmp -s %D/AntiVir/antivir0.vdf-dist_avmilter %D/AntiVir/antivir0.vdf; then rm -f %D/AntiVir/antivir0.vdf; fi
AntiVir/antivir0.vdf-dist_avmilter
@@exec [ -f %B/antivir0.vdf ] || cp -p %B/%f %B/antivir0.vdf
@@unexec if cmp -s %D/AntiVir/antivir1.vdf-dist_avmilter %D/AntiVir/antivir1.vdf; then rm -f %D/AntiVir/antivir1.vdf; fi
AntiVir/antivir1.vdf-dist_avmilter
@@exec [ -f %B/antivir1.vdf ] || cp -p %B/%f %B/antivir1.vdf
@@unexec if cmp -s %D/AntiVir/antivir2.vdf-dist_avmilter %D/AntiVir/antivir2.vdf; then rm -f %D/AntiVir/antivir2.vdf; fi
AntiVir/antivir2.vdf-dist_avmilter
@@exec [ -f %B/antivir2.vdf ] || cp -p %B/%f %B/antivir2.vdf
@@unexec if cmp -s %D/AntiVir/antivir3.vdf-dist_avmilter %D/AntiVir/antivir3.vdf; then rm -f %D/AntiVir/antivir3.vdf; fi
AntiVir/antivir3.vdf-dist_avmilter
@@exec [ -f %B/antivir3.vdf ] || cp -p %B/%f %B/antivir3.vdf
@@dirrmtry AntiVir/updcomp
@@unexec rmdir %D/AntiVir 2> /dev/null || echo "If permanently deleting this package, %D/AntiVir and its contents must be removed manually."
bin/avq
bin/avqrm
@@unexec if cmp -s %D/etc/avmilter/avmilter.conf.sample %D/etc/avmilter/avmilter.conf; then rm -f %D/etc/avmilter/avmilter.conf; else echo "If permanently deleting this package, %D/etc/avmilter/avmilter.conf must be removed manually."; fi
etc/avmilter/avmilter.conf.sample
@@exec [ -f %B/avmilter.conf ] || cp %B/%f %B/avmilter.conf
@@unexec if cmp -s %D/etc/avmilter/avmilter.ignore.sample %D/etc/avmilter/avmilter.ignore; then rm -f %D/etc/avmilter/avmilter.ignore; else echo "If permanently deleting this package, %D/etc/avmilter/avmilter.ignore must be removed manually."; fi
etc/avmilter/avmilter.ignore.sample
@@exec [ -f %B/avmilter.ignore ] || cp %B/%f %B/avmilter.ignore
@@unexec if cmp -s %D/etc/avmilter/avmilter.scan.sample %D/etc/avmilter/avmilter.scan; then rm -f %D/etc/avmilter/avmilter.scan; else echo "If permanently deleting this package, %D/etc/avmilter/avmilter.scan must be removed manually."; fi
etc/avmilter/avmilter.scan.sample
@@exec [ -f %B/avmilter.scan ] || cp %B/%f %B/avmilter.scan
@@unexec if cmp -s %D/etc/avmilter/avmilter.warn.sample %D/etc/avmilter/avmilter.warn; then rm -f %D/etc/avmilter/avmilter.warn; else echo "If permanently deleting this package, %D/etc/avmilter/avmilter.warn must be removed manually."; fi
etc/avmilter/avmilter.warn.sample
@@exec [ -f %B/avmilter.warn ] || cp %B/%f %B/avmilter.warn
@@unexec rmdir %D/etc/avmilter 2> /dev/null || echo "If permanently deleting this package, %D/etc/avmilter and its contents must be removed manually."
@@unexec if cmp -s %D/etc/antivir.conf.sample %D/etc/antivir.conf; then rm -f %D/etc/antivir.conf; else echo "If permanently deleting this package, %D/etc/antivir.conf must be removed manually."; fi
etc/antivir.conf.sample
@@exec [ -f %B/antivir.conf ] || cp %B/%f %B/antivir.conf
@@cwd /
etc/antivir.conf
@@exec ln -sf %%LOCALBASE%%/%F %D/%F
@@cwd %%LOCALBASE%%
etc/rc.d/avmilter.sh
etc/rc.d/avupdater.sh-dist_avmilter
@@unexec if [ -f %B/avupdater.sh ]; then echo "If permanently deleting this package, %B/avupdater.sh must be removed manually."; fi
sbin/antivirupdater
sbin/avmilter.bin
@@exec install -d -o smmsp -g smmsp -m 700 /var/spool/avmilter
@@exec install -d -o smmsp -g smmsp -m 700 /var/spool/avmilter/incoming
@@exec install -d -o smmsp -g smmsp -m 700 /var/spool/avmilter/outgoing
@@exec install -d -o smmsp -g smmsp -m 700 /var/spool/avmilter/rejected
@@unexec rmdir /var/spool/avmilter/incoming 2> /dev/null || true
@@unexec rmdir /var/spool/avmilter/outgoing 2> /dev/null || true
@@unexec rmdir /var/spool/avmilter/rejected 2> /dev/null || true
@@unexec rmdir /var/spool/avmilter 2> /dev/null || echo "If permanently deleting this package, /var/spool/avmilter and its contents must be removed manually."
%%EXAMPLESDIR%%/templates/de/patho-administrator
%%EXAMPLESDIR%%/templates/de/patho-recipient
%%EXAMPLESDIR%%/templates/de/patho-sender
%%EXAMPLESDIR%%/templates/de/virus-administrator
%%EXAMPLESDIR%%/templates/de/virus-recipient
%%EXAMPLESDIR%%/templates/de/virus-sender
@@dirrm %%EXAMPLESDIR%%/templates/de
%%EXAMPLESDIR%%/templates/en/patho-administrator
%%EXAMPLESDIR%%/templates/en/patho-recipient
%%EXAMPLESDIR%%/templates/en/patho-sender
%%EXAMPLESDIR%%/templates/en/virus-administrator
%%EXAMPLESDIR%%/templates/en/virus-recipient
%%EXAMPLESDIR%%/templates/en/virus-sender
@@dirrm %%EXAMPLESDIR%%/templates/en
%%EXAMPLESDIR%%/templates/es/patho-administrator
%%EXAMPLESDIR%%/templates/es/patho-recipient
%%EXAMPLESDIR%%/templates/es/patho-sender
%%EXAMPLESDIR%%/templates/es/virus-administrator
%%EXAMPLESDIR%%/templates/es/virus-recipient
%%EXAMPLESDIR%%/templates/es/virus-sender
@@dirrm %%EXAMPLESDIR%%/templates/es
%%EXAMPLESDIR%%/templates/hu/patho-administrator
%%EXAMPLESDIR%%/templates/hu/patho-recipient
%%EXAMPLESDIR%%/templates/hu/patho-sender
%%EXAMPLESDIR%%/templates/hu/virus-administrator
%%EXAMPLESDIR%%/templates/hu/virus-recipient
%%EXAMPLESDIR%%/templates/hu/virus-sender
@@dirrm %%EXAMPLESDIR%%/templates/hu
%%EXAMPLESDIR%%/templates/it/patho-administrator
%%EXAMPLESDIR%%/templates/it/patho-recipient
%%EXAMPLESDIR%%/templates/it/patho-sender
%%EXAMPLESDIR%%/templates/it/virus-administrator
%%EXAMPLESDIR%%/templates/it/virus-recipient
%%EXAMPLESDIR%%/templates/it/virus-sender
@@dirrm %%EXAMPLESDIR%%/templates/it
%%EXAMPLESDIR%%/templates/nl/patho-administrator
%%EXAMPLESDIR%%/templates/nl/patho-recipient
%%EXAMPLESDIR%%/templates/nl/patho-sender
%%EXAMPLESDIR%%/templates/nl/virus-administrator
%%EXAMPLESDIR%%/templates/nl/virus-recipient
%%EXAMPLESDIR%%/templates/nl/virus-sender
@@dirrm %%EXAMPLESDIR%%/templates/nl
@@dirrm %%EXAMPLESDIR%%/templates
@@dirrm %%EXAMPLESDIR%%
%%PORTDOCS%%%%DOCSDIR%%/CHANGELOG
%%PORTDOCS%%%%DOCSDIR%%/LICENSE
%%PORTDOCS%%%%DOCSDIR%%/LICENSE.DE
%%PORTDOCS%%%%DOCSDIR%%/MANUAL
%%PORTDOCS%%%%DOCSDIR%%/README.gpg
%%PORTDOCS%%%%DOCSDIR%%/RELEASE_NOTES
%%PORTDOCS%%%%DOCSDIR%%/antivir.gpg
%%PORTDOCS%%%%DOCSDIR%%/avmilter_de.pdf
%%PORTDOCS%%%%DOCSDIR%%/avmilter_en.pdf
%%PORTDOCS%%@@dirrm %%DOCSDIR%%
@


1.10
log
@Replace ugly "@@unexec rmdir %D... 2>/dev/null || true" with @@dirrmtry

Approved by:    krion@@
PR:             ports/88711 (related)
@
text
@@


1.9
log
@- Update to 1.1.2-1 in order to fix fetching. [1]
  According to the changelog beside a OpenBSD-specific fix the only relevant
  change since 1.1.1-9 was:
  o The log file (syslog too) shows the file name (argv[0]) in its logs.

- No longer override FETCH_CMD so the distfiles survey keeps track of this
  port again. Overriding FETCH_CMD became redundant when the name of the
  distfile was changed to be a versioned one.

Prodded by:	stephen <vk3heg@@iinet.net.au> [1]
Approved by:	netchild
@
text
@d16 1
a16 1
@@unexec rmdir %D/AntiVir/updcomp 2> /dev/null || true
@


1.8
log
@- Update to 1.1.1-9. For a list of changes since 1.1.0-7 please see the
  installed ChangeLog.
- Remove the references to the no longer available free license key for
  private use from pkg-descr and pkg-message.

Approved by:	netchild
@
text
@d4 13
a16 3
@@unexec if cmp -s %D/AntiVir/antivir.vdf-dist_avmilter %D/AntiVir/antivir.vdf; then rm -f %D/AntiVir/antivir.vdf; fi
AntiVir/antivir.vdf-dist_avmilter
@@exec [ -f %B/antivir.vdf ] || cp -p %B/%f %B/antivir.vdf
d97 1
a97 1
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
d101 1
d103 1
@


1.7
log
@- Update to 1.1.0-7 in order to fix fetching. For a list of changes see
  the installed ChangeLog.
- Silencing the 'cannot access config file "/etc/antivir.conf"' warnings
  by creating a respective symlink.

Notes:
- AntiVir Milter 1.1.0-7 ships with a faulty anti-virus engine which
  may just exit with the following error when trying to start it:
  cannot access config file "/etc/avguard.conf"
  Please update to the latest anti-virus engine by e.g. running the
  antivirupdater script in order to solve this.
- The future of the free licenses for private use and thus of this
  port currently is uncertain:
  <...>
  PersonalEdition Classic UNIX: Advance Notice
  We have decided to orient the version 6.32 which will be released on
  September 6, 2005 much more towards the successful PersonalEdition
  Classic Windows.
  This means that version 6.32 will be released with a graphical user
  interface which will make it much easier to work with the program. It
  will also no longer be necessary to register for the program before
  downloading it. With version 6.32 the PersonalEdition Classic UNIX
  will no longer contain any MailGate/Milter functionality.
  <...>

Approved by:	netchild
@
text
@d34 1
a34 1
sbin/avmilter
d91 1
a91 1
%%PORTDOCS%%%%DOCSDIR%%/README.gpg
a93 1
%%PORTDOCS%%%%DOCSDIR%%/antivir.gpg
@


1.6
log
@Update to 1.1.0-3 which amongst several fixes and some minor new features
brings native binaries for FreeBSD/i386 5-STABLE. For a complete list of
changes since 1.1 please see the installed ChangeLog.

Approved by:	netchild
@
text
@d26 4
d93 1
@


1.5
log
@- Update to 1.1 (final). For changes since 1.1-beta see the ChangeLog
  in the DOCSDIR.
- Rename the start script from antivir-milter.sh to avmilter.sh to be
  consistent with naming of the rest of the installed AntiVir Milter
  files and directories.
- Now that AntiVir Milter supports using a different location from
  /etc for the ignore, scan and warn config files no longer install
  them in the EXAMPLESDIR but in PREFIX/etc/avmilter (i.e. install
  as sample files, copy over when not already existent, etc.).
- Change the location of the AntiVir Milter config file (avmilter.conf)
  but not that of the scan engine (antivir.conf; shared between different
  AntiVir products) from PREFIX/etc to PREFIX/etc/avmilter in order to
  have all AntiVir Milter config files in one place but don't directly
  populate PREFIX/etc with them.

If you had previously changed PREFIX/etc/avmilter.conf you have to
bring over your changes to PREFIX/etc/avmilter/avmilter.conf but note
that some variables have been renamed. If you used ignore, scan and/or
warn files in /etc you can now move them to PREFIX/etc/avmilter.

Approved by:	netchild
@
text
@d27 2
a88 1
%%PORTDOCS%%%%DOCSDIR%%/avmilter_en.pdf
@


1.4
log
@- Use daemon(8) for launching avmilter in order to detach it from the
  controlling terminal. [1]
- Make the avq script check if it's ran by the avmilter user in addition
  to uid == 0. This enables `avq --remove` to be run via a script and the
  ExternalProgram option in order to automatically delete the rejected
  messages. [2]
- Install a script avqrm which serves this purpose, i.e. executes
  `avq --remove` and can be run via ExternalProgram.
- Make the avq script not print the contents of the queue when option
  '--remove' is given, this greatly improves speed and otherwise it's not
  really suitable to be called on every rejected message. Fix some typos.
- Fix pkg-plist by adding antivirupdater.

Requested by:	ache [1], [2]
Submitted by:	maintainer
@
text
@d1 2
a2 2
@@unexec if cmp -s %D/AntiVir/antivir-dist_avfbmlt %D/AntiVir/antivir; then rm -f %D/AntiVir/antivir; fi
AntiVir/antivir-dist_avfbmlt
d4 2
a5 2
@@unexec if cmp -s %D/AntiVir/antivir.vdf-dist_avfbmlt %D/AntiVir/antivir.vdf; then rm -f %D/AntiVir/antivir.vdf; fi
AntiVir/antivir.vdf-dist_avfbmlt
d10 13
d26 1
a26 4
@@unexec if cmp -s %D/etc/avmilter.conf.sample %D/etc/avmilter.conf; then rm -f %D/etc/avmilter.conf; else echo "If permanently deleting this package, %D/etc/avmilter.conf must be removed manually."; fi
etc/avmilter.conf.sample
@@exec [ -f %B/avmilter.conf ] || cp %B/%f %B/avmilter.conf
etc/rc.d/antivir-milter.sh
a36 3
%%EXAMPLESDIR%%/avmilter.ignore
%%EXAMPLESDIR%%/avmilter.scan
%%EXAMPLESDIR%%/avmilter.warn
d85 1
@


1.3
log
@HEADS-UP: When updating from a previous version you have to do the following
	  after deinstalling the old port:
	  # rm PREFIX/AntiVir/antivir
	  # rm PREFIX/AntiVir/antivir.vdf
	  # chown root:wheel PREFIX/AntiVir
	  # chown root:smmsp PREFIX/AntiVir/hbedv.key
	  In your SENDMAIL_MC change
	    `S=unix:PREFIX/AntiVir/avmilter.sock, F=T, T=S:10m;R:10m;E:5m'
	  to:
	    `S=unix:/var/spool/avmilter/avmilter.sock, F=T, T=S:10m;R:10m;E:10m'
	  and rebuild sendmail.cf.
	  If /var/spool/avmilter exist you have to:
	  # chown -R smmsp:smmsp /var/spool/avmilter
	  If you are using a customized PREFIX/etc/avmilter.conf the port
	  won't remove it on deinstall and you have to manually change User
	  and Group to smmsp there.
	  Afterwards you can install the new version of this port. You then
	  should run antivirupdater to get a current VDF.

- Change ownership of the socket to user and group smmsp as expected by
  sendmail. This involves running the milter as smmsp:smmsp, changing the
  ownership of rest of the files and moving the socket to /var/spool/avmilter
  but fixes the "local socket unsafe" problem. [1]
- Move the milter into the background when launching, this solves the problem
  with disappearing socket on boot. [2]
- Update to 1.1-beta which fixes the "Bad file descriptor" problem. For
  a full list of chances see ChangeLog in the DOCSDIR. [3]

Suggested by:	ache@@ [1], [3]
Suggested by:	Martin P. Hellwig <mhellwig@@xs4all.nl> [2]
Submitted by:	maintainer
@
text
@d9 1
d17 1
@


1.2
log
@- H+BEDV GmbH released a new tarball shipping an updated anti-virus engine
  (6.23.0.1 -> 6.24.0.2), current virus definition file (6.23.0.1 -> 6.24.0.6)
  and an updated antivir.conf adding the new option "UpdaterKeepsBackups" for
  for the current AV engine.
  If you are using the auto-update facility you should already have the
  updated AV engine binary and VDF.
- Install the original AV engine binary and the VDF from the tarball with
  suffix "-dist_avfbmlt" instead of "-dist" so ${PREFIX}/AntiVir/antivir
  can be shared between different H+BEDV AntiVir products without conflicts.
- Add another instance to MASTER_SITES.

Submitted by:	marius
@
text
@a0 1
@@exec install -d -o daemon -g daemon -m 755 %D/AntiVir
d17 4
a20 4
@@exec install -d -o daemon -g daemon -m 700 /var/spool/avmilter
@@exec install -d -o daemon -g daemon -m 700 /var/spool/avmilter/incoming
@@exec install -d -o daemon -g daemon -m 700 /var/spool/avmilter/outgoing
@@exec install -d -o daemon -g daemon -m 700 /var/spool/avmilter/rejected
d25 3
d75 1
@


1.1
log
@Add AntiVir Milter, a mail virusscanner using the Sendmail Mail Filter API.
This is a commercial stand-alone solution written in C not a PERL script +
myriads of dependencies + some AV...
Licenses for private (individual, non-commercial) use, e.g. for protecting
your family's home network, can be applied for free of charge.

Submitted by:	Marius Strobl <marius@@alchemy.franken.de>
@
text
@d2 2
a3 2
@@unexec if cmp -s %D/AntiVir/antivir-dist %D/AntiVir/antivir; then rm -f %D/AntiVir/antivir; fi
AntiVir/antivir-dist
d5 2
a6 2
@@unexec if cmp -s %D/AntiVir/antivir.vdf-dist %D/AntiVir/antivir.vdf; then rm -f %D/AntiVir/antivir.vdf; fi
AntiVir/antivir.vdf-dist
@

