summaryrefslogtreecommitdiff
path: root/sys-apps/gradm
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-apps/gradm
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-apps/gradm')
-rw-r--r--sys-apps/gradm/Manifest12
-rw-r--r--sys-apps/gradm/files/respect-gentoo-env-r3.patch42
-rw-r--r--sys-apps/gradm/gradm-3.1.201603152148.ebuild48
-rw-r--r--sys-apps/gradm/gradm-3.1.201607172312.ebuild48
-rw-r--r--sys-apps/gradm/gradm-3.1.201608131257.ebuild48
-rw-r--r--sys-apps/gradm/gradm-3.1.201708012022.ebuild48
-rw-r--r--sys-apps/gradm/metadata.xml12
7 files changed, 258 insertions, 0 deletions
diff --git a/sys-apps/gradm/Manifest b/sys-apps/gradm/Manifest
new file mode 100644
index 000000000000..f1178da41df2
--- /dev/null
+++ b/sys-apps/gradm/Manifest
@@ -0,0 +1,12 @@
+AUX respect-gentoo-env-r3.patch 1999 SHA256 e326de4772ad07f2259b22b328a05f27b62118589421c1b1113dc83e90b199a4 SHA512 61e7919f138525b3a674e36a90e921ca6a5ea61334d2af102b2d90b4eae0e2a4ad5af6abdaa89cb456f3c4263aa44a945d4cd21b857a8428a56f1ee2caac96b0 WHIRLPOOL ee4106f4e1c2acf4a36a79d69e178d2d32cd542a5b7ca5e21b216700bbe859aa70e5d46e7918a47250e195f9a63df147db99259786c252731b6401795c325a5f
+DIST gradm-3.1-201603152148.tar.gz 91549 SHA256 07f4decbc95ddfb8a88a35ab2960705fb48d0daf108afc09c2b752e2e86fd7b5 SHA512 a423db1dfdaa0b068970b92dc970d6e10bfc20695437e92d967b064c3efe05114ab6de672eec984ab2f048b67b12ec8c6667a71bc584f03e5d2f0ebab1476158 WHIRLPOOL 69b4808f71c55a51784397870d115b851dedd845f8bd588b75d7a39cab140e29eb20ec83542979d6265b203ec78c9a45bc6b1eecb6bcaa061450a3e8fac2512d
+DIST gradm-3.1-201607172312.tar.gz 91667 SHA256 4281c72e3e82f0ea2c01d124975c19326b2157c10911fa065c1549195d5e6ee4 SHA512 61f14038ee555b99e4d0096dd01697d8adba45e057ffceadb44eafbdfba807b53030684c5073d169c005902acfa6baa673975ed4ab00ad035941c209f8f1d2e2 WHIRLPOOL 38fd29b829b78aa016e922ba011bcfeba0cc8de8d45ccacf2b7658153dcbed54df7035c6bcead8b4956595f812f3ca35a8553b364feb37352e5e39eee15c2661
+DIST gradm-3.1-201608131257.tar.gz 91949 SHA256 2b771346458f55805713e4cdfc4fefba1da88826dd9ecff38dacd0087331a578 SHA512 0947abda8d4085fd6f4a569a29f146d6f093c7013ea3aba50df4fb740487b93696b63ab475eb862cfcd26aeb62cd69a55c3d6083b91a2eb9349ad566735f8cfe WHIRLPOOL 99d9c32ec7bba80e57cc3b543a9f9df5c0317226b7e5cf146b5d6fcab3b600577adc79f83cc031f94a3526875a99ce9af97de08139b3e933bf341a35d41c7d70
+DIST gradm-3.1-201708012022.tar.gz 92238 SHA256 d5de919a0f3bf70b0591f1bd9e2dbba9e5d0c55b5df36727e49f3cf0ef4b5482 SHA512 1c319ce5b102ad54d0c4d0c43222ed755719bb2568c9a4575b62965a73b0765265dc7068488e5e34df52ed9382b17e4bf1b32a8eef20a4d7a534f3f9a4ba2b3d WHIRLPOOL 427faaa42847b0b6f10ce90d9425e62c0722b3675ab04c2d7982514ec86f16a45bc098d9e59dd21d11b660b34a0b6ef75e1130142b5bc5edd4ab7d40ef14da89
+EBUILD gradm-3.1.201603152148.ebuild 1087 SHA256 58cf731314fd554b1c55b3dda5413aef0be4cfc45cc752ca3f95a93a36a458b0 SHA512 244be34609ca2fa984753feab794b46e0ad3b8fa81fca4639a38fcb83432c6f2321950858f2df5c3e6fe7478e90b68843b78b93fde5a7ca7271bee31a957df08 WHIRLPOOL 09f45d425453cfd773c7f2358f26cae4d36d921fee908a805e0fd3ed4b567025e37a3ccee9be841a824a1a0624b9c9fe8bc4e10d242d0b3618a5294dc0e54369
+EBUILD gradm-3.1.201607172312.ebuild 1087 SHA256 58cf731314fd554b1c55b3dda5413aef0be4cfc45cc752ca3f95a93a36a458b0 SHA512 244be34609ca2fa984753feab794b46e0ad3b8fa81fca4639a38fcb83432c6f2321950858f2df5c3e6fe7478e90b68843b78b93fde5a7ca7271bee31a957df08 WHIRLPOOL 09f45d425453cfd773c7f2358f26cae4d36d921fee908a805e0fd3ed4b567025e37a3ccee9be841a824a1a0624b9c9fe8bc4e10d242d0b3618a5294dc0e54369
+EBUILD gradm-3.1.201608131257.ebuild 1089 SHA256 815fe28d38076058cb53a086ecd2d583a7beed7b02e68b94e0dbdb3884b650aa SHA512 8d62d77806df539870f99bed612ce8b604a6028e39ca599055f3438b56229b2a112b14a3102641e005f8627c2212073b67d01be17769aa34fec58243dd451b04 WHIRLPOOL 63cea406ad18b478736cba0bcaab0fab3b3d22f17f90e5598d42bf8a037a9dd6bbaca5981e05396ba0e1479e02891a26ee6a227e308cea638c282e1001f7d4b3
+EBUILD gradm-3.1.201708012022.ebuild 1089 SHA256 cb048c3cc296767536fbda85a4da4753e16cd4116f2a47f2e9628b94e1628b7d SHA512 07431c67dea7b5ff607a97846e512cc4fade7a68836905bfdd13a9bc63bcc3bdbcf5538a00048308a3ec3039bfed1087074dbc27efb87d589a8ca8ef6e60d514 WHIRLPOOL 13c0eeb433d3729441f71a43a5cf7a28a0e4c15642431ccb2643ff1e4d99e602f0e38acbfc7da0dc5998e273f93f9fa501d71f24f4b58002bde4d688d5df6958
+MISC ChangeLog 4315 SHA256 2f7680c144e0b4c81b132844b4c6070a85f518485e10293d1b8331a9840d16ec SHA512 81257082d02be1fd57bb827b5c0c3ca27aec39f16ddd8b29a0dd6af6f6b23208b875ac7f2cd2426974e05715cfb4c442f849ff8f59261e27e31d5c993a631a1c WHIRLPOOL 29bdebd186512212f3f7ab27706f2f7eb22e4e577a3490cf0149859a4eff2343299ac15b090dc3aefd500d92c4b3239b19dba3ffd0cbf8f1fd240a43db0059c8
+MISC ChangeLog-2015 38696 SHA256 b4b451476c00c7d64660959370da9f3fd284aeae0e3390c66e057508d354dc48 SHA512 e9b0fa2e3bcf51b8d11459e1eb942733c271ad1d49ad1c8fd5ee996eeb369563fa58877e40936dbd578fb9947a4abb870deb03a6440b2c82777d760b64e2595c WHIRLPOOL a6a8128eb8e540703b93d697428232413389f4861106ce50e2fa7533b48b9b4bb80e56bdad86b76e1192025bd8d2d17b50b2e27d782f7a35336e8ebdab7b8b3e
+MISC metadata.xml 363 SHA256 396a1b76d7e556b65a2cdadebd405a8aa196e63ed92c4fee89b2ecbee172c59a SHA512 b848c5de5ed09c4843c3e75d59ea4697c5d1c1fa2ce8c9e9a0bf38b5102d57f25aa626f3c6295f4f3a345b1cedc15553fb45b460bf41e73df43eb2eef6e00281 WHIRLPOOL 4b3c0f55297f9987a13cc2324c5f7f648743208f781ce3ba293a0cb6ac14d347532bfd0b39918b5f6ced8a8a7eb38f0115d44e9cab235675ce6a9f693da4072f
diff --git a/sys-apps/gradm/files/respect-gentoo-env-r3.patch b/sys-apps/gradm/files/respect-gentoo-env-r3.patch
new file mode 100644
index 000000000000..7c899b139745
--- /dev/null
+++ b/sys-apps/gradm/files/respect-gentoo-env-r3.patch
@@ -0,0 +1,42 @@
+diff -Naur gradm2.orig/Makefile gradm2/Makefile
+--- gradm2.orig/Makefile 2013-08-09 16:28:37.000000000 -0400
++++ gradm2/Makefile 2013-08-10 07:57:12.000000000 -0400
+@@ -18,18 +18,18 @@
+ BISON=/usr/bin/bison
+ #YACC := $(shell if [ -x $(BYACC) ]; then echo $(BYACC); else echo $(BISON); fi)
+ YACC=$(BISON)
+-MKNOD=/bin/mknod
++MKNOD=true
+ #for dietlibc
+ #CC=/usr/bin/diet /usr/bin/gcc
+ CC=/usr/bin/gcc
+ FIND=/usr/bin/find
+-STRIP=/usr/bin/strip
++STRIP=true
+ LIBS := $(shell if [ "`uname -m`" != "sparc64" -a "`uname -m`" != "x86_64" ]; then echo "-lfl" ; else echo "" ; fi)
+ OPT_FLAGS := -O2
+ # for older versions of grsecurity, comment the above line and uncomment the below:
+ #OPT_FLAGS := $(shell if [ "`uname -m`" != "sparc64" ] && [ "`uname -m`" != "x86_64" ]; then echo "-O2" ; else echo "-O2 -m64" ; fi)
+-CFLAGS := $(OPT_FLAGS) -fPIE -Wcast-qual -DGRSEC_DIR=\"$(GRSEC_DIR)\" -D_LARGEFILE64_SOURCE
+-LDFLAGS= -pie
++CFLAGS := $(OPT_FLAGS) -fPIE -Wcast-qual -DGRSEC_DIR=\"$(GRSEC_DIR)\" -D_LARGEFILE64_SOURCE $(CFLAGS)
++LDFLAGS+= -pie
+ INSTALL = /usr/bin/install -c
+
+ # FHS
+@@ -167,10 +167,11 @@
+ $(MKNOD) -m 0622 $(DESTDIR)/dev/grsec c 1 13 ; \
+ fi \
+ fi
+- @if [ -d $(DESTDIR)/etc/udev/rules.d ] ; then \
+- echo "ACTION!=\"add|change\", GOTO=\"permissions_end\"" > $(DESTDIR)/etc/udev/rules.d/80-grsec.rules ; \
+- echo "KERNEL==\"grsec\", MODE=\"0622\"" >> $(DESTDIR)/etc/udev/rules.d/80-grsec.rules ; \
+- echo "LABEL=\"permissions_end\"" >> $(DESTDIR)/etc/udev/rules.d/80-grsec.rules ; \
++ @mkdir -p $(DESTDIR)/lib/udev/rules.d
++ @if [ -d $(DESTDIR)/lib/udev/rules.d ] ; then \
++ echo "ACTION!=\"add|change\", GOTO=\"permissions_end\"" > $(DESTDIR)/lib/udev/rules.d/80-grsec.rules ; \
++ echo "KERNEL==\"grsec\", MODE=\"0622\"" >> $(DESTDIR)/lib/udev/rules.d/80-grsec.rules ; \
++ echo "LABEL=\"permissions_end\"" >> $(DESTDIR)/lib/udev/rules.d/80-grsec.rules ; \
+ fi
+ @if [ -f $(DESTDIR)/sbin/udevadm ] ; then \
+ $(DESTDIR)/sbin/udevadm trigger --action=change ; \
diff --git a/sys-apps/gradm/gradm-3.1.201603152148.ebuild b/sys-apps/gradm/gradm-3.1.201603152148.ebuild
new file mode 100644
index 000000000000..1501e02d909d
--- /dev/null
+++ b/sys-apps/gradm/gradm-3.1.201603152148.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+inherit flag-o-matic toolchain-funcs versionator eutils udev
+
+MY_PV="$(replace_version_separator 2 -)"
+
+DESCRIPTION="Administrative interface for the grsecurity Role Based Access Control system"
+HOMEPAGE="http://www.grsecurity.net/"
+SRC_URI="https://dev.gentoo.org/~blueness/hardened-sources/gradm/${PN}-${MY_PV}.tar.gz"
+LICENSE="GPL-2"
+
+SLOT="0"
+KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc x86"
+IUSE="pam"
+
+RDEPEND=""
+DEPEND="
+ sys-devel/bison
+ sys-devel/flex
+ pam? ( virtual/pam )"
+
+S=${WORKDIR}/${PN}
+
+src_prepare() {
+ epatch "${FILESDIR}"/respect-gentoo-env-r3.patch
+ sed -i -e "s:/lib/udev:$(get_udevdir):" Makefile || die
+ eapply_user
+}
+
+src_compile() {
+ local target
+ use pam || target="nopam"
+
+ emake ${target} CC="$(tc-getCC)" OPT_FLAGS="${CFLAGS}"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ fperms 711 /sbin/gradm
+}
+
+pkg_postinst() {
+ ewarn
+ ewarn "Be sure to set a password with 'gradm -P' before enabling learning mode."
+ ewarn
+}
diff --git a/sys-apps/gradm/gradm-3.1.201607172312.ebuild b/sys-apps/gradm/gradm-3.1.201607172312.ebuild
new file mode 100644
index 000000000000..1501e02d909d
--- /dev/null
+++ b/sys-apps/gradm/gradm-3.1.201607172312.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+inherit flag-o-matic toolchain-funcs versionator eutils udev
+
+MY_PV="$(replace_version_separator 2 -)"
+
+DESCRIPTION="Administrative interface for the grsecurity Role Based Access Control system"
+HOMEPAGE="http://www.grsecurity.net/"
+SRC_URI="https://dev.gentoo.org/~blueness/hardened-sources/gradm/${PN}-${MY_PV}.tar.gz"
+LICENSE="GPL-2"
+
+SLOT="0"
+KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc x86"
+IUSE="pam"
+
+RDEPEND=""
+DEPEND="
+ sys-devel/bison
+ sys-devel/flex
+ pam? ( virtual/pam )"
+
+S=${WORKDIR}/${PN}
+
+src_prepare() {
+ epatch "${FILESDIR}"/respect-gentoo-env-r3.patch
+ sed -i -e "s:/lib/udev:$(get_udevdir):" Makefile || die
+ eapply_user
+}
+
+src_compile() {
+ local target
+ use pam || target="nopam"
+
+ emake ${target} CC="$(tc-getCC)" OPT_FLAGS="${CFLAGS}"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ fperms 711 /sbin/gradm
+}
+
+pkg_postinst() {
+ ewarn
+ ewarn "Be sure to set a password with 'gradm -P' before enabling learning mode."
+ ewarn
+}
diff --git a/sys-apps/gradm/gradm-3.1.201608131257.ebuild b/sys-apps/gradm/gradm-3.1.201608131257.ebuild
new file mode 100644
index 000000000000..92ec90a27904
--- /dev/null
+++ b/sys-apps/gradm/gradm-3.1.201608131257.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+inherit flag-o-matic toolchain-funcs versionator eutils udev
+
+MY_PV="$(replace_version_separator 2 -)"
+
+DESCRIPTION="Administrative interface for the grsecurity Role Based Access Control system"
+HOMEPAGE="http://www.grsecurity.net/"
+SRC_URI="https://dev.gentoo.org/~blueness/hardened-sources/gradm/${PN}-${MY_PV}.tar.gz"
+LICENSE="GPL-2"
+
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE="pam"
+
+RDEPEND=""
+DEPEND="
+ sys-devel/bison
+ sys-devel/flex
+ pam? ( virtual/pam )"
+
+S=${WORKDIR}/${PN}
+
+src_prepare() {
+ epatch "${FILESDIR}"/respect-gentoo-env-r3.patch
+ sed -i -e "s:/lib/udev:$(get_udevdir):" Makefile || die
+ eapply_user
+}
+
+src_compile() {
+ local target
+ use pam || target="nopam"
+
+ emake ${target} CC="$(tc-getCC)" OPT_FLAGS="${CFLAGS}"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ fperms 711 /sbin/gradm
+}
+
+pkg_postinst() {
+ ewarn
+ ewarn "Be sure to set a password with 'gradm -P' before enabling learning mode."
+ ewarn
+}
diff --git a/sys-apps/gradm/gradm-3.1.201708012022.ebuild b/sys-apps/gradm/gradm-3.1.201708012022.ebuild
new file mode 100644
index 000000000000..580760657184
--- /dev/null
+++ b/sys-apps/gradm/gradm-3.1.201708012022.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+inherit flag-o-matic toolchain-funcs versionator eutils udev
+
+MY_PV="$(replace_version_separator 2 -)"
+
+DESCRIPTION="Administrative interface for the grsecurity Role Based Access Control system"
+HOMEPAGE="http://www.grsecurity.net/"
+SRC_URI="https://dev.gentoo.org/~blueness/hardened-sources/gradm/${PN}-${MY_PV}.tar.gz"
+LICENSE="GPL-2"
+
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE="pam"
+
+RDEPEND=""
+DEPEND="
+ sys-devel/bison
+ sys-devel/flex
+ pam? ( virtual/pam )"
+
+S=${WORKDIR}/${PN}
+
+src_prepare() {
+ epatch "${FILESDIR}"/respect-gentoo-env-r3.patch
+ sed -i -e "s:/lib/udev:$(get_udevdir):" Makefile || die
+ eapply_user
+}
+
+src_compile() {
+ local target
+ use pam || target="nopam"
+
+ emake ${target} CC="$(tc-getCC)" OPT_FLAGS="${CFLAGS}"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ fperms 711 /sbin/gradm
+}
+
+pkg_postinst() {
+ ewarn
+ ewarn "Be sure to set a password with 'gradm -P' before enabling learning mode."
+ ewarn
+}
diff --git a/sys-apps/gradm/metadata.xml b/sys-apps/gradm/metadata.xml
new file mode 100644
index 000000000000..2fdcc0c0ceb0
--- /dev/null
+++ b/sys-apps/gradm/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>blueness@gentoo.org</email>
+ <name>Anthony G. Basile</name>
+ </maintainer>
+<maintainer type="project">
+ <email>hardened@gentoo.org</email>
+ <name>Gentoo Hardened</name>
+ </maintainer>
+</pkgmetadata>