1 |
commit: 4cc9827ebd8e7c50e8ca0cd2449e4894a7acb88f |
2 |
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Mar 5 19:48:41 2017 +0000 |
4 |
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Mar 5 20:02:21 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4cc9827e |
7 |
|
8 |
net-dialup/minicom: Force lockdir to /var/lock |
9 |
|
10 |
Upstream uses automagic detection of the first existing directory of: |
11 |
/etc/locks /var/lock /usr/spool/locks /var/spool/locks /var/spool/lock |
12 |
/usr/spool/uucp /var/spool/uucp /var/run |
13 |
|
14 |
While many of these will exist in a live system, that was not a safe |
15 |
assumption during a chrooted package build, such as stage building. |
16 |
|
17 |
The init system is responsible for creating /var/lock, so force the |
18 |
lockdir to that. |
19 |
|
20 |
Package-Manager: portage-2.3.3 |
21 |
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org> |
22 |
|
23 |
net-dialup/minicom/files/minicom-2.7-lockdir.patch | 14 +++++ |
24 |
net-dialup/minicom/minicom-2.7-r1.ebuild | 59 ++++++++++++++++++++++ |
25 |
2 files changed, 73 insertions(+) |
26 |
|
27 |
diff --git a/net-dialup/minicom/files/minicom-2.7-lockdir.patch b/net-dialup/minicom/files/minicom-2.7-lockdir.patch |
28 |
new file mode 100644 |
29 |
index 00000000000..acbdcbe902b |
30 |
--- /dev/null |
31 |
+++ b/net-dialup/minicom/files/minicom-2.7-lockdir.patch |
32 |
@@ -0,0 +1,14 @@ |
33 |
+--- minicom-2.7.orig/configure.in 2013-12-31 07:14:09.000000000 -0800 |
34 |
++++ minicom-2.7/configure.in 2017-03-05 11:25:01.379020326 -0800 |
35 |
+@@ -217,7 +217,10 @@ |
36 |
+ |
37 |
+ if test "x$UUCPLOCK" != x |
38 |
+ then |
39 |
+- if test -d $UUCPLOCK |
40 |
++ dnl If a lock directory was manually specified, do not test it actually |
41 |
++ dnl exists, as that might not be true during a chroot build, and the |
42 |
++ dnl packager is responsible for making sure it exists at runtime. |
43 |
++ if true |
44 |
+ then |
45 |
+ AC_MSG_RESULT($UUCPLOCK) |
46 |
+ AC_DEFINE_UNQUOTED(UUCPLOCK, "$UUCPLOCK", [Lock directory]) |
47 |
|
48 |
diff --git a/net-dialup/minicom/minicom-2.7-r1.ebuild b/net-dialup/minicom/minicom-2.7-r1.ebuild |
49 |
new file mode 100644 |
50 |
index 00000000000..fece4e19b3e |
51 |
--- /dev/null |
52 |
+++ b/net-dialup/minicom/minicom-2.7-r1.ebuild |
53 |
@@ -0,0 +1,59 @@ |
54 |
+# Copyright 1999-2017 Gentoo Foundation |
55 |
+# Distributed under the terms of the GNU General Public License v2 |
56 |
+ |
57 |
+EAPI=6 |
58 |
+inherit eutils autotools |
59 |
+ |
60 |
+STUPID_NUM="3977" |
61 |
+DESCRIPTION="Serial Communication Program" |
62 |
+HOMEPAGE="http://alioth.debian.org/projects/minicom" |
63 |
+SRC_URI="https://alioth.debian.org/frs/download.php/file/${STUPID_NUM}/${P}.tar.gz" |
64 |
+ |
65 |
+LICENSE="GPL-2" |
66 |
+SLOT="0" |
67 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux" |
68 |
+IUSE="nls" |
69 |
+ |
70 |
+COMMON_DEPEND="sys-libs/ncurses:=" |
71 |
+DEPEND="${COMMON_DEPEND} |
72 |
+ nls? ( sys-devel/gettext )" |
73 |
+RDEPEND="${COMMON_DEPEND} |
74 |
+ net-dialup/lrzsz" |
75 |
+ |
76 |
+DOCS="AUTHORS ChangeLog NEWS README doc/minicom.FAQ" |
77 |
+ |
78 |
+# Supported languages and translated documentation |
79 |
+# Be sure all languages are prefixed with a single space! |
80 |
+MY_AVAILABLE_LINGUAS=" cs da de es fi fr hu id ja nb pl pt_BR ro ru rw sv vi zh_TW" |
81 |
+IUSE="${IUSE} ${MY_AVAILABLE_LINGUAS// / linguas_}" |
82 |
+ |
83 |
+PATCHES=( |
84 |
+ "${FILESDIR}"/${PN}-2.3-gentoo-runscript.patch |
85 |
+ "${FILESDIR}"/${PN}-2.7-lockdir.patch |
86 |
+) |
87 |
+ |
88 |
+src_prepare() { |
89 |
+ default |
90 |
+ mv "${S}"/configure.{in,ac} |
91 |
+ eautoreconf |
92 |
+} |
93 |
+ |
94 |
+src_configure() { |
95 |
+ # Lockdir must exist if not manually specified. |
96 |
+ # /var/lock is created by openrc. |
97 |
+ LOCKDIR=/var/lock |
98 |
+ econf \ |
99 |
+ --sysconfdir="${EPREFIX}"/etc/${PN} \ |
100 |
+ --enable-lock-dir="${LOCKDIR}" \ |
101 |
+ $(use_enable nls) |
102 |
+} |
103 |
+ |
104 |
+src_install() { |
105 |
+ default |
106 |
+ insinto /etc/minicom |
107 |
+ doins "${FILESDIR}"/minirc.dfl |
108 |
+} |
109 |
+ |
110 |
+pkg_preinst() { |
111 |
+ [[ -s ${EROOT}/etc/minicom/minirc.dfl ]] && rm -f "${ED}"/etc/minicom/minirc.dfl |
112 |
+} |