2010-10-31 14:20:29 +01:00
|
|
|
# Copyright 1999-2010 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# $Header: $
|
|
|
|
|
2010-11-01 07:02:34 +01:00
|
|
|
EAPI="2"
|
|
|
|
|
2010-10-31 14:20:29 +01:00
|
|
|
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"
|
|
|
|
|
2010-11-01 07:02:34 +01:00
|
|
|
src_prepare() {
|
|
|
|
sed -e '1,2d' -i update-motd.sh
|
|
|
|
}
|
|
|
|
|
2010-10-31 14:20:29 +01:00
|
|
|
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
|
|
|
|
}
|