Mercurial > oi > oi-jeffpc
changeset 463:d27273c8771f
OIJ-1 package postfix
author | Josef 'Jeff' Sipek <jeffpc@josefsipek.net> |
---|---|
date | Sat, 21 Jan 2012 16:16:48 -0500 |
parents | 5a82dc248330 |
children | 961d976c440e |
files | components/postfix/Makefile components/postfix/patches/remove-nisplus.patch components/postfix/postfix.license components/postfix/postfix.p5m |
diffstat | 4 files changed, 486 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/components/postfix/Makefile Sat Jan 21 16:16:48 2012 -0500 @@ -0,0 +1,50 @@ +# +# This file and its contents are supplied under the terms of the +# Common Development and Distribution License ("CDDL)". You may +# only use this file in accordance with the terms of the CDDL. +# +# A full copy of the text of the CDDL should have accompanied this +# source. A copy of the CDDL is also available via the Internet at +# http://www.illumos.org/license/CDDL. +# + +# +# Copyright 2012 Josef 'Jeff' Sipek <jeffpc@josefsipek.net> +# + +include ../../make-rules/shared-macros.mk + +COMPONENT_NAME= postfix +COMPONENT_VERSION= 2.8.5 +COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) +COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz +COMPONENT_ARCHIVE_HASH= sha1:49ef711c80b5a3434258ab24ae00940932503e80 +COMPONENT_ARCHIVE_URL= ftp://ftp.porcupine.org/mirrors/postfix-release/official/$(COMPONENT_ARCHIVE) +COMPONENT_PROJECT_URL= http://www.postfix.org/ + +include ../../make-rules/prep.mk +include ../../make-rules/justmake.mk +include ../../make-rules/ips.mk + +# Set PATH to find /usr/perl5/bin/pod2man, so that the man page wget.1 +# can be automatically generated + +#CONFIGURE_OPTIONS += --sysconfdir=/etc +#CONFIGURE_OPTIONS += --with-ssl +#CONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR) +#CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" +#CONFIGURE_OPTIONS += PATH="$(PATH):/usr/perl5/bin" + +COMPONENT_INSTALL_TARGETS = non-interactive-package +COMPONENT_INSTALL_ARGS += install_root=$(PROTO_DIR) +COMPONENT_INSTALL_ARGS += manpage_directory=$(USRSHAREMANDIR) + +build: $(BUILD_32) + +install: $(INSTALL_32) + +test: $(TEST_32) + +BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) + +include ../../make-rules/depend.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/components/postfix/patches/remove-nisplus.patch Sat Jan 21 16:16:48 2012 -0500 @@ -0,0 +1,27 @@ +# +# This file and its contents are supplied under the terms of the +# Common Development and Distribution License ("CDDL)". You may +# only use this file in accordance with the terms of the CDDL. +# +# A full copy of the text of the CDDL should have accompanied this +# source. A copy of the CDDL is also available via the Internet at +# http://www.illumos.org/license/CDDL. +# + +# +# Copyright 2012 Josef 'Jeff' Sipek <jeffpc@josefsipek.net> +# + +--- a/src/util/sys_defs.h Fri Sep 23 02:08:31 2011 ++++ b/src/util/sys_defs.h Fri Sep 23 02:08:41 2011 +@@ -400,8 +400,8 @@ + #define HAS_DBM + #define DEF_DB_TYPE "dbm" + #define ALIAS_DB_MAP "dbm:/etc/mail/aliases" +-#define HAS_NIS +-#define HAS_NISPLUS ++//#define HAS_NIS ++//#define HAS_NISPLUS + #define USE_SYS_SOCKIO_H /* Solaris 2.5, changed sys/ioctl.h */ + #define GETTIMEOFDAY(t) gettimeofday(t) + #define ROOT_PATH "/bin:/usr/bin:/sbin:/usr/sbin:/usr/ucb"
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/components/postfix/postfix.license Sat Jan 21 16:16:48 2012 -0500 @@ -0,0 +1,221 @@ +IBM PUBLIC LICENSE VERSION 1.0 - SECURE MAILER + +THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS IBM PUBLIC +LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE +PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT. + +1. DEFINITIONS + +"Contribution" means: + a) in the case of International Business Machines Corporation ("IBM"), + the Original Program, and + b) in the case of each Contributor, + i) changes to the Program, and + ii) additions to the Program; + where such changes and/or additions to the Program originate + from and are distributed by that particular Contributor. + A Contribution 'originates' from a Contributor if it was added + to the Program by such Contributor itself or anyone acting on + such Contributor's behalf. + Contributions do not include additions to the Program which: + (i) are separate modules of software distributed in conjunction + with the Program under their own license agreement, and + (ii) are not derivative works of the Program. + +"Contributor" means IBM and any other entity that distributes the Program. + +"Licensed Patents " mean patent claims licensable by a Contributor which +are necessarily infringed by the use or sale of its Contribution alone +or when combined with the Program. + +"Original Program" means the original version of the software accompanying +this Agreement as released by IBM, including source code, object code +and documentation, if any. + +"Program" means the Original Program and Contributions. + +"Recipient" means anyone who receives the Program under this Agreement, +including all Contributors. + +2. GRANT OF RIGHTS + + a) Subject to the terms of this Agreement, each Contributor hereby + grants Recipient a non-exclusive, worldwide, royalty-free copyright + license to reproduce, prepare derivative works of, publicly display, + publicly perform, distribute and sublicense the Contribution of such + Contributor, if any, and such derivative works, in source code and + object code form. + + b) Subject to the terms of this Agreement, each Contributor hereby + grants Recipient a non-exclusive, worldwide, royalty-free patent + license under Licensed Patents to make, use, sell, offer to sell, + import and otherwise transfer the Contribution of such Contributor, + if any, in source code and object code form. This patent license + shall apply to the combination of the Contribution and the Program + if, at the time the Contribution is added by the Contributor, such + addition of the Contribution causes such combination to be covered + by the Licensed Patents. The patent license shall not apply to any + other combinations which include the Contribution. No hardware per + se is licensed hereunder. + + c) Recipient understands that although each Contributor grants the + licenses to its Contributions set forth herein, no assurances are + provided by any Contributor that the Program does not infringe the + patent or other intellectual property rights of any other entity. + Each Contributor disclaims any liability to Recipient for claims + brought by any other entity based on infringement of intellectual + property rights or otherwise. As a condition to exercising the rights + and licenses granted hereunder, each Recipient hereby assumes sole + responsibility to secure any other intellectual property rights + needed, if any. For example, if a third party patent license + is required to allow Recipient to distribute the Program, it is + Recipient's responsibility to acquire that license before distributing + the Program. + + d) Each Contributor represents that to its knowledge it has sufficient + copyright rights in its Contribution, if any, to grant the copyright + license set forth in this Agreement. + +3. REQUIREMENTS + +A Contributor may choose to distribute the Program in object code form +under its own license agreement, provided that: + a) it complies with the terms and conditions of this Agreement; and + b) its license agreement: + i) effectively disclaims on behalf of all Contributors all + warranties and conditions, express and implied, including + warranties or conditions of title and non-infringement, and + implied warranties or conditions of merchantability and fitness + for a particular purpose; + ii) effectively excludes on behalf of all Contributors all + liability for damages, including direct, indirect, special, + incidental and consequential damages, such as lost profits; + iii) states that any provisions which differ from this Agreement + are offered by that Contributor alone and not by any other + party; and + iv) states that source code for the Program is available from + such Contributor, and informs licensees how to obtain it in a + reasonable manner on or through a medium customarily used for + software exchange. + +When the Program is made available in source code form: + a) it must be made available under this Agreement; and + b) a copy of this Agreement must be included with each copy of the + Program. + +Each Contributor must include the following in a conspicuous location +in the Program: + + Copyright (c) 1997,1998,1999, International Business Machines + Corporation and others. All Rights Reserved. + +In addition, each Contributor must identify itself as the originator of +its Contribution, if any, in a manner that reasonably allows subsequent +Recipients to identify the originator of the Contribution. + +4. COMMERCIAL DISTRIBUTION + +Commercial distributors of software may accept certain responsibilities +with respect to end users, business partners and the like. While this +license is intended to facilitate the commercial use of the Program, the +Contributor who includes the Program in a commercial product offering +should do so in a manner which does not create potential liability for +other Contributors. Therefore, if a Contributor includes the Program in +a commercial product offering, such Contributor ("Commercial Contributor") +hereby agrees to defend and indemnify every other Contributor +("Indemnified Contributor") against any losses, damages and costs +(collectively "Losses") arising from claims, lawsuits and other legal +actions brought by a third party against the Indemnified Contributor to +the extent caused by the acts or omissions of such Commercial Contributor +in connection with its distribution of the Program in a commercial +product offering. The obligations in this section do not apply to any +claims or Losses relating to any actual or alleged intellectual property +infringement. In order to qualify, an Indemnified Contributor must: + a) promptly notify the Commercial Contributor in writing of such claim, +and + b) allow the Commercial Contributor to control, and cooperate with + the Commercial Contributor in, the defense and any related + settlement negotiations. The Indemnified Contributor may + participate in any such claim at its own expense. + +For example, a Contributor might include the Program in a commercial +product offering, Product X. That Contributor is then a Commercial +Contributor. If that Commercial Contributor then makes performance +claims, or offers warranties related to Product X, those performance +claims and warranties are such Commercial Contributor's responsibility +alone. Under this section, the Commercial Contributor would have to +defend claims against the other Contributors related to those performance +claims and warranties, and if a court requires any other Contributor to +pay any damages as a result, the Commercial Contributor must pay those +damages. + +5. NO WARRANTY + +EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED +ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER +EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR +CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A +PARTICULAR PURPOSE. Each Recipient is solely responsible for determining +the appropriateness of using and distributing the Program and assumes +all risks associated with its exercise of rights under this Agreement, +including but not limited to the risks and costs of program errors, +compliance with applicable laws, damage to or loss of data, programs or +equipment, and unavailability or interruption of operations. + +6. DISCLAIMER OF LIABILITY + +EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR +ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, +INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING +WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF +LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION +OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF +ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. + +7. GENERAL + +If any provision of this Agreement is invalid or unenforceable under +applicable law, it shall not affect the validity or enforceability of +the remainder of the terms of this Agreement, and without further action +by the parties hereto, such provision shall be reformed to the minimum +extent necessary to make such provision valid and enforceable. + +If Recipient institutes patent litigation against a Contributor with +respect to a patent applicable to software (including a cross-claim or +counterclaim in a lawsuit), then any patent licenses granted by that +Contributor to such Recipient under this Agreement shall terminate +as of the date such litigation is filed. In addition, If Recipient +institutes patent litigation against any entity (including a cross-claim +or counterclaim in a lawsuit) alleging that the Program itself (excluding +combinations of the Program with other software or hardware) infringes +such Recipient's patent(s), then such Recipient's rights granted under +Section 2(b) shall terminate as of the date such litigation is filed. + +All Recipient's rights under this Agreement shall terminate if it fails +to comply with any of the material terms or conditions of this Agreement +and does not cure such failure in a reasonable period of time after +becoming aware of such noncompliance. If all Recipient's rights under +this Agreement terminate, Recipient agrees to cease use and distribution +of the Program as soon as reasonably practicable. However, Recipient's +obligations under this Agreement and any licenses granted by Recipient +relating to the Program shall continue and survive. + +IBM may publish new versions (including revisions) of this Agreement +from time to time. Each new version of the Agreement will be given a +distinguishing version number. The Program (including Contributions) +may always be distributed subject to the version of the Agreement under +which it was received. In addition, after a new version of the Agreement +is published, Contributor may elect to distribute the Program (including +its Contributions) under the new version. No one other than IBM has the +right to modify this Agreement. Except as expressly stated in Sections +2(a) and 2(b) above, Recipient receives no rights or licenses to the +intellectual property of any Contributor under this Agreement, whether +expressly, by implication, estoppel or otherwise. All rights in the +Program not expressly granted under this Agreement are reserved. + +This Agreement is governed by the laws of the State of New York and the +intellectual property laws of the United States of America. No party to +this Agreement will bring a legal action under this Agreement more than +one year after the cause of action arose. Each party waives its rights +to a jury trial in any resulting litigation.
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/components/postfix/postfix.p5m Sat Jan 21 16:16:48 2012 -0500 @@ -0,0 +1,188 @@ +# +# This file and its contents are supplied under the terms of the +# Common Development and Distribution License ("CDDL)". You may +# only use this file in accordance with the terms of the CDDL. +# +# A full copy of the text of the CDDL should have accompanied this +# source. A copy of the CDDL is also available via the Internet at +# http://www.illumos.org/license/CDDL. +# + +# +# Copyright (c) 2012, Josef 'Jeff' Sipek <jeffpc@josefsipek.net> +# + +<transform file path=usr/share/man/.+ -> default mangler.man.stability uncommitted> +set name=pkg.fmri value=pkg:/service/network/smtp/postfix@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION) +set name=pkg.summary value="Mail Transfer Agent" +set name=info.classification value="org.opensolaris.category.2008:System/Services" +set name=info.upstream-url value=$(COMPONENT_PROJECT_URL) +set name=info.source-url value=$(COMPONENT_ARCHIVE_URL) +set name=org.opensolaris.consolidation value=$(CONSOLIDATION) + +license postfix.license license='IBM Public License version 1.0' + +dir path=etc +dir path=etc/postfix +dir path=usr +dir path=usr/bin +dir path=usr/lib +dir path=usr/libexec +dir path=usr/libexec/postfix +dir path=usr/sbin +dir path=usr/share +dir path=usr/share/man +dir path=usr/share/man/man1 +dir path=usr/share/man/man5 +dir path=usr/share/man/man8 +dir path=var +dir path=var/lib +dir path=var/lib/postfix +dir path=var/spool +dir path=var/spool/postfix +dir path=var/spool/postfix/active +dir path=var/spool/postfix/bounce +dir path=var/spool/postfix/corrupt +dir path=var/spool/postfix/defer +dir path=var/spool/postfix/deferred +dir path=var/spool/postfix/flush +dir path=var/spool/postfix/hold +dir path=var/spool/postfix/incoming +dir path=var/spool/postfix/maildrop +dir path=var/spool/postfix/pid +dir path=var/spool/postfix/private +dir path=var/spool/postfix/public +dir path=var/spool/postfix/saved +dir path=var/spool/postfix/trace +file path=etc/postfix/LICENSE +file path=etc/postfix/TLS_LICENSE +file path=etc/postfix/access +file path=etc/postfix/aliases +file path=etc/postfix/bounce.cf.default +file path=etc/postfix/canonical +file path=etc/postfix/generic +file path=etc/postfix/header_checks +file path=etc/postfix/main.cf +file path=etc/postfix/main.cf.default +file path=etc/postfix/makedefs.out +file path=etc/postfix/master.cf +file path=etc/postfix/relocated +file path=etc/postfix/transport +file path=etc/postfix/virtual +file path=usr/lib/sendmail +file path=usr/libexec/postfix/anvil +file path=usr/libexec/postfix/bounce +file path=usr/libexec/postfix/cleanup +file path=usr/libexec/postfix/discard +file path=usr/libexec/postfix/dnsblog +file path=usr/libexec/postfix/error +file path=usr/libexec/postfix/flush +file path=usr/libexec/postfix/lmtp +file path=usr/libexec/postfix/local +file path=usr/libexec/postfix/main.cf +file path=usr/libexec/postfix/master +file path=usr/libexec/postfix/master.cf +file path=usr/libexec/postfix/nqmgr +file path=usr/libexec/postfix/oqmgr +file path=usr/libexec/postfix/pickup +file path=usr/libexec/postfix/pipe +file path=usr/libexec/postfix/post-install +file path=usr/libexec/postfix/postfix-files +file path=usr/libexec/postfix/postfix-script +file path=usr/libexec/postfix/postfix-wrapper +file path=usr/libexec/postfix/postmulti-script +file path=usr/libexec/postfix/postscreen +file path=usr/libexec/postfix/proxymap +file path=usr/libexec/postfix/qmqpd +file path=usr/libexec/postfix/scache +file path=usr/libexec/postfix/showq +file path=usr/libexec/postfix/smtpd +file path=usr/libexec/postfix/spawn +file path=usr/libexec/postfix/tlsmgr +file path=usr/libexec/postfix/tlsproxy +file path=usr/libexec/postfix/trivial-rewrite +file path=usr/libexec/postfix/verify +file path=usr/libexec/postfix/virtual +file path=usr/sbin/postalias +file path=usr/sbin/postcat +file path=usr/sbin/postconf +file path=usr/sbin/postdrop +file path=usr/sbin/postfix +file path=usr/sbin/postkick +file path=usr/sbin/postlock +file path=usr/sbin/postlog +file path=usr/sbin/postmap +file path=usr/sbin/postmulti +file path=usr/sbin/postqueue +file path=usr/sbin/postsuper +file path=usr/share/man/man1/mailq.1 +file path=usr/share/man/man1/newaliases.1 +file path=usr/share/man/man1/postalias.1 +file path=usr/share/man/man1/postcat.1 +file path=usr/share/man/man1/postconf.1 +file path=usr/share/man/man1/postdrop.1 +file path=usr/share/man/man1/postfix.1 +file path=usr/share/man/man1/postkick.1 +file path=usr/share/man/man1/postlock.1 +file path=usr/share/man/man1/postlog.1 +file path=usr/share/man/man1/postmap.1 +file path=usr/share/man/man1/postmulti.1 +file path=usr/share/man/man1/postqueue.1 +file path=usr/share/man/man1/postsuper.1 +file path=usr/share/man/man1/sendmail.1 +file path=usr/share/man/man5/access.5 +file path=usr/share/man/man5/aliases.5 +file path=usr/share/man/man5/body_checks.5 +file path=usr/share/man/man5/bounce.5 +file path=usr/share/man/man5/canonical.5 +file path=usr/share/man/man5/cidr_table.5 +file path=usr/share/man/man5/generic.5 +file path=usr/share/man/man5/header_checks.5 +file path=usr/share/man/man5/ldap_table.5 +file path=usr/share/man/man5/master.5 +file path=usr/share/man/man5/mysql_table.5 +file path=usr/share/man/man5/nisplus_table.5 +file path=usr/share/man/man5/pcre_table.5 +file path=usr/share/man/man5/pgsql_table.5 +file path=usr/share/man/man5/postconf.5 +file path=usr/share/man/man5/postfix-wrapper.5 +file path=usr/share/man/man5/regexp_table.5 +file path=usr/share/man/man5/relocated.5 +file path=usr/share/man/man5/sqlite_table.5 +file path=usr/share/man/man5/tcp_table.5 +file path=usr/share/man/man5/transport.5 +file path=usr/share/man/man5/virtual.5 +file path=usr/share/man/man8/anvil.8 +file path=usr/share/man/man8/bounce.8 +file path=usr/share/man/man8/cleanup.8 +file path=usr/share/man/man8/defer.8 +file path=usr/share/man/man8/discard.8 +file path=usr/share/man/man8/dnsblog.8 +file path=usr/share/man/man8/error.8 +file path=usr/share/man/man8/flush.8 +file path=usr/share/man/man8/lmtp.8 +file path=usr/share/man/man8/local.8 +file path=usr/share/man/man8/master.8 +file path=usr/share/man/man8/oqmgr.8 +file path=usr/share/man/man8/pickup.8 +file path=usr/share/man/man8/pipe.8 +file path=usr/share/man/man8/postscreen.8 +file path=usr/share/man/man8/proxymap.8 +file path=usr/share/man/man8/qmgr.8 +file path=usr/share/man/man8/qmqpd.8 +file path=usr/share/man/man8/scache.8 +file path=usr/share/man/man8/showq.8 +file path=usr/share/man/man8/smtp.8 +file path=usr/share/man/man8/smtpd.8 +file path=usr/share/man/man8/spawn.8 +file path=usr/share/man/man8/tlsmgr.8 +file path=usr/share/man/man8/tlsproxy.8 +file path=usr/share/man/man8/trace.8 +file path=usr/share/man/man8/trivial-rewrite.8 +file path=usr/share/man/man8/verify.8 +file path=usr/share/man/man8/virtual.8 +hardlink path=usr/libexec/postfix/qmgr target=nqmgr +hardlink path=usr/libexec/postfix/smtp target=lmtp +link path=usr/bin/mailq target=../../usr/lib/sendmail +link path=usr/bin/newaliases target=../../usr/lib/sendmail +user ftpuser=false gcos-field="Postfix user" group=other group-list=mail home-dir=/var/spool/postfix login-shell=/bin/true uid=161 username=postfix