blob: 513c156a1d8c15863f9b4e21f8b50c5cf41586aa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/nca/nca-0.9.0.ebuild,v 1.1 2007/05/25 20:44:52 sbriesen Exp $
inherit eutils toolchain-funcs
DESCRIPTION="Network Console on Acid"
HOMEPAGE="http://www.xenoclast.org/nca/"
SRC_URI="http://www.xenoclast.org/nca/download/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
RDEPEND="dev-libs/openssl
sys-libs/zlib"
DEPEND="dev-lang/perl
${RDEPEND}"
src_unpack() {
unpack ${A}
cd "${S}"
sed -i -e "s:^\([[:space:]]\+\$(MAKE) install\):\1 DESTDIR=\$(DESTDIR):g" \
-e "s:=\(\$(CFLAGS)\):=\"\1\":g" -e "s:=\(\$(CC)\):=\"\1\":g" Makefile
sed -i -e "s:-s sshd:sshd:g" ncad.patch
}
src_compile() {
emake -j1 CFLAGS="${CFLAGS}" CC=$(tc-getCC) || die "emake failed"
}
src_install() {
dodir /sbin
emake BINDIR="${D}sbin" MANDIR="${D}usr/share/man" SYSCONF_DIR="${D}etc" \
DESTDIR="${D}" install_nca install_ssh install_man
newinitd "${FILESDIR}/ncad.initd" ncad
dodoc ChangeLog README* rc/ncad.template
}
|