app-admin/tmpwatch: bump to EAPI 6, add maintainer-needed
authorAustin English <wizardedit@gentoo.org>
Thu, 7 Jul 2016 17:59:03 +0000 (12:59 -0500)
committerAustin English <wizardedit@gentoo.org>
Thu, 7 Jul 2016 18:00:22 +0000 (13:00 -0500)
Package-Manager: portage-2.2.28

app-admin/tmpwatch/metadata.xml
app-admin/tmpwatch/tmpwatch-2.11-r2.ebuild [new file with mode: 0644]

index 097975e3adc26aa49b959a01cffb169a88f64eb3..6f49eba8f49693023f393161560b3a2d9e2717c5 100644 (file)
@@ -1,4 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
+<!-- maintainer-needed -->
 </pkgmetadata>
diff --git a/app-admin/tmpwatch/tmpwatch-2.11-r2.ebuild b/app-admin/tmpwatch/tmpwatch-2.11-r2.ebuild
new file mode 100644 (file)
index 0000000..3de9352
--- /dev/null
@@ -0,0 +1,37 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit toolchain-funcs eutils
+
+DESCRIPTION="Files which haven't been accessed in a given period of time are removed from specified directories"
+HOMEPAGE="https://fedorahosted.org/tmpwatch/"
+SRC_URI="https://fedorahosted.org/releases/t/m/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="selinux"
+
+RDEPEND="selinux? ( sec-policy/selinux-tmpreaper )"
+DEPEND=""
+
+PATCHES=(
+       "${FILESDIR}/${P}-boottime.patch"
+)
+
+src_compile() {
+       emake AR="$(tc-getAR)"
+}
+
+src_install() {
+       default
+
+       dosbin tmpwatch
+       doman tmpwatch.8
+
+       exeinto /etc/cron.daily
+       newexe "${FILESDIR}/${PN}.cron" "${PN}"
+}