sys-apps/restorecond: bump to 2.8
authorJason Zaman <perfinion@gentoo.org>
Fri, 25 May 2018 04:34:54 +0000 (12:34 +0800)
committerJason Zaman <perfinion@gentoo.org>
Fri, 25 May 2018 07:27:54 +0000 (15:27 +0800)
Package-Manager: Portage-2.3.39, Repoman-2.3.9

sys-apps/restorecond/Manifest
sys-apps/restorecond/restorecond-2.8.ebuild [new file with mode: 0644]

index 25c32e661e03c530b4e5b8341049d7c08ad75ac2..1da04ef002e1876788fb620681ea263a7d24faf6 100644 (file)
@@ -2,3 +2,4 @@ DIST restorecond-2.7.tar.gz 17753 BLAKE2B 793a41dbfd0a33d79e15c62e79f4fbbacc4208
 DIST restorecond-2.8-rc1.tar.gz 17778 BLAKE2B 7f0c3da54555f1bd015e191ab762d5564e8e40d1aceafa94fc774c0864f9ff720c468679a60869dc94280e89a160369afcdf2172a6aaee1b0ce555dc204cd957 SHA512 9b90485998bbabeb26d1ca197b78dadc2ad4aa15fc3eb30f16809e631009ce07f2a624d8e0c139cb6ea831ff46068de2744168c6ee0414693716b4963c8e3be9
 DIST restorecond-2.8-rc2.tar.gz 17778 BLAKE2B 47bf2f3481dd94b1b63a8d5994f94cbecb99d84835e4c61d133f89e5be42650f69794dae9c80115a73614ec0548e2773c7a03bac33e666ac989badb20d0438cd SHA512 5d35576264b59face6130e97223d815df0f114b3e51d9e5008dddbb31a802763b346bf2f69a8ae8271c5dcacf04235e2ed3de305b036b8108b76f4951ff2d126
 DIST restorecond-2.8-rc3.tar.gz 17773 BLAKE2B 23492c3f2a8aa8b85236e4c4ac4e8f1dad090d7b1585e5ffe26face4f3b689a6a083944f107ca1fc2241a35f5373699ae216828ec8e44f37bd7dd28ad60546a5 SHA512 1e52a2767e497d43125202ba66799c556b6a2d521ec6d747f96208e3b1d2c4bc8f7f28b3ca86fe47c0e0a2daac1de811a0630f02196a4c9502868a8c5e571dfc
+DIST restorecond-2.8.tar.gz 17740 BLAKE2B ad873acbbb7c56c29a8523a42dc053ea79036a15bed71b47a690d01d4012394b5ecf74ae75b27affb4007d754935ec90246f22ef3e0b9611556ec7baf59670db SHA512 5d72336782c3ad095746f8e6fa67e36448e5e76ca29586d8fe4962c64e505fa95c1458e8fc8f7d5bd589fff71b4be3758fb0cee3dacd2ccd0bc8476423e2540e
diff --git a/sys-apps/restorecond/restorecond-2.8.ebuild b/sys-apps/restorecond/restorecond-2.8.ebuild
new file mode 100644 (file)
index 0000000..fe377bb
--- /dev/null
@@ -0,0 +1,55 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit toolchain-funcs
+
+MY_RELEASEDATE="20180524"
+
+MY_P="${P//_/-}"
+IUSE=""
+
+if [[ ${PV} == *9999 ]] ; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/SELinuxProject/selinux.git"
+       S="${WORKDIR}/${MY_P}/${PN}"
+else
+       SRC_URI="https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/${MY_RELEASEDATE}/${MY_P}.tar.gz"
+       KEYWORDS="~amd64 ~arm ~arm64 ~mips ~x86"
+       S="${WORKDIR}/${MY_P}"
+fi
+
+DESCRIPTION="Daemon to watch for creation and set default SELinux fcontexts"
+HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki"
+
+LICENSE="GPL-2"
+SLOT="0"
+
+DEPEND=">=sys-libs/libsepol-${PV}:=
+       >=sys-libs/libselinux-${PV}:=
+       dev-libs/dbus-glib
+       dev-libs/libpcre:=
+       >=sys-libs/libcap-1.10-r10:="
+
+RDEPEND="${DEPEND}
+       !<sys-apps/policycoreutils-2.7_pre"
+
+src_prepare() {
+       default
+
+       sed -i 's/-Werror//g' "${S}"/Makefile || die "Failed to remove Werror"
+}
+
+src_compile() {
+       tc-export CC
+       default
+}
+
+src_install() {
+       emake DESTDIR="${D}" install
+
+       rm -rf "${D}/etc/rc.d" || die
+
+       newinitd "${FILESDIR}/restorecond.init" restorecond
+}