1 |
commit: b7aaf685ad990ddb11f5324fe56f832a5cddd875 |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Dec 27 10:59:05 2015 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Dec 27 10:59:05 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/hardened-dev.git/commit/?id=b7aaf685 |
7 |
|
8 |
media-libs/nas: in tree version works. |
9 |
|
10 |
media-libs/nas/files/nas-1.9.2-asneeded.patch | 13 --- |
11 |
media-libs/nas/files/nas-1.9.4-remove-abs.patch | 16 ---- |
12 |
media-libs/nas/files/nas.conf.d | 11 --- |
13 |
media-libs/nas/files/nas.init.d | 19 ----- |
14 |
media-libs/nas/metadata.xml | 5 -- |
15 |
media-libs/nas/nas-1.9.4-r99.ebuild | 100 ------------------------ |
16 |
6 files changed, 164 deletions(-) |
17 |
|
18 |
diff --git a/media-libs/nas/files/nas-1.9.2-asneeded.patch b/media-libs/nas/files/nas-1.9.2-asneeded.patch |
19 |
deleted file mode 100644 |
20 |
index 2ac8948..0000000 |
21 |
--- a/media-libs/nas/files/nas-1.9.2-asneeded.patch |
22 |
+++ /dev/null |
23 |
@@ -1,13 +0,0 @@ |
24 |
-http://bugs.gentoo.org/show_bug.cgi?id=247761 |
25 |
- |
26 |
---- config/NetAudio.tmpl |
27 |
-+++ config/NetAudio.tmpl |
28 |
-@@ -162,7 +162,7 @@ |
29 |
- |
30 |
- AUDIODEPLIBS = $(DEPAULIB) $(DEPXTOOLLIB) $(DEPXLIB) |
31 |
- #ifndef WIN32 |
32 |
-- AUDIOLIBS = $(AULIB) $(XTOOLLIB) $(XLIB) -lm |
33 |
-+ AUDIOLIBS = $(AULIB) $(XTOOLLIB) $(XAUTHLIB) $(XLIB) -lm |
34 |
- #else /* WIN32 */ |
35 |
- AUDIOLIBS = $(AULIB) |
36 |
- #endif /* WIN32 */ |
37 |
|
38 |
diff --git a/media-libs/nas/files/nas-1.9.4-remove-abs.patch b/media-libs/nas/files/nas-1.9.4-remove-abs.patch |
39 |
deleted file mode 100644 |
40 |
index aa041e9..0000000 |
41 |
--- a/media-libs/nas/files/nas-1.9.4-remove-abs.patch |
42 |
+++ /dev/null |
43 |
@@ -1,16 +0,0 @@ |
44 |
-diff -Naur nas-1.9.4.orig/server/include/misc.h nas-1.9.4/server/include/misc.h |
45 |
---- nas-1.9.4.orig/server/include/misc.h 2013-04-26 20:41:06.000000000 -0400 |
46 |
-+++ nas-1.9.4/server/include/misc.h 2014-05-14 12:46:21.347595909 -0400 |
47 |
-@@ -71,12 +71,6 @@ |
48 |
- |
49 |
- #define min(a, b) (((a) < (b)) ? (a) : (b)) |
50 |
- #define max(a, b) (((a) > (b)) ? (a) : (b)) |
51 |
--#ifndef abs |
52 |
--#define abs(a) ((a) > 0 ? (a) : -(a)) |
53 |
--#endif |
54 |
--#ifndef fabs |
55 |
--#define fabs(a) ((a) > 0.0 ? (a) : -(a)) /* floating absolute value */ |
56 |
--#endif |
57 |
- #define sign(x) ((x) < 0 ? -1 : ((x) > 0 ? 1 : 0)) |
58 |
- /* this assumes b > 0 */ |
59 |
- #define modulus(a, b, d) if (((d) = (a) % (b)) < 0) (d) += (b) |
60 |
|
61 |
diff --git a/media-libs/nas/files/nas.conf.d b/media-libs/nas/files/nas.conf.d |
62 |
deleted file mode 100644 |
63 |
index b8c32db..0000000 |
64 |
--- a/media-libs/nas/files/nas.conf.d |
65 |
+++ /dev/null |
66 |
@@ -1,11 +0,0 @@ |
67 |
-# Config file for /etc/init.d/nas |
68 |
- |
69 |
-# For information on options, see "/usr/bin/nasd -h". |
70 |
- |
71 |
-NAS_OPTIONS="" |
72 |
- |
73 |
-# Allow only clients on local network to connect: |
74 |
-#NAS_OPTIONS="-local" |
75 |
- |
76 |
-# Allow any client to connect: |
77 |
-#NAS_OPTIONS="-aa" |
78 |
|
79 |
diff --git a/media-libs/nas/files/nas.init.d b/media-libs/nas/files/nas.init.d |
80 |
deleted file mode 100644 |
81 |
index 6cfab54..0000000 |
82 |
--- a/media-libs/nas/files/nas.init.d |
83 |
+++ /dev/null |
84 |
@@ -1,19 +0,0 @@ |
85 |
-#!/sbin/runscript |
86 |
- |
87 |
-depend() { |
88 |
- need net |
89 |
- after alsasound esd |
90 |
-} |
91 |
- |
92 |
-start() { |
93 |
- ebegin "Starting nas" |
94 |
- start-stop-daemon --start --quiet --exec /usr/bin/nasd --background \ |
95 |
- --pidfile /var/run/nasd.pid --make-pidfile -- $NAS_OPTIONS |
96 |
- eend $? |
97 |
-} |
98 |
- |
99 |
-stop() { |
100 |
- ebegin "Stopping nas" |
101 |
- start-stop-daemon --stop --quiet --pidfile /var/run/nasd.pid |
102 |
- eend $? |
103 |
-} |
104 |
|
105 |
diff --git a/media-libs/nas/metadata.xml b/media-libs/nas/metadata.xml |
106 |
deleted file mode 100644 |
107 |
index ae573a6..0000000 |
108 |
--- a/media-libs/nas/metadata.xml |
109 |
+++ /dev/null |
110 |
@@ -1,5 +0,0 @@ |
111 |
-<?xml version="1.0" encoding="UTF-8"?> |
112 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
113 |
-<pkgmetadata> |
114 |
- <herd>sound</herd> |
115 |
-</pkgmetadata> |
116 |
|
117 |
diff --git a/media-libs/nas/nas-1.9.4-r99.ebuild b/media-libs/nas/nas-1.9.4-r99.ebuild |
118 |
deleted file mode 100644 |
119 |
index 491cf09..0000000 |
120 |
--- a/media-libs/nas/nas-1.9.4-r99.ebuild |
121 |
+++ /dev/null |
122 |
@@ -1,100 +0,0 @@ |
123 |
-# Copyright 1999-2014 Gentoo Foundation |
124 |
-# Distributed under the terms of the GNU General Public License v2 |
125 |
-# $Header: /var/cvsroot/gentoo-x86/media-libs/nas/nas-1.9.4.ebuild,v 1.10 2014/02/22 07:40:39 ago Exp $ |
126 |
- |
127 |
-EAPI=5 |
128 |
-inherit eutils multilib toolchain-funcs multilib-minimal |
129 |
- |
130 |
-DESCRIPTION="Network Audio System" |
131 |
-HOMEPAGE="http://radscan.com/nas.html" |
132 |
-SRC_URI="mirror://sourceforge/${PN}/${P}.src.tar.gz" |
133 |
- |
134 |
-LICENSE="HPND MIT" |
135 |
-SLOT="0" |
136 |
-KEYWORDS="amd64 arm ~mips x86" |
137 |
-IUSE="doc static-libs" |
138 |
- |
139 |
-RDEPEND="x11-libs/libICE |
140 |
- x11-libs/libSM |
141 |
- x11-libs/libX11 |
142 |
- x11-libs/libXau[${MULTILIB_USEDEP}] |
143 |
- x11-libs/libXaw |
144 |
- x11-libs/libXext |
145 |
- x11-libs/libXmu |
146 |
- x11-libs/libXpm |
147 |
- x11-libs/libXt[${MULTILIB_USEDEP}]" |
148 |
-DEPEND="${RDEPEND} |
149 |
- app-text/rman |
150 |
- sys-devel/bison |
151 |
- sys-devel/flex |
152 |
- x11-misc/gccmakedep |
153 |
- x11-misc/imake |
154 |
- x11-proto/xproto[${MULTILIB_USEDEP}]" |
155 |
- |
156 |
-DOCS=( BUILDNOTES FAQ HISTORY README RELEASE TODO ) |
157 |
- |
158 |
-src_prepare() { |
159 |
- epatch "${FILESDIR}"/${PN}-1.9.2-asneeded.patch |
160 |
- epatch "${FILESDIR}"/${PN}-1.9.4-remove-abs.patch |
161 |
- |
162 |
- multilib_copy_sources |
163 |
-} |
164 |
- |
165 |
-multilib_src_configure() { |
166 |
- xmkmf -a || die |
167 |
-} |
168 |
- |
169 |
-multilib_src_compile() { |
170 |
- # EXTRA_LDOPTIONS, SHLIBGLOBALSFLAGS #336564#c2 |
171 |
- local emakeopts=( |
172 |
- AR="$(tc-getAR) clq" |
173 |
- AS="$(tc-getAS)" |
174 |
- CC="$(tc-getCC)" |
175 |
- CDEBUGFLAGS="${CFLAGS}" |
176 |
- CXX="$(tc-getCXX)" |
177 |
- CXXDEBUFLAGS="${CXXFLAGS}" |
178 |
- EXTRA_LDOPTIONS="${LDFLAGS}" |
179 |
- LD="$(tc-getLD)" |
180 |
- MAKE="${MAKE:-gmake}" |
181 |
- RANLIB="$(tc-getRANLIB)" |
182 |
- SHLIBGLOBALSFLAGS="${LDFLAGS}" |
183 |
- WORLDOPTS= |
184 |
- ) |
185 |
- |
186 |
- if multilib_is_native_abi ; then |
187 |
- # dumb fix for parallel make issue wrt #446598, Imake sux |
188 |
- emake "${emakeopts[@]}" -C server/dia all |
189 |
- emake "${emakeopts[@]}" -C server/dda/voxware all |
190 |
- emake "${emakeopts[@]}" -C server/os all |
191 |
- else |
192 |
- sed -i \ |
193 |
- -e 's/SUBDIRS =.*/SUBDIRS = include lib config/' \ |
194 |
- Makefile || die |
195 |
- fi |
196 |
- |
197 |
- emake "${emakeopts[@]}" World |
198 |
-} |
199 |
- |
200 |
-multilib_src_install() { |
201 |
- # ranlib is used at install phase too wrt #446600 |
202 |
- emake RANLIB="$(tc-getRANLIB)" \ |
203 |
- DESTDIR="${D}" USRLIBDIR=/usr/$(get_libdir) \ |
204 |
- install install.man |
205 |
-} |
206 |
- |
207 |
-multilib_src_install_all() { |
208 |
- einstalldocs |
209 |
- if use doc; then |
210 |
- docinto doc |
211 |
- dodoc doc/{actions,protocol.txt,README} |
212 |
- docinto pdf |
213 |
- dodoc doc/pdf/*.pdf |
214 |
- fi |
215 |
- |
216 |
- mv -vf "${D}"/etc/nas/nasd.conf{.eg,} || die |
217 |
- |
218 |
- newconfd "${FILESDIR}"/nas.conf.d nas |
219 |
- newinitd "${FILESDIR}"/nas.init.d nas |
220 |
- |
221 |
- use static-libs || rm -f "${D}"/usr/lib*/libaudio.a |
222 |
-} |