Commit 88f81f7a authored by Didier Raboud's avatar Didier Raboud

Imported Upstream version 0.8.7

parent 28d9b899
This diff is collapsed.
This diff is collapsed.
#
# Makefile.in - hplip automake input file
#
# (c) 2004 Copyright Hewlett-Packard Development Company, LP
#
@SET_MAKE@
SHELL = @SHELL@
PACKAGE = hplip
VERSION="0.8.7"
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
sbindir = @sbindir@
srcdir = @srcdir@
datadir = @datadir@
chkconfigdir = @CHKCONFIG_PATH@
lsbinstalldir = @LSB_INSTALL_PATH@
install = @INSTALL@
install_data = $(install) -m 644
install_script = $(install)
mkinstalldirs = $(install) -d
rpm_install = @rpm_install@
PYTHON_SOURCES = \
align.py \
info.py \
print.py \
toolbox.py \
clean.py \
colorcal.py \
photo.py \
unload.py \
probe.py \
rpu.py \
ctr.py \
testpage.py
PYTHON_SOURCES2 = \
hpguid.py \
hpssd.py \
__init__.py
DIST_SOURCES = \
hplip.sh \
hplip.conf \
ChangeLog \
hplip_readme.html \
hplip_overview.png
DIST_COMMON = Makefile.in configure configure.in install-sh missing mkinstalldirs COPYING
PROJECT_PATH = prnt prnt/hpijs io/hpiod backend/hp base data scan ui ip scan/sane pcard
all:
here=`pwd`; \
for i in $(PROJECT_PATH); do \
cd $$here/$$i; \
$(MAKE) $(AM_MAKEFLAGS); \
done
install:
here=`pwd`; \
for i in $(PROJECT_PATH); do \
cd $$here/$$i; \
$(MAKE) $(AM_MAKEFLAGS) install; \
done
#
# Install python files to destdir and remove .py extensions.
$(install_script) $(PYTHON_SOURCES) $(PYTHON_SOURCES2) $(DESTDIR)$(datadir)/$(PACKAGE)
for i in $(PYTHON_SOURCES); do \
newname=$${i%.*}; \
mv $(DESTDIR)$(datadir)/$(PACKAGE)/$$i $(DESTDIR)$(datadir)/$(PACKAGE)/$$newname; \
done
#
# Install and edit hpiod.conf in destdir.
$(install_data) $(PACKAGE).conf $(DESTDIR)$(datadir)/$(PACKAGE)
echo -e "\n[$(PACKAGE)]\nversion=$(VERSION)\njdprobe=0\n" >> $(DESTDIR)$(datadir)/$(PACKAGE)/$(PACKAGE).conf
echo -e "[dirs]\nhome=$(datadir)/$(PACKAGE)\n" >> $(DESTDIR)$(datadir)/$(PACKAGE)/$(PACKAGE).conf
#
# Install and edit hpiod.sh in destdir.
$(install_script) $(PACKAGE).sh $(DESTDIR)$(datadir)/$(PACKAGE); \
sed 's:HPIODDIR=:HPIODDIR=$(sbindir):' < $(DESTDIR)$(datadir)/$(PACKAGE)/$(PACKAGE).sh > $(DESTDIR)$(datadir)/$(PACKAGE)/$(PACKAGE).tmp; \
sed 's:HPSSDDIR=:HPSSDDIR=$(datadir)/$(PACKAGE):' < $(DESTDIR)$(datadir)/$(PACKAGE)/$(PACKAGE).tmp > $(DESTDIR)$(datadir)/$(PACKAGE)/$(PACKAGE).sh; \
rm -f $(DESTDIR)$(datadir)/$(PACKAGE)/$(PACKAGE).tmp
#
# Do full install if not rpm_install. Also only run chkconfig/install_initd if DESTDIR="".
if [ "$(rpm_install)" = "no" ]; then \
$(mkinstalldirs) $(DESTDIR)/etc/hp; \
ln -sf $(DESTDIR)$(datadir)/$(PACKAGE)/$(PACKAGE).conf $(DESTDIR)/etc/hp/$(PACKAGE).conf; \
if [ -d /etc/init.d ]; then \
ln -sf $(DESTDIR)$(datadir)/$(PACKAGE)/$(PACKAGE).sh $(DESTDIR)/etc/init.d/$(PACKAGE); \
if [ "$(DESTDIR)" = "" ]; then \
if [ -x $(lsbinstalldir)/install_initd ]; then \
$(lsbinstalldir)/install_initd $(PACKAGE); \
else \
$(chkconfigdir)/chkconfig $(PACKAGE) reset; \
fi \
fi \
fi \
fi
uninstall:
here=`pwd`; \
for i in $(PROJECT_PATH); do \
cd $$here/$$i; \
$(MAKE) $(AM_MAKEFLAGS) uninstall; \
done
clean:
rm -f *~
here=`pwd`; \
for i in $(PROJECT_PATH); do \
cd $$here/$$i; \
$(MAKE) $(AM_MAKEFLAGS) clean; \
done
dist:
rm -rf $(PACKAGE)-$(VERSION)
mkdir $(PACKAGE)-$(VERSION)
here=`pwd`; \
for i in $(PROJECT_PATH); do \
mkdir -p $$here/$(PACKAGE)-$(VERSION)/$$i; \
cd $$here/$$i; \
$(MAKE) $(AM_MAKEFLAGS) copy COPY_DEST="$$here/$(PACKAGE)-$(VERSION)/$$i"; \
done
cp -L $(PYTHON_SOURCES) $(PYTHON_SOURCES2) $(DIST_SOURCES) $(DIST_COMMON) $(PACKAGE)-$(VERSION)
tar czvf $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION)
rm -rf $(PACKAGE)-$(VERSION)
#!/usr/bin/env python
#
# $Revision: 1.5 $
# $Date: 2004/11/17 19:51:14 $
# $Author: dwelch $
#
# (c) Copyright 2003-2004 Hewlett-Packard Development Company, L.P.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
This diff is collapsed.
#
# Makefile.am - hp cups backend automake input file
#
# (c) 2004 Copyright Hewlett-Packard Development Company, LP
#
cupsdir = $(CUPS_BACKEND_PATH)
cups_PROGRAMS = hp
hp_SOURCES = hp.c
copy:
cp -rL $(hp_SOURCES) $(EXTRA_DIST) $(DIST_COMMON) $(COPY_DEST)
.PHONY: copy
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
#
# configure.in - hp cups backend autoconf input file
#
# (c) 2004 Copyright Hewlett-Packard Development Company, LP
#
AC_INIT(hp.c)
AM_INIT_AUTOMAKE(hp, 0.80)
# Checks for programs.
AC_PROG_CC
AC_PROG_CXX
AC_PROG_INSTALL
# Checks for libraries.
# Checks for header files.
AC_HEADER_STDC
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
CUPSSEARCHPATH="/usr/share /usr/local/share /usr/lib /usr/local/lib /usr/libexec /opt"
AC_MSG_CHECKING("for cups backend path")
CUPS_BACKEND_PATH="/usr/lib/cups/backend"
for i in $CUPSSEARCHPATH; do
if test -d "$i/cups/backend"; then
CUPS_BACKEND_PATH="$i/cups/backend"
break
fi
done
AC_MSG_RESULT("using $CUPS_BACKEND_PATH")
AC_SUBST(CUPS_BACKEND_PATH)
AC_OUTPUT(Makefile)
This diff is collapsed.
This diff is collapsed.
#!/bin/sh
#
# install - install a program, script, or datafile
#
# This originates from X11R5 (mit/util/scripts/install.sh), which was
# later released in X11R6 (xc/config/util/install.sh) with the
# following copyright and license.
#
# Copyright (C) 1994 X Consortium
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
# sell copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
# Except as contained in this notice, the name of the X Consortium shall not
# be used in advertising or otherwise to promote the sale, use or other deal-
# ings in this Software without prior written authorization from the X Consor-
# tium.
#
#
# FSF changes to this file are in the public domain.
#
# Calling this script install-sh is preferred over install.sh, to prevent
# `make' implicit rules from creating a file called install from it
# when there is no Makefile.
#
# This script is compatible with the BSD install script, but was written
# from scratch. It can only install one file at a time, a restriction
# shared with many OS's install programs.
# set DOITPROG to echo to test this script
# Don't use :- since 4.3BSD and earlier shells don't like it.
doit="${DOITPROG-}"
# put in absolute paths if you don't have them in your path; or use env. vars.
mvprog="${MVPROG-mv}"
cpprog="${CPPROG-cp}"
chmodprog="${CHMODPROG-chmod}"
chownprog="${CHOWNPROG-chown}"
chgrpprog="${CHGRPPROG-chgrp}"
stripprog="${STRIPPROG-strip}"
rmprog="${RMPROG-rm}"
mkdirprog="${MKDIRPROG-mkdir}"
transformbasename=""
transform_arg=""
instcmd="$mvprog"
chmodcmd="$chmodprog 0755"
chowncmd=""
chgrpcmd=""
stripcmd=""
rmcmd="$rmprog -f"
mvcmd="$mvprog"
src=""
dst=""
dir_arg=""
while [ x"$1" != x ]; do
case $1 in
-c) instcmd=$cpprog
shift
continue;;
-d) dir_arg=true
shift
continue;;
-m) chmodcmd="$chmodprog $2"
shift
shift
continue;;
-o) chowncmd="$chownprog $2"
shift
shift
continue;;
-g) chgrpcmd="$chgrpprog $2"
shift
shift
continue;;
-s) stripcmd=$stripprog
shift
continue;;
-t=*) transformarg=`echo $1 | sed 's/-t=//'`
shift
continue;;
-b=*) transformbasename=`echo $1 | sed 's/-b=//'`
shift
continue;;
*) if [ x"$src" = x ]
then
src=$1
else
# this colon is to work around a 386BSD /bin/sh bug
:
dst=$1
fi
shift
continue;;
esac
done
if [ x"$src" = x ]
then
echo "$0: no input file specified" >&2
exit 1
else
:
fi
if [ x"$dir_arg" != x ]; then
dst=$src
src=""
if [ -d "$dst" ]; then
instcmd=:
chmodcmd=""
else
instcmd=$mkdirprog
fi
else
# Waiting for this to be detected by the "$instcmd $src $dsttmp" command
# might cause directories to be created, which would be especially bad
# if $src (and thus $dsttmp) contains '*'.
if [ -f "$src" ] || [ -d "$src" ]
then
:
else
echo "$0: $src does not exist" >&2
exit 1
fi
if [ x"$dst" = x ]
then
echo "$0: no destination specified" >&2
exit 1
else
:
fi
# If destination is a directory, append the input filename; if your system
# does not like double slashes in filenames, you may need to add some logic
if [ -d "$dst" ]
then
dst=$dst/`basename "$src"`
else
:
fi
fi