summaryrefslogtreecommitdiff
path: root/net-dialup
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2017-04-04 13:15:59 +0200
committerKarel Kočí <cynerd@email.cz>2017-04-04 13:15:59 +0200
commit4a2209eed678fd4060de0c2d47758cb8d21779dc (patch)
treed9ddc892004f15eddcc9d0146b845c31f54c6ddd /net-dialup
downloadgentoo-personal-overlay-4a2209eed678fd4060de0c2d47758cb8d21779dc.tar.gz
gentoo-personal-overlay-4a2209eed678fd4060de0c2d47758cb8d21779dc.tar.bz2
gentoo-personal-overlay-4a2209eed678fd4060de0c2d47758cb8d21779dc.zip
Initial personal gentoo overlay
Diffstat (limited to 'net-dialup')
-rw-r--r--net-dialup/sterm/files/Fix-install-strip.patch36
-rw-r--r--net-dialup/sterm/sterm-20170112.ebuild24
2 files changed, 60 insertions, 0 deletions
diff --git a/net-dialup/sterm/files/Fix-install-strip.patch b/net-dialup/sterm/files/Fix-install-strip.patch
new file mode 100644
index 0000000..ed7da33
--- /dev/null
+++ b/net-dialup/sterm/files/Fix-install-strip.patch
@@ -0,0 +1,36 @@
+From da180154a36f14169ed80da310e378ae38516ba8 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= <karel.koci@nic.cz>
+Date: Mon, 5 Dec 2016 07:41:40 +0100
+Subject: [PATCH 1/2] Fix install strip
+
+Strip can be used only on executables, adding it to all install
+commands causes error on some systems.
+---
+ Makefile | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index 2cc363c..539342a 100644
+--- a/Makefile
++++ b/Makefile
+@@ -2,7 +2,7 @@ CFLAGS = -O2 -Wall -g
+ LDLIBS = -llockdev
+
+ PREFIX ?= /usr/local
+-INSTALL ?= install -s
++INSTALL ?= install
+
+ all: sterm
+
+@@ -11,7 +11,7 @@ clean:
+
+ install: all
+ $(INSTALL) -d $(DESTDIR)$(PREFIX)/bin
+- $(INSTALL) -m 755 sterm $(DESTDIR)$(PREFIX)/bin
++ $(INSTALL) -s -m 755 sterm $(DESTDIR)$(PREFIX)/bin
+ ifneq ($(NO_MAN),1)
+ $(INSTALL) -d $(DESTDIR)$(PREFIX)/share/man/man1
+ $(INSTALL) -m 644 sterm.man $(DESTDIR)$(PREFIX)/share/man/man1/sterm.1
+--
+2.10.2
+
diff --git a/net-dialup/sterm/sterm-20170112.ebuild b/net-dialup/sterm/sterm-20170112.ebuild
new file mode 100644
index 0000000..d3ab7b9
--- /dev/null
+++ b/net-dialup/sterm/sterm-20170112.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils git-r3
+
+DESCRIPTION="Simple serial terminal"
+HOMEPAGE="https://rtime.felk.cvut.cz/gitweb/sojka/sterm.git"
+
+EGIT_REPO_URI="git://rtime.felk.cvut.cz/sojka/sterm.git"
+EGIT_COMMIT="${PV}"
+
+LICENSE="GPL-3.0+"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="dev-libs/lockdev"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}/Fix-install-strip.patch"
+}