1 |
commit: 3a2d90d1272deaeeadf83ea5fa71e9c1aa36003e |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Dec 1 12:59:52 2018 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Dec 1 13:03:28 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a2d90d1 |
7 |
|
8 |
sys-libs/libvpd: Version 2.2.6 |
9 |
|
10 |
Package-Manager: Portage-2.3.52, Repoman-2.3.12 |
11 |
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org> |
12 |
|
13 |
sys-libs/libvpd/Manifest | 1 + |
14 |
.../libvpd/files/libvpd-2.2.6-localstatedir.patch | 21 ++++++++++++ |
15 |
sys-libs/libvpd/libvpd-2.2.6.ebuild | 38 ++++++++++++++++++++++ |
16 |
3 files changed, 60 insertions(+) |
17 |
|
18 |
diff --git a/sys-libs/libvpd/Manifest b/sys-libs/libvpd/Manifest |
19 |
index dacb79dde20..cbd99e5e12f 100644 |
20 |
--- a/sys-libs/libvpd/Manifest |
21 |
+++ b/sys-libs/libvpd/Manifest |
22 |
@@ -1,3 +1,4 @@ |
23 |
DIST libvpd-2.1.3.tar.gz 116493 BLAKE2B 12647984c54042d77944cdeb4132a2ddeaa51502a919d790d6bd5d479efb09c06a2dde983386d62a206f0b2c7eeeb8713ac53af20cc0f53e9c24bc18073d24fb SHA512 f5aac9253752552674ac6c54dd3e6dbdd7ff79867740076d6e19782940b809e53736a11e668978d8d73bf636d92d1daeb78080e5fd31c4febc2257e5497c373c |
24 |
DIST libvpd-2.2.4.tar.gz 374665 BLAKE2B d27cdf647c69cae2478b9286f255a9722d46c2817817da8f805f3385ece754df77505bb02e624babff66fc111ba80c26175e276ac35b7796c4a977b538ea81cb SHA512 89f7e235e957393fe33e484b23fce15fbf36274db6115e7245027a17b7535e387f835c048a7063f317f10de2351a78acf2ca72b10adee0020ce62a035bfe787e |
25 |
DIST libvpd-2.2.5.tar.gz 374311 BLAKE2B 1d0d793b958c46d6795097f5bd2f7bac3f9f9167aee0b21535d3a37114290f39cfdfb10f3789f995267312b898447f230263a0b08916f11490d56c2dd0573b4a SHA512 06969e61d2882a30ebff13b6432397edb0119adc0b0f8ea603973c6ef439320c39c1cbc218fab154d595fadc966bfef07a4a9c4e4ec8fd772cf7d396000864b0 |
26 |
+DIST libvpd-2.2.6.tar.gz 374262 BLAKE2B b7741948aa62ad6221d28a674f765d085e1446c0bb45d7aa7a5f08599471023b2bb794ad5645c3b70af5806cd48cc87f117f9b4021e0f8c872ca48b748cc1e60 SHA512 17046eeb6ccc5372d465848eff7135cf6e9f876a2d82862e1d01a9f674b691958942e119f846bc3220c1e8f7eb549c5c7867d5d5e896072c733f400d202abc1d |
27 |
|
28 |
diff --git a/sys-libs/libvpd/files/libvpd-2.2.6-localstatedir.patch b/sys-libs/libvpd/files/libvpd-2.2.6-localstatedir.patch |
29 |
new file mode 100644 |
30 |
index 00000000000..78a44a6351c |
31 |
--- /dev/null |
32 |
+++ b/sys-libs/libvpd/files/libvpd-2.2.6-localstatedir.patch |
33 |
@@ -0,0 +1,21 @@ |
34 |
+--- a/Makefile.am |
35 |
++++ b/Makefile.am |
36 |
+@@ -66,6 +66,6 @@ |
37 |
+ |
38 |
+ install-exec-hook: |
39 |
+ mkdir -p $(DESTDIR)/${sysconfdir}/udev/rules.d/ |
40 |
+- mkdir -p $(DESTDIR)/${localstatedir}/lib/lsvpd/ |
41 |
++ mkdir -p $(DESTDIR)/${localstatedir}/lsvpd/ |
42 |
+ install -D --mode=644 90-vpdupdate.rules \ |
43 |
+ ${DESTDIR}/${sysconfdir}/udev/rules.d/90-vpdupdate.rules |
44 |
+--- a/Makefile.in |
45 |
++++ b/Makefile.in |
46 |
+@@ -1046,7 +1046,7 @@ |
47 |
+ |
48 |
+ install-exec-hook: |
49 |
+ mkdir -p $(DESTDIR)/${sysconfdir}/udev/rules.d/ |
50 |
+- mkdir -p $(DESTDIR)/${localstatedir}/lib/lsvpd/ |
51 |
++ mkdir -p $(DESTDIR)/${localstatedir}/lsvpd/ |
52 |
+ install -D --mode=644 90-vpdupdate.rules \ |
53 |
+ ${DESTDIR}/${sysconfdir}/udev/rules.d/90-vpdupdate.rules |
54 |
+ |
55 |
|
56 |
diff --git a/sys-libs/libvpd/libvpd-2.2.6.ebuild b/sys-libs/libvpd/libvpd-2.2.6.ebuild |
57 |
new file mode 100644 |
58 |
index 00000000000..a85c190bf64 |
59 |
--- /dev/null |
60 |
+++ b/sys-libs/libvpd/libvpd-2.2.6.ebuild |
61 |
@@ -0,0 +1,38 @@ |
62 |
+# Copyright 1999-2018 Gentoo Authors |
63 |
+# Distributed under the terms of the GNU General Public License v2 |
64 |
+ |
65 |
+EAPI=7 |
66 |
+inherit udev |
67 |
+ |
68 |
+DESCRIPTION="Library implementation for listing vpds" |
69 |
+HOMEPAGE="https://sourceforge.net/projects/linux-diag/" |
70 |
+SRC_URI="https://sourceforge.net/projects/linux-diag/files/libvpd/${PV}/libvpd-${PV}.tar.gz" |
71 |
+ |
72 |
+LICENSE="LGPL-2.1+" |
73 |
+SLOT="0" |
74 |
+KEYWORDS="~ppc ~ppc64" |
75 |
+IUSE="static-libs" |
76 |
+ |
77 |
+DEPEND=" |
78 |
+ >=dev-db/sqlite-3.7.8 |
79 |
+ sys-libs/zlib |
80 |
+" |
81 |
+RDEPEND="${DEPEND}" |
82 |
+PATCHES=( |
83 |
+ "${FILESDIR}"/${PN}-2.2.6-localstatedir.patch |
84 |
+) |
85 |
+ |
86 |
+src_configure() { |
87 |
+ # sysconfdir is used only to establish where the udev rules file should go |
88 |
+ # unfortunately it also adds the subdirs on its own so we strip it down to |
89 |
+ # dirname |
90 |
+ econf \ |
91 |
+ $(use_enable static-libs static) \ |
92 |
+ --sysconfdir="$( dirname $(get_udevdir) )" |
93 |
+} |
94 |
+ |
95 |
+src_install(){ |
96 |
+ default |
97 |
+ keepdir /var/lib/lsvpd |
98 |
+ find "${D}" -name '*.la' -delete || die |
99 |
+} |