You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
780 B
33 lines
780 B
# Copyright 1999-2020 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI="6"
|
|
|
|
DESCRIPTION="Init script to setup Amazon EC2 instance parameters"
|
|
HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
|
|
SRC_URI=""
|
|
|
|
# Amazon only provides x86 and amd64 Linux Xen guests, possibly FreeBSD,
|
|
# so just don't go adding further keywords.
|
|
KEYWORDS="-* ~amd64 ~x86"
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
IUSE=""
|
|
|
|
RDEPEND="net-misc/wget"
|
|
DEPEND=""
|
|
|
|
# EAPI 4+ requires $S to be set
|
|
S="$WORKDIR"
|
|
|
|
src_install() {
|
|
newinitd "${FILESDIR}/amazon-ec2.init" amazon-ec2
|
|
}
|
|
|
|
pkg_postinst() {
|
|
elog "Remember to add amazon-ec2 init script to your boot runlevel"
|
|
elog "otherwise it won't bring up the correct interfaces and won't."
|
|
elog "start before the hostname has been set."
|
|
}
|