mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 17:57:13 +08:00
59 lines
2.0 KiB
Bash
59 lines
2.0 KiB
Bash
#
|
|
# Chakra Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
pkgname=postfix
|
|
pkgver=2.8.3
|
|
pkgrel=1
|
|
pkgdesc="Secure, fast, easy to administer drop in replacement for Sendmail (MTA)"
|
|
arch=('i686' 'x86_64')
|
|
license=('custom')
|
|
depends=('pcre' 'libsasl' 'libmysqlclient' 'postgresql-libs>=8.4' 'libldap>=2.4' 'db>=4.8')
|
|
backup=(etc/postfix/aliases etc/postfix/virtual etc/postfix/relocated \
|
|
etc/postfix/access etc/postfix/header_checks etc/postfix/transport \
|
|
etc/postfix/generic etc/postfix/canonical \
|
|
etc/postfix/main.cf etc/postfix/master.cf)
|
|
install="${pkgname}.install"
|
|
provides=('smtp-server' 'smtp-forwarder')
|
|
replaces=('postfix-mysql' 'postfix-pgsql')
|
|
conflicts=('postfix-mysql' 'postfix-pgsql' 'smtp-server' 'smtp-forwarder')
|
|
url="http://www.postfix.org/"
|
|
source=(ftp://ftp.porcupine.org/mirrors/postfix-release/official/${pkgname}-${pkgver}.tar.gz \
|
|
${pkgname}.patch.bz2 \
|
|
${pkgname})
|
|
md5sums=('b3922ededd3fd6051f759e58a4ada3ae'
|
|
'a3c45ff23ef036143711793fcf2478c3'
|
|
'c847b96f08925f08b0f610468a8e21f6')
|
|
|
|
build() {
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
|
|
|
make makefiles \
|
|
CCARGS="-DUSE_SASL_AUTH -I/usr/include/sasl \
|
|
-DUSE_CYRUS_SASL \
|
|
-DHAS_LDAP \
|
|
-DUSE_TLS \
|
|
-DHAS_MYSQL -I/usr/include/mysql \
|
|
-DHAS_PGSQL -I/usr/include/postgresql" \
|
|
AUXLIBS="-lsasl2 -lssl -lcrypto -lldap -llber -lmysqlclient -lz -lm -lpq"
|
|
make OPT="${CFLAGS}" || return 1
|
|
|
|
sh postfix-install -non-interactive \
|
|
install_root="${pkgdir}" \
|
|
daemon_directory="/usr/lib/${pkgname}" \
|
|
sample_directory="/etc/${pkgname}/sample" \
|
|
manpage_directory="/usr/share/man"
|
|
|
|
cd ${pkgdir}
|
|
cat ${srcdir}/${pkgname}.patch |patch -Np0 || return 1
|
|
rm -f etc/${pkgname}/main.cf~
|
|
|
|
cd ${pkgdir}
|
|
mkdir etc/rc.d
|
|
install -m 0755 ${srcdir}/${pkgname} etc/rc.d/${pkgname}
|
|
|
|
install -Dm644 ${srcdir}/${pkgname}-${pkgver}/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
|
|
}
|