add dynamic motd generator
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/genlink@2634 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
5
app-admin/motd-base/Manifest
Normal file
5
app-admin/motd-base/Manifest
Normal file
@@ -0,0 +1,5 @@
|
||||
AUX motd.d/00-header 57 RMD160 9bd1766403b866cd4beb0158d1fdd00bc99f3aaf SHA1 bc1b6a5403f9b6e331c660bde88440505328b005 SHA256 72e9c56912bd112a3ec63db880bf2908753df5ecbe06eee4e98cfd11a1f2d6da
|
||||
AUX motd.d/10-help-text 96 RMD160 e72204b9666f1cc317b8e9e7fae833d2e97e27ca SHA1 305fdc18cf3e79b1ed80c2ba6db1cc2791457e73 SHA256 0b35ea7ee40473d96bf9243a96687e10cd57bcd53c7d70649b4aa987b7a22fd7
|
||||
AUX motd.d/20-linux-logo 167 RMD160 174611c507cb206397c31819637d2e11e36bdcf3 SHA1 89771ebbb42d64ab0fcc8bc31a0c4336475afce1 SHA256 85ca75de7175589767e19306d9b1a2326448a1eaa3e575394d9e0d5f31a9a6bf
|
||||
AUX motd.d/99-footer 261 RMD160 bc079cb699f07e1be6c3272647ef4e631f4b11d0 SHA1 9872e8f9eb8f80cd5e7e262e8d8f8074110dcf70 SHA256 38c64225ecb7486461ce84199f120d8b13e7f13764df430c3cc10a9695023ee6
|
||||
EBUILD motd-base-1.ebuild 440 RMD160 9a753c5fd13b2119d24556a209447287bb0f5f1c SHA1 0e63609a5900b9bd86b839046122f8fa856d0488 SHA256 1ec5ed3543f58f2e93ed90226c0a7095fff682501fcc0a0a43641142f1f6b57e
|
||||
4
app-admin/motd-base/files/motd.d/00-header
Executable file
4
app-admin/motd-base/files/motd.d/00-header
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
uname -a
|
||||
printf "%s\n" "$(lsb_release -s -d)"
|
||||
5
app-admin/motd-base/files/motd.d/10-help-text
Executable file
5
app-admin/motd-base/files/motd.d/10-help-text
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
echo
|
||||
echo "Welcome to Gentoo Linux!"
|
||||
echo " * Documentation: http://www.gentoo.org"
|
||||
6
app-admin/motd-base/files/motd.d/20-linux-logo
Executable file
6
app-admin/motd-base/files/motd.d/20-linux-logo
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
# To add dynamic information, add a numbered
|
||||
# script to /etc/update-motd.d/
|
||||
|
||||
[ -f /usr/bin/linux_logo ] && /usr/bin/linux_logo -f -u -L gentoo-alt || true
|
||||
10
app-admin/motd-base/files/motd.d/99-footer
Executable file
10
app-admin/motd-base/files/motd.d/99-footer
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
# motd.tail is reserved for the admin to append static
|
||||
# trailing information to a dynamically generated
|
||||
# /etc/motd.
|
||||
#
|
||||
# To add dynamic information, add a numbered
|
||||
# script to /etc/update-motd.d/
|
||||
|
||||
[ -f /etc/motd.tail ] && cat /etc/motd.tail || true
|
||||
23
app-admin/motd-base/motd-base-1.ebuild
Normal file
23
app-admin/motd-base/motd-base-1.ebuild
Normal file
@@ -0,0 +1,23 @@
|
||||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
inherit eutils
|
||||
|
||||
DESCRIPTION="Base Motd Files for gentoo"
|
||||
HOMEPAGE="http://linamh.disconnected-by-peer.at"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="app-admin/update-motd
|
||||
app-misc/linux-logo
|
||||
sys-apps/lsb-release"
|
||||
|
||||
src_install() {
|
||||
insinto /etc/update-motd.d
|
||||
doins "${FILESDIR}"/motd.d/*
|
||||
}
|
||||
2
app-admin/update-motd/Manifest
Normal file
2
app-admin/update-motd/Manifest
Normal file
@@ -0,0 +1,2 @@
|
||||
DIST update-motd_3.5.orig.tar.gz 17686 RMD160 f4df6d07798a04c69d0ae7740b806551c6bc5e46 SHA1 4e34fa820463bebb83c4a30cfbe4f0496f8eb1e7 SHA256 c1f8c3d8b54aa6a1300b173b4bf81ee768ffd9396ef3e4ce4c1454ef32a7ed00
|
||||
EBUILD update-motd-3.5.ebuild 654 RMD160 7e29fbf36a30275d24de614de18ba392e8bdcda1 SHA1 d63436d6d9c0339dbd6d2a647eb59725516c53c7 SHA256 b8c8b951889e9509f861418e7c4d682586b86bb17308c3b08c3a12fbb9773244
|
||||
35
app-admin/update-motd/update-motd-3.5.ebuild
Normal file
35
app-admin/update-motd/update-motd-3.5.ebuild
Normal file
@@ -0,0 +1,35 @@
|
||||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
inherit eutils
|
||||
|
||||
DESCRIPTION="dynamic update for the motd file"
|
||||
HOMEPAGE="http://bazaar.launchpad.net/~kirkland/update-motd/main"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE=""
|
||||
RESTRICT="mirror"
|
||||
|
||||
S="${WORKDIR}/${PN}_${PV}.orig"
|
||||
|
||||
SRC_URI_BASE="mirror://ubuntu/pool/main/${PN:0:1}/${PN}/"
|
||||
SRC_URI="${SRC_URI_BASE}${PN}_${PV}.orig.tar.gz"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="sys-apps/debianutils"
|
||||
PDEPEND="app-admin/motd-base"
|
||||
|
||||
src_install() {
|
||||
dobin update-motd
|
||||
insinto /etc/profile.d
|
||||
doins update-motd.sh
|
||||
|
||||
doman update-motd.1
|
||||
|
||||
dodoc README THANKS
|
||||
|
||||
keepdir /etc/update-motd.d
|
||||
}
|
||||
Reference in New Issue
Block a user