Added cyrus-sasl-2.1.23 build template.
--HG-- extra : convert_revision : cd7571b0e341f27eb60fd91525bdfa1a71a51fae
This commit is contained in:
parent
55fcdb3fc2
commit
ee39e4c87b
10 changed files with 150 additions and 0 deletions
1
srcpkgs/cyrus-sasl-modules
Symbolic link
1
srcpkgs/cyrus-sasl-modules
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
cyrus-sasl
|
1
srcpkgs/cyrus-sasl-modules-ldap
Symbolic link
1
srcpkgs/cyrus-sasl-modules-ldap
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
cyrus-sasl
|
1
srcpkgs/cyrus-sasl-modules-sql
Symbolic link
1
srcpkgs/cyrus-sasl-modules-sql
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
cyrus-sasl
|
17
srcpkgs/cyrus-sasl/cyrus-sasl-modules-ldap.template
Normal file
17
srcpkgs/cyrus-sasl/cyrus-sasl-modules-ldap.template
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
# Template file for 'cyrus-sasl-modules-ldap'.
|
||||||
|
#
|
||||||
|
short_desc="Cyrus SASL - pluggable authentication modules (LDAP)"
|
||||||
|
long_desc="
|
||||||
|
This is the Cyrus SASL API implementation, version 2.1. See package
|
||||||
|
libsasl and RFC 2222 for more information.
|
||||||
|
|
||||||
|
This package provides the LDAP plugin."
|
||||||
|
|
||||||
|
Add_dependency run glibc
|
||||||
|
Add_dependency run libldap
|
||||||
|
|
||||||
|
do_install()
|
||||||
|
{
|
||||||
|
mkdir -p ${DESTDIR}/usr/lib/sasl2
|
||||||
|
mv ${SRCPKGDESTDIR}/usr/lib/sasl2/libldapdb.* ${DESTDIR}/usr/lib/sasl2
|
||||||
|
}
|
18
srcpkgs/cyrus-sasl/cyrus-sasl-modules-sql.template
Normal file
18
srcpkgs/cyrus-sasl/cyrus-sasl-modules-sql.template
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
# Template file for 'cyrus-sasl-modules-sql'.
|
||||||
|
#
|
||||||
|
short_desc="Cyrus SASL - pluggable authentication modules (SQL)"
|
||||||
|
long_desc="
|
||||||
|
This is the Cyrus SASL API implementation, version 2.1. See package
|
||||||
|
libsasl and RFC 2222 for more information.
|
||||||
|
|
||||||
|
This package provides the SQL plugin, which supports MySQL and PostgreSQL."
|
||||||
|
|
||||||
|
Add_dependency run glibc
|
||||||
|
Add_dependency run libmysqlclient
|
||||||
|
Add_dependency run postgresql-libs
|
||||||
|
|
||||||
|
do_install()
|
||||||
|
{
|
||||||
|
mkdir -p ${DESTDIR}/usr/lib/sasl2
|
||||||
|
mv ${SRCPKGDESTDIR}/usr/lib/sasl2/libsql.* ${DESTDIR}/usr/lib/sasl2
|
||||||
|
}
|
20
srcpkgs/cyrus-sasl/cyrus-sasl-modules.template
Normal file
20
srcpkgs/cyrus-sasl/cyrus-sasl-modules.template
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
# Template file for 'cyrus-sasl-plugins'.
|
||||||
|
#
|
||||||
|
short_desc="Cyrus SASL - pluggable authentication modules"
|
||||||
|
long_desc="
|
||||||
|
This is the Cyrus SASL API implementation, version 2.1. See package
|
||||||
|
libsasl and RFC 2222 for more information.
|
||||||
|
|
||||||
|
This package provides the following SASL modules: LOGIN, PLAIN, ANONYMOUS,
|
||||||
|
NTLM, CRAM-MD5, and DIGEST-MD5 (with DES support)."
|
||||||
|
|
||||||
|
Add_dependency run glibc
|
||||||
|
Add_dependency run openssl
|
||||||
|
Add_dependency run mit-krb5-libs
|
||||||
|
Add_dependency run e2fsprogs-libs
|
||||||
|
|
||||||
|
do_install()
|
||||||
|
{
|
||||||
|
mkdir -p ${DESTDIR}/usr/lib
|
||||||
|
mv ${SRCPKGDESTDIR}/usr/lib/sasl2 ${DESTDIR}/usr/lib
|
||||||
|
}
|
3
srcpkgs/cyrus-sasl/files/saslauthd.confd
Normal file
3
srcpkgs/cyrus-sasl/files/saslauthd.confd
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
# Configuration file for Cyrus-SASL daemon.
|
||||||
|
#
|
||||||
|
SASLAUTHD_ARGS="-m /var/run/saslauthd -a pam"
|
9
srcpkgs/cyrus-sasl/files/saslauthd.rc
Normal file
9
srcpkgs/cyrus-sasl/files/saslauthd.rc
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
#!/sbin/runscript
|
||||||
|
|
||||||
|
command=/usr/sbin/saslauthd
|
||||||
|
command_args="${SASLAUTHD_ARGS}"
|
||||||
|
|
||||||
|
depend()
|
||||||
|
{
|
||||||
|
need net
|
||||||
|
}
|
24
srcpkgs/cyrus-sasl/patches/cyrus-sasl-2.1.22-gcc44.patch
Normal file
24
srcpkgs/cyrus-sasl/patches/cyrus-sasl-2.1.22-gcc44.patch
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
fix warnings with gcc-4.4
|
||||||
|
|
||||||
|
http://bugs.gentoo.org/248738
|
||||||
|
|
||||||
|
--- plugins/digestmd5.c
|
||||||
|
+++ plugins/digestmd5.c
|
||||||
|
@@ -2715,7 +2715,7 @@ static sasl_server_plug_t digestmd5_serv
|
||||||
|
"DIGEST-MD5", /* mech_name */
|
||||||
|
#ifdef WITH_RC4
|
||||||
|
128, /* max_ssf */
|
||||||
|
-#elif WITH_DES
|
||||||
|
+#elif defined(WITH_DES)
|
||||||
|
112,
|
||||||
|
#else
|
||||||
|
1,
|
||||||
|
@@ -4034,7 +4034,7 @@ static sasl_client_plug_t digestmd5_clie
|
||||||
|
"DIGEST-MD5",
|
||||||
|
#ifdef WITH_RC4 /* mech_name */
|
||||||
|
128, /* max ssf */
|
||||||
|
-#elif WITH_DES
|
||||||
|
+#elif defined(WITH_DES)
|
||||||
|
112,
|
||||||
|
#else
|
||||||
|
1,
|
56
srcpkgs/cyrus-sasl/template
Normal file
56
srcpkgs/cyrus-sasl/template
Normal file
|
@ -0,0 +1,56 @@
|
||||||
|
# Template file for 'cyrus-sasl'
|
||||||
|
. ${XBPS_SRCPKGDIR}/libsasl/template
|
||||||
|
|
||||||
|
# Unset some unneeded stuff.
|
||||||
|
unset run_depends build_depends
|
||||||
|
|
||||||
|
pkgname=cyrus-sasl
|
||||||
|
configure_args="--with-saslauthd=/var/run/saslauthd
|
||||||
|
--enable-login --enable-plain --enable-sql --disable-sqlite
|
||||||
|
--enable-postgresql --enable-mysql --enable-ldapdb --with-ldap=/usr"
|
||||||
|
short_desc="Cyrus SASL - auth daemon and administration tools"
|
||||||
|
long_desc="${long_desc}
|
||||||
|
|
||||||
|
This package includes the Cyrus SASL authentication daemon and administration
|
||||||
|
programs for the SASL users database and common binary files for plugin
|
||||||
|
modules."
|
||||||
|
|
||||||
|
keep_empty_dirs=yes
|
||||||
|
subpackages="${pkgname}-modules-ldap ${pkgname}-modules-sql ${pkgname}-modules"
|
||||||
|
openrc_services="saslauthd default off"
|
||||||
|
conf_files="/etc/conf.d/saslauthd"
|
||||||
|
|
||||||
|
Add_dependency run glibc
|
||||||
|
Add_dependency run db
|
||||||
|
Add_dependency run libsasl
|
||||||
|
Add_dependency run libldap
|
||||||
|
Add_dependency run mit-krb5-libs
|
||||||
|
Add_dependency run e2fsprogs-libs
|
||||||
|
Add_dependency run pam
|
||||||
|
Add_dependency run openssl
|
||||||
|
Add_dependency run cyrus-sasl-modules
|
||||||
|
|
||||||
|
Add_dependency build libsasl-devel
|
||||||
|
Add_dependency build libldap-devel
|
||||||
|
Add_dependency build mit-krb5-devel
|
||||||
|
Add_dependency build e2fsprogs-devel
|
||||||
|
Add_dependency build pam-devel
|
||||||
|
Add_dependency build openssl-devel
|
||||||
|
Add_dependency build postgresql-libs-devel
|
||||||
|
Add_dependency build libmysqlclient-devel
|
||||||
|
|
||||||
|
post_install()
|
||||||
|
{
|
||||||
|
# Remove stuff in libsasl{,-devel} pkgs.
|
||||||
|
rm -rf ${DESTDIR}/usr/share/man/man3
|
||||||
|
rm -rf ${DESTDIR}/usr/include
|
||||||
|
rm -f ${DESTDIR}/usr/lib/libsasl*
|
||||||
|
rm -rf ${DESTDIR}/usr/lib/sasl2/libsasldb*
|
||||||
|
|
||||||
|
# Install OpenRC service.
|
||||||
|
install -d ${DESTDIR}/var/run/saslauthd
|
||||||
|
install -D -m755 ${FILESDIR}/saslauthd.rc \
|
||||||
|
${DESTDIR}/etc/init.d/saslauthd
|
||||||
|
install -D -m755 ${FILESDIR}/saslauthd.confd \
|
||||||
|
${DESTDIR}/etc/conf.d/saslauthd
|
||||||
|
}
|
Loading…
Reference in a new issue