You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

835 lines
26 KiB

  1. --- sparc-utils-1.9.orig/prtconf-1.3/eeprom.8
  2. +++ sparc-utils-1.9/prtconf-1.3/eeprom.8
  3. @@ -345,7 +345,7 @@
  4. has been written by Jakub Jelinek <jakub@redhat.com>.
  5. .SH AVAILABILITY
  6. .B eeprom
  7. -is available for anonymous ftp from sunsite.mff.cuni.cz in
  8. -/OS/Linux/Sparc/local/prtconf/.
  9. +is available for anonymous download at
  10. +http://vger.samba.org/cgi-bin/cvsweb/prtconf/?cvsroot=vger.
  11. .SH SEE ALSO
  12. .B /proc/openprom/, /dev/openprom, prtconf(8)
  13. --- sparc-utils-1.9.orig/prtconf-1.3/prtconf.c
  14. +++ sparc-utils-1.9/prtconf-1.3/prtconf.c
  15. @@ -1,4 +1,4 @@
  16. -/* $Id: prtconf.c,v 1.3 1998/03/03 08:41:42 jj Exp $
  17. +/* $Id: prtconf.c,v 1.4 2001/11/22 13:30:55 davem Exp $
  18. * prtconf.c: OpenPROM dump utility.
  19. *
  20. * Copyright (C) 1998 Jakub Jelinek (jj@ultra.linux.cz)
  21. @@ -274,7 +274,7 @@
  22. if (string)
  23. printf("%s: '%s'\n", op->oprom_array, prop);
  24. else {
  25. - printf("%s: ");
  26. + printf("%s: ", op->oprom_array);
  27. while (len > sizeof(int)) {
  28. printf("%08x.", *(int *)prop);
  29. prop += sizeof(int);
  30. --- sparc-utils-1.9.orig/prtconf-1.3/eeprom.c
  31. +++ sparc-utils-1.9/prtconf-1.3/eeprom.c
  32. @@ -54,7 +54,7 @@
  33. int prom_root_node, prom_current_node;
  34. #define MAX_PROP 128
  35. #define MAX_VAL (4096-128-4)
  36. -char buf[4096];
  37. +char buf[4096] __attribute__ ((aligned(4)));
  38. #define DECL_OP(size) struct openpromio *op = (struct openpromio *)buf; op->oprom_size = (size)
  39. void (*prom_walk_callback)(int node);
  40. char prom_path[1024];
  41. @@ -653,7 +653,7 @@
  42. static void print_all_options(void)
  43. {
  44. - char buf2[4096];
  45. + char buf2[4096] __attribute__ ((aligned(4)));
  46. struct openpromio *op = (struct openpromio *)buf2;
  47. int len, string;
  48. char *prop;
  49. --- sparc-utils-1.9.orig/prtconf-1.3/prtconf.8
  50. +++ sparc-utils-1.9/prtconf-1.3/prtconf.8
  51. @@ -87,7 +87,7 @@
  52. has been written by Jakub Jelinek <jj@ultra.linux.cz>.
  53. .SH AVAILABILITY
  54. .B prtconf
  55. -is available for anonymous ftp from sunsite.mff.cuni.cz in
  56. -/OS/Linux/Sparc/local/prtconf/.
  57. +is available for anonymous download at
  58. +http://vger.samba.org/cgi-bin/cvsweb/prtconf/?cvsroot=vger.
  59. .SH SEE ALSO
  60. .B /proc/openprom/, /dev/openprom, eeprom(8)
  61. --- sparc-utils-1.9.orig/debian/audioctl.def
  62. +++ sparc-utils-1.9/debian/audioctl.def
  63. @@ -0,0 +1,35 @@
  64. +#
  65. +# Defaults for audiocl
  66. +#
  67. +# This file is part of sparc-utils package.
  68. +
  69. +# List of fields to be tuned:
  70. +#
  71. +# monitor_gain input to output mix (0-255)
  72. +# output_muted 1=muted, 0=not muted
  73. +#
  74. +# play.gain gain level (0-255)
  75. +# play.balance stereo channel balance
  76. +# play.port 'speaker', 'headphone', 'line_out'
  77. +# play.pause 1=pause, 0=resume
  78. +# play.buffer_size input buffer size in bytes
  79. +#
  80. +# Note that some field values are reset on device open and/or close. It is
  81. +# especially true for play.encoding, play.sample_rate, play.channels and
  82. +# play.precision, therefore setting them at boot time is not very useful.
  83. +# Same apply on record fields.
  84. +#
  85. +# record.gain gain level (0-255)
  86. +# record.balance stereo channel balance
  87. +# record.port 'microphone', 'line_in', 'internal_cd', 'analog_loopback'
  88. +# record.pause 1=pause, 0=resume
  89. +# record.buffer_size output buffer size in bytes
  90. +#
  91. +# Fill in PARAMS variable with a set of field=value assignments.
  92. +#
  93. +# Example:
  94. +#
  95. +#PARAMS="play.port=line_out record.port=line_in"
  96. +
  97. +#DEVICE=/dev/audioctl
  98. +
  99. --- sparc-utils-1.9.orig/debian/changelog
  100. +++ sparc-utils-1.9/debian/changelog
  101. @@ -0,0 +1,192 @@
  102. +sparc-utils (1.9-4) unstable; urgency=low
  103. +
  104. + * Remove sparc32/sparc64, since they are now provided by
  105. + util-linux. Closes: #441859
  106. + * Remove DH_COMPAT setting from debian/rules, add debian/compat
  107. + instead (lintian warning).
  108. +
  109. + -- Jurij Smakov <jurij@debian.org> Sat, 22 Sep 2007 11:40:55 +0100
  110. +
  111. +sparc-utils (1.9-3) unstable; urgency=low
  112. +
  113. + * Gratefully acknowledge previous NMUs.
  114. + Closes: #216131, #246879, #346584, #379414
  115. + * Force 4-byte alignment of global array buf and array buf2 in
  116. + print_all_options() of prtconf-1.3/eeprom.c. That ensures that
  117. + when we cast struct openpromio into such a buffer, oprom_array
  118. + ends up at a properly aligned location, and we don't catch a
  119. + SIGBUS when trying to assign an int to it. Closes: #388315
  120. + * Use syscall() interface in sparc32.c to perform the personality
  121. + setting instead of _syscall1() which is no longer exposed to
  122. + userland starting with linux-kernel-headers 2.6.18-1.
  123. + * Disable installation of /etc/default/audioctl, as we no longer
  124. + provide audioctl utility. Disable installation of /etc/init.d
  125. + and /etc/default directories, since they are empty now. Remove
  126. + debian/conffiles, where /etc/default/audioctl was the only
  127. + entry.
  128. + * Fix CFLAGS:
  129. + - set the correct default (-g -O2).
  130. + - implement logic to honor the 'nostrip' and 'noopt' settings
  131. + in DEB_BUILD_OPTIONS.
  132. + - make sure that CFLAGS are passed correctly to all sub-makes.
  133. + - tweak sparc32 Makefile to honor CFLAGS we pass to it, instead
  134. + of using hardcoded ones.
  135. + * Do not end the Description with full stop (lintian warning).
  136. + * Update and expand the copyright file.
  137. + * Add myself to Uploaders, with maintainer's permission.
  138. +
  139. + -- Jurij Smakov <jurij@debian.org> Mon, 25 Sep 2006 00:27:34 -0700
  140. +
  141. +sparc-utils (1.9-2.5) unstable; urgency=low
  142. +
  143. + * NMU
  144. + * Disable build of audioctl. closes: #379414.
  145. + * Bump Standards-Version to 3.7.2.
  146. +
  147. + -- Clint Adams <schizo@debian.org> Sun, 23 Jul 2006 14:44:32 -0400
  148. +
  149. +sparc-utils (1.9-2.4) unstable; urgency=low
  150. +
  151. + * Non Maintainer Upload.
  152. + * Update debhelper compatibility to 5.
  153. + * Add udeb containing prtconf for use in Debian Installer (closes: #346584).
  154. +
  155. + -- Frans Pop <fjp@debian.org> Thu, 19 Jan 2006 14:09:28 +0100
  156. +
  157. +sparc-utils (1.9-2.3) unstable; urgency=low
  158. +
  159. + * NMU.
  160. + * Fix badly formatted description. (Closes: #246879)
  161. +
  162. + -- Nicolas Boullis <nboullis@debian.org> Thu, 19 Aug 2004 02:49:51 +0200
  163. +
  164. +sparc-utils (1.9-2.2) unstable; urgency=low
  165. +
  166. + * Look people. If you aren't willing to test shit, don't change it, or
  167. + upload it for that matter.
  168. + * Fix sparc32, which Wilmer broke. This caused us great pain, such as the
  169. + buildd starting to build 64-bit by default. What fun to have things like
  170. + that happen.
  171. +
  172. + -- Ben Collins <bcollins@debian.org> Thu, 13 Nov 2003 22:51:36 -0500
  173. +
  174. +sparc-utils (1.9-2.1) unstable; urgency=low
  175. +
  176. + * Added debhelper build dependency. (Closes: #216131)
  177. + * Fixed build problem in sparc32. (personality syscall already exists
  178. + in Linux these days, so redefining it breaks stuff)
  179. +
  180. + -- Wilmer van der Gaast <lintux@debian.org> Sat, 1 Nov 2003 19:10:54 -0500
  181. +
  182. +sparc-utils (1.9-2) unstable; urgency=high
  183. +
  184. + * Fixed a printf bug in prtconf. Closes: #121814.
  185. + * Updated location of prtconf source in copyright file.
  186. + * Updated maintainer address.
  187. +
  188. + -- Eric Delaunay <delaunay@debian.org> Thu, 6 Dec 2001 19:05:57 +0100
  189. +
  190. +sparc-utils (1.9-1) unstable; urgency=low
  191. +
  192. + * removed ethtool. Now built as standalone package. Closes: #113322.
  193. +
  194. + -- Eric Delaunay <delaunay@lix.polytechnique.fr> Tue, 2 Oct 2001 21:55:12 +0200
  195. +
  196. +sparc-utils (1.8-2) unstable; urgency=low
  197. +
  198. + * Added init script for audioctl. Closes: #95148.
  199. + * audioctl: better error reporting using perror().
  200. +
  201. + -- Eric delaunay <delaunay@lix.polytechnique.fr> Sun, 9 Sep 2001 17:17:57 +0200
  202. +
  203. +sparc-utils (1.8-1) unstable; urgency=low
  204. +
  205. + * NMU
  206. + * Remove tilo, since it is now in the silo package.
  207. +
  208. + -- Ben Collins <bcollins@debian.org> Fri, 25 May 2001 20:48:07 -0400
  209. +
  210. +sparc-utils (1.7-1) unstable; urgency=low
  211. +
  212. + * NMU, to fix up some issues for boot-floppies
  213. + * Updated piggyback.c and piggyback64.c to latest version from kernel
  214. + source (fixes some issues)
  215. + * Lots of work on tilo to get it working with Ultra III's and to make
  216. + some nice output during boot
  217. +
  218. + -- Ben Collins <bcollins@debian.org> Wed, 16 May 2001 11:52:47 -0400
  219. +
  220. +sparc-utils (1.6-1) unstable; urgency=low
  221. +
  222. + * Added audioctl. Closes #76568.
  223. + * Depends on makedev >= 2.3.1-45 for audioctl support.
  224. + * Updated to elftoaout 2.3 (new -c option).
  225. +
  226. + -- Eric delaunay <delaunay@lix.polytechnique.fr> Mon, 12 Feb 2001 22:49:50 +0100
  227. +
  228. +sparc-utils (1.5-1) frozen unstable; urgency=low
  229. +
  230. + * Enhanced tilo to allow it building tftpboot images targeted for one subarch
  231. + at a time. Thanks to Ben Collins <bcollins@debian.org> for the patch.
  232. + * Added piggyback64 to create ultrasparc tftpboot images like piggyback does
  233. + for old 32 bit sparc.
  234. + * This upload is needed for potato boot-floppies.
  235. +
  236. + -- Eric delaunay <delaunay@lix.polytechnique.fr> Mon, 27 Mar 2000 21:33:50 +0200
  237. +
  238. +sparc-utils (1.4-1) frozen unstable; urgency=low
  239. +
  240. + * fixed missing manpages
  241. + * now lintian (1.11.2) compliant
  242. + * added ethtool 1.0 for configuring Happy Meal ethernet cards
  243. + (closes: #59505)
  244. +
  245. + -- Eric delaunay <delaunay@lix.polytechnique.fr> Fri, 3 Mar 2000 22:44:55 +0100
  246. +
  247. +sparc-utils (1.3-1) frozen unstable; urgency=low
  248. +
  249. + * added prtconf 1.3
  250. + * added sparc32/64 1.1
  251. + * updated to elftoaout 2.2
  252. + * fixed a bug in tilo when compiling with potato binutils
  253. +
  254. + -- Eric delaunay <delaunay@lix.polytechnique.fr> Sun, 29 Dec 1999 22:09:04 +0100
  255. +
  256. +sparc-utils (1.2-1) frozen unstable; urgency=low
  257. +
  258. + * removed clock package
  259. + (put back patches to the hwclock program from util-linux 2.9g-6)
  260. + * added tilo boot loader used to build multi-targets TFTP images
  261. + (sun4cdm + sun4u).
  262. +
  263. + -- Eric delaunay <delaunay@lix.polytechnique.fr> Mon, 15 Feb 1999 20:58:15 +0100
  264. +
  265. +sparc-utils (1.1-2) frozen unstable; urgency=low
  266. +
  267. + * provides hwclock.sh for the clock package to replace the sysvinit's
  268. + version which doesn't support `clock' anymore.
  269. + Thanks to Joel Klecker <jk@espy.org>
  270. +
  271. + -- Eric delaunay <delaunay@lix.polytechnique.fr> Sun, 20 Dec 1998 21:24:14 +0100
  272. +
  273. +sparc-utils (1.1-1) unstable; urgency=low
  274. +
  275. + * Provides a clock package
  276. + (from ftp://vger.rutgers.edu/pub/linu/Sparc/userland/clock.c)
  277. +
  278. + -- Eric delaunay <delaunay@lix.polytechnique.fr> Mon, 22 Jun 1998 21:54:30 +0200
  279. +
  280. +sparc-utils (1.0-1) unstable; urgency=low
  281. +
  282. + * Initial release.
  283. + * provide elftoaout (2.1) and piggyback tools to create tftpboot images for
  284. + sparc workstations.
  285. + * Added manpage for piggyback.
  286. + * Added usage message to piggyback.
  287. + * Built with debhelper 0.63.
  288. +
  289. + -- Eric delaunay <delaunay@lix.polytechnique.fr> Sat, 21 Feb 1998 16:25:17 +0100
  290. +
  291. +Local variables:
  292. +mode: debian-changelog
  293. +End:
  294. --- sparc-utils-1.9.orig/debian/audioctl
  295. +++ sparc-utils-1.9/debian/audioctl
  296. @@ -0,0 +1,53 @@
  297. +#!/bin/sh
  298. +#
  299. +# Set some audio parameters at boot time.
  300. +#
  301. +# This file is part of sparc-utils package.
  302. +#
  303. +# Written by Eric Delaunay <delaunay@debian.org> based on example
  304. +# from Adam Di Carlo <aph@debian.org>.
  305. +#
  306. +# Licensed under GPL.
  307. +
  308. +test -x /usr/bin/audioctl || exit 0
  309. +
  310. +setaudio () {
  311. + if [ -n "$DEVICE" ]; then
  312. + optdev="-f $DEVICE"
  313. + fi
  314. + /usr/bin/audioctl -nw $optdev $PARAMS
  315. +}
  316. +
  317. +# Source defaults file
  318. +PARAMS=
  319. +DEVICE=
  320. +if [ -f /etc/default/audioctl ]; then
  321. + . /etc/default/audioctl
  322. +fi
  323. +
  324. +case "$1" in
  325. +start)
  326. + echo -n "Setting audio parameters..."
  327. + if [ -n "$PARAMS" ]; then
  328. + setaudio
  329. + echo "done."
  330. + else
  331. + echo "none."
  332. + fi
  333. + ;;
  334. +stop)
  335. + ;;
  336. +reload|reload|force-reload)
  337. + $0 start
  338. + ;;
  339. +restart)
  340. + $0 stop
  341. + $0 start
  342. + ;;
  343. +*)
  344. + echo "Usage: $0 {start|stop|restart|reload|force-reload}"
  345. + exit 1
  346. + ;;
  347. +esac
  348. +
  349. +exit 0
  350. --- sparc-utils-1.9.orig/debian/postrm
  351. +++ sparc-utils-1.9/debian/postrm
  352. @@ -0,0 +1,10 @@
  353. +#!/bin/sh
  354. +
  355. +set -e
  356. +
  357. +#DEBHELPER#
  358. +
  359. +#if [ "$1" = "purge" ] ; then
  360. +# update-rc.d audioctl remove > /dev/null
  361. +#fi
  362. +
  363. --- sparc-utils-1.9.orig/debian/compat
  364. +++ sparc-utils-1.9/debian/compat
  365. @@ -0,0 +1 @@
  366. +5
  367. --- sparc-utils-1.9.orig/debian/copyright
  368. +++ sparc-utils-1.9/debian/copyright
  369. @@ -0,0 +1,132 @@
  370. +This is the Debian Linux prepackaged version of several tools required to
  371. +build tftpboot images for Debian S/Linux (S stands for Super !).
  372. +
  373. +This package was put together by Eric Delaunay <delaunay@debian.org> from
  374. +various sources:
  375. +
  376. +src/piggyback*:
  377. + Linux kernel source versions 2.2.x, under arch/{sparc,sparc64}/boot
  378. +elftoaout-2.3:
  379. + Originally from
  380. + ftp://sunsite.mff.cuni.cz/OS/Linux/Sparc/local/elftoaout/elftoaout-2.3.tgz
  381. + This address is no longer active.
  382. +prtconf-1.3:
  383. + Originally from
  384. + http://vger.samba.org/cgi-bin/cvsweb/prtconf/?cvsroot=vger
  385. + This address is no longer active.
  386. +audioctl-1.3:
  387. + Originally from
  388. + ftp://ftp.dementia.org/pub/linux/sparcaudio/
  389. + This address is no longer active.
  390. +
  391. +Copyright Information for the Debian GNU/Linux sparc-utils package
  392. +==================================================================
  393. +
  394. +The files in src directory are
  395. +
  396. + Copyright (C) 1996 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
  397. + Copyright (C) 1997 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
  398. + Additionally, Pete Zaitcev <zaitcev@yahoo.com> has contributed
  399. + endian fixes for cross-compiles to piggyback.c in 2000.
  400. +
  401. +and are distributed under the terms of the following license:
  402. +
  403. + This program is free software; you can redistribute it and/or modify
  404. + it under the terms of the GNU General Public License as published by
  405. + the Free Software Foundation; either version 2 of the License, or
  406. + (at your option) any later version.
  407. +
  408. + This program is distributed in the hope that it will be useful,
  409. + but WITHOUT ANY WARRANTY; without even the implied warranty of
  410. + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  411. + GNU General Public License for more details.
  412. +
  413. + You should have received a copy of the GNU General Public License
  414. + along with this program; if not, write to the Free Software Foundation,
  415. + Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
  416. +
  417. +The files in elftoaout-2.3 directory are
  418. +
  419. + Copyright (C) 1995,1996 Pete A. Zaitcev (zaitcev@vger.rutgers.edu)
  420. + Copyright (C) 1997 Jakub Jelinek (jj@ultra.linux.cz)
  421. + Copyright 2000 by Jakub Jelinek. All Rights Reserved.
  422. +
  423. +and are distributed under the terms of the following license:
  424. +
  425. + This program is free software; you can redistribute it and/or modify it
  426. + under the terms of the GNU General Public License as published by the
  427. + Free Software Foundation; either version 2 of the License, or (at your
  428. + option) any later version.
  429. +
  430. + This program is distributed in the hope that it will be useful, but
  431. + WITHOUT ANY WARRANTY; without even the implied warranty of
  432. + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  433. + General Public License for more details.
  434. +
  435. + You should have received a copy of the GNU General Public License
  436. + along with this program; if not, write to the Free Software Foundation,
  437. + Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
  438. +
  439. +The files in the prtconf-1.3 directory are
  440. +
  441. + Copyright 1998 by Jakub Jelinek. All Rights Reserved.
  442. + Copyright (C) 1998 Jakub Jelinek (jj@ultra.linux.cz)
  443. + Copyright (C) 1999 Jakub Jelinek (jakub@redhat.com)
  444. + Copyright 1999 by Jakub Jelinek. All Rights Reserved.
  445. +
  446. +and are distributed under the terms of the following license:
  447. +
  448. + This program is free software; you can redistribute it and/or modify it
  449. + under the terms of the GNU General Public License as published by the
  450. + Free Software Foundation; either version 2 of the License, or (at your
  451. + option) any later version.
  452. +
  453. + This program is distributed in the hope that it will be useful, but
  454. + WITHOUT ANY WARRANTY; without even the implied warranty of
  455. + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  456. + General Public License for more details.
  457. +
  458. + You should have received a copy of the GNU General Public License
  459. + along with this program; if not, write to the Free Software Foundation,
  460. + Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
  461. +
  462. +Files in the audioctl-1.3 directory are
  463. +
  464. + Copyright (c) 1997 The NetBSD Foundation, Inc.
  465. + All rights reserved.
  466. + Author: Lennart Augustsson
  467. + SparcLinux audio modifications by Derrick J Brashear, shadow@dementia.org
  468. +
  469. +and are distributed under the terms of the following license:
  470. +
  471. + Redistribution and use in source and binary forms, with or without
  472. + modification, are permitted provided that the following conditions
  473. + are met:
  474. + 1. Redistributions of source code must retain the above copyright
  475. + notice, this list of conditions and the following disclaimer.
  476. + 2. Redistributions in binary form must reproduce the above copyright
  477. + notice, this list of conditions and the following disclaimer in the
  478. + documentation and/or other materials provided with the distribution.
  479. + 3. All advertising materials mentioning features or use of this software
  480. + must display the following acknowledgement:
  481. + This product includes software developed by the NetBSD
  482. + Foundation, Inc. and its contributors.
  483. + 4. Neither the name of The NetBSD Foundation nor the names of its
  484. + contributors may be used to endorse or promote products derived
  485. + from this software without specific prior written permission.
  486. +
  487. + THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  488. + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  489. + TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  490. + PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  491. + BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  492. + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  493. + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  494. + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  495. + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  496. + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  497. + POSSIBILITY OF SUCH DAMAGE.
  498. +
  499. +The full text of the GNU General Public Licence is available on any Debian
  500. +installation as /usr/share/common-licenses/GPL.
  501. +
  502. --- sparc-utils-1.9.orig/debian/postinst
  503. +++ sparc-utils-1.9/debian/postinst
  504. @@ -0,0 +1,15 @@
  505. +#!/bin/sh
  506. +
  507. +set -e
  508. +
  509. +#DEBHELPER#
  510. +
  511. +#if [ "$1" = "configure" ] && [ ! -e /dev/audioctl ]; then
  512. +# # regen audio device list to install new /dev/audioctl entry
  513. +# cd /dev && /sbin/MAKEDEV audio
  514. +#fi
  515. +
  516. +#if [ "$1" = "configure" ]; then
  517. +# update-rc.d audioctl start 75 S . >/dev/null
  518. +#fi
  519. +
  520. --- sparc-utils-1.9.orig/debian/rules
  521. +++ sparc-utils-1.9/debian/rules
  522. @@ -0,0 +1,76 @@
  523. +#! /usr/bin/make -f
  524. +# (C) 1998-2001, Eric Delaunay
  525. +
  526. +CFLAGS = -g
  527. +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
  528. + CFLAGS += -O0
  529. +else
  530. + CFLAGS += -O2
  531. +endif
  532. +
  533. +STRIP = -s
  534. +ifneq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
  535. + STRIP =
  536. +endif
  537. +
  538. +a=$(shell dpkg --print-architecture)
  539. +p=sparc-utils
  540. +u=sparc-utils-udeb
  541. +
  542. +build: build-stamp
  543. +build-stamp:
  544. + dh_testdir
  545. + $(MAKE) -C elftoaout-2.3 CFLAGS="$(CFLAGS)"
  546. + $(MAKE) -C src piggyback piggyback64 CFLAGS="$(CFLAGS)"
  547. + $(MAKE) -C prtconf-1.3 all CFLAGS="$(CFLAGS)"
  548. +# $(MAKE) -C audioctl-1.3 CFLAGS="$(CFLAGS)"
  549. + touch $@
  550. +
  551. +clean:
  552. + dh_testdir
  553. + dh_testroot
  554. + rm -f build-stamp
  555. + rm -f elftoaout-2.3/elftoaout src/piggyback src/piggyback64
  556. + $(MAKE) -C prtconf-1.3 clean
  557. + rm -f audioctl-1.3/audioctl audioctl-1.3/*.o
  558. + dh_clean
  559. +
  560. +binary: binary-arch binary-indep
  561. +
  562. +binary-indep:
  563. +# nothing to do for arch independent binary packages
  564. +
  565. +binary-arch: build
  566. + dh_testdir
  567. + dh_testroot
  568. + dh_clean -k
  569. + # install binaries
  570. + dh_installdirs -p$(p) usr/bin usr/sbin
  571. + dh_installdirs -p$(u) usr/sbin
  572. + install $(STRIP) elftoaout-2.3/elftoaout debian/$(p)/usr/bin
  573. + install $(STRIP) src/piggyback src/piggyback64 debian/$(p)/usr/bin
  574. + install $(STRIP) prtconf-1.3/prtconf debian/$(p)/usr/sbin/prtconf
  575. + install $(STRIP) prtconf-1.3/prtconf debian/$(u)/usr/sbin/prtconf
  576. + install $(STRIP) prtconf-1.3/eeprom debian/$(p)/usr/sbin/eeprom
  577. +# install $(STRIP) audioctl-1.3/audioctl debian/$(p)/usr/bin
  578. + # install /etc/init.d script & /etc/default scripts
  579. +# install -d -m 755 debian/$(p)/etc debian/$(p)/etc/init.d debian/$(p)/etc/default
  580. +# install -m 755 debian/audioctl debian/$(p)/etc/init.d
  581. +# install -m 644 debian/audioctl.def debian/$(p)/etc/default/audioctl
  582. + # install documentation
  583. + dh_installman
  584. + dh_installdocs
  585. + dh_installexamples prtconf-1.3/examples/*
  586. + dh_installchangelogs
  587. + dh_compress
  588. + dh_fixperms
  589. + dh_installdeb
  590. + dh_shlibdeps
  591. + dh_gencontrol
  592. + dh_md5sums
  593. + dh_builddeb
  594. +
  595. +source diff:
  596. + @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
  597. +
  598. +.PHONY: binary-arch binary-indep binary build clean
  599. --- sparc-utils-1.9.orig/debian/sparc-utils.manpages
  600. +++ sparc-utils-1.9/debian/sparc-utils.manpages
  601. @@ -0,0 +1,6 @@
  602. +#audioctl-1.3/audioctl.1
  603. +elftoaout-2.3/elftoaout.1
  604. +debian/piggyback.1
  605. +debian/piggyback64.1
  606. +prtconf-1.3/eeprom.8
  607. +prtconf-1.3/prtconf.8
  608. --- sparc-utils-1.9.orig/debian/piggyback.1
  609. +++ sparc-utils-1.9/debian/piggyback.1
  610. @@ -0,0 +1,50 @@
  611. +.\" -*- nroff -*-
  612. +.\"
  613. +.TH PIGGYBACK 1 "March 1998" "piggyback"
  614. +.SH NAME
  615. +piggyback \- add initial ramdisk to a tftpboot kernel image
  616. +.SH SYNOPSIS
  617. +.B piggyback
  618. +.I vmlinux
  619. +.I System.map
  620. +.I ramdisk
  621. +.P
  622. +.B piggyback64
  623. +.I vmlinux
  624. +.I System.map
  625. +.I ramdisk
  626. +.SH DESCRIPTION
  627. +.BI piggyback
  628. +is a simple utility to make a single-image install kernel with initial
  629. +ramdisk for Sparc tftpbooting without need to set up nfs.
  630. +.P
  631. +.BI piggyback64
  632. +is the same for Ultra-Sparc workstations (those using a 64 bit kernel).
  633. +.PP
  634. +.SH OPTIONS
  635. +.TP
  636. +.I vmlinux
  637. +the kernel on which the ramdisk will be appended. It must be an
  638. +.B a.out
  639. +kernel (use elftoaout for it), as PROM looks for
  640. +.B a.out
  641. +image only.
  642. +.TP
  643. +.I System.map
  644. +the kernel map.
  645. +.TP
  646. +.I ramdisk
  647. +the initial ramdisk image to append to the kernel image. It could be
  648. +compressed as well.
  649. +.SH AUTHOR
  650. +.B piggyback
  651. +has been written by Jakub Jelinek <jj@ultra.linux.cz>.
  652. +.SH AVAILABILITY
  653. +.B piggyback
  654. +and
  655. +.B piggyback64
  656. +are available in kernel-source-2.2.x package, under arch/sparc/boot and
  657. +arch/sparc64/boot.
  658. +.SH SEE ALSO
  659. +.BR elftoaout (1),
  660. +.BR tilo (1)
  661. --- sparc-utils-1.9.orig/debian/control
  662. +++ sparc-utils-1.9/debian/control
  663. @@ -0,0 +1,32 @@
  664. +Source: sparc-utils
  665. +Section: misc
  666. +Priority: extra
  667. +Maintainer: Eric Delaunay <delaunay@debian.org>
  668. +Uploaders: Jurij Smakov <jurij@debian.org>
  669. +Standards-Version: 3.7.2
  670. +Build-Depends: debhelper (>= 5.0)
  671. +
  672. +Package: sparc-utils
  673. +Architecture: sparc
  674. +Depends: makedev (>= 2.3.1-45), ${shlibs:Depends}
  675. +Description: Miscellaneous tools useful for sparc systems
  676. + This package provides the following tools:
  677. + .
  678. + - elftoaout,
  679. + piggyback, to build bootable kernel images over the net for Sparc
  680. + workstations. They are mainly used by the boot-floppies
  681. + package to create the tftpboot image of the Debian
  682. + installation subsystem.
  683. + - prtconf, eeprom to dump and modify contents of OpenPROM.
  684. +
  685. +Package: sparc-utils-udeb
  686. +XC-Package-Type: udeb
  687. +Section: debian-installer
  688. +Priority: extra
  689. +Architecture: sparc
  690. +Depends: ${shlibs:Depends}
  691. +Description: sparc-utils package for the Debian installer
  692. + This is a stripped-down version of the sparc-utils package, suitable
  693. + for use in Debian-installer. It provides only the prtconf binary which
  694. + is required to adequately detect the SBUS hardware, commonly found on
  695. + sparc32 and some sparc64 (Ultra1, Ultra2) machines.
  696. --- sparc-utils-1.9.orig/debian/piggyback64.1
  697. +++ sparc-utils-1.9/debian/piggyback64.1
  698. @@ -0,0 +1,3 @@
  699. +.\" -*- nroff -*-
  700. +.\"
  701. +.so man1/piggyback.1
  702. --- sparc-utils-1.9.orig/debian/README.debian
  703. +++ sparc-utils-1.9/debian/README.debian
  704. @@ -0,0 +1,26 @@
  705. +This package is a collection of tools specific to Linux/Sparc:
  706. +
  707. +elftoaout:
  708. +----------
  709. +elftoaout is designed to convert an ELF Linux kernel to a.out format required
  710. +by Sun "boot net" command.
  711. +
  712. +piggyback:
  713. +----------
  714. +piggyback is designed to attach an initial ramdisk to such kernel image.
  715. +
  716. +tilo:
  717. +-----
  718. +
  719. +TILO is now part of the SILO package, and not included in this one.
  720. +
  721. +prtconf:
  722. +--------
  723. +this package provides 2 tools: prtconf & eeprom.
  724. +prtconf prints the SPARC OpenPROM tree in a nicely readable format.
  725. +eeprom displays and/or modifies SPARC OpenPROM options.
  726. +
  727. +audioctl:
  728. +---------
  729. +audioctl controls audio device on SparcLinux.
  730. +
  731. --- sparc-utils-1.9.orig/audioctl-1.3/audioctl.c
  732. +++ sparc-utils-1.9/audioctl-1.3/audioctl.c
  733. @@ -149,6 +149,7 @@
  734. { "speaker", AUDIO_SPEAKER },
  735. { "headphone", AUDIO_HEADPHONE },
  736. { "line out", AUDIO_LINE_OUT },
  737. + { "line_out", AUDIO_LINE_OUT },
  738. { 0 }
  739. };
  740. @@ -158,8 +159,11 @@
  741. } iports[] = {
  742. { "microphone", AUDIO_MICROPHONE },
  743. { "line in", AUDIO_LINE_IN },
  744. + { "line_in", AUDIO_LINE_IN },
  745. { "internal cd", AUDIO_CD },
  746. + { "internal_cd", AUDIO_CD },
  747. { "analog loopback", AUDIO_ANALOG_LOOPBACK },
  748. + { "analog_loopback", AUDIO_ANALOG_LOOPBACK },
  749. { 0 }
  750. };
  751. @@ -338,7 +342,7 @@
  752. int pos, i;
  753. if (ioctl(fd, AUDIO_GETDEV, &adev) < 0) {
  754. - fprintf(stderr, "AUDIO_GETDEV\n");
  755. + perror("ioctl(getdev)");
  756. exit(1);
  757. }
  758. #if 0
  759. @@ -358,7 +362,7 @@
  760. sprintf(encbuf, "not yet implemented");
  761. #endif
  762. if (ioctl(fd, AUDIO_GETINFO, &info) < 0)
  763. - fprintf(stderr, "AUDIO_GETINFO\n");
  764. + perror("ioctl(getinfo)");
  765. }
  766. void
  767. @@ -413,17 +417,19 @@
  768. fd = open(file, O_WRONLY);
  769. if (fd < 0)
  770. fd = open(file, O_RDONLY);
  771. - if (fd < 0)
  772. - fprintf(stderr, "%s\n", file);
  773. + if (fd < 0) {
  774. + perror(file);
  775. + exit(0);
  776. + }
  777. /* Check if stdout is the same device as the audio device. */
  778. if (fstat(fd, &dstat) < 0) {
  779. - fprintf(stderr, "fstat au\n");
  780. + perror("fstat(au)");
  781. exit(0);
  782. }
  783. if (fstat(STDOUT_FILENO, &ostat) < 0) {
  784. - fprintf(stderr, "fstat stdout\n");
  785. + perror("fstat(stdout)");
  786. exit(0);
  787. }
  788. #if 1
  789. @@ -475,7 +481,7 @@
  790. argv++;
  791. }
  792. if (ioctl(fd, AUDIO_SETINFO, &info) < 0) {
  793. - fprintf(stderr, "set failed\n");
  794. + perror("ioctl(setinfo)");
  795. exit(1);
  796. }
  797. if (sep) {
  798. --- sparc-utils-1.9.orig/audioctl-1.3/audioctl.1
  799. +++ sparc-utils-1.9/audioctl-1.3/audioctl.1
  800. @@ -91,11 +91,14 @@
  801. .Bl -tag -width /dev/audioctl
  802. .It Pa /dev/audioctl
  803. audio control device
  804. +.It Pa /etc/default/audioctl
  805. +default configuration loaded at boot time if any (Debian centric)
  806. .El
  807. .Sh ENVIRONMENT
  808. .Bl -tag -width AUDIOCTLDEVICE
  809. .It Pa AUDIOCTLDEVICE
  810. the audio control device to use.
  811. +.El
  812. .Sh SEE ALSO
  813. .Xr mixerctl 1 ,
  814. .Xr audio 4 ,
  815. --- sparc-utils-1.9.orig/src/piggyback64.c
  816. +++ sparc-utils-1.9/src/piggyback64.c
  817. @@ -56,6 +56,10 @@
  818. end = strtoul (buffer + 8, NULL, 16);
  819. }
  820. fclose (map);
  821. + if (!start || !end) {
  822. + fprintf (stderr, "Could not determine start and end from System.map\n");
  823. + exit(1);
  824. + }
  825. if ((image = open(argv[1],O_RDWR)) < 0) die(argv[1]);
  826. if (read(image,buffer,512) != 512) die(argv[1]);
  827. if (!memcmp (buffer, "\177ELF", 4)) {