| 1 | NAME = postgrey |
|---|
| 2 | VERSION = 1.34 |
|---|
| 3 | CATEGORIES = net |
|---|
| 4 | GARTYPE = v2 |
|---|
| 5 | |
|---|
| 6 | DESCRIPTION = Postfix policy server implementing greylisting |
|---|
| 7 | define BLURB |
|---|
| 8 | Postfix policy server implementing greylisting |
|---|
| 9 | endef |
|---|
| 10 | |
|---|
| 11 | MASTER_SITES = http://postgrey.schweikert.ch/pub/ |
|---|
| 12 | DISTFILES = $(NAME)-$(VERSION).tar.gz |
|---|
| 13 | |
|---|
| 14 | RUNTIME_DEP_PKGS = CSWperl |
|---|
| 15 | RUNTIME_DEP_PKGS += CSWpmiomultiplex |
|---|
| 16 | RUNTIME_DEP_PKGS += CSWpmnetserver |
|---|
| 17 | RUNTIME_DEP_PKGS += CSWpostfix |
|---|
| 18 | RUNTIME_DEP_PKGS += CSWpmberkeleydb |
|---|
| 19 | |
|---|
| 20 | ARCHALL = 1 |
|---|
| 21 | |
|---|
| 22 | CONFIGURE_SCRIPTS = |
|---|
| 23 | BUILD_SCRIPTS = |
|---|
| 24 | TEST_SCRIPTS = |
|---|
| 25 | INSTALL_SCRIPTS = custom |
|---|
| 26 | |
|---|
| 27 | INITSMF = /etc/opt/csw/init.d/cswpostgrey |
|---|
| 28 | USERGROUP = /etc/opt/csw/pkg/CSWpostgrey/cswusergroup |
|---|
| 29 | SAMPLECONF = /etc/opt/csw/postfix/postgrey_whitelist_clients /etc/opt/csw/postfix/postgrey_whitelist_recipients |
|---|
| 30 | SAMPLECONF += /etc/opt/csw/postgrey |
|---|
| 31 | |
|---|
| 32 | PATCHFILES = postgrey.p |
|---|
| 33 | |
|---|
| 34 | CHECKPKG_OVERRIDES_CSWpostgrey += surplus-dependency|CSWperl |
|---|
| 35 | CHECKPKG_OVERRIDES_CSWpostgrey += surplus-dependency|CSWpmnetserver |
|---|
| 36 | CHECKPKG_OVERRIDES_CSWpostgrey += surplus-dependency|CSWpmiomultiplex |
|---|
| 37 | CHECKPKG_OVERRIDES_CSWpostgrey += surplus-dependency|CSWpmberkeleydb |
|---|
| 38 | |
|---|
| 39 | include gar/category.mk |
|---|
| 40 | |
|---|
| 41 | install-custom: |
|---|
| 42 | @echo " ==> Installing $(NAME) (custom)" |
|---|
| 43 | @ginstall -m 755 -d $(DESTDIR)/etc/opt/csw/init.d |
|---|
| 44 | @ginstall -m 755 $(FILEDIR)/CSWpostgrey.init $(DESTDIR)/etc/opt/csw/init.d/cswpostgrey |
|---|
| 45 | @ginstall -m 755 -d $(DESTDIR)/etc/opt/csw/postfix |
|---|
| 46 | @ginstall -m 644 $(WORKSRC)/postgrey_whitelist_clients $(DESTDIR)/etc/opt/csw/postfix |
|---|
| 47 | @ginstall -m 644 $(WORKSRC)/postgrey_whitelist_recipients $(DESTDIR)/etc/opt/csw/postfix |
|---|
| 48 | @ginstall -m 644 $(FILEDIR)/postgrey $(DESTDIR)/etc/opt/csw/ |
|---|
| 49 | @ginstall -m 755 -d $(DESTDIR)/etc/opt/csw/pkg/CSWpostgrey |
|---|
| 50 | @ginstall -m 444 $(FILEDIR)/cswusergroup $(DESTDIR)/etc/opt/csw/pkg/CSWpostgrey/cswusergroup |
|---|
| 51 | @ginstall -m 755 -d $(DESTDIR)$(sbindir) |
|---|
| 52 | @ginstall -m 755 $(WORKSRC)/postgrey $(DESTDIR)$(sbindir) |
|---|
| 53 | @ginstall -m 755 -d $(DESTDIR)$(docdir)/$(NAME) |
|---|
| 54 | @ginstall -m 444 $(WORKSRC)/Changes $(DESTDIR)$(docdir)/$(NAME) |
|---|
| 55 | @ginstall -m 444 $(WORKSRC)/README $(DESTDIR)$(docdir)/$(NAME) |
|---|
| 56 | @ginstall -m 755 $(WORKSRC)/policy-test $(DESTDIR)$(docdir)/$(NAME) |
|---|
| 57 | @ginstall -m 755 $(WORKSRC)/contrib/postgreyreport $(DESTDIR)$(docdir)/$(NAME) |
|---|
| 58 | @ginstall -m 755 -d $(DESTDIR)$(mandir)/man1 |
|---|
| 59 | @pod2man --section=1 $(WORKSRC)/$(NAME) > $(DESTDIR)$(mandir)/man1/$(NAME).1 |
|---|
| 60 | @ginstall -m 755 -d $(DESTDIR)/var/opt/csw/$(NAME) |
|---|
| 61 | @$(MAKECOOKIE) |
|---|