diff options
author | Maxim Koltsov <maksbotan@gentoo.org> | 2012-10-17 17:18:51 +0000 |
---|---|---|
committer | Maxim Koltsov <maksbotan@gentoo.org> | 2012-10-17 17:18:51 +0000 |
commit | 8e3316c665ace112ec20ae92dca0582d01d80270 (patch) | |
tree | 6c5d99ea13797b8b86e17edf1404fb4bde90002f /sys-auth/sssd | |
parent | Add ~amd64 (diff) | |
download | gentoo-2-8e3316c665ace112ec20ae92dca0582d01d80270.tar.gz gentoo-2-8e3316c665ace112ec20ae92dca0582d01d80270.tar.bz2 gentoo-2-8e3316c665ace112ec20ae92dca0582d01d80270.zip |
Bump to 1.9.2, thanks to slepnoga
(Portage version: 2.1.11.26/cvs/Linux x86_64)
Diffstat (limited to 'sys-auth/sssd')
-rw-r--r-- | sys-auth/sssd/ChangeLog | 10 | ||||
-rw-r--r-- | sys-auth/sssd/files/0001_add_pthread_to_fix_as-needed.patch | 36 | ||||
-rw-r--r-- | sys-auth/sssd/files/0002_allow_xdm_openrc.patch | 19 | ||||
-rw-r--r-- | sys-auth/sssd/metadata.xml | 4 | ||||
-rw-r--r-- | sys-auth/sssd/sssd-1.9.2.ebuild | 141 |
5 files changed, 208 insertions, 2 deletions
diff --git a/sys-auth/sssd/ChangeLog b/sys-auth/sssd/ChangeLog index 1eae19e2575b..ce7e28563150 100644 --- a/sys-auth/sssd/ChangeLog +++ b/sys-auth/sssd/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for sys-auth/sssd # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-auth/sssd/ChangeLog,v 1.26 2012/10/14 10:58:38 pinkbyte Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-auth/sssd/ChangeLog,v 1.27 2012/10/17 17:18:51 maksbotan Exp $ + +*sssd-1.9.2 (17 Oct 2012) + + 17 Oct 2012; Maxim Koltsov <maksbotan@gentoo.org> + +files/0001_add_pthread_to_fix_as-needed.patch, + +files/0002_allow_xdm_openrc.patch, +sssd-1.9.2.ebuild, metadata.xml: + Bump to 1.9.2, thanks to slepnoga *sssd-1.8.5 (14 Oct 2012) @@ -127,4 +134,3 @@ Add sssd-1.5.12, 1.6.0 is not yet considered ready by ebuild author. Thanks to slepnoga, bug #321875 - diff --git a/sys-auth/sssd/files/0001_add_pthread_to_fix_as-needed.patch b/sys-auth/sssd/files/0001_add_pthread_to_fix_as-needed.patch new file mode 100644 index 000000000000..00769a00597d --- /dev/null +++ b/sys-auth/sssd/files/0001_add_pthread_to_fix_as-needed.patch @@ -0,0 +1,36 @@ +diff --git a/Makefile.am b/Makefile.am +--- a/Makefile.am ++++ b/Makefile.am +@@ -313,7 +313,8 @@ + $(DHASH_LIBS) \ + $(SSS_CRYPT_LIBS) \ + $(OPENLDAP_LIBS) \ +- $(TDB_LIBS) ++ $(TDB_LIBS) \ ++ -lpthread + + PYTHON_BINDINGS_LIBS = \ + $(TALLOC_LIBS) \ +@@ -338,7 +339,8 @@ + $(COLLECTION_LIBS) \ + $(DHASH_LIBS) \ + $(OPENLDAP_LIBS) \ +- $(TDB_LIBS) ++ $(TDB_LIBS) \ ++ -lpthread + + if BUILD_SELINUX + PYTHON_BINDINGS_LIBS += $(SELINUX_LIBS) +diff --git a/configure.ac b/configure.ac +--- a/configure.ac ++++ b/configure.ac +@@ -18,7 +18,8 @@ + AM_PROG_CC_C_O + AC_DISABLE_STATIC + AC_PROG_INSTALL +-AC_PROG_LIBTOOL ++LT_INIT ++AM_PROG_AR + AC_CONFIG_MACRO_DIR([m4]) + AM_GNU_GETTEXT([external]) + AM_GNU_GETTEXT_VERSION([0.14]) diff --git a/sys-auth/sssd/files/0002_allow_xdm_openrc.patch b/sys-auth/sssd/files/0002_allow_xdm_openrc.patch new file mode 100644 index 000000000000..40d64cbf41ff --- /dev/null +++ b/sys-auth/sssd/files/0002_allow_xdm_openrc.patch @@ -0,0 +1,19 @@ +--- src/sysv/gentoo/sssd.old 2011-08-02 23:14:48.000000000 +0300 ++++ src/sysv/gentoo/sssd 2011-08-24 12:15:18.413929409 +0300 +@@ -1,13 +1,13 @@ + #!/sbin/runscript + + depend(){ +- need localmount netmount clock +- use syslog ++ need localmount netmount clock nscd ++ use syslog xdm + } + + start(){ + ebegin "Starting sssd" +- start-stop-daemon --start --exec /usr/sbin/sssd -- -D ++ start-stop-daemon --start --exec /usr/sbin/sssd -- -Df + eend ${?} + } + diff --git a/sys-auth/sssd/metadata.xml b/sys-auth/sssd/metadata.xml index e2c4b8363dfd..a03ba5b3c894 100644 --- a/sys-auth/sssd/metadata.xml +++ b/sys-auth/sssd/metadata.xml @@ -15,5 +15,9 @@ <flag name="glib">Use <pkg>dev-libs/glib</pkg> as UTF-8 string library</flag> <flag name="libunistring">Use <pkg>dev-libs/libunistring</pkg> as UTF-8 string library</flag> <flag name='netlink'>Add support for netlink protocol via <pkg>dev-libs/libnl</pkg></flag> + <flag name='manpages'>Build man pages with <pkg>dev-libs/libxslt</pkg></flag> + <flag name='autofs'>Build helper to let <pkg>net-fs/autofs</pkg> use sssd provided information</flag> + <flag name='ssh'>Build helper to let <pkg>net-misc/openssh</pkg> use sssd provided information</flag> + <flag name='sudo'>Build helper to let <pkg>app-admin/sudo</pkg> use sssd provided information</flag> </use> </pkgmetadata> diff --git a/sys-auth/sssd/sssd-1.9.2.ebuild b/sys-auth/sssd/sssd-1.9.2.ebuild new file mode 100644 index 000000000000..16f014f09037 --- /dev/null +++ b/sys-auth/sssd/sssd-1.9.2.ebuild @@ -0,0 +1,141 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-auth/sssd/sssd-1.9.2.ebuild,v 1.1 2012/10/17 17:18:51 maksbotan Exp $ + +EAPI=4 + +PYTHON_DEPEND="python? 2:2.6" + +AUTOTOOLS_IN_SOURCE_BUILD=1 +AUTOTOOLS_AUTORECONF=1 + +inherit python multilib pam linux-info autotools-utils + +DESCRIPTION="System Security Services Daemon provides access to identity and authentication" +HOMEPAGE="http://fedorahosted.org/sssd/" +SRC_URI="http://fedorahosted.org/released/${PN}/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="autofs doc +locator netlink nls +manpages python selinux sudo ssh test" + +COMMON_DEP=" + virtual/pam + >=dev-libs/popt-1.16 + dev-libs/glib:2 + >=dev-libs/ding-libs-0.2 + >=sys-libs/talloc-2.0.7 + >=sys-libs/tdb-1.2.9 + >=sys-libs/tevent-0.9.16 + >=sys-libs/ldb-1.1.10 + >=net-nds/openldap-2.4.30 + >=dev-libs/libpcre-8.30 + >=app-crypt/mit-krb5-1.9.4 + >=sys-apps/keyutils-1.5 + >=net-dns/c-ares-1.7.4 + >=dev-libs/nss-3.12.9 + selinux? ( + >=sys-libs/libselinux-2.1.9 + >=sys-libs/libsemanage-2.1 + sec-policy/selinux-sssd + ) + >=net-dns/bind-tools-9.9[gssapi] + dev-libs/cyrus-sasl + >=sys-apps/dbus-1.6 + nls? ( >=sys-devel/gettext-0.18 ) + virtual/libintl + netlink? ( dev-libs/libnl:3 ) + " +#--enable-pac-responder required samba-4 +# If tou have this, use extra_econf hack + +RDEPEND="${COMMON_DEP}" + +DEPEND="${COMMON_DEP} + test? ( dev-libs/check ) + manpages? ( + >=dev-libs/libxslt-1.1.26 + app-text/docbook-xml-dtd:4.4 + ) + doc? ( app-doc/doxygen )" + +CONFIG_CHECK="~KEYS" + +PATCHES=( "${FILESDIR}"/0*.patch ) + +pkg_setup(){ + if use python; then + python_set_active_version 2 + python_pkg_setup + python_need_rebuild + fi + linux-info_pkg_setup +} + +src_prepare() { + autotools-utils_src_prepare +} + +src_configure(){ + local myeconfargs=( + --localstatedir="${EPREFIX}"/var + --enable-nsslibdir="${EPREFIX}"/$(get_libdir) + --with-plugin-path="${EPREFIX}"/usr/$(get_libdir)/sssd + --enable-pammoddir="${EPREFIX}"/$(getpam_mod_dir) + --with-ldb-lib-dir="${EPREFIX}"/usr/$(get_libdir)/ldb/modules/ldb + --without-nscd + --with-unicode-lib="glib2" + --disable-rpath + --enable-silent-rules + $(use_with selinux) + $(use_with selinux semanage) + $(use_with python python-bindings) + $(use_enable locator krb5-locator-plugin) + $(use_enable nls ) + $(use_with netlink libnl) + $(use_with manpages) + $(use_with sudo) + $(use_with autofs) + $(use_with ssh) + --with-crypto="libcrypto" + --with-initscript="sysv" + ) + + autotools-utils_src_configure +} + +src_install(){ + autotools-utils_src_install + prune_libtool_files --all + + insinto /etc/sssd + insopts -m600 + doins "${S}"/src/examples/sssd-example.conf + + insinto /etc/logrotate.d + insopts -m644 + newins "${S}"/src/examples/logrotate sssd + + if use python; then + python_clean_installation_image + python_convert_shebangs 2 -r "${ED}$(python_get_sitedir)"/*.py + fi + newconfd "${FILESDIR}"/sssd.conf sssd +} + +src_test() { + autotools-utils_src_test +} + +pkg_postinst(){ + elog "You must set up sssd.conf (default installed into /etc/sssd)" + elog "and (optionally) configuration in /etc/pam.d in order to use SSSD" + elog "features. Please see howto in http://fedorahosted.org/sssd/wiki/HOWTO_Configure_1_0_2" + + use python && python_mod_optimize SSSDConfig.py ipachangeconf.py +} + +pkg_postrm() { + use python && python_mod_cleanup SSSDConfig.py ipachangeconf.py +} |