Skip to content

Commit

Permalink
- versao migrada do SVN que quebrou
Browse files Browse the repository at this point in the history
  • Loading branch information
phsilva committed Aug 24, 2006
0 parents commit dee3825
Show file tree
Hide file tree
Showing 316 changed files with 64,062 additions and 0 deletions.
Empty file added AUTHORS
Empty file.
15 changes: 15 additions & 0 deletions BUGS
@@ -0,0 +1,15 @@

- versao 0.9 usa fits2jpeg proprio, mas o uts-www ainda inclui o antigo

- filtro e foco: ao trocar o filtro, o controlador deve procurar qual a configuracao de foco adequado, focar, testar (configuravel), e se nao houver configuracao de foco, deve preparar uma e salvar no banco de configuracoes

- configuracoes: necessário.. e muito...


- FITS headers


- controle de temperatura
- controle de eixos individuais
- NSEW control

340 changes: 340 additions & 0 deletions COPYING

Large diffs are not rendered by default.

Empty file added ChangeLog
Empty file.
Empty file added INSTALL
Empty file.
45 changes: 45 additions & 0 deletions Makefile.am
@@ -0,0 +1,45 @@
include $(top_srcdir)/rules.make

SUBDIRS = src contrib

EXTRA_DIST = rules.make

#install-exec-hook:

# @echo "Creating UTS services..."

# @if [ @UTS_DISTRO@ = "suse" ]; then \
# /sbin/insserv spmd; \
# /sbin/insserv secd; \
# /sbin/insserv camd; \
# /sbin/insserv teld; \
# /sbin/insserv sbigcam; \
# fi;

# @if [ @UTS_DISTRO@ = "redhat" ]; then \
# /sbin/chkconfig --del sbigcam; /sbin/chkconfig --add sbigcam; /sbin/chkconfig --level 345 sbigcam on; \
# /sbin/chkconfig --del spmd; /sbin/chkconfig --add spmd; /sbin/chkconfig --level 345 spmd on; \
# /sbin/chkconfig --del secd; /sbin/chkconfig --add secd; /sbin/chkconfig --level 345 secd on; \
# /sbin/chkconfig --del camd; /sbin/chkconfig --add camd; /sbin/chkconfig --level 345 camd on; \
# /sbin/chkconfig --del teld; /sbin/chkconfig --add teld; /sbin/chkconfig --level 345 teld on; \
# fi;

# @if [ @UTS_DISTRO@ = "debian" ]; then \
# /usr/sbin/update-rc.d sbigcam defaults 90; \
# /usr/sbin/update-rc.d spmd defaults 91; \
# /usr/sbin/update-rc.d secd defaults 92; \
# /usr/sbin/update-rc.d teld defaults 93; \
# /usr/sbin/update-rc.d camd defaults 94; \
# fi;

# @if [ ! -d /var/log/uts ]; then \
# @echo "Creating log directory... ( /var/log/uts )"; \
# mkdir /var/log/uts; \
# fi;

# @if [ -x @PYTHON@ ]; then \
# cd $(top_srcdir)/src/python; \
# @PYTHON@ setup.py build; \
# @PYTHON@ setup.py install; \
# cd $(top_srcdir); \
# fi;
Empty file added NEWS
Empty file.
7 changes: 7 additions & 0 deletions README
@@ -0,0 +1,7 @@

sh autogen.sh
./configure --prefix=/usr
make
make install

(make install deve ser rodado como root)
22 changes: 22 additions & 0 deletions SConstruct
@@ -0,0 +1,22 @@
#! /usr/bin/python

#
# Main Sconscruct file for UTS
#
# Copyright(c) 2006 - P. Henrique Silva <ph.silva@gmail.com>
#

env = Environment()

Export('env')

SConscript('src/base/SConscript')
SConscript('src/sec/SConscript')

SConscript('src/instruments/cam/SConscript')
SConscript('src/instruments/tel/SConscript')
SConscript('src/instruments/order/SConscript')

SConscript('src/tools/client/SConscript')


35 changes: 35 additions & 0 deletions acinclude.m4
@@ -0,0 +1,35 @@
# UTS_CHECK_DISTRO

AC_DEFUN([UTS_CHECK_DISTRO], [
AC_MSG_CHECKING([which distro we are running on])
if test -a /etc/SuSE-release; then
distro=suse
initconfig=/etc/sysconfig
elif test -a /etc/redhat-release; then
distro=redhat
initconfig=/etc/sysconfig
elif test -a /etc/debian_version; then
distro=debian
initconfig=/etc/default
else
distro=suse
fi
AC_SUBST([UTS_DISTRO], $distro)
AC_SUBST([UTS_INITCONFIG_DIR], $initconfig)
AC_MSG_RESULT([$distro])
])



21 changes: 21 additions & 0 deletions autogen.sh
@@ -0,0 +1,21 @@

which aclocal > /dev/null || "You don't have aclocal in your PATH."

echo -n "Running ";
aclocal --version | grep aclocal
aclocal

echo -n "Running ";
autoheader --version | grep autoheader
autoheader

echo -n "Running ";
autoconf --version | grep autoconf
autoconf

echo -n "Running ";
automake --version | grep automake
automake -a

echo "Now, run ./configure, then, make and make install."

97 changes: 97 additions & 0 deletions configure.ac
@@ -0,0 +1,97 @@
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ(2.59)
AC_INIT([uts], [1.0RC1], [henrique@astro.ufsc.br] )
AC_CONFIG_SRCDIR([src/sec/main.c])
AM_INIT_AUTOMAKE

AC_DEFINE([PROGRAM_URL], ["http://www.astro.ufsc.br/"], [ ])

# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
AC_PROG_CPP
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_RANLIB

# Python stuff
AM_PATH_PYTHON

# which distro?
UTS_CHECK_DISTRO

# Checks for header files.
AC_HEADER_DIRENT
AC_HEADER_STDC
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS([fcntl.h limits.h netdb.h netinet/in.h stdlib.h string.h strings.h sys/socket.h sys/time.h termios.h unistd.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_CONST
AC_TYPE_SIZE_T
AC_HEADER_TIME
AC_STRUCT_TM

# Checks for library functions.
AC_FUNC_ERROR_AT_LINE
AC_REPLACE_FNMATCH
AC_FUNC_FORK
AC_FUNC_MALLOC
AC_FUNC_SELECT_ARGTYPES
AC_TYPE_SIGNAL
AC_CHECK_FUNCS([alarm floor memset pow select sqrt strcasecmp strchr strncasecmp strrchr])

# Checks for libraries.
AC_CHECK_LIB([m], [sin], [AC_DEFINE([HAVE_LM], [1], [Have C Math Library])])
AC_CHECK_LIB([jpeg], [jpeg_set_quality], [AC_DEFINE([HAVE_JPEG], [1], [Have libjpeg])])

# outputs
AM_CONFIG_HEADER([config.h])
AC_CONFIG_FILES([
Makefile
src/Makefile
src/drivers/Makefile
src/drivers/camfits.fake/Makefile
src/drivers/camfits.st4/Makefile
src/drivers/camfits.st7/Makefile
src/drivers/telgo.fake/Makefile
src/drivers/telgo.lx200/Makefile
src/drivers/telgo.paramount/Makefile
src/drivers/weather.wx200/Makefile
src/sec/Makefile
src/tools/Makefile
src/tools/client/Makefile
src/config/Makefile
src/config/initscripts/Makefile
src/config/initscripts/redhat/Makefile
src/config/initscripts/redhat/uts
src/config/initscripts/suse/Makefile
src/config/initscripts/suse/uts
src/config/initscripts/debian/Makefile
src/config/initscripts/debian/uts
src/python/Makefile
src/python/uts/Makefile
src/python/uts/core/Makefile
src/python/uts/instruments/Makefile
src/python/uts/interfaces/Makefile
contrib/Makefile
contrib/bin/Makefile
contrib/bin/sbig_load_lpt
contrib/bin/sbig_load_usb
contrib/bin/sbig_load_usb_suse
contrib/fits2jpeg/Makefile
contrib/lib/Makefile])

AC_OUTPUT


4 changes: 4 additions & 0 deletions contrib/Makefile.am
@@ -0,0 +1,4 @@
SUBDIRS = bin lib fits2jpeg

EXTRA_DIST = include

5 changes: 5 additions & 0 deletions contrib/bin/Makefile.am
@@ -0,0 +1,5 @@
include $(top_srcdir)/rules.make

dist_bin_SCRIPTS = Spm spmtable \
sbig_load_usb sbig_load_usb_suse sbig_load_lpt \
sbig_unload_lpt sbig_unload_usb
Binary file added contrib/bin/Spm
Binary file not shown.
32 changes: 32 additions & 0 deletions contrib/bin/sbig_load_lpt.in
@@ -0,0 +1,32 @@
#!/bin/sh
#====================================================================
# Insert 'sbiglptmod' module.
# This script was modified from A.Rubini: Linux Device Drivers, 1998
# Written by: Jan Soldan
#====================================================================
modules_path=@prefix@/lib
lpt_module="sbiglptmod"
lpt_device="sbiglpt"
#====================================================================
# Character kernel driver: sbiglptmod
#====================================================================
# remove old nodes
rm -f /dev/${lpt_device}[0-2]

# insert new lpt module, use -f option
/sbin/insmod -f ${modules_path}/${lpt_module}.o || exit 1

# find free major number
major=`awk "\\$2==\"$lpt_device\" {print \\$1}" /proc/devices`

# create new nodes for the three lpt devices
mknod /dev/${lpt_device}0 c $major 0
mknod /dev/${lpt_device}1 c $major 1
mknod /dev/${lpt_device}2 c $major 2

#set appropriate permissions
chmod 666 /dev/${lpt_device}[0-2]
#====================================================================



37 changes: 37 additions & 0 deletions contrib/bin/sbig_load_usb.in
@@ -0,0 +1,37 @@
#!/bin/sh
#====================================================================
# Insert 'sbigusbmod' modules.
# This script was modified from A.Rubini: Linux Device Drivers, 1998
# Written by: Jan Soldan
#====================================================================
modules_path=@prefix@/lib
usb_module="sbigusbmod"
usb_device="sbigusb"

SBIG_USB_MINOR_BASE=192

SBIG_USB_MINOR_0=192
SBIG_USB_MINOR_1=193
SBIG_USB_MINOR_2=194
SBIG_USB_MINOR_3=195
#====================================================================
# USB kernel driver: sbigusbmod
#====================================================================
# remove old nodes
rm -f /dev/${usb_device}[0-3]

# insert new usb module, use -f option
/sbin/insmod -f ${modules_path}/${usb_module}.o || exit 1

# create new nodes for the three devices
mknod /dev/${usb_device}0 c 180 ${SBIG_USB_MINOR_0}
mknod /dev/${usb_device}1 c 180 ${SBIG_USB_MINOR_1}
mknod /dev/${usb_device}2 c 180 ${SBIG_USB_MINOR_2}
mknod /dev/${usb_device}3 c 180 ${SBIG_USB_MINOR_3}

#set appropriate permissions
chmod 666 /dev/${usb_device}[0-3]
#====================================================================



37 changes: 37 additions & 0 deletions contrib/bin/sbig_load_usb_suse.in
@@ -0,0 +1,37 @@
#!/bin/sh
#====================================================================
# Insert 'sbigusbmod' modules.
# This script was modified from A.Rubini: Linux Device Drivers, 1998
# Written by: Jan Soldan
#====================================================================
modules_path=@prefix@/lib
usb_module="sbigusbmod_2_6"
usb_device="sbigusb"

SBIG_USB_MINOR_BASE=192

SBIG_USB_MINOR_0=192
SBIG_USB_MINOR_1=193
SBIG_USB_MINOR_2=194
SBIG_USB_MINOR_3=195
#====================================================================
# USB kernel driver: sbigusbmod
#====================================================================
# remove old nodes
rm -f /dev/${usb_device}[0-3]

# insert new usb module, use -f option
/sbin/insmod -f ${modules_path}/${usb_module}.ko || exit 1

# create new nodes for the three devices
mknod /dev/${usb_device}0 c 180 ${SBIG_USB_MINOR_0}
mknod /dev/${usb_device}1 c 180 ${SBIG_USB_MINOR_1}
mknod /dev/${usb_device}2 c 180 ${SBIG_USB_MINOR_2}
mknod /dev/${usb_device}3 c 180 ${SBIG_USB_MINOR_3}

#set appropriate permissions
chmod 666 /dev/${usb_device}[0-3]
#====================================================================



16 changes: 16 additions & 0 deletions contrib/bin/sbig_unload_lpt
@@ -0,0 +1,16 @@
#!/bin/sh
#====================================================================
# Remove 'sbiglptmod' module.
# Written by: Jan Soldan
#====================================================================
lpt_module="sbiglptmod"
lpt_device="sbiglpt"
#====================================================================
# Character kernel driver: sbiglptdrv
#====================================================================
/sbin/rmmod ${lpt_module}

# remove all three nodes
rm -f /dev/${lpt_device}[0-2]
#====================================================================

0 comments on commit dee3825

Please sign in to comment.