This commit is contained in:
Mario Fetka 2012-11-06 01:59:27 +01:00
parent fc30f999ee
commit 09126e9cf1
8 changed files with 2 additions and 139 deletions

View File

@ -1,6 +0,0 @@
AUX 00-sabayon-anti-fork-bomb.conf 690 SHA256 80f397f12a746a73d48d90c010d6176c9e0661fbe118c770f97c165810caeee5 SHA512 da4c0ce2efacb3a420a73fc6ac533d17fef8e338bf6d3e784e52e49f1098504e985d4a24a96b4f67c1ceda45942c592423de3f5699cefd4aa148c23f5414acd3 WHIRLPOOL dc283b03fdd9acf8bb27c2904a40f94ebc5c45f81bd4f46c825fa5e999975d5663c25bf1d8226bb4b9e0c31791295dd75e0ef2ed3ed343defaf21557aba71d19
AUX check.py 115 SHA256 e8ed197aef798b0656a5b242fd43f8ff913594b1c59d157360740630b3ab2048 SHA512 cfa3a99ca687c065c3a045418548c4ea96062074a7b727f5632e9cfddbc6acfdff81a0aa3ac1738801be044d02ba529e45f35d9867db52f1527f3c76423bf7dd WHIRLPOOL 40c2f49c8ca24dcdb27b3c0c3305b90262e3491918d31851ae7f12196038d6ee4b2175f121bafac31baa461cfb2370e770311dda5380b7c3f548c29d69c61a7e
AUX equo-update.cron 56 SHA256 daa3666087585aac025162ee78189c94c6d39662a56c3b7497f6789caabc9364 SHA512 071abc2530ca3842249459ec1996f0e378b6b73bb4d6f5b6daa1b5e92f37342f1eee3f00bc6b2da4f31777ecfc3bf89d034b2362216f38731645a55970a16e65 WHIRLPOOL 82cd89523f0d21c1177b5245bd9afa1f9396c938bf292f6dc80fe6402bcb5501e12f5ec0c81afbea156a85ee5041094a2cc0c35e797663926be9835974814b37
AUX greeting.sh 1830 SHA256 92c6b5620c08c7868fda0e7fa7b003872aced5bb11681cf333494dbdc6c6526f SHA512 298d33a3c600c00bc46c54e31f7ec20c4ecca90da143a9b5abfed3aaef7c9d5664419d22b7ebb13ab8c1ba66d1329e114ead4d101093cdac8b20d116891f913e WHIRLPOOL 448d802524acfd01adb970d196b0dde3b777672250c1125632a5e7e68a788f4b0afd883035cff0629b43c6c395f603ae71ca9982df0f4fcc732f60f6519ad7cb
EBUILD sablink-version-0.ebuild 1602 SHA256 372892f645e8c0eb8be2ecf1774fea1194d5ce9d51c5fe53dfc6eb06a4334641 SHA512 75e1d561f01f7f38e109a94823c4b843c8b7e7fea66b274be3d94ee24b06dcb455a2a7fcba32aae641e347c1fe4b9f71712dcba07525ac5ec22bb7737efbc24b WHIRLPOOL ec83ad685f530d021b687dab7fb0c583612cde7aee37e2105190fd71602032c45e33c34d2228bb5d65358bb53d6e139ead39d3ab16120d4f871bf011a028ddb8
MISC metadata.xml 201 SHA256 56d6a20c3db8ae4e27afa0c395811020111e1093b58e2a6b4da6f4f3f0605d7e SHA512 a93eecbe1e2d614d3d8ebd418c7bb690221b889790f392c8a3d11f5d726955c53f9c8300c38b734bf0e0ceecb07bf901cbc25b9381d4417fd9b87ab3830279c3 WHIRLPOOL e68445633cbba9adfd423588892a44020aec6c1b2fe479c2c4d58a0dc3b48a011f0dcd681ccc01c204f85c7a33f7171760c12d3a0b5899d66bc97c44c91836ab

View File

@ -1,20 +0,0 @@
# 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

View File

@ -1,5 +0,0 @@
#!/usr/bin/python
from entropy.client.interfaces import Client
cl = Client()
print(len(cl.calculate_updates()[0]))

View File

@ -1,3 +0,0 @@
#!/bin/bash
LC_ALL=en_US.UTF-8 equo update &> /dev/null

View File

