summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Wegener <swegener@gentoo.org>2011-03-12 14:03:50 +0000
committerSven Wegener <swegener@gentoo.org>2011-03-12 14:03:50 +0000
commitdfb9da0840f8c7745acb9ef50c733b7a4e7f2f0b (patch)
tree8c13a9f34bc1cc0d333808f37cf18d369040d947 /sys-auth/pam_mktemp
parentStable on alpha, bug #358375 (diff)
downloadgentoo-2-dfb9da0840f8c7745acb9ef50c733b7a4e7f2f0b.tar.gz
gentoo-2-dfb9da0840f8c7745acb9ef50c733b7a4e7f2f0b.tar.bz2
gentoo-2-dfb9da0840f8c7745acb9ef50c733b7a4e7f2f0b.zip
Version bump.
(Portage version: 2.2.0_alpha26/cvs/Linux x86_64)
Diffstat (limited to 'sys-auth/pam_mktemp')
-rw-r--r--sys-auth/pam_mktemp/ChangeLog10
-rw-r--r--sys-auth/pam_mktemp/metadata.xml3
-rw-r--r--sys-auth/pam_mktemp/pam_mktemp-1.1.1.ebuild42
3 files changed, 53 insertions, 2 deletions
diff --git a/sys-auth/pam_mktemp/ChangeLog b/sys-auth/pam_mktemp/ChangeLog
index 778f29b1ad9b..fd779d6f133f 100644
--- a/sys-auth/pam_mktemp/ChangeLog
+++ b/sys-auth/pam_mktemp/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-auth/pam_mktemp
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-auth/pam_mktemp/ChangeLog,v 1.17 2010/01/07 15:54:00 fauli Exp $
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-auth/pam_mktemp/ChangeLog,v 1.18 2011/03/12 14:03:50 swegener Exp $
+
+*pam_mktemp-1.1.1 (12 Mar 2011)
+
+ 12 Mar 2011; Sven Wegener <swegener@gentoo.org> +pam_mktemp-1.1.1.ebuild,
+ metadata.xml:
+ Version bump.
07 Jan 2010; Christian Faulhammer <fauli@gentoo.org>
pam_mktemp-1.0.3.ebuild:
diff --git a/sys-auth/pam_mktemp/metadata.xml b/sys-auth/pam_mktemp/metadata.xml
index 1c25380ab848..d7c694df6206 100644
--- a/sys-auth/pam_mktemp/metadata.xml
+++ b/sys-auth/pam_mktemp/metadata.xml
@@ -5,4 +5,7 @@
<maintainer>
<email>swegener@gentoo.org</email>
</maintainer>
+<use>
+<flag name='prevent-removal'>If supported, set EXT2_APPEND_FL on /tmp/.private to prevent temporary directories from being removed</flag>
+</use>
</pkgmetadata>
diff --git a/sys-auth/pam_mktemp/pam_mktemp-1.1.1.ebuild b/sys-auth/pam_mktemp/pam_mktemp-1.1.1.ebuild
new file mode 100644
index 000000000000..7da6fcac0bfb
--- /dev/null
+++ b/sys-auth/pam_mktemp/pam_mktemp-1.1.1.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-auth/pam_mktemp/pam_mktemp-1.1.1.ebuild,v 1.1 2011/03/12 14:03:50 swegener Exp $
+
+EAPI="4"
+
+inherit toolchain-funcs pam
+
+DESCRIPTION="Create per-user private temporary directories during login"
+HOMEPAGE="http://www.openwall.com/pam/"
+SRC_URI="http://www.openwall.com/pam/modules/${PN}/${P}.tar.gz"
+
+LICENSE="freedist"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux"
+IUSE="selinux +prevent-removal"
+
+DEPEND="virtual/pam
+ selinux? ( sys-libs/libselinux )"
+RDEPEND="${DEPEND}"
+
+src_compile() {
+ emake \
+ CC="$(tc-getCC)" \
+ CFLAGS="${CFLAGS} -fPIC" \
+ LDFLAGS="${LDFLAGS} --shared -Wl,--version-script,\$(MAP)" \
+ USE_SELINUX="$(use selinux && echo 1 || echo 0)" \
+ USE_APPEND_FL="$(use prevent-removal && echo 1 || echo 0)"
+}
+
+src_install() {
+ dopammod pam_mktemp.so
+ dodoc README
+}
+
+pkg_postinst() {
+ elog "To enable pam_mktemp put something like"
+ elog
+ elog "session optional pam_mktemp.so"
+ elog
+ elog "into /etc/pam.d/system-auth!"
+}