[COPY] --- T2-COPYRIGHT-BEGIN --- [COPY] t2/package/*/postfix/postfix.desc [COPY] Copyright (C) 2004 - 2025 The T2 SDE Project [COPY] Copyright (C) 1998 - 2003 ROCK Linux Project [COPY] SPDX-License-Identifier: GPL-2.0 [COPY] --- T2-COPYRIGHT-END --- [I] It is an alternative to the widely-used Sendmail program [T] Postfix attempts to be fast, easy to administer, and secure, while at [T] the same time being sendmail compatible enough to not upset existing [T] users. Thus, the outside has a sendmail-ish flavor, but the inside is [T] completely different. [U] https://www.postfix.org/ [A] Wietse Zweitze Venema {Mailing List} [M] The T2 Project [C] extra/server [F] JAIL MTA [L] OpenSource [S] Stable [V] 3.10.2 [P] X -----5---9 126.900 [D] c3439b3590cf4893829126303e0f5ca5b194913051b4e2d93c62f193 postfix-3.10.2.tar.gz http://ftp.porcupine.org/mirrors/postfix-release/official/ runconf=0 makeinstopt= pkg_postfix_premake() { pkginstalled cyrus-sasl2 && { var_append CCARGS ' ' "-DUSE_SASL_AUTH -I$(pkgprefix includedir cyrus-sasl2)" var_append AUXLIBS ' ' "-L$(pkgprefix libdir cyrus-sasl2) -lsasl2" } pkginstalled openldap && { var_append CCARGS ' ' "-DHAS_LDAP -I$(pkgprefix includedir openldap)" var_append AUXLIBS ' ' "-L$(pkgprefix libdir openldap) -lldap -llber" } pkginstalled mysql && { var_append CCARGS ' ' "-DHAS_MYSQL -I$(pkgprefix includedir mysql)/mysql -R$(pkgprefix libdir mysql)/mysql" var_append AUXLIBS ' ' "-L$(pkgprefix libdir mysql)/mysql -lmysqlclient -lz -lm" var_append LD_RUN_PATH ':' "$(pkgprefix libdir mysql)/mysql" export LD_RUN_PATH } pkginstalled openssl && { var_append CCARGS ' ' "-DHAS_SSL -I$(pkgprefix includedir openssl)" var_append AUXLIBS ' ' "-L$(pkgprefix libdir openssl) -lssl -lcrypto" } export CCARGS export AUXLIBS $MAKE -f Makefile.init makefiles } hook_add premake 5 pkg_postfix_premake pkg_postfix_inmake() { chmod +x postfix-install # Due to the compare and remove operation in the install file we really # need to really modify the config and the filenames - the # INSTALL_WRAPPER can not be used. sed -i -e "s,man1/mailq.1,man1/mailq_postfix.1," \ -e "s,man1/newaliases.1,man1/newaliases_postfix.1," \ -e "s,man5/aliases.5,man5/aliases_postfix.5," \ conf/postfix-files mv man/man5/aliases{,_postfix}.5 mv man/man1/newaliases{,_postfix}.1 mv man/man1/mailq{,_postfix}.1 } hook_add inmake 5 pkg_postfix_inmake pkg_postfix_postmake() { ./postfix-install -non-interactive \ sendmail_path=$sbindir/sendmail_postfix \ newaliases_path=$bindir/newaliases_postfix \ mailq_path=$bindir/mailq_postfix \ install_root=$root \ manpage_directory=$mandir \ sample_directory=$docdir \ readme_directory=$docdir install_setmailer postfix } hook_add postmake 5 "pkg_postfix_postmake"