|
|
ldap? ( >=net-nds/openldap-2.0.25 ) | ldap? ( >=net-nds/openldap-2.0.25 ) |
mysql? ( >=dev-db/mysql-3.23.51 ) | mysql? ( >=dev-db/mysql-3.23.51 ) |
postgres? ( >=dev-db/postgresql-7.2 ) | postgres? ( >=dev-db/postgresql-7.2 ) |
pam? ( >=sys-libs/pam-0.75 ) |
pam? ( virtual/pam ) |
ssl? ( >=dev-libs/openssl-0.9.6d ) | ssl? ( >=dev-libs/openssl-0.9.6d ) |
kerberos? ( virtual/krb5 ) | kerberos? ( virtual/krb5 ) |
authdaemond? ( | authdaemond? ( |
|
|
sed -e '/define DEFAULT_REMOTE_SERVICE/s:imap:imap2:' \ | sed -e '/define DEFAULT_REMOTE_SERVICE/s:imap:imap2:' \ |
-i saslauthd/auth_rimap.c || die "sed failed" | -i saslauthd/auth_rimap.c || die "sed failed" |
| |
# DB4 detection and versioned symbols. |
|
# Fixed upstream. |
|
# epatch "${FILESDIR}/cyrus-sasl-2.1.18-db4.patch" |
|
|
|
# Add configdir support. | # Add configdir support. |
epatch "${FILESDIR}/${P}-configdir.patch" | epatch "${FILESDIR}/${P}-configdir.patch" |
| |
# Fix include path for newer PostgreSQL versions. | # Fix include path for newer PostgreSQL versions. |
epatch "${FILESDIR}/cyrus-sasl-2.1.17-pgsql-include.patch" | epatch "${FILESDIR}/cyrus-sasl-2.1.17-pgsql-include.patch" |
| |
# Add setuid/setgid check for SASL_PATH |
|
# Fixed upstream. |
|
# epatch "${FILESDIR}/${P}-sasl-path-fix.patch" |
|
|
|
# Fix for gcc-4.0 | # Fix for gcc-4.0 |
epatch "${FILESDIR}/${P}-gcc4.patch" | epatch "${FILESDIR}/${P}-gcc4.patch" |
| |
|
|
docinto saslauthd | docinto saslauthd |
dodoc saslauthd/{AUTHORS,COPYING,ChangeLog,LDAP_SASLAUTHD,NEWS,README} | dodoc saslauthd/{AUTHORS,COPYING,ChangeLog,LDAP_SASLAUTHD,NEWS,README} |
| |
if use pam ; then |
newpamd "${FILESDIR}/saslauthd.pam-include" saslauthd |
insinto /etc/pam.d |
|
newins "${FILESDIR}/saslauthd.pam" saslauthd |
|
fi |
|
| |
exeinto /etc/init.d |
newinitd "${FILESDIR}/pwcheck.rc6" pwcheck || \ |
newexe "${FILESDIR}/pwcheck.rc6" pwcheck || \ |
die "failed to install pwdcheck to /etc/init.d" |
die "failed to \"newexe\" pwdcheck to /etc/init.d" |
newinitd "${FILESDIR}/saslauthd2.rc6" saslauthd || \ |
newexe "${FILESDIR}/saslauthd2.rc6" saslauthd || \ |
die "failed to install saslauthd to /etc/init.d" |
die "failed to \"newexe\" saslauthd to /etc/init.d" |
|
insinto /etc/conf.d |
newconfd "${FILESDIR}/saslauthd-${PV}.conf" saslauthd || \ |
newins "${FILESDIR}/saslauthd-${PV}.conf" saslauthd || \ |
|
die "failed to install /etc/conf/saslauthd." | die "failed to install /etc/conf/saslauthd." |
|
|
exeinto ${ROOT}/usr/sbin | exeinto ${ROOT}/usr/sbin |
newexe "${S}/saslauthd/testsaslauthd" testsaslauthd || \ | newexe "${S}/saslauthd/testsaslauthd" testsaslauthd || \ |
die "failed to install testsaslauthd." | die "failed to install testsaslauthd." |