1 |
commit: 12eabd3efbf7d36d0dcadb233a88b82b7cd0fa4b |
2 |
Author: Julian Ospald <hasufell <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Oct 4 18:56:40 2015 +0000 |
4 |
Commit: Julian Ospald <hasufell <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 4 18:56:40 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=12eabd3e |
7 |
|
8 |
app-admin/gkrellm: add libressl support |
9 |
|
10 |
app-admin/gkrellm/gkrellm-2.3.6_rc1-r1.ebuild | 145 ++++++++++++++++++++++++++ |
11 |
1 file changed, 145 insertions(+) |
12 |
|
13 |
diff --git a/app-admin/gkrellm/gkrellm-2.3.6_rc1-r1.ebuild b/app-admin/gkrellm/gkrellm-2.3.6_rc1-r1.ebuild |
14 |
new file mode 100644 |
15 |
index 0000000..fa3ef34 |
16 |
--- /dev/null |
17 |
+++ b/app-admin/gkrellm/gkrellm-2.3.6_rc1-r1.ebuild |
18 |
@@ -0,0 +1,145 @@ |
19 |
+# Copyright 1999-2015 Gentoo Foundation |
20 |
+# Distributed under the terms of the GNU General Public License v2 |
21 |
+# $Id$ |
22 |
+ |
23 |
+EAPI=5 |
24 |
+ |
25 |
+inherit eutils multilib user systemd toolchain-funcs |
26 |
+ |
27 |
+MY_P="${P/_/-}" |
28 |
+ |
29 |
+DESCRIPTION="Single process stack of various system monitors" |
30 |
+HOMEPAGE="http://www.gkrellm.net/" |
31 |
+SRC_URI="http://gkrellm.srcbox.net/${MY_P}.tar.bz2" |
32 |
+ |
33 |
+LICENSE="GPL-3" |
34 |
+SLOT="2" |
35 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux" |
36 |
+IUSE="gnutls hddtemp libressl lm_sensors nls ntlm ssl kernel_FreeBSD X" |
37 |
+ |
38 |
+RDEPEND=" |
39 |
+ dev-libs/glib:2 |
40 |
+ hddtemp? ( app-admin/hddtemp ) |
41 |
+ gnutls? ( net-libs/gnutls ) |
42 |
+ !gnutls? ( |
43 |
+ ssl? ( |
44 |
+ !libressl? ( dev-libs/openssl:0= ) |
45 |
+ libressl? ( dev-libs/libressl:= ) |
46 |
+ ) |
47 |
+ ) |
48 |
+ lm_sensors? ( sys-apps/lm_sensors ) |
49 |
+ nls? ( virtual/libintl ) |
50 |
+ ntlm? ( net-libs/libntlm ) |
51 |
+ X? ( |
52 |
+ x11-libs/gdk-pixbuf |
53 |
+ x11-libs/gtk+:2 |
54 |
+ x11-libs/libICE |
55 |
+ x11-libs/libSM |
56 |
+ x11-libs/libX11 |
57 |
+ x11-libs/pango |
58 |
+ )" |
59 |
+DEPEND="${RDEPEND} |
60 |
+ virtual/pkgconfig |
61 |
+ nls? ( sys-devel/gettext )" |
62 |
+ |
63 |
+PATCHES=( |
64 |
+ "${FILESDIR}"/${PN}-2.3.5-cifs.patch |
65 |
+ "${FILESDIR}"/${PN}-2.3.5-config.patch |
66 |
+ "${FILESDIR}"/${PN}-2.3.5-width.patch |
67 |
+ "${FILESDIR}"/${PN}-2.3.5-sansfont.patch |
68 |
+ "${FILESDIR}"/${P}-fix_gtk_deprecation_warning.patch |
69 |
+ "${FILESDIR}"/${P}-fix_copypaste_error.patch |
70 |
+ "${FILESDIR}"/${P}-avoid_possible_busy_loop.patch |
71 |
+ "${FILESDIR}"/${P}-update_german_translation.patch.xz |
72 |
+) |
73 |
+ |
74 |
+S="${WORKDIR}/${MY_P}" |
75 |
+ |
76 |
+pkg_setup() { |
77 |
+ enewgroup gkrellmd |
78 |
+ enewuser gkrellmd -1 -1 -1 gkrellmd |
79 |
+ TARGET= |
80 |
+ use kernel_FreeBSD && TARGET="freebsd" |
81 |
+} |
82 |
+ |
83 |
+src_prepare() { |
84 |
+ sed -e 's:-O2 ::' \ |
85 |
+ -e 's:override CC:CFLAGS:' \ |
86 |
+ -e 's:-L/usr/X11R6/lib::' \ |
87 |
+ -i */Makefile || die "sed Makefile(s) failed" |
88 |
+ |
89 |
+ sed -e "s:/usr/lib:${EPREFIX}/usr/$(get_libdir):" \ |
90 |
+ -e "s:/usr/local/lib:${EPREFIX}/usr/local/$(get_libdir):" \ |
91 |
+ -i src/${PN}.h || die "sed ${PN}.h failed" |
92 |
+ |
93 |
+ epatch ${PATCHES[@]} |
94 |
+} |
95 |
+ |
96 |
+src_compile() { |
97 |
+ if use X ; then |
98 |
+ local sslopt="" |
99 |
+ if use gnutls; then |
100 |
+ sslopt="without-ssl=yes" |
101 |
+ elif use ssl; then |
102 |
+ sslopt="without-gnutls=yes" |
103 |
+ else |
104 |
+ sslopt="without-ssl=yes without-gnutls=yes" |
105 |
+ fi |
106 |
+ |
107 |
+ emake \ |
108 |
+ ${TARGET} \ |
109 |
+ CC="$(tc-getCC)" \ |
110 |
+ STRIP="" \ |
111 |
+ INSTALLROOT="${EPREFIX}/usr" \ |
112 |
+ INCLUDEDIR="${EPREFIX}/usr/include/gkrellm2" \ |
113 |
+ LOCALEDIR="${EPREFIX}/usr/share/locale" \ |
114 |
+ $(usex nls "" "enable_nls=0") \ |
115 |
+ $(usex lm_sensors "" "without-libsensors=yes") \ |
116 |
+ $(usex ntlm "" "without-ntlm=yes") \ |
117 |
+ ${sslopt} |
118 |
+ else |
119 |
+ cd server || die |
120 |
+ emake \ |
121 |
+ ${TARGET} \ |
122 |
+ CC="$(tc-getCC)" \ |
123 |
+ LINK_FLAGS="$LDFLAGS -Wl,-E" \ |
124 |
+ STRIP="" \ |
125 |
+ $(usex nls "" "enable_nls=0") \ |
126 |
+ $(usex lm_sensors "" "without-libsensors=yes") |
127 |
+ fi |
128 |
+} |
129 |
+ |
130 |
+src_install() { |
131 |
+ if use X ; then |
132 |
+ emake \ |
133 |
+ install${TARGET:+_}${TARGET} \ |
134 |
+ $(usex nls "" "enable_nls=0") \ |
135 |
+ STRIP="" \ |
136 |
+ INSTALLDIR="${ED}/usr/bin" \ |
137 |
+ INCLUDEDIR="${ED}/usr/include" \ |
138 |
+ LOCALEDIR="${ED}/usr/share/locale" \ |
139 |
+ PKGCONFIGDIR="${ED}/usr/$(get_libdir)/pkgconfig" \ |
140 |
+ MANDIR="${ED}/usr/share/man/man1" |
141 |
+ |
142 |
+ dohtml *.html |
143 |
+ |
144 |
+ newicon src/icon.xpm ${PN}.xpm |
145 |
+ make_desktop_entry ${PN} GKrellM ${PN} |
146 |
+ else |
147 |
+ dobin server/gkrellmd |
148 |
+ |
149 |
+ insinto /usr/include/gkrellm2 |
150 |
+ doins server/gkrellmd.h |
151 |
+ doins shared/log.h |
152 |
+ fi |
153 |
+ |
154 |
+ newinitd "${FILESDIR}"/gkrellmd.initd gkrellmd |
155 |
+ newconfd "${FILESDIR}"/gkrellmd.conf gkrellmd |
156 |
+ |
157 |
+ systemd_dounit "${FILESDIR}"/gkrellmd.service |
158 |
+ |
159 |
+ insinto /etc |
160 |
+ doins server/gkrellmd.conf |
161 |
+ |
162 |
+ dodoc Changelog CREDITS README |
163 |
+} |