30 lines
679 B
Bash
30 lines
679 B
Bash
# Copyright 1999-2013 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
inherit rpm toolchain-funcs
|
|
|
|
# Tag for which Fedora Core version it's from
|
|
FCVER="6"
|
|
|
|
MY_PV="${PV%.*}-${PV##*.}"
|
|
MY_P="${PN%%-*}-${MY_PV}"
|
|
DESCRIPTION="A simple BIND key generator"
|
|
HOMEPAGE="https://fedora.redhat.com/projects/config-tools/"
|
|
SRC_URI="mirror://gentoo/${MY_P}.fc${FCVER}.src.rpm"
|
|
|
|
LICENSE="public-domain"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~ppc ~x86"
|
|
IUSE=""
|
|
|
|
RDEPEND=""
|
|
DEPEND="${RDEPEND}"
|
|
S="${WORKDIR}"
|
|
|
|
src_compile() {
|
|
$(tc-getCC) ${CFLAGS} ${LDFLAGS} -o ${PN#*-} ${PN##*-}.c || die "compile failed"
|
|
}
|
|
|
|
src_install() {
|
|
dosbin ${PN#*-} || die "dosbin failed"
|
|
}
|