summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2017-02-21 22:10:44 -0500
committerMike Frysinger <vapier@gentoo.org>2017-02-21 22:10:52 -0500
commit07d416833c07bed58b0c652d213937b40cfd74c9 (patch)
tree8e8a19c69d1a77376db07f3e493f0c9ec2759085 /sys-apps/chname
parentsys-apps/chname: stabilize 1.0-r2 for all (diff)
downloadgentoo-07d416833c07bed58b0c652d213937b40cfd74c9.tar.gz
gentoo-07d416833c07bed58b0c652d213937b40cfd74c9.tar.bz2
gentoo-07d416833c07bed58b0c652d213937b40cfd74c9.zip
sys-apps/chname: version bump to 1.1
Diffstat (limited to 'sys-apps/chname')
-rw-r--r--sys-apps/chname/Manifest1
-rw-r--r--sys-apps/chname/chname-1.1.ebuild32
-rw-r--r--sys-apps/chname/files/chname-1.1-flags.patch28
3 files changed, 61 insertions, 0 deletions
diff --git a/sys-apps/chname/Manifest b/sys-apps/chname/Manifest
index 221435950caa..e35f667dbe98 100644
--- a/sys-apps/chname/Manifest
+++ b/sys-apps/chname/Manifest
@@ -1 +1,2 @@
DIST chname-1.0.tar.gz 998 SHA256 a94d24870491f3a5671292379ba0fee7130a1ff2f7bc99dad04a4daacccb98d5 SHA512 9c36c779e39b2051f84af5cb728a6810b5ede4134dee6156eff02c689dd4184c537d1502b35f9d7792d3e1babbf66bc7192d006d957b188c61f915fc93c515d7 WHIRLPOOL ef7f93b686b66eeb65d7b244f447c4f07df35863c5df3d1c32ebc82e6339c2859b1ba8195fec4a317d86d0aa83025454b9a481bcf0c5f252061008d87879af6e
+DIST chname-1.1.tar.gz 8010 SHA256 4dd3961c641d79a9700b118c1fde8ecd2be5122470bef51d39ecbc601e5090fd SHA512 4194b48189f949a95a1f8037638acbdd4bd3734dbc1cd3eb7642a0a2acaa8ba75e48d43ff01029b64da34b36683da917f52809915108e61973cb1e097b2a0993 WHIRLPOOL 89667a366e506afec00ce2d04a364acd491ca2165fb2b8a9e6c022370978a43cd9eb36d6fee96b7e06d6cc0d0f130d44c9b8775d460a52c5379782f2835da58f
diff --git a/sys-apps/chname/chname-1.1.ebuild b/sys-apps/chname/chname-1.1.ebuild
new file mode 100644
index 000000000000..9f29b7b44a53
--- /dev/null
+++ b/sys-apps/chname/chname-1.1.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit toolchain-funcs
+
+DESCRIPTION="Run a command with a new system hostname"
+HOMEPAGE="https://github.com/marineam/chname"
+SRC_URI="https://github.com/marineam/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=">=sys-kernel/linux-headers-2.6.16"
+RDEPEND=""
+
+PATCHES=(
+ "${FILESDIR}"/${P}-flags.patch
+)
+
+src_configure() {
+ tc-export CC
+}
+
+src_install() {
+ dobin "${PN}"
+ doman "${PN}.1"
+ dodoc README*
+}
diff --git a/sys-apps/chname/files/chname-1.1-flags.patch b/sys-apps/chname/files/chname-1.1-flags.patch
new file mode 100644
index 000000000000..2824b0f53ee2
--- /dev/null
+++ b/sys-apps/chname/files/chname-1.1-flags.patch
@@ -0,0 +1,28 @@
+From e835e6a379969f5f188d02843257fa581ade083b Mon Sep 17 00:00:00 2001
+From: Mike Frysinger <vapier@gentoo.org>
+Date: Tue, 21 Feb 2017 21:56:10 -0500
+Subject: [PATCH] fix handling of compiler settings
+
+---
+ Makefile | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index 77e5731641ac..5b8485b6d849 100644
+--- a/Makefile
++++ b/Makefile
+@@ -1,9 +1,9 @@
+-CFLAGS:=-Wall
++CFLAGS += -Wall
+
+ all: chname
+
+ chname: chname.c
+- $(CC) $(CFLAGS) -o chname chname.c
++ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o chname chname.c
+
+ clean:
+ $(RM) chname
+--
+2.11.1
+