sys-apps/chname: version bump to 1.1
authorMike Frysinger <vapier@gentoo.org>
Wed, 22 Feb 2017 03:10:44 +0000 (22:10 -0500)
committerMike Frysinger <vapier@gentoo.org>
Wed, 22 Feb 2017 03:10:52 +0000 (22:10 -0500)
sys-apps/chname/Manifest
sys-apps/chname/chname-1.1.ebuild [new file with mode: 0644]
sys-apps/chname/files/chname-1.1-flags.patch [new file with mode: 0644]

index 221435950caab71135b57039adf7805d0e06be01..e35f667dbe98ba77c8a012bb65910e2e6ca6e979 100644 (file)
@@ -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 (file)
index 0000000..9f29b7b
--- /dev/null
@@ -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 (file)
index 0000000..2824b0f
--- /dev/null
@@ -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
+