@ -1,35 +0,0 @@
#!/bin/bash
# asciiart genrator
# http://www.network-science.de/ascii/ Font big for SabLink
#clear
COLOUR_LOGO="31"
COLOUR_INFO1="32"
COLOUR_INFO2="31"
COLOUR_INFO3="37"
echo ''
echo 'Hello, welcome to [1;'${COLOUR_INFO1}';40m'$(uname -n)', running'
echo '[0;'${COLOUR_LOGO}';40m _____ _ _ _ _ '
echo '[0;'${COLOUR_LOGO}';40m / ____| | | | | (_) | | '
echo '[0;'${COLOUR_LOGO}';40m| (___ __ _| |__ | | _ _ __ | | __'
echo '[0;'${COLOUR_LOGO}';40m \___ \ / _` | ´_ \| | | | ´_ \| |/ /'
echo '[0;'${COLOUR_LOGO}';40m ____) | (_| | |_) | |____| | | | | < '
echo '[0;'${COLOUR_LOGO}';40m|_____/ \__,_|_.__/|______|_|_| |_|_|\_\'
echo ''
echo '[1;'${COLOUR_INFO2}';40m'$(uname -s)' '$(uname -m)' '$(uname -r)' (compiled [0;'${COLOUR_INFO3}';40m'$(uname -v)')'
echo ''
echo 'Processor : [0;'${COLOUR_INFO1}';40m'$(cat /proc/cpuinfo | grep -i 'Processor' | cut -c 13-50 )''
echo 'BogoMIPS : [0;'${COLOUR_INFO1}';40m'$(cat /proc/cpuinfo | grep -i 'BogoMIPS' | cut -c 12-50 | tr -d ' ')''
echo 'RAM : [0;'${COLOUR_INFO1}';40m'$(free -m | grep -i 'Mem:' | cut -c 13-20)'[0;'${COLOUR_INFO3}';40mMB'
echo 'Swap : [0;'${COLOUR_INFO1}';40m'$(free -m | grep -i 'Swap:' | cut -c 15-20)'[0;'${COLOUR_INFO3}';40mMB'
echo 'Uptime : [0;'${COLOUR_INFO3}';40m'$(uptime | cut -c 2-60)''
echo 'Logged on as : [0;'${COLOUR_INFO1}';40m'$(whoami)' on [0;'${COLOUR_INFO1}';40m'$(tty)'[0;'${COLOUR_INFO3}';40m since [0;'${COLOUR_INFO1}';40m'$(date)''
echo 'Users logged in : [0;'${COLOUR_INFO1}';40m'$(who -q | more +1)''
echo ''
echo 'Package updates : [0;'${COLOUR_INFO1}';40m'$(sablink-equo-check)' available updates'
echo ''

View File

@ -1,5 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer><email>mario.fetka@gmail.com</email></maintainer>
</pkgmetadata>

View File

@ -1,65 +0,0 @@
# Copyright 2004-2011 Sabayon Linux
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=3
DESCRIPTION="SabLink System Release virtual package"
HOMEPAGE="http://sablink.disconnected-by-peer.at/"
SRC_URI=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm ~x86"
IUSE=""
DEPEND=""
# Listing default packages for the current release
RDEPEND="app-admin/eselect-python
dev-lang/python:2.7
sys-devel/base-gcc:4.6
sys-devel/gcc-config
app-admin/update-motd
virtual/cron
app-admin/equo"
SABLINK_VER="${PV}"
SABLINK_HEADER="SabLink Linux"
SABLINK_RELEASE="sablink-release"
src_unpack() {
if use x86; then
echo "${SABLINK_HEADER} x86 ${SABLINK_VER}" > "${SABLINK_RELEASE}"
elif use arm; then
echo "${SABLINK_HEADER} ${CHOST/-*/} ${SABLINK_VER}" > "${SABLINK_RELEASE}"
else
echo "${SABLINK_HEADER} amd64 ${SABLINK_VER}" > "${SABLINK_RELEASE}"
fi
}
src_install() {
# install relesae file
insinto /etc
doins "${SABLINK_RELEASE}"
dosym /etc/"${SABLINK_RELEASE}" /etc/system-release
# install equo update cron
exeinto /etc/cron.daily
doexe "${FILESDIR}/equo-update.cron"
# Bug 3459 - reduce the risk of fork bombs
insinto /etc/security/limits.d
newins "${FILESDIR}/00-sabayon-anti-fork-bomb.conf" 00-sablink-anti-fork-bomb.conf
# install sablink greeting
exeinto /etc/update-motd.d
newexe "${FILESDIR}/greeting.sh" 20-greeting
# install the check for updates script
newbin "${FILESDIR}/check.py" sablink-equo-check
}
pkg_postinst() {
# Setup Python 2.7
eselect python update --ignore 3.0 --ignore 3.1 --ignore 3.2 --ignore 3.3 --ignore 3.4
}

View File

@ -614,6 +614,8 @@ _kernel_src_compile() {
all || die "genkernel failed"
ARCH=${OLDARCH}
emake prepare
touch "${S}"/Module.symvers "${S}"/System.map "${S}"/include/linux/version.h
cp "${S}"/Module.symvers "${S}"/System.map "${S}"/include/linux/version.h "${WORKDIR}"
# Buffalo Boxes have a special naming and start address