1 tmr@server:~$ 2 tmr@server:~$ 3 tmr@server:~$ cd /tmp/ 4 tmr@server:/tmp$ 5 tmr@server:/tmp$ mkdir torsmo 6 tmr@server:/tmp$ 7 tmr@server:/tmp$ cd torsmo/ 8 tmr@server:/tmp/torsmo$ 9 tmr@server:/tmp/torsmo$ 10 tmr@server:/tmp/torsmo$ tar xzvvf ~/download/srcs/torsmo-0.18.tar.gz 11 drwxrwxrwx 2 tmr 100 0 Dec 21 2004 torsmo-0.18 12 -rw-r--r-- 1 tmr 100 0 May 6 2004 torsmo-0.18/NEWS 13 -rw-r--r-- 1 tmr 100 1988 Aug 25 2004 torsmo-0.18/fs.c 14 -rw-r--r-- 1 tmr 100 859 May 12 2004 torsmo-0.18/solaris.c 15 -rw-r--r-- 1 tmr 100 5870 Dec 21 2004 torsmo-0.18/aclocal.m4 16 -rw-r--r-- 1 tmr 100 8110 Dec 21 2004 torsmo-0.18/x11.c 17 -rw-r--r-- 1 tmr 100 13773 Dec 21 2004 torsmo-0.18/README 18 -rw-r--r-- 1 tmr 100 4506 Dec 21 2004 torsmo-0.18/changelog.html 19 -rwxr-xr-x 1 tmr 100 74935 Dec 21 2004 torsmo-0.18/configure 20 -rw-r--r-- 1 tmr 100 18628 Dec 21 2004 torsmo-0.18/linux.c 21 -rw-r--r-- 1 tmr 100 5076 Dec 21 2004 torsmo-0.18/configure.in 22 -rwxr-xr-x 1 tmr 100 5598 May 6 2004 torsmo-0.18/install-sh 23 -rwxr-xr-x 1 tmr 100 6480 May 6 2004 torsmo-0.18/missing 24 -rw-r--r-- 1 tmr 100 1245 Jul 31 2004 torsmo-0.18/mixer.c 25 -rwxr-xr-x 1 tmr 100 722 May 6 2004 torsmo-0.18/mkinstalldirs 26 -rw-r--r-- 1 tmr 100 4200 Dec 21 2004 torsmo-0.18/common.c 27 -rw-r--r-- 1 tmr 100 7624 Aug 25 2004 torsmo-0.18/freebsd.c 28 -rw-r--r-- 1 tmr 100 824 Dec 21 2004 torsmo-0.18/Makefile.am 29 -rw-r--r-- 1 tmr 100 93089 Dec 21 2004 torsmo-0.18/Makefile.in 30 -rw-r--r-- 1 tmr 100 3530 Dec 21 2004 torsmo-0.18/mail.c 31 -rw-r--r-- 1 tmr 100 1813 Dec 21 2004 torsmo-0.18/config.h.in 32 -rw-r--r-- 1 tmr 100 2071 Nov 29 2004 torsmo-0.18/seti.c 33 -rw-r--r-- 1 tmr 100 7273 Aug 25 2004 torsmo-0.18/netbsd.c 34 -rwxr-xr-x 1 tmr 100 592 May 19 2004 torsmo-0.18/changelog2html.py 35 -rw-r--r-- 1 tmr 100 10 Dec 21 2004 torsmo-0.18/stamp-h.in 36 -rw-r--r-- 1 tmr 100 1693 Dec 21 2004 torsmo-0.18/AUTHORS 37 -rw-r--r-- 1 tmr 100 7831 May 6 2004 torsmo-0.18/INSTALL 38 -rw-r--r-- 1 tmr 100 1306 Dec 21 2004 torsmo-0.18/torsmo.1 39 -rw-r--r-- 1 tmr 100 54083 Dec 21 2004 torsmo-0.18/torsmo.c 40 -rw-r--r-- 1 tmr 100 4276 Dec 21 2004 torsmo-0.18/torsmo.h 41 -rw-r--r-- 1 tmr 100 386 May 18 2004 torsmo-0.18/torsmo.x 42 -rw-r--r-- 1 tmr 100 3774 Dec 21 2004 torsmo-0.18/ChangeLog 43 -rw-r--r-- 1 tmr 100 1543 May 6 2004 torsmo-0.18/COPYING 44 -rw-r--r-- 1 tmr 100 9607 Dec 21 2004 torsmo-0.18/torsmorc.sample 45 -rw-r--r-- 1 tmr 100 1368 Dec 21 2004 torsmo-0.18/nvctrl.c 46 -rw-r--r-- 1 tmr 100 12883 Dec 21 2004 torsmo-0.18/readme.html 47 tmr@server:/tmp/torsmo$ 48 tmr@server:/tmp/torsmo$ 49 tmr@server:/tmp/torsmo$ wget http://www.fooboo.org/~tmr/data/torsmo/torsmo-openbsd.tar.gz 50 --18:51:23-- http://www.fooboo.org/%7Etmr/data/torsmo/torsmo-openbsd.tar.gz 51 => `torsmo-openbsd.tar.gz' 52 Resolving www.fooboo.org... done. 53 Connecting to www.fooboo.org[192.168.1.150]:80... connected. 54 HTTP request sent, awaiting response... 200 OK 55 Length: 6,294 [application/x-tar] 56 57 100%[===================================================================================================>] 6,294 6.00M/s ETA 00:00 58 59 18:51:24 (6.00 MB/s) - `torsmo-openbsd.tar.gz' saved [6294/6294] 60 61 tmr@server:/tmp/torsmo$ 62 tmr@server:/tmp/torsmo$ 63 tmr@server:/tmp/torsmo$ tar xzvvf torsmo-openbsd.tar.gz 64 drwxr-xr-x 2 tmr users 0 Nov 5 09:33 torsmo-openbsd 65 drwxr-xr-x 2 tmr users 0 Nov 5 09:24 torsmo-openbsd/patches 66 -rw-r--r-- 1 tmr users 1178 Aug 1 16:02 torsmo-openbsd/patches/patch-Makefile.am 67 -rw-r--r-- 1 tmr users 5346 Aug 1 16:03 torsmo-openbsd/patches/patch-config.h.in 68 -rw-r--r-- 1 tmr users 1233 Aug 1 16:03 torsmo-openbsd/patches/patch-configure.in 69 -rw-r--r-- 1 tmr users 481 Aug 1 16:04 torsmo-openbsd/patches/patch-mixer.c 70 -rwxr-xr-x 1 tmr users 52 Oct 15 10:37 torsmo-openbsd/autogen.sh 71 -rwxr-xr-x 1 tmr users 133 Oct 15 11:13 torsmo-openbsd/install-openbsd.sh 72 -rw-r--r-- 1 tmr users 11490 Oct 15 10:30 torsmo-openbsd/openbsd.c 73 -rw-r--r-- 1 tmr users 744 Nov 5 09:33 torsmo-openbsd/README-OPENBSD 74 tmr@server:/tmp/torsmo$ 75 tmr@server:/tmp/torsmo$ 76 tmr@server:/tmp/torsmo$ cat torsmo-openbsd/README-OPENBSD 77 78 *********************************** 79 * OpenBSD patches for Torsmo 0.18 * 80 *********************************** 81 82 83 Info: 84 ----- 85 Currently, this patches allow you to compile and run Torsmo on OpenBSD, 86 but there are many things that does not work such as 'double_buffer yes'... 87 I've done it only for my personal use, some time ago, 88 but maybe it can be useful for others, I hope. 89 90 91 92 Requirements: 93 ------------- 94 - torsmo sources, version 0.18 95 - autoconf and automake 96 - environment variables AUTOMAKE_VERSION, AUTOCONF_VERSION 97 98 99 Instalation: 100 ------------ 101 Copy files from this directory to unpacked source distribution 102 of torsmo-0.18 and run install-openbsd.sh script. 103 After doing this you are ready to compile Torsmo on your OpenBSD box. 104 105 Enjoy ! 106 107 tmr@server:/tmp/torsmo$ 108 tmr@server:/tmp/torsmo$ cp -r torsmo-openbsd/* torsmo-0.18/ 109 tmr@server:/tmp/torsmo$ setenv AUTOMAKE_VERSION 1.4 110 tmr@server:/tmp/torsmo$ setenv AUTOCONF_VERSION 2.57 111 tmr@server:/tmp/torsmo$ 112 tmr@server:/tmp/torsmo$ cd torsmo-0.18/ 113 tmr@server:/tmp/torsmo/torsmo-0.18$ 114 tmr@server:/tmp/torsmo/torsmo-0.18$ 115 tmr@server:/tmp/torsmo/torsmo-0.18$ ./install-openbsd.sh 116 Hmm... Looks like a new-style context diff to me... 117 The text leading up to this was: 118 -------------------------- 119 |*** ./Makefile.am Tue Dec 21 20:34:27 2004 120 |--- /tmp/torsmo-0.18/Makefile.am Mon Aug 1 15:47:37 2005 121 -------------------------- 122 Patching file Makefile.am using Plan A... 123 Hunk #1 succeeded at 20. 124 Hunk #2 succeeded at 44. 125 done 126 Hmm... Looks like a new-style context diff to me... 127 The text leading up to this was: 128 -------------------------- 129 |*** ./config.h.in Tue Dec 21 21:09:26 2004 130 |--- /tmp/torsmo-0.18/config.h.in Mon Aug 1 15:16:09 2005 131 -------------------------- 132 Patching file config.h.in using Plan A... 133 Hunk #1 succeeded at 1. 134 done 135 Hmm... Looks like a new-style context diff to me... 136 The text leading up to this was: 137 -------------------------- 138 |*** ./configure.in Tue Dec 21 22:57:03 2004 139 |--- /tmp/torsmo-0.18/configure.in Mon Aug 1 15:47:27 2005 140 -------------------------- 141 Patching file configure.in using Plan A... 142 Hunk #1 succeeded at 16. 143 Hunk #2 succeeded at 37. 144 Hunk #3 succeeded at 189. 145 done 146 Hmm... Looks like a new-style context diff to me... 147 The text leading up to this was: 148 -------------------------- 149 |*** ./mixer.c Sat Jul 31 10:06:57 2004 150 |--- /tmp/torsmo-0.18/mixer.c Mon Aug 1 15:37:21 2005 151 -------------------------- 152 Patching file mixer.c using Plan A... 153 Hunk #1 succeeded at 8. 154 done 155 Now you can run configure and gmake... 156 tmr@server:/tmp/torsmo/torsmo-0.18$ 157 tmr@server:/tmp/torsmo/torsmo-0.18$ setenv CFLAGS "-I/usr/X11R6/include -O2" 158 tmr@server:/tmp/torsmo/torsmo-0.18$ setenv CPPFLAGS "-I/usr/X11R6/include" 159 tmr@server:/tmp/torsmo/torsmo-0.18$ 160 tmr@server:/tmp/torsmo/torsmo-0.18$ ./configure 161 checking for a BSD-compatible install... /usr/bin/install -c 162 checking whether build environment is sane... yes 163 checking whether make sets $(MAKE)... yes 164 checking for working aclocal-1.4... found 165 checking for working autoconf... found 166 checking for working automake-1.4... found 167 checking for working autoheader... found 168 checking for working makeinfo... found 169 checking for gcc... gcc 170 checking for C compiler default output... a.out 171 checking whether the C compiler works... yes 172 checking whether we are cross compiling... no 173 checking for suffix of executables... 174 checking for suffix of object files... o 175 checking whether we are using the GNU C compiler... yes 176 checking whether gcc accepts -g... yes 177 checking for gcc option to accept ANSI C... none needed 178 checking how to run the C preprocessor... gcc -E 179 checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include 180 checking for XOpenDisplay in -lX11... yes 181 checking for XdbeQueryExtension in -lXext... yes 182 checking for kvm_open in -lkvm... yes 183 checking for _oss_ioctl in -lossaudio... yes 184 checking for egrep... grep -E 185 checking for ANSI C header files... yes 186 checking for sys/types.h... yes 187 checking for sys/stat.h... yes 188 checking for stdlib.h... yes 189 checking for string.h... yes 190 checking for memory.h... yes 191 checking for strings.h... yes 192 checking for inttypes.h... yes 193 checking for stdint.h... no 194 checking for unistd.h... yes 195 checking signal.h usability... yes 196 checking signal.h presence... yes 197 checking for signal.h... yes 198 checking for unistd.h... (cached) yes 199 checking X11/Xlib.h usability... yes 200 checking X11/Xlib.h presence... yes 201 checking for X11/Xlib.h... yes 202 checking sys/utsname.h usability... yes 203 checking sys/utsname.h presence... yes 204 checking for sys/utsname.h... yes 205 checking for sys/stat.h... (cached) yes 206 checking linux/soundcard.h usability... no 207 checking linux/soundcard.h presence... no 208 checking for linux/soundcard.h... no 209 checking sys/soundcard.h usability... no 210 checking sys/soundcard.h presence... no 211 checking for sys/soundcard.h... no 212 checking dirent.h usability... yes 213 checking dirent.h presence... yes 214 checking for dirent.h... yes 215 checking sys/statfs.h usability... no 216 checking sys/statfs.h presence... no 217 checking for sys/statfs.h... no 218 checking sys/param.h usability... yes 219 checking sys/param.h presence... yes 220 checking for sys/param.h... yes 221 checking sys/mount.h usability... no 222 checking sys/mount.h presence... yes 223 configure: WARNING: sys/mount.h: present but cannot be compiled 224 configure: WARNING: sys/mount.h: check for missing prerequisite headers? 225 configure: WARNING: sys/mount.h: proceeding with the preprocessor's result 226 configure: WARNING: ## ------------------------------------ ## 227 configure: WARNING: ## Report this to bug-autoconf@gnu.org. ## 228 configure: WARNING: ## ------------------------------------ ## 229 checking for sys/mount.h... yes 230 checking X11/extensions/Xdbe.h usability... no 231 checking X11/extensions/Xdbe.h presence... yes 232 configure: WARNING: X11/extensions/Xdbe.h: present but cannot be compiled 233 configure: WARNING: X11/extensions/Xdbe.h: check for missing prerequisite headers? 234 configure: WARNING: X11/extensions/Xdbe.h: proceeding with the preprocessor's result 235 configure: WARNING: ## ------------------------------------ ## 236 configure: WARNING: ## Report this to bug-autoconf@gnu.org. ## 237 configure: WARNING: ## ------------------------------------ ## 238 checking for X11/extensions/Xdbe.h... yes 239 checking for help2man... /usr/local/bin/help2man 240 checking for getloadavg... yes 241 checking for popen... yes 242 configure: creating ./config.status 243 config.status: creating Makefile 244 config.status: creating config.h 245 config.status: executing default-1 commands 246 tmr@server:/tmp/torsmo/torsmo-0.18$ 247 tmr@server:/tmp/torsmo/torsmo-0.18$ 248 tmr@server:/tmp/torsmo/torsmo-0.18$ gmake 249 gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/X11R6/include -I/usr/X11R6/include -O2 -Wall -I/usr/X11R6/include -Wall -W -c common.c 250 gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/X11R6/include -I/usr/X11R6/include -O2 -Wall -I/usr/X11R6/include -Wall -W -c fs.c 251 gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/X11R6/include -I/usr/X11R6/include -O2 -Wall -I/usr/X11R6/include -Wall -W -c mail.c 252 gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/X11R6/include -I/usr/X11R6/include -O2 -Wall -I/usr/X11R6/include -Wall -W -c openbsd.c 253 openbsd.c: In function `get_i2c_info': 254 openbsd.c:337: warning: unused parameter `fd' 255 openbsd.c:337: warning: unused parameter `div' 256 openbsd.c: In function `get_acpi_temperature': 257 openbsd.c:366: warning: suggest explicit braces to avoid ambiguous `else' 258 openbsd.c:353: warning: unused parameter `fd' 259 openbsd.c: In function `get_battery_stuff': 260 openbsd.c:380: warning: unused parameter `buf' 261 openbsd.c:380: warning: unused parameter `n' 262 openbsd.c:380: warning: unused parameter `bat' 263 openbsd.c: In function `open_i2c_sensor': 264 openbsd.c:385: warning: unused parameter `dev' 265 openbsd.c:385: warning: unused parameter `type' 266 openbsd.c:385: warning: unused parameter `n' 267 openbsd.c:385: warning: unused parameter `div' 268 openbsd.c: In function `open_acpi_temperature': 269 openbsd.c:390: warning: unused parameter `name' 270 openbsd.c: In function `get_acpi_fan': 271 openbsd.c:414: warning: suggest explicit braces to avoid ambiguous `else' 272 openbsd.c:423: warning: function returns address of local variable 273 gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/X11R6/include -I/usr/X11R6/include -O2 -Wall -I/usr/X11R6/include -Wall -W -c torsmo.c 274 gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/X11R6/include -I/usr/X11R6/include -O2 -Wall -I/usr/X11R6/include -Wall -W -c x11.c 275 gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/X11R6/include -I/usr/X11R6/include -O2 -Wall -I/usr/X11R6/include -Wall -W -c mixer.c 276 gcc -I/usr/X11R6/include -O2 -Wall -I/usr/X11R6/include -Wall -W -L/usr/X11R6/lib -o torsmo -lX11 -lXext common.o fs.o mail.o openbsd.o torsmo.o x11.o mixer.o -lkvm -lossaudio 277 /usr/X11R6/lib/libX11.so.8.1: warning: sprintf() is often misused, please use snprintf() 278 help2man -h -h -v -V -i torsmo.x -o torsmo.1 -N ./torsmo 279 cd . && autoheader 280 tmr@server:/tmp/torsmo/torsmo-0.18$ 281 tmr@server:/tmp/torsmo/torsmo-0.18$ 282 tmr@server:/tmp/torsmo/torsmo-0.18$ ls -FailshoT torsmo 283 93504 144 -rwxr-xr-x 1 tmr wheel - 70.7K Nov 18 18:38:17 2005 torsmo* 284 tmr@server:/tmp/torsmo/torsmo-0.18$ 285 tmr@server:/tmp/torsmo/torsmo-0.18$ 286