mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-05 06:27:14 +08:00
66 lines
1.9 KiB
Bash
66 lines
1.9 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.5
|
|
pkgrel=1
|
|
pkgdesc='Secure, fast, easy to administer alternative to Sendmail'
|
|
url='http://www.postfix.org/'
|
|
arch=('i686' 'x86_64')
|
|
license=('custom')
|
|
depends=('pcre' 'libsasl' 'libmysqlclient' 'postgresql-libs' 'sqlite3' 'libldap' 'db')
|
|
backup=('etc/postfix/'{access,aliases,canonical,generic,header_checks,main.cf,master.cf,relocated,transport,virtual})
|
|
source=("ftp://ftp.porcupine.org/mirrors/postfix-release/official/${pkgname}-${pkgver}.tar.gz" \
|
|
'aliases.patch' \
|
|
'rc.d')
|
|
sha1sums=('49ef711c80b5a3434258ab24ae00940932503e80'
|
|
'5fc3de6c7df1e5851a0a379e825148868808318b'
|
|
'40c6be2eb55e6437a402f43775cdb3d22ea87a66')
|
|
|
|
provides=('smtp-server' 'smtp-forwarder')
|
|
replaces=('postfix-mysql' 'postfix-pgsql')
|
|
conflicts=('postfix-mysql' 'postfix-pgsql' 'smtp-server' 'smtp-forwarder')
|
|
|
|
install=postfix.install
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
make makefiles DEBUG='' CCARGS=' \
|
|
-DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl \
|
|
-DHAS_LDAP \
|
|
-DUSE_TLS \
|
|
-DHAS_MYSQL -I/usr/include/mysql \
|
|
-DHAS_PGSQL -I/usr/include/postgresql \
|
|
-DHAS_SQLITE \
|
|
' AUXLIBS=' \
|
|
-lsasl2 \
|
|
-lldap -llber \
|
|
-lssl -lcrypto \
|
|
-lmysqlclient -lz -lm \
|
|
-lpq \
|
|
-lsqlite3 -lpthread \
|
|
' OPT="${CFLAGS} ${LDFLAGS}"
|
|
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
sh postfix-install -non-interactive \
|
|
install_root="${pkgdir}" \
|
|
daemon_directory="/usr/lib/${pkgname}" \
|
|
sample_directory="/etc/${pkgname}/sample" \
|
|
manpage_directory="/usr/share/man"
|
|
|
|
install -D -m755 ../rc.d "${pkgdir}/etc/rc.d/${pkgname}"
|
|
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
|
|
cd "${pkgdir}"
|
|
patch -p0 < "${srcdir}"/aliases.patch
|
|
}
|