summaryrefslogtreecommitdiff
path: root/app-misc/rogentos-version
diff options
context:
space:
mode:
Diffstat (limited to 'app-misc/rogentos-version')
-rw-r--r--app-misc/rogentos-version/Manifest2
-rw-r--r--app-misc/rogentos-version/files/00-sabayon-anti-fork-bomb.conf20
-rw-r--r--app-misc/rogentos-version/rogentos-version-1.ebuild48
3 files changed, 70 insertions, 0 deletions
diff --git a/app-misc/rogentos-version/Manifest b/app-misc/rogentos-version/Manifest
new file mode 100644
index 00000000..dabcf8ff
--- /dev/null
+++ b/app-misc/rogentos-version/Manifest
@@ -0,0 +1,2 @@
+AUX 00-sabayon-anti-fork-bomb.conf 690 SHA256 80f397f12a746a73d48d90c010d6176c9e0661fbe118c770f97c165810caeee5 SHA512 da4c0ce2efacb3a420a73fc6ac533d17fef8e338bf6d3e784e52e49f1098504e985d4a24a96b4f67c1ceda45942c592423de3f5699cefd4aa148c23f5414acd3 WHIRLPOOL dc283b03fdd9acf8bb27c2904a40f94ebc5c45f81bd4f46c825fa5e999975d5663c25bf1d8226bb4b9e0c31791295dd75e0ef2ed3ed343defaf21557aba71d19
+EBUILD rogentos-version-1.ebuild 1110 SHA256 76520b13c997d823f3fbead4001794ace9ec962756fd145a5b613165ac5b0d89 SHA512 effab571839d3f6a7c29e0eec3f9e6bc7ea9aeacf85f4781b0ccfe62e13cdb6cd2f0548cc68f41c10cad4f6c37235bfe46334ac3a74e8863c2be24a11a9d718e WHIRLPOOL 5f7a0d29389f3126f512f4b44e894a5e911ee9f51d3175ebb24cf938bdab37ca9d48babe3abf9d34db874e4a58eb8a65cb264ffa572cdb6edeb50a1003f39b31
diff --git a/app-misc/rogentos-version/files/00-sabayon-anti-fork-bomb.conf b/app-misc/rogentos-version/files/00-sabayon-anti-fork-bomb.conf
new file mode 100644
index 00000000..4dcf561f
--- /dev/null
+++ b/app-misc/rogentos-version/files/00-sabayon-anti-fork-bomb.conf
@@ -0,0 +1,20 @@
+# 00-sabayon-anti-fork-bomb.conf
+#
+# This file estabilishes Sabayon Linux default process
+# limits to defend the system against malicious or faulty
+# code that could potentially make the system unusable by
+# spawning an excessive amount of processes.
+#
+# The root account is not affected by process number
+# limitations. This way a root console can always kill any
+# offending process, but an offending root process could
+# still block the system.
+#
+# Each line describes a limit for a user in the form:
+#
+# <domain> <type> <item> <value>
+
+* soft nproc 1300
+* hard nproc 1800
+root - nproc infinity
+
diff --git a/app-misc/rogentos-version/rogentos-version-1.ebuild b/app-misc/rogentos-version/rogentos-version-1.ebuild
new file mode 100644
index 00000000..822304c4
--- /dev/null
+++ b/app-misc/rogentos-version/rogentos-version-1.ebuild
@@ -0,0 +1,48 @@
+# Copyright 2004-2011 Sabayon Linux
+# Copyright 2012 Rogentos Linux
+# Original Authors Sabayon Team
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=3
+
+DESCRIPTION="Rogentos System Release virtual package"
+HOMEPAGE="http://rogentos.ro/"
+SRC_URI=""
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+
+IUSE=""
+DEPEND=""
+RDEPEND="app-admin/eselect-python
+ dev-lang/python:2.7
+ sys-devel/base-gcc:4.6
+ sys-devel/gcc-config"
+
+ROGENTOS_VER="${PV}"
+ROGENTOS_HEADER="Rogentos Linux"
+ROGENTOS_RELEASE="rogentos-release"
+
+src_unpack () {
+ if use x86; then
+ echo "${ROGENTOS_HEADER} x86 ${ROGENTOS_VER}" > "${ROGENTOS_RELEASE}"
+ else
+ echo "${ROGENTOS_HEADER} amd64 ${ROGENTOS_VER}" > "${ROGENTOS_RELEASE}"
+ fi
+}
+
+src_install () {
+ insinto /etc
+ doins rogentos-release
+ dosym /etc/rogentos-release /etc/system-release
+ # Adding sabayon anti-fork bomb
+ insinto /etc/security/limits.d
+ doins "${FILESDIR}/00-sabayon-anti-fork-bomb.conf"
+}
+
+pkg_postinst() {
+ # Setup Python 2.7
+ eselect python update --ignore 3.0 --ignore 3.1 --ignore 3.2 --ignore 3.3 --ignore 3.4
+}