From 7476d76dc4e4748ff4dc421e3c35090a85970d97 Mon Sep 17 00:00:00 2001 From: pius Date: Sun, 28 Nov 1999 13:41:50 +0000 Subject: [PATCH 1/1] - renamed and updated for 1.28 Changed files: aumix-home_etc.patch -> 1.1 --- aumix-home_etc.patch | 238 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 238 insertions(+) create mode 100644 aumix-home_etc.patch diff --git a/aumix-home_etc.patch b/aumix-home_etc.patch new file mode 100644 index 0000000..0b8befe --- /dev/null +++ b/aumix-home_etc.patch @@ -0,0 +1,238 @@ +diff -Nur aumix-1.27.4-orig/doc/aumix.1 aumix-1.27.4/doc/aumix.1 +--- aumix-1.27.4-orig/doc/aumix.1 Wed Nov 24 13:51:36 1999 ++++ aumix-1.27.4/doc/aumix.1 Sat Nov 27 18:59:03 1999 +@@ -115,11 +115,11 @@ + .Nm + go into interactive mode after doing things non-interactively. + .It Fl L +-load settings from $HOME/.aumixrc, or /etc/aumixrc if the former is inaccessible ++load settings from $HOME/etc/aumixrc, $HOME/.aumixrc, or /etc/aumixrc if the former are inaccessible + .It Fl q + query all devices and print their settings + .It Fl S +-save settings to $HOME/.aumixrc ++save settings to $HOME/etc/aumixrc + .El + + .Sh EXAMPLE +@@ -173,7 +173,7 @@ + .It Em K No or Em k + show a description of the functions of keys + .It Em L No or Em l +-load settings from $HOME/.aumixrc, falling back to /etc/aumixrc ++load settings from $HOME/.aumixrc or $HOME/etc/aumixrc, falling back to /etc/aumixrc + .It Em M No or Em m + mute or unmute + .It Em O No or Em o +@@ -254,7 +254,7 @@ + .Ev HOME + variable is used. + .Sh FILES +-Saved settings for the mixer are kept in the /etc/aumixrc and $HOME/.aumixrc files, but can be kept anywhere if specified explicitly. Color schemes are normally kept in the directory given by DATADIRNAME at compilation time, but are preferentially loaded from the current directory and can be kept anywhere so long as the path to them is specified. The format of these files is: ++Saved settings for the mixer are kept in the /etc/aumixrc and $HOME/etc/aumixrc files ($HOME/.aumixrc is now obsolete, but still works), but can be kept anywhere if specified explicitly. Color schemes are normally kept in the directory given by DATADIRNAME at compilation time, but are preferentially loaded from the current directory and can be kept anywhere so long as the path to them is specified. The format of these files is: + + item foreground background + +diff -Nur aumix-1.27.4-orig/po/aumix.pot aumix-1.27.4/po/aumix.pot +--- aumix-1.27.4-orig/po/aumix.pot Wed Nov 24 13:52:05 1999 ++++ aumix-1.27.4/po/aumix.pot Sat Nov 27 19:07:58 1999 +@@ -75,7 +75,7 @@ + "other options:\n" + " d: adjust a device besides /dev/mixer\n" + " f: specify file for saving and loading settings (defaults to\n" +-" ~ /.aumixrc or /etc/aumixrc)\n" ++" ~/etc/aumixrc, ~/.aumixrc or /etc/aumixrc)\n" + " C: specify color scheme\n" + " h: this helpful message\n" + msgstr "" +Binary files aumix-1.27.4-orig/po/de.gmo and aumix-1.27.4/po/de.gmo differ +diff -Nur aumix-1.27.4-orig/po/de.po aumix-1.27.4/po/de.po +--- aumix-1.27.4-orig/po/de.po Sat Nov 13 11:02:53 1999 ++++ aumix-1.27.4/po/de.po Sat Nov 27 19:00:43 1999 +@@ -81,7 +81,7 @@ + "other options:\n" + " d: adjust a device besides /dev/mixer\n" + " f: specify file for saving and loading settings (defaults to\n" +-" ~ /.aumixrc or /etc/aumixrc)\n" ++" ~/etc/aumixrc, ~/.aumixrc or /etc/aumixrc)\n" + " C: specify color scheme\n" + " h: this helpful message\n" + msgstr "" +@@ -99,7 +99,7 @@ + "Weitere Optionen:\n" + " d: Anderes Gerät als /dev/mixer benutzen\n" + " f: spezifizieren Sie Datei für Einsparung- und Ladeneinstellungen\n" +-" (Rückstellungen zum ~ /.aumixrc or /etc/aumixrc)\n" ++" (Rückstellungen zum ~/etc/aumixrc, ~/.aumixrc or /etc/aumixrc)\n" + " h: Diese nützlichen Informationen\n" + + #: src/common.c:567 +Binary files aumix-1.27.4-orig/po/es.gmo and aumix-1.27.4/po/es.gmo differ +diff -Nur aumix-1.27.4-orig/po/es.po aumix-1.27.4/po/es.po +--- aumix-1.27.4-orig/po/es.po Sat Nov 13 11:02:53 1999 ++++ aumix-1.27.4/po/es.po Sat Nov 27 19:01:09 1999 +@@ -81,7 +81,7 @@ + "other options:\n" + " d: adjust a device besides /dev/mixer\n" + " f: specify file for saving and loading settings (defaults to\n" +-" ~ /.aumixrc or /etc/aumixrc)\n" ++" ~/etc/aumixrc, ~/.aumixrc or /etc/aumixrc)\n" + " C: specify color scheme\n" + " h: this helpful message\n" + msgstr "" +@@ -99,7 +99,7 @@ + "Otras opciones:\n" + " d: ajustar dispositivos además de /dev/mixer\n" + " f: indicar el fichero para guardar y cargar las preferencias (por\n" +-" defecto es ~/.aumixrc o /etc/aumixrc\n" ++" defecto es ~/etc/aumixrc, ~/.aumixrc o /etc/aumixrc\n" + " C: indicar el esquema de color\n" + " h: este mensaje de ayuda\n" + +Binary files aumix-1.27.4-orig/po/gl.gmo and aumix-1.27.4/po/gl.gmo differ +diff -Nur aumix-1.27.4-orig/po/gl.po aumix-1.27.4/po/gl.po +--- aumix-1.27.4-orig/po/gl.po Sat Nov 13 11:02:53 1999 ++++ aumix-1.27.4/po/gl.po Sat Nov 27 19:07:46 1999 +@@ -89,7 +89,7 @@ + "other options:\n" + " d: adjust a device besides /dev/mixer\n" + " f: specify file for saving and loading settings (defaults to\n" +-" ~ /.aumixrc or /etc/aumixrc)\n" ++" ~/etc/aumixrc, ~/.aumixrc or /etc/aumixrc)\n" + " C: specify color scheme\n" + " h: this helpful message\n" + msgstr "" +@@ -107,7 +107,7 @@ + "outras opcións:\n" + " d: axustar outro dispositivo que non sexa /dev/mixer\n" + " f: especificar ficheiro para gardar e cargar parámetros (por omisión é\n" +-" ~/.aumixrc ou /etc/aumixrc)\n" ++" ~/etc/aumixrc, ~/.aumixrc ou /etc/aumixrc)\n" + " C: especifica-lo esquema de cor\n" + " h: amosar esta mensaxe de axuda\n" + +Binary files aumix-1.27.4-orig/po/pl.gmo and aumix-1.27.4/po/pl.gmo differ +diff -Nur aumix-1.27.4-orig/po/pl.po aumix-1.27.4/po/pl.po +--- aumix-1.27.4-orig/po/pl.po Sat Nov 13 11:02:53 1999 ++++ aumix-1.27.4/po/pl.po Sat Nov 27 19:00:09 1999 +@@ -81,7 +81,7 @@ + "other options:\n" + " d: adjust a device besides /dev/mixer\n" + " f: specify file for saving and loading settings (defaults to\n" +-" ~ /.aumixrc or /etc/aumixrc)\n" ++" ~/etc/aumixrc, ~/.aumixrc or /etc/aumixrc)\n" + " C: specify color scheme\n" + " h: this helpful message\n" + msgstr "" +@@ -99,7 +99,7 @@ + "inne opcje:\n" + " d: dostosowuje urz±dzenie inne ni¿ /dev/mixer\n" + " f: okre¶la plik do zapisywania i ³adowania ustawieñ (domy¶lnie jest to\n" +-" ~ /.aumixrc lub /etc/aumixrc)\n" ++" ~/etc/aumixrc, ~/.aumixrc lub /etc/aumixrc)\n" + " C: okre¶la plik zawieraj±cy schemat u¿ycia kolorów\n" + " h: ta pomocna informacja\n" + +Binary files aumix-1.27.4-orig/po/pt_BR.gmo and aumix-1.27.4/po/pt_BR.gmo differ +diff -Nur aumix-1.27.4-orig/po/pt_BR.po aumix-1.27.4/po/pt_BR.po +--- aumix-1.27.4-orig/po/pt_BR.po Sat Nov 13 11:02:54 1999 ++++ aumix-1.27.4/po/pt_BR.po Sat Nov 27 19:01:53 1999 +@@ -84,7 +84,7 @@ + "other options:\n" + " d: adjust a device besides /dev/mixer\n" + " f: specify file for saving and loading settings (defaults to\n" +-" ~ /.aumixrc or /etc/aumixrc)\n" ++" ~/etc/aumixrc, ~/.aumixrc or /etc/aumixrc)\n" + " C: specify color scheme\n" + " h: this helpful message\n" + msgstr "" +@@ -102,7 +102,7 @@ + "outras opções:\n" + " d: usar outro dispositivo que não o /dev/mixer\n" + " f: SPECIFY FILE FOR SAVING AND LOADING SETTINGS (DEFAULTS TO\n" +-" ~ /.aumixrc or /etc/aumixrc)\n" ++" ~/etc/aumixrc, ~/.aumixrc or /etc/aumixrc)\n" + " C: SPECIFY COLOR SCHEME\n" + " h: esta mensagem de ajuda\n" + +Binary files aumix-1.27.4-orig/po/ru.gmo and aumix-1.27.4/po/ru.gmo differ +diff -Nur aumix-1.27.4-orig/po/ru.po aumix-1.27.4/po/ru.po +--- aumix-1.27.4-orig/po/ru.po Sat Nov 13 11:02:54 1999 ++++ aumix-1.27.4/po/ru.po Sat Nov 27 19:02:27 1999 +@@ -82,7 +82,7 @@ + "other options:\n" + " d: adjust a device besides /dev/mixer\n" + " f: specify file for saving and loading settings (defaults to\n" +-" ~ /.aumixrc or /etc/aumixrc)\n" ++" ~/etc/aumixrc, ~/.aumixrc or /etc/aumixrc)\n" + " C: specify color scheme\n" + " h: this helpful message\n" + msgstr "" +@@ -101,7 +101,7 @@ + "äÒÕÇÉÅ ÏÐÃÉÉ:\n" + " d: ÒÅÇÕÌÉÒÏ×ÁÔØ ÕÓÔÒÏÊÓÔ×Á ËÒÏÍÅ /dev/mixer É /dev/sound/mixer\n" + " f: ÕËÁÚÁÎÉÅ ÉÍÅÎÉ ÆÁÊÌÁ ÄÌÑ ÈÒÁÎÅÎÉÑ ÕÓÔÁÎÏ×ÏË (ÐÏ ÕÍÏÌÞÁÎÉÀ\n" +-" ~ /.aumixrc ÉÌÉ /etc/aumixrc)\n" ++" ~/etc/aumixrc, ~/.aumixrc ÉÌÉ /etc/aumixrc)\n" + " C: SPECIFY COLOR SCHEME\n" + " h: ÜÔÁ ÐÏÍÏÝØ\n" + +Binary files aumix-1.27.4-orig/po/uk.gmo and aumix-1.27.4/po/uk.gmo differ +diff -Nur aumix-1.27.4-orig/po/uk.po aumix-1.27.4/po/uk.po +--- aumix-1.27.4-orig/po/uk.po Sat Nov 20 07:59:46 1999 ++++ aumix-1.27.4/po/uk.po Sat Nov 27 19:05:46 1999 +@@ -82,7 +82,7 @@ + "other options:\n" + " d: adjust a device besides /dev/mixer\n" + " f: specify file for saving and loading settings (defaults to\n" +-" ~ /.aumixrc or /etc/aumixrc)\n" ++" ~/etc/aumixrc, ~/.aumixrc or /etc/aumixrc)\n" + " C: specify color scheme\n" + " h: this helpful message\n" + msgstr "" +@@ -101,7 +101,7 @@ + "¶ÎÛ¦ ÏÐæ§:\n" + " d: ÒÅÇÕÌÀ×ÁÔÉ ÐÒÉÓÔÒϧ ÏËÒ¦Í /dev/mixer\n" + " f: ×ËÁÚÁÎÎÑ ¦ÍÅΦ ÆÁÊÌÕ ÄÌÑ ÚÂÅÒ¦ÇÁÎÎÑ Ò¦×Î¦× (ÚÁ ÚÁÍÏ×ÞÁÎÎÑÍ\n" +-" ~ /.aumixrc ÞÉ /etc/aumixrc)\n" ++" ~/etc/aumixrc, ~/.aumixrc ÞÉ /etc/aumixrc)\n" + " C: SPECIFY COLOR SCHEME\n" + " h: ÃÑ ÄÏÐÏÍÏÇÁ\n" + +diff -Nur aumix-1.27.4-orig/src/common.c aumix-1.27.4/src/common.c +--- aumix-1.27.4-orig/src/common.c Wed Nov 24 13:51:36 1999 ++++ aumix-1.27.4/src/common.c Sat Nov 27 18:55:57 1999 +@@ -430,7 +430,8 @@ + { + /* Open the settings file for reading or writing. + +- Try first ${HOME}/.AUMIXRC, then AUMIXRC_PATH/AUMIXRC; ++ Try first ${HOME}/.AUMIXRC, ${HOME}/etc/AUMIXRC, ++ then AUMIXRC_PATH/AUMIXRC; + become an error generator if neither can be opened. + + Input: +@@ -447,8 +448,12 @@ + char filename[FILENAME_MAX]; + if (save_filename == NULL) { + home = getenv("HOME"); +- sprintf(filename, "%s/.%s", home, AUMIXRC); +- setfile = fopen(filename, mode); ++ sprintf(filename, "%s/etc/%s", home, AUMIXRC); ++ setfile = fopen(filename, mode); ++ if (setfile == NULL) { ++ sprintf(filename, "%s/.%s", home, AUMIXRC); ++ setfile = fopen(filename, mode); ++ } + if (setfile == NULL) { + sprintf(filename, "%s/%s", AUMIXRC_PATH, AUMIXRC); + setfile = fopen(filename, mode); +@@ -549,7 +554,7 @@ + other options:\n\ + d: adjust a device besides /dev/mixer\n\ + f: specify file for saving and loading settings (defaults to\n\ +- ~ /.aumixrc or /etc/aumixrc)\n\ ++ ~/etc/aumixrc, ~/.aumixrc or /etc/aumixrc)\n\ + C: specify color scheme\n\ + h: this helpful message\n")); + #ifdef HAVE_LIBNCURSES -- 2.43.0