| 1 | ##################################################################### |
|---|
| 2 | # OpenCSW build recipe for imapproxy |
|---|
| 3 | # |
|---|
| 4 | # Copyright 2009 Yann Rouillard <yann@pleiades.fr.eu.org> |
|---|
| 5 | # All rights reserved. Use is subject to license terms. |
|---|
| 6 | # |
|---|
| 7 | # Redistribution and/or use, with or without modification, is |
|---|
| 8 | # permitted. This software is without warranty of any kind. The |
|---|
| 9 | # author(s) shall not be liable in the event that use of the |
|---|
| 10 | # software causes damage. |
|---|
| 11 | ##################################################################### |
|---|
| 12 | |
|---|
| 13 | ###### Package information ####### |
|---|
| 14 | |
|---|
| 15 | NAME = imapproxy |
|---|
| 16 | VERSION = 1.2.7 |
|---|
| 17 | CATEGORIES = server |
|---|
| 18 | GARTYPE = v2 |
|---|
| 19 | |
|---|
| 20 | DESCRIPTION = A caching IMAP proxy server |
|---|
| 21 | define BLURB |
|---|
| 22 | The IMAP Proxy server is a caching IMAP proxy server. |
|---|
| 23 | It was written to reduce the load that Webmail clients |
|---|
| 24 | put on an IMAP server by keeping server connections alive |
|---|
| 25 | for reuse, thus avoiding a new server connection for each |
|---|
| 26 | Webmail transaction. |
|---|
| 27 | endef |
|---|
| 28 | |
|---|
| 29 | PACKAGES = CSWimapproxy |
|---|
| 30 | |
|---|
| 31 | RUNTIME_DEP_PKGS = CSWlibwrap1 |
|---|
| 32 | RUNTIME_DEP_PKGS += CSWlibssl1-0-0 |
|---|
| 33 | |
|---|
| 34 | # Default paths referenced in documentation files, can be safely ignored |
|---|
| 35 | CHECKPKG_OVERRIDES_CSWimapproxy += file-with-bad-content|/usr/local|root/opt/csw/share/doc/imapproxy/README |
|---|
| 36 | CHECKPKG_OVERRIDES_CSWimapproxy += file-with-bad-content|/usr/local|root/opt/csw/share/doc/imapproxy/README.ssl |
|---|
| 37 | CHECKPKG_OVERRIDES_CSWimapproxy += file-with-bad-content|/usr/local|root/opt/csw/share/doc/imapproxy/README.known_issues |
|---|
| 38 | |
|---|
| 39 | # DTD paths referenced in smf manifest file, can be safely ignored |
|---|
| 40 | CHECKPKG_OVERRIDES_CSWimapproxy += file-with-bad-content|/usr/share|root/var/opt/csw/svc/manifest/network/cswimapproxy.xml |
|---|
| 41 | |
|---|
| 42 | |
|---|
| 43 | ###### Upstream and opencsw files information ####### |
|---|
| 44 | |
|---|
| 45 | # Imapproxy is now Squirrelmail IMAP Proxy and is now available |
|---|
| 46 | # in squirrelaim sourceforge projet |
|---|
| 47 | SF_PROJ = squirrelmail |
|---|
| 48 | MASTER_SITES = $(SF_MIRRORS) |
|---|
| 49 | |
|---|
| 50 | UPSTREAM_MASTER_SITES = http://squirrelmail.org/download.php#imap_proxy |
|---|
| 51 | |
|---|
| 52 | DISTFILES = squirrelmail-imap_proxy-$(VERSION).tar.gz |
|---|
| 53 | DISTFILES += imapproxy.conf |
|---|
| 54 | DISTFILES += changelog.CSW README.CSW |
|---|
| 55 | # init and smf stuffs |
|---|
| 56 | DISTFILES += cswimapproxy cswimapproxy.xml |
|---|
| 57 | |
|---|
| 58 | DISTNAME = squirrelmail-imap_proxy-$(VERSION) |
|---|
| 59 | |
|---|
| 60 | INITSMF = /etc/opt/csw/init.d/cswimapproxy |
|---|
| 61 | PRESERVECONF = /etc/opt/csw/imapproxy.conf |
|---|
| 62 | |
|---|
| 63 | MIGRATE_FILES = imapproxy.conf |
|---|
| 64 | |
|---|
| 65 | # imapproxy lacks include of openssl/md5.h |
|---|
| 66 | # PATCHFILES += md5_include.patch |
|---|
| 67 | |
|---|
| 68 | # move the default configuration file location |
|---|
| 69 | # under /opt/csw |
|---|
| 70 | PATCHFILES += conf_file_location.patch |
|---|
| 71 | |
|---|
| 72 | # patch to add DESTDIR support to |
|---|
| 73 | # imapproxy makefile |
|---|
| 74 | PATCHFILES += destdir.patch |
|---|
| 75 | |
|---|
| 76 | ##### Build and installation information ##### |
|---|
| 77 | |
|---|
| 78 | CONFIGURE_ARGS = $(DIRPATHS) |
|---|
| 79 | |
|---|
| 80 | TEST_SCRIPTS = |
|---|
| 81 | |
|---|
| 82 | include gar/category.mk |
|---|
| 83 | |
|---|
| 84 | post-merge: |
|---|
| 85 | ginstall -d $(DESTDIR)$(sysconfdir) |
|---|
| 86 | ginstall -D $(WORKDIR_FIRSTMOD)/changelog.CSW $(PKGROOT)$(docdir)/$(NAME)/changelog.CSW |
|---|
| 87 | ginstall -D $(WORKDIR_FIRSTMOD)/README.CSW $(PKGROOT)$(docdir)/$(NAME)/README.CSW |
|---|
| 88 | ginstall -D $(WORKSRC_FIRSTMOD)/ChangeLog $(PKGROOT)$(docdir)/$(NAME)/ChangeLog |
|---|
| 89 | ginstall -D $(WORKSRC_FIRSTMOD)/README $(PKGROOT)$(docdir)/$(NAME)/README |
|---|
| 90 | ginstall -D $(WORKSRC_FIRSTMOD)/README.known_issues $(PKGROOT)$(docdir)/$(NAME)/README.known_issues |
|---|
| 91 | ginstall -D $(WORKSRC_FIRSTMOD)/README.ssl $(PKGROOT)$(docdir)/$(NAME)/README.ssl |
|---|
| 92 | ginstall -D $(WORKDIR_FIRSTMOD)/imapproxy.conf $(PKGROOT)$(sysconfdir)/imapproxy.conf.CSW |
|---|
| 93 | ginstall -D "$(WORKDIR_FIRSTMOD)/cswimapproxy.xml" "$(PKGROOT)/var/opt/csw/svc/manifest/network/cswimapproxy.xml" |
|---|
| 94 | ginstall -D "$(WORKDIR_FIRSTMOD)/cswimapproxy" "$(PKGROOT)/etc/opt/csw/init.d/cswimapproxy" |
|---|
| 95 | @$(MAKECOOKIE) |
|---|
| 96 | |
|---|
| 97 | |
|---|