| 1 | NAME = spamassassin |
|---|
| 2 | SPKG_NAME = Mail-SpamAssassin |
|---|
| 3 | VERSION = 3.3.2 |
|---|
| 4 | CATEGORIES = net |
|---|
| 5 | GARTYPE = v2 |
|---|
| 6 | |
|---|
| 7 | DESCRIPTION = Mail filter with a wide range of tests |
|---|
| 8 | define BLURB |
|---|
| 9 | SpamAssassin is a mail filter which attempts to identify spam using |
|---|
| 10 | a variety of mechanisms including text analysis, Bayesian filtering, |
|---|
| 11 | DNS blocklists, and collaborative filtering databases. |
|---|
| 12 | endef |
|---|
| 13 | |
|---|
| 14 | MASTER_SITES = http://apache.dataphone.se/spamassassin/source/ |
|---|
| 15 | #MASTER_SITES = http://people.apache.org/~jm/devel/ |
|---|
| 16 | DISTFILES = $(SPKG_NAME)-$(VERSION).tar.gz |
|---|
| 17 | #DISTFILES = $(SPKG_NAME)-$(VERSION)-rc3.tar.gz |
|---|
| 18 | DISTFILES += COPYING |
|---|
| 19 | |
|---|
| 20 | RUNTIME_DEP_PKGS = CSWgnupg |
|---|
| 21 | RUNTIME_DEP_PKGS += CSWosslrt |
|---|
| 22 | RUNTIME_DEP_PKGS += CSWperl |
|---|
| 23 | RUNTIME_DEP_PKGS += CSWpm-dbi |
|---|
| 24 | RUNTIME_DEP_PKGS += CSWpm-html-parser |
|---|
| 25 | RUNTIME_DEP_PKGS += CSWpm-io-socket-inet6 |
|---|
| 26 | RUNTIME_DEP_PKGS += CSWpm-io-socket-ssl |
|---|
| 27 | RUNTIME_DEP_PKGS += CSWpmiozlib |
|---|
| 28 | RUNTIME_DEP_PKGS += CSWpmipcountry |
|---|
| 29 | RUNTIME_DEP_PKGS += CSWpm-ldap |
|---|
| 30 | RUNTIME_DEP_PKGS += CSWpm-libwww-perl |
|---|
| 31 | RUNTIME_DEP_PKGS += CSWpmmaildkim |
|---|
| 32 | RUNTIME_DEP_PKGS += CSWpmmailspf |
|---|
| 33 | RUNTIME_DEP_PKGS += CSWpmmailtools |
|---|
| 34 | RUNTIME_DEP_PKGS += CSWpm-mime-base64 |
|---|
| 35 | RUNTIME_DEP_PKGS += CSWpm-netaddr-ip |
|---|
| 36 | RUNTIME_DEP_PKGS += CSWpmnetdns |
|---|
| 37 | RUNTIME_DEP_PKGS += CSWpmuri |
|---|
| 38 | RUNTIME_DEP_PKGS += CSWrazor |
|---|
| 39 | RUNTIME_DEP_PKGS += CSWzlib |
|---|
| 40 | |
|---|
| 41 | SAMPLECONF = /etc/opt/csw/spamassassin/.+\.pre\.CSW |
|---|
| 42 | SAMPLECONF += /etc/opt/csw/spamassassin/local\.cf\.CSW |
|---|
| 43 | SAMPLECONF += /etc/opt/csw/spamassassin/spamd\.CSW |
|---|
| 44 | USERGROUP = /etc/opt/csw/pkg/CSWspamassassin/cswusergroup |
|---|
| 45 | INITSMF = /etc/opt/csw/init.d/cswspamd |
|---|
| 46 | POSTMSG = /opt/csw/share/doc/spamassassin/README.upgrade |
|---|
| 47 | |
|---|
| 48 | MIGRATE_FILES = init.pre local.cf v310.pre v312.pre v320.pre |
|---|
| 49 | MIGRATE_SOURCE_DIR = /opt/csw/etc/spamassassin |
|---|
| 50 | MIGRATE_DEST_DIR = /etc/opt/csw/spamassassin |
|---|
| 51 | |
|---|
| 52 | CONFIGURE_SCRIPTS = custom |
|---|
| 53 | BUILD_SCRIPTS = custom |
|---|
| 54 | TEST_SCRIPTS = custom |
|---|
| 55 | #TEST_SCRIPTS = |
|---|
| 56 | INSTALL_SCRIPTS = custom |
|---|
| 57 | |
|---|
| 58 | CHECKPKG_OVERRIDES_CSWspamassassin += surplus-dependency|CSWpmnetdns |
|---|
| 59 | CHECKPKG_OVERRIDES_CSWspamassassin += surplus-dependency|CSWpm-mime-base64 |
|---|
| 60 | CHECKPKG_OVERRIDES_CSWspamassassin += surplus-dependency|CSWgnupg |
|---|
| 61 | CHECKPKG_OVERRIDES_CSWspamassassin += surplus-dependency|CSWpm-netaddr-ip |
|---|
| 62 | CHECKPKG_OVERRIDES_CSWspamassassin += surplus-dependency|CSWpm-ldap |
|---|
| 63 | CHECKPKG_OVERRIDES_CSWspamassassin += surplus-dependency|CSWpm-dbi |
|---|
| 64 | CHECKPKG_OVERRIDES_CSWspamassassin += surplus-dependency|CSWpm-io-socket-ssl |
|---|
| 65 | CHECKPKG_OVERRIDES_CSWspamassassin += surplus-dependency|CSWpmmailspf |
|---|
| 66 | CHECKPKG_OVERRIDES_CSWspamassassin += surplus-dependency|CSWrazor |
|---|
| 67 | CHECKPKG_OVERRIDES_CSWspamassassin += surplus-dependency|CSWpmuri |
|---|
| 68 | CHECKPKG_OVERRIDES_CSWspamassassin += surplus-dependency|CSWpm-io-socket-inet6 |
|---|
| 69 | CHECKPKG_OVERRIDES_CSWspamassassin += surplus-dependency|CSWpmmailtools |
|---|
| 70 | CHECKPKG_OVERRIDES_CSWspamassassin += surplus-dependency|CSWzlib |
|---|
| 71 | CHECKPKG_OVERRIDES_CSWspamassassin += surplus-dependency|CSWpm-libwww-perl |
|---|
| 72 | CHECKPKG_OVERRIDES_CSWspamassassin += surplus-dependency|CSWpmiozlib |
|---|
| 73 | CHECKPKG_OVERRIDES_CSWspamassassin += surplus-dependency|CSWosslrt |
|---|
| 74 | CHECKPKG_OVERRIDES_CSWspamassassin += surplus-dependency|CSWpmipcountry |
|---|
| 75 | CHECKPKG_OVERRIDES_CSWspamassassin += surplus-dependency|CSWpmmaildkim |
|---|
| 76 | CHECKPKG_OVERRIDES_CSWspamassassin += surplus-dependency|CSWpm-html-parser |
|---|
| 77 | CHECKPKG_OVERRIDES_CSWspamassassin += file-with-bad-content|/usr/local|root/opt/csw/bin/spamassassin |
|---|
| 78 | CHECKPKG_OVERRIDES_CSWspamassassin += file-with-bad-content|/usr/local|root/opt/csw/share/perl/csw/Mail/SpamAssassin.pm |
|---|
| 79 | CHECKPKG_OVERRIDES_CSWspamassassin += file-with-bad-content|/usr/local|root/opt/csw/share/man/man1/spamassassin.1 |
|---|
| 80 | CHECKPKG_OVERRIDES_CSWspamassassin += file-with-bad-content|/usr/local|root/opt/csw/share/doc/spamassassin/sql/README |
|---|
| 81 | CHECKPKG_OVERRIDES_CSWspamassassin += file-with-bad-content|/usr/share|root/opt/csw/bin/spamd |
|---|
| 82 | CHECKPKG_OVERRIDES_CSWspamassassin += file-with-bad-content|/usr/share|root/opt/csw/bin/spamassassin |
|---|
| 83 | CHECKPKG_OVERRIDES_CSWspamassassin += file-with-bad-content|/usr/local|root/opt/csw/share/doc/spamassassin/README |
|---|
| 84 | CHECKPKG_OVERRIDES_CSWspamassassin += file-with-bad-content|/usr/share|root/opt/csw/bin/sa-compile |
|---|
| 85 | CHECKPKG_OVERRIDES_CSWspamassassin += file-with-bad-content|/usr/share|root/opt/csw/bin/sa-learn |
|---|
| 86 | CHECKPKG_OVERRIDES_CSWspamassassin += file-with-bad-content|/usr/share|root/opt/csw/share/perl/csw/Mail/SpamAssassin/Util/DependencyInfo.pm |
|---|
| 87 | CHECKPKG_OVERRIDES_CSWspamassassin += file-with-bad-content|/usr/share|root/opt/csw/share/perl/csw/Mail/SpamAssassin/Conf.pm |
|---|
| 88 | CHECKPKG_OVERRIDES_CSWspamassassin += file-with-bad-content|/usr/share|root/opt/csw/share/perl/csw/spamassassin-run.pod |
|---|
| 89 | CHECKPKG_OVERRIDES_CSWspamassassin += file-with-bad-content|/usr/share|root/opt/csw/share/perl/csw/Mail/SpamAssassin.pm |
|---|
| 90 | CHECKPKG_OVERRIDES_CSWspamassassin += file-with-bad-content|/usr/share|root/opt/csw/share/perl/csw/Mail/SpamAssassin/Locales.pm |
|---|
| 91 | CHECKPKG_OVERRIDES_CSWspamassassin += file-with-bad-content|/usr/share|root/opt/csw/share/man/man1/sa-learn.1 |
|---|
| 92 | CHECKPKG_OVERRIDES_CSWspamassassin += file-with-bad-content|/usr/share|root/opt/csw/share/man/man1/spamd.1 |
|---|
| 93 | CHECKPKG_OVERRIDES_CSWspamassassin += file-with-bad-content|/usr/share|root/opt/csw/share/man/man1/sa-compile.1 |
|---|
| 94 | CHECKPKG_OVERRIDES_CSWspamassassin += file-with-bad-content|/usr/share|root/opt/csw/share/man/man1/spamassassin.1 |
|---|
| 95 | CHECKPKG_OVERRIDES_CSWspamassassin += file-with-bad-content|/usr/share|root/opt/csw/share/man/man3/spamassassin-run.3perl |
|---|
| 96 | CHECKPKG_OVERRIDES_CSWspamassassin += file-with-bad-content|/usr/share|root/opt/csw/share/man/man1/spamassassin-run.1 |
|---|
| 97 | CHECKPKG_OVERRIDES_CSWspamassassin += file-with-bad-content|/usr/share|root/opt/csw/share/man/man3/Mail::SpamAssassin::Conf.3perl |
|---|
| 98 | CHECKPKG_OVERRIDES_CSWspamassassin += file-with-bad-content|/usr/share|root/opt/csw/share/doc/spamassassin/README |
|---|
| 99 | CHECKPKG_OVERRIDES_CSWspamassassin += file-with-bad-content|/usr/share|root/opt/csw/share/doc/spamassassin/USAGE |
|---|
| 100 | |
|---|
| 101 | include gar/category.mk |
|---|
| 102 | |
|---|
| 103 | WORKSRC = $(WORKDIR)/$(SPKG_NAME)-$(VERSION) |
|---|
| 104 | SPKG_SOURCEURL = http://spamassassin.apache.org/ |
|---|
| 105 | |
|---|
| 106 | ifeq ($(shell uname -p), sparc) |
|---|
| 107 | SEDCFLAGS = -xarch=v8 |
|---|
| 108 | else |
|---|
| 109 | SEDCFLAGS = |
|---|
| 110 | endif |
|---|
| 111 | |
|---|
| 112 | configure-custom: |
|---|
| 113 | @echo " ==> Configuring $(NAME) (custom)" |
|---|
| 114 | @( cd $(WORKSRC) ; \ |
|---|
| 115 | perl Makefile.PL INSTALLDIRS=vendor DESTDIR=$(DESTDIR) CONFDIR=/etc/opt/csw/spamassassin LOCALSTATEDIR=/var/opt/csw/spamassassin CONTACT_ADDRESS=postmaster ) |
|---|
| 116 | @$(MAKECOOKIE) |
|---|
| 117 | |
|---|
| 118 | pre-build-modulated: |
|---|
| 119 | @echo " ==> Pre-build $(NAME) (custom)" |
|---|
| 120 | @( cd $(WORKSRC)/spamc ; \ |
|---|
| 121 | sed 's/CFLAGS = /CFLAGS = $(SEDCFLAGS) /' Makefile.in > Makefile.tmp ; \ |
|---|
| 122 | cp Makefile.tmp Makefile.in ) |
|---|
| 123 | @$(MAKECOOKIE) |
|---|
| 124 | |
|---|
| 125 | build-custom: |
|---|
| 126 | @echo " ==> Building $(NAME) (custom)" |
|---|
| 127 | @( cd $(WORKSRC) ; \ |
|---|
| 128 | gmake ) |
|---|
| 129 | @$(MAKECOOKIE) |
|---|
| 130 | |
|---|
| 131 | test-custom: |
|---|
| 132 | @echo " ==> Testing $(NAME) (custom)" |
|---|
| 133 | @( cd $(WORKSRC) ; \ |
|---|
| 134 | gmake test ) |
|---|
| 135 | @$(MAKECOOKIE) |
|---|
| 136 | |
|---|
| 137 | install-custom: |
|---|
| 138 | @echo " ==> Installing $(NAME) (custom)" |
|---|
| 139 | @rm -rf $(DESTDIR) |
|---|
| 140 | # @ginstall -m 755 -d $(DESTDIR)/opt/csw/etc/init.d |
|---|
| 141 | # @ginstall -m 755 $(FILEDIR)/CSWspamassassin.cswspamd $(DESTDIR)/opt/csw/etc/init.d/cswspamd |
|---|
| 142 | @ginstall -m 755 -d $(DESTDIR)/etc/opt/csw/init.d |
|---|
| 143 | @ginstall -m 755 $(FILEDIR)/CSWspamassassin.cswspamd $(DESTDIR)/etc/opt/csw/init.d/cswspamd |
|---|
| 144 | @ginstall -m 755 -d $(DESTDIR)/etc/opt/csw/pkg/CSWspamassassin |
|---|
| 145 | @ginstall -m 644 $(FILEDIR)/CSWspamassassin.cswusergroup $(DESTDIR)/etc/opt/csw/pkg/CSWspamassassin/cswusergroup |
|---|
| 146 | @ginstall -m 755 -d $(DESTDIR)/etc/opt/csw/spamassassin |
|---|
| 147 | @ginstall -m 644 $(FILEDIR)/CSWspamassassin.spamd.CSW $(DESTDIR)/etc/opt/csw/spamassassin/spamd.CSW |
|---|
| 148 | @ginstall -m 755 -d $(DESTDIR)$(docdir)/$(NAME) |
|---|
| 149 | @cp $(FILEDIR)/CSWspamassassin.README.CSW $(DESTDIR)$(docdir)/$(NAME)/README.CSW |
|---|
| 150 | @cp $(FILEDIR)/CSWspamassassin.README.spamd $(DESTDIR)$(docdir)/$(NAME)/README.spamd |
|---|
| 151 | @cp $(FILEDIR)/CSWspamassassin.postmsg $(DESTDIR)$(docdir)/$(NAME)/README.upgrade |
|---|
| 152 | @ginstall -m 755 -d $(DESTDIR)/var/opt/csw/$(NAME) |
|---|
| 153 | echo "WORKSRC: $(WORKSRC)" |
|---|
| 154 | @( cd $(WORKSRC) ; \ |
|---|
| 155 | gmake DESTDIR=$(DESTDIR) install ) |
|---|
| 156 | @( cd $(WORKSRC) ; \ |
|---|
| 157 | cp -r C* INSTALL NOTICE README TRADEMARK U* ldap/ sql/ procmailrc.example sample-* $(DESTDIR)$(docdir)/$(NAME)/ ) |
|---|
| 158 | @( cd $(DESTDIR)/etc/opt/csw/spamassassin ; \ |
|---|
| 159 | mv local.cf local.cf.CSW ; \ |
|---|
| 160 | mv init.pre init.pre.CSW ; \ |
|---|
| 161 | mv v310.pre v310.pre.CSW ; \ |
|---|
| 162 | mv v312.pre v312.pre.CSW ; \ |
|---|
| 163 | mv v330.pre v330.pre.CSW ; \ |
|---|
| 164 | mv v320.pre v320.pre.CSW ) |
|---|
| 165 | @rm -rf $(DESTDIR)/opt/csw/lib |
|---|
| 166 | @$(MAKECOOKIE) |
|---|