2011-03-06 22:10:31 +08:00
|
|
|
#
|
|
|
|
# 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>
|
|
|
|
|
2010-05-18 22:39:29 +08:00
|
|
|
pkgname=postfix
|
2012-10-22 00:44:36 +08:00
|
|
|
pkgver=2.9.4
|
2010-10-09 09:35:53 +08:00
|
|
|
pkgrel=1
|
2011-09-14 00:24:27 +08:00
|
|
|
pkgdesc='Secure, fast, easy to administer alternative to Sendmail'
|
|
|
|
url='http://www.postfix.org/'
|
2010-05-18 22:39:29 +08:00
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
license=('custom')
|
2011-09-14 00:24:27 +08:00
|
|
|
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})
|
2010-05-18 22:39:29 +08:00
|
|
|
provides=('smtp-server' 'smtp-forwarder')
|
|
|
|
replaces=('postfix-mysql' 'postfix-pgsql')
|
|
|
|
conflicts=('postfix-mysql' 'postfix-pgsql' 'smtp-server' 'smtp-forwarder')
|
2012-10-22 00:44:36 +08:00
|
|
|
install=$pkgname.install
|
|
|
|
source=("ftp://ftp.porcupine.org/mirrors/postfix-release/official/${pkgname}-${pkgver}.tar.gz"
|
|
|
|
'aliases.patch'
|
|
|
|
'postfix.service')
|
|
|
|
sha256sums=('58343afcc727594cc1f9a3980562d8199aa55fc2cf2330da6b9ddfbf31502679'
|
|
|
|
'f4c766efc20b4638f9fd72707ca6d4c2628279ebd79f5227276fa4ca6867c336'
|
|
|
|
'f73f0fb12fb46cdc1b7afbfd184e0dcbd63ff6ca91f0d996a40fe184c6ab26cb')
|
2010-05-18 22:39:29 +08:00
|
|
|
|
|
|
|
build() {
|
2011-09-14 00:24:27 +08:00
|
|
|
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}"
|
2010-05-18 22:39:29 +08:00
|
|
|
|
|
|
|
sh postfix-install -non-interactive \
|
|
|
|
install_root="${pkgdir}" \
|
|
|
|
daemon_directory="/usr/lib/${pkgname}" \
|
|
|
|
sample_directory="/etc/${pkgname}/sample" \
|
2012-10-22 00:44:36 +08:00
|
|
|
manpage_directory="/usr/share/man" \
|
|
|
|
readme_directory="/usr/share/doc/${pkgname}"
|
2010-05-18 22:39:29 +08:00
|
|
|
|
2012-10-22 00:44:36 +08:00
|
|
|
install -Dm644 "${srcdir}/${pkgname}.service" "${pkgdir}/usr/lib/systemd/system/${pkgname}.service"
|
2011-09-14 00:24:27 +08:00
|
|
|
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
2010-05-18 22:39:29 +08:00
|
|
|
|
2011-09-14 00:24:27 +08:00
|
|
|
cd "${pkgdir}"
|
|
|
|
patch -p0 < "${srcdir}"/aliases.patch
|
2012-10-22 00:44:36 +08:00
|
|
|
sed 's/^\(\$manpage[^:]*\):/\1.gz:/' -i "usr/lib/${pkgname}/postfix-files"
|
2010-05-18 22:39:29 +08:00
|
|
|
}
|