/[gentoo-x86]/sys-apps/chname/chname-1.0-r1.ebuild
Gentoo

Contents of /sys-apps/chname/chname-1.0-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Thu Dec 30 18:53:45 2010 UTC (3 years, 3 months ago) by jer
Branch: MAIN
CVS Tags: HEAD
Respect LDFLAGS (bug #337865), CC. Reword postinst message.

(Portage version: 2.2.0_alpha10/cvs/Linux i686)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-apps/chname/chname-1.0.ebuild,v 1.3 2010/09/17 09:22:01 robbat2 Exp $
4
5 inherit toolchain-funcs
6
7 DESCRIPTION="Run a command with a new system hostname."
8 HOMEPAGE="http://code.google.com/p/chname"
9 SRC_URI="http://chname.googlecode.com/files/chname-1.0.tar.gz"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="~amd64 ~x86"
14 IUSE=""
15
16 DEPEND=">=sys-kernel/linux-headers-2.6.16"
17 RDEPEND=""
18
19 src_compile() {
20 emake CC=$(tc-getCC) CFLAGS="${CFLAGS} ${LDFLAGS}" chname || die
21 }
22
23 src_install() {
24 dobin chname
25 doman chname.1
26 }
27
28 pkg_postinst() {
29 elog "Note: chname requires a or later kernel with CONFIG_UTS_NS=y."
30 }

  ViewVC Help
Powered by ViewVC 1.1.20