diff options
author | Michał Górny <mgorny@gentoo.org> | 2015-03-08 14:01:57 +0000 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2015-03-08 14:01:57 +0000 |
commit | dc856bad202357bd57bd351f3148f36b3a8a895c (patch) | |
tree | 82f4b363903ebcfdbe23748e9ce223073afdc05c /sys-freebsd/freebsd-pam-modules | |
parent | Stable on s390, bug #541912 (diff) | |
download | gentoo-2-dc856bad202357bd57bd351f3148f36b3a8a895c.tar.gz gentoo-2-dc856bad202357bd57bd351f3148f36b3a8a895c.tar.bz2 gentoo-2-dc856bad202357bd57bd351f3148f36b3a8a895c.zip |
Add FreeBSD 10.1 ebuilds, https://github.com/gentoo/gentoo-portage-rsync-mirror/pull/46 by nigoro.
(Portage version: 2.2.17/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)
Diffstat (limited to 'sys-freebsd/freebsd-pam-modules')
-rw-r--r-- | sys-freebsd/freebsd-pam-modules/ChangeLog | 11 | ||||
-rw-r--r-- | sys-freebsd/freebsd-pam-modules/freebsd-pam-modules-10.1.ebuild | 47 |
2 files changed, 56 insertions, 2 deletions
diff --git a/sys-freebsd/freebsd-pam-modules/ChangeLog b/sys-freebsd/freebsd-pam-modules/ChangeLog index 72e595e94aad..11377daeffff 100644 --- a/sys-freebsd/freebsd-pam-modules/ChangeLog +++ b/sys-freebsd/freebsd-pam-modules/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for sys-freebsd/freebsd-pam-modules -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-pam-modules/ChangeLog,v 1.46 2013/11/09 09:17:13 aballier Exp $ +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-pam-modules/ChangeLog,v 1.47 2015/03/08 14:01:57 mgorny Exp $ + +*freebsd-pam-modules-10.1 (08 Mar 2015) + + 08 Mar 2015; Michał Górny <mgorny@gentoo.org> + +freebsd-pam-modules-10.1.ebuild: + Add FreeBSD 10.1 ebuilds, https://github.com/gentoo/gentoo-portage-rsync- + mirror/pull/46 by nigoro. *freebsd-pam-modules-9.2 (09 Nov 2013) diff --git a/sys-freebsd/freebsd-pam-modules/freebsd-pam-modules-10.1.ebuild b/sys-freebsd/freebsd-pam-modules/freebsd-pam-modules-10.1.ebuild new file mode 100644 index 000000000000..4016d17267b1 --- /dev/null +++ b/sys-freebsd/freebsd-pam-modules/freebsd-pam-modules-10.1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-pam-modules/freebsd-pam-modules-10.1.ebuild,v 1.1 2015/03/08 14:01:57 mgorny Exp $ + +EAPI=3 + +inherit bsdmk freebsd multilib pam + +DESCRIPTION="FreeBSD's PAM authentication modules" +SLOT="0" + +IUSE="kerberos nis" + +if [[ ${PV} != *9999* ]]; then + KEYWORDS="~amd64-fbsd ~sparc-fbsd ~x86-fbsd" + SRC_URI="http://dev.gentoo.org/~mgorny/dist/freebsd/${RV}/${LIB}.tar.xz" +fi + +RDEPEND=">=sys-auth/openpam-20050201-r1 + kerberos? ( dev-libs/openssl + virtual/krb5 )" +DEPEND="${RDEPEND} + =sys-freebsd/freebsd-mk-defs-${RV}* + =sys-freebsd/freebsd-sources-${RV}*" + +S=${WORKDIR}/lib/libpam/modules + +PATCHES=( "${FILESDIR}"/${PN}-9.0-gentoo.patch ) + +pkg_setup() { + # Avoid installing pam_ssh as that has its own ebuild. + mymakeopts="${mymakeopts} WITHOUT_OPENSSH= " + use kerberos || mymakeopts="${mymakeopts} WITHOUT_KERBEROS= " + use nis || mymakeopts="${mymakeopts} WITHOUT_NIS= " +} + +src_prepare() { + for module in pam_deny pam_passwdqc pam_permit pam_krb5; do + sed -i -e "s:${module}::" "${S}"/modules.inc + done +} + +src_install() { + mkinstall "LIBDIR=/$(get_libdir)/security" || die "install failed" + + dodoc "${FILESDIR}/README.pamd" +} |