| 1 | NAME = dcc |
|---|
| 2 | VERSION = 1.3.140 |
|---|
| 3 | CATEGORIES = net |
|---|
| 4 | GARTYPE = v2 |
|---|
| 5 | |
|---|
| 6 | DESCRIPTION = E-mail greylisting and a cooperative, distributed system to identify spam |
|---|
| 7 | |
|---|
| 8 | #MASTER_SITES = http://www.rhyolite.com/src/dcc/old/ |
|---|
| 9 | MASTER_SITES = http://www.dcc-servers.net/dcc/source/old/ |
|---|
| 10 | DISTFILES = $(NAME)-$(VERSION).tar.Z |
|---|
| 11 | |
|---|
| 12 | LICENSE = LICENSE |
|---|
| 13 | |
|---|
| 14 | RUNTIME_DEP_PKGS += CSWperl |
|---|
| 15 | |
|---|
| 16 | CHECKPKG_OVERRIDES_CSWdcc += file-with-bad-content |
|---|
| 17 | |
|---|
| 18 | #CONFIGURE_ARGS = $(DIRPATHS) |
|---|
| 19 | CONFIGURE_ARGS = |
|---|
| 20 | CONFIGURE_ARGS += --homedir=/var/opt/csw/dcc |
|---|
| 21 | CONFIGURE_ARGS += --bindir=/opt/csw/bin |
|---|
| 22 | CONFIGURE_ARGS += --libexecdir=/opt/csw/libexec/dcc |
|---|
| 23 | CONFIGURE_ARGS += --mandir=/opt/csw/share/man |
|---|
| 24 | CONFIGURE_ARGS += --with-installroot=$(DESTDIR) |
|---|
| 25 | CONFIGURE_ARGS += --with-DCC-MD5 |
|---|
| 26 | #CONFIGURE_ARGS += --with-uid=dcc |
|---|
| 27 | CONFIGURE_ARGS += --with-uid=bonivart |
|---|
| 28 | #CONFIGURE_ARGS += --with-cgibin=/var/opt/csw/dcc/cgi-bin |
|---|
| 29 | CONFIGURE_ARGS += --with-cgibin=/opt/csw/dcc/cgi-bin |
|---|
| 30 | CONFIGURE_ARGS += --with-rundir=/var/opt/csw/dcc/run |
|---|
| 31 | # This obviously needs a better solution |
|---|
| 32 | CONFIGURE_ARGS += --with-sendmail=/home/bonivart/tmp/sendmail-8.14.5/include/libmilter |
|---|
| 33 | |
|---|
| 34 | GARCOMPILER = GNU |
|---|
| 35 | |
|---|
| 36 | # dcc has no tests |
|---|
| 37 | TEST_SCRIPTS = |
|---|
| 38 | |
|---|
| 39 | INSTALL_SCRIPTS = custom |
|---|
| 40 | |
|---|
| 41 | SAMPLECONF = /var/opt/csw/dcc/dcc_conf |
|---|
| 42 | SAMPLECONF += /var/opt/csw/dcc/flod |
|---|
| 43 | SAMPLECONF += /var/opt/csw/dcc/grey_flod |
|---|
| 44 | SAMPLECONF += /var/opt/csw/dcc/grey_whitelist |
|---|
| 45 | SAMPLECONF += /var/opt/csw/dcc/ids |
|---|
| 46 | SAMPLECONF += /var/opt/csw/dcc/map.txt |
|---|
| 47 | SAMPLECONF += /var/opt/csw/dcc/whiteclnt |
|---|
| 48 | SAMPLECONF += /var/opt/csw/dcc/whitecommon |
|---|
| 49 | SAMPLECONF += /var/opt/csw/dcc/whitelist |
|---|
| 50 | USERGROUP = /etc/opt/csw/pkg/CSWdcc/cswusergroup |
|---|
| 51 | |
|---|
| 52 | # Fix ownership of map file |
|---|
| 53 | PROTOTYPE_MODIFIERS = 1 |
|---|
| 54 | PROTOTYPE_FILES_1 = /var/opt/csw/dcc/map |
|---|
| 55 | PROTOTYPE_USER_1 = dcc |
|---|
| 56 | PROTOTYPE_CLASS_1 = ugfiles |
|---|
| 57 | |
|---|
| 58 | SPKG_SOURCEURL = http://www.rhyolite.com/dcc/ |
|---|
| 59 | CONFFILES = dcc_conf flod grey_flod grey_whitelist ids map.txt whiteclnt whitecommon whitelist |
|---|
| 60 | DOCFILES = CHANGES FAQ.html INSTALL.html RESTRICTIONS misc/README misc/dcc.m4 misc/dccdnsbl.m4 misc/site.config.m4 |
|---|
| 61 | |
|---|
| 62 | include gar/category.mk |
|---|
| 63 | |
|---|
| 64 | install-custom: |
|---|
| 65 | @echo " ==> Installing $(NAME) (custom)" |
|---|
| 66 | @rm -rf $(DESTDIR) |
|---|
| 67 | @( cd $(WORKSRC) ; \ |
|---|
| 68 | sed 's/DCC_GRP.*=bin/DCC_GRP =csw/' Makefile.inc > tmp.sed ; \ |
|---|
| 69 | mv tmp.sed Makefile.inc ; \ |
|---|
| 70 | cd cgi-bin ; \ |
|---|
| 71 | sed 's/\/opt\/csw\/dcc\/cgi-bin/\/var\/opt\/csw\/dcc\/cgi-bin/' Makefile > tmp.sed ; \ |
|---|
| 72 | mv tmp.sed Makefile ; \ |
|---|
| 73 | cd .. ; \ |
|---|
| 74 | gmake install ) |
|---|
| 75 | @( cd $(DESTDIR)/var/opt/csw/$(NAME) ; \ |
|---|
| 76 | sed 's/bonivart/dcc/' dcc_conf > tmp.sed ; \ |
|---|
| 77 | mv tmp.sed dcc_conf ) |
|---|
| 78 | @( cd $(DESTDIR)/opt/csw/libexec/$(NAME) ; \ |
|---|
| 79 | sed 's/bonivart/dcc/' fix-map > tmp.sed ; \ |
|---|
| 80 | mv tmp.sed fix-map ) |
|---|
| 81 | # @$(foreach FILE, $(CONFFILES), mv $(DESTDIR)/var/opt/csw/$(NAME)/$(FILE) $(DESTDIR)/var/opt/csw/$(NAME) ;) |
|---|
| 82 | @ginstall -d $(DESTDIR)$(docdir)/$(NAME)/misc |
|---|
| 83 | @$(foreach FILE, $(DOCFILES), cp $(WORKSRC)/$(FILE) $(DESTDIR)$(docdir)/$(NAME)/$(FILE) ;) |
|---|
| 84 | @cp $(FILEDIR)/CSWdcc.INSTALL.CSW.txt $(DESTDIR)$(docdir)/$(NAME)/INSTALL.CSW.txt |
|---|
| 85 | @cp $(FILEDIR)/CSWdcc.dcc.xml $(DESTDIR)$(docdir)/$(NAME)/dcc.xml |
|---|
| 86 | @cp $(FILEDIR)/CSWdcc.svc-dcc $(DESTDIR)$(docdir)/$(NAME)/svc-dcc |
|---|
| 87 | @ginstall -m 755 -d $(DESTDIR)/etc/opt/csw/pkg/CSWdcc |
|---|
| 88 | @ginstall -m 444 $(FILEDIR)/cswusergroup $(DESTDIR)/etc/opt/csw/pkg/CSWdcc |
|---|
| 89 | @$(MAKECOOKIE) |
|---|