postfix: update 2.10.2.
This commit is contained in:
parent
53e7e08da9
commit
1267be2014
2 changed files with 32 additions and 17 deletions
|
@ -1,14 +1,14 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Postfix Mail Transport Agent
|
Description=Postfix Mail Transport Agent
|
||||||
After=syslog.target network.target
|
After=network.target
|
||||||
Conflicts=sendmail.service exim.service
|
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=forking
|
||||||
PIDFile=/var/spool/postfix/pid/master.pid
|
PIDFile=/var/spool/postfix/pid/master.pid
|
||||||
ExecStart=/usr/sbin/postfix start
|
ExecStart=/usr/bin/postfix start
|
||||||
ExecReload=/usr/sbin/postfix reload
|
ExecStop=/usr/bin/postfix stop
|
||||||
ExecStop=/usr/sbin/postfix stop
|
ExecReload=/usr/bin/postfix reload
|
||||||
|
Restart=always
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
|
@ -1,18 +1,23 @@
|
||||||
# Template file for 'postfix'
|
# Template file for 'postfix'
|
||||||
pkgname=postfix
|
pkgname=postfix
|
||||||
version=2.10.0
|
version=2.10.2
|
||||||
revision=2
|
revision=1
|
||||||
short_desc="High-performance mail transport agent"
|
short_desc="High-performance mail transport agent"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
license="IBM Public License 1.0, BSD-alike"
|
license="IBM Public License 1.0, BSD-alike"
|
||||||
homepage="http://www.postfix.org/"
|
homepage="http://www.postfix.org/"
|
||||||
distfiles="ftp://ftp.porcupine.org/mirrors/postfix-release/official/$pkgname-$version.tar.gz"
|
distfiles="ftp://ftp.porcupine.org/mirrors/postfix-release/official/$pkgname-$version.tar.gz"
|
||||||
checksum=4a42a6029af418cbd4a8668b4f8c7e1ea9975cbe9756df760649c0a941bfeb7b
|
checksum=f1a735a5a9ffeac8fca59046c437c3b76e7f923fb4249db2a55b2bff0306ddd4
|
||||||
|
|
||||||
hostmakedepends="perl"
|
hostmakedepends="perl"
|
||||||
makedepends="openssl-devel db-devel>=5.3 pcre-devel>=8.30 libsasl-devel
|
makedepends="openssl-devel db-devel>=5.3 pcre-devel>=8.30 libsasl-devel
|
||||||
libldap-devel libmysqlclient-devel>=5.5.27 postgresql-libs-devel sqlite-devel"
|
libldap-devel libmysqlclient-devel>=5.5.27 postgresql-libs-devel sqlite-devel"
|
||||||
|
|
||||||
|
if [ "$CROSS_BUILD" ]; then
|
||||||
|
# XXX postfix-install needs native binaries.
|
||||||
|
hostmakedepends+=" ${pkgname}>=2.10.2"
|
||||||
|
fi
|
||||||
|
|
||||||
do_build() {
|
do_build() {
|
||||||
make makefiles DEBUG='' CCARGS=' \
|
make makefiles DEBUG='' CCARGS=' \
|
||||||
-DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl \
|
-DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl \
|
||||||
|
@ -21,6 +26,11 @@ do_build() {
|
||||||
-DHAS_MYSQL -I/usr/include/mysql \
|
-DHAS_MYSQL -I/usr/include/mysql \
|
||||||
-DHAS_PGSQL -I/usr/include/postgresql \
|
-DHAS_PGSQL -I/usr/include/postgresql \
|
||||||
-DHAS_SQLITE \
|
-DHAS_SQLITE \
|
||||||
|
-DDEF_COMMAND_DIR=\"/usr/bin\" \
|
||||||
|
-DDEF_SENDMAIL_PATH=\"/usr/bin/sendmail\" \
|
||||||
|
-DDEF_README_DIR=\"/usr/share/doc/postfix\" \
|
||||||
|
-DDEF_SAMPLE_DIR=\"/usr/share/examples/postfix/\" \
|
||||||
|
-DDEF_MANPAGE_DIR=\"/usr/share/man\" \
|
||||||
' AUXLIBS=' \
|
' AUXLIBS=' \
|
||||||
-lsasl2 \
|
-lsasl2 \
|
||||||
-lldap -llber \
|
-lldap -llber \
|
||||||
|
@ -30,22 +40,27 @@ do_build() {
|
||||||
-lsqlite3 -lpthread \
|
-lsqlite3 -lpthread \
|
||||||
' OPT="${CFLAGS} ${LDFLAGS}"
|
' OPT="${CFLAGS} ${LDFLAGS}"
|
||||||
|
|
||||||
|
if [ "$CROSS_BUILD" ]; then
|
||||||
|
sed -e "s,/usr/include,${XBPS_CROSS_BASE}/usr/include,g" -i Makefile
|
||||||
|
fi
|
||||||
make ${makejobs}
|
make ${makejobs}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pre_install() {
|
||||||
|
if [ "$CROSS_BUILD" ]; then
|
||||||
|
sed -e 's,bin/postconf,/usr/bin/postconf,g' -i postfix-install
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
sh postfix-install -non-interactive \
|
sh postfix-install -non-interactive install_root=${DESTDIR}
|
||||||
install_root="${DESTDIR}" \
|
|
||||||
daemon_directory="/usr/lib/${pkgname}" \
|
|
||||||
sample_directory="/etc/${pkgname}/sample" \
|
|
||||||
manpage_directory="/usr/share/man"
|
|
||||||
|
|
||||||
vinstall LICENSE 644 usr/share/licenses/${pkgname}
|
vinstall LICENSE 644 usr/share/licenses/${pkgname}
|
||||||
vinstall TLS_LICENSE 644 usr/share/licenses/${pkgname}
|
vinstall TLS_LICENSE 644 usr/share/licenses/${pkgname}
|
||||||
|
|
||||||
sed 's/\(^\$manpage[^:]*\):/\1.gz:/' -i \
|
cd $DESTDIR
|
||||||
${DESTDIR}/usr/lib/${pkgname}/postfix-files
|
sed 's/\(^\$manpage[^:]*\):/\1.gz:/' -i usr/libexec/${pkgname}/postfix-files
|
||||||
cd ${DESTDIR}; patch -p0 -i ${FILESDIR}/aliases.patch
|
patch -p0 -i ${FILESDIR}/aliases.patch
|
||||||
|
|
||||||
# Remove unused stuff.
|
# Remove unused stuff.
|
||||||
rm -f ${DESTDIR}/etc/postfix/*LICENSE
|
rm -f ${DESTDIR}/etc/postfix/*LICENSE
|
||||||
|
@ -72,7 +87,7 @@ postfix_package() {
|
||||||
system_accounts="postfix"
|
system_accounts="postfix"
|
||||||
postfix_homedir="/var/spool/postfix"
|
postfix_homedir="/var/spool/postfix"
|
||||||
system_groups="postdrop"
|
system_groups="postdrop"
|
||||||
provides="smtp-server-0"
|
provides="smtp-server-0_1"
|
||||||
replaces="smtp-server>=0"
|
replaces="smtp-server>=0"
|
||||||
make_dirs="
|
make_dirs="
|
||||||
/var/lib/postfix 0750 postfix root
|
/var/lib/postfix 0750 postfix root
|
||||||
|
|
Loading…
Reference in a new issue