[xorg-commit-diffs]
xc/programs/Xserver/Xprint/etc/init.d Imakefile, NONE,
1.1.2.1 xprint, NONE, 1.1.2.1
Roland Mainz
xorg-commit at pdx.freedesktop.org
Mon Apr 12 20:16:52 PDT 2004
- Previous message: [xorg-commit-diffs] xc/programs/Xserver/Xprint/etc/Xsession.d
Imakefile, NONE, 1.1.2.1 cde_xsessiond_xprint.sh, NONE, 1.1.2.1
- Next message: [xorg-commit-diffs] xc/programs/Xserver/Xprint/etc/profile.d
Imakefile, NONE, 1.1.2.1 xprint.csh, NONE, 1.1.2.1 xprint.sh,
NONE, 1.1.2.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Committed by: gisburn
Update of /cvs/xorg/xc/programs/Xserver/Xprint/etc/init.d
In directory pdx:/tmp/cvs-serv9732/xc/programs/Xserver/Xprint/etc/init.d
Added Files:
Tag: XPRINT
Imakefile xprint
Log Message:
Fix for http://xprint.freedesktop.org/cgi-bin/bugzilla/show_bug.cgi?id=462 - RFE: Merge xprint.mozdev.org Xprint enhancements into Xorg XPRINT branch
--- NEW FILE: Imakefile ---
XCOMM $Xorg: Imakefile,v 1.2 2003/01/20 17:02:01 gisburn Exp $
all::
#if BuildGISWxprintglue
XCOMM Hack for GISWxprintglue package build
all:: xprint.GISWxprintglue
xprint.GISWxprintglue: xprint
nawk <xprint " { sub(\"XPCUSTOMGLUE=default\", \"XPCUSTOMGLUE=GISWxprintglue\") ; print \$$0 } " >xprint.GISWxprintglue
clean::
$(RM) xprint.GISWxprintglue
InstallNamedProg(xprint.GISWxprintglue,xprint,/etc/init.d)
#elif BuildGISWxprint
XCOMM Hack for GISWxprint package build
all:: xprint.GISWxprint
xprint.GISWxprint: xprint
nawk <xprint " { sub(\"XPCUSTOMGLUE=default\", \"XPCUSTOMGLUE=GISWxprint\") ; print \$$0 } " >xprint.GISWxprint
clean::
$(RM) xprint.GISWxprint
InstallNamedProg(xprint.GISWxprint,xprint,/etc/init.d)
#elif BuildDebianXprintPackage
XCOMM Hack for Debian Xprint server package build
all:: xprint.DebianXprt
xprint.DebianXprt: xprint
nawk <xprint " { sub(\"XPCUSTOMGLUE=default\", \"XPCUSTOMGLUE=DebianGlue\") ; print \$$0 } " >xprint.DebianXprt
clean::
$(RM) xprint.DebianXprt
InstallNamedProg(xprint.DebianXprt,xprint,/etc/init.d)
#else
#if defined(FreeBSDArchitecture)
InstallNamedProg(xprint,xprint,/usr/X11R6/etc/rc.d)
#else
InstallNamedProg(xprint,xprint,/etc/init.d)
#endif
#endif /* BuildDebianXprintPackage */
XCOMM Create startup/shutdown links in /etc/rc.d/ for Solaris
#if defined(SunArchitecture) && (OSMajorVersion > 4)
install::
MakeDir($(DESTDIR)/etc/rc0.d) ; RemoveFile($(DESTDIR)/etc/rc0.d/K38xprint) ; ln -s /etc/init.d/xprint $(DESTDIR)/etc/rc0.d/K38xprint
MakeDir($(DESTDIR)/etc/rc1.d) ; RemoveFile($(DESTDIR)/etc/rc1.d/K38xprint) ; ln -s /etc/init.d/xprint $(DESTDIR)/etc/rc1.d/K38xprint
MakeDir($(DESTDIR)/etc/rc2.d) ; RemoveFile($(DESTDIR)/etc/rc2.d/S81xprint) ; ln -s /etc/init.d/xprint $(DESTDIR)/etc/rc2.d/S81xprint
MakeDir($(DESTDIR)/etc/rcS.d) ; RemoveFile($(DESTDIR)/etc/rcS.d/K38xprint) ; ln -s /etc/init.d/xprint $(DESTDIR)/etc/rcS.d/K38xprint
#endif /* defined(SunArchitecture) && (OSMajorVersion > 4) */
--- NEW FILE: xprint ---
#!/bin/sh
#
# Copyright (c) 2002-2004 by Roland Mainz <roland.mainz at nrubsig.org>
# All rights reserved.
#
#ident "@(#)xprint 0.5 2003/02/14 gisburn"
#
# Basic support for the Linux Standard Base Specification 1.0.0
# (Note: The Should-Start/Stop lines are there so that this works in the
# future, when the LSB adopts these. The X-UnitedLinux lines are there
# so that it works right now.)
### BEGIN INIT INFO
# Provides: xprint
# Required-Start: $local_fs $remote_fs $syslog $network
# Required-Stop: $local_fs $remote_fs $syslog
# Should-Start: cups lpd xfs
# Should-Stop: cups lpd xfs
# X-UnitedLinux-Should-Start: cups lpd xfs
# X-UnitedLinux-Should-Stop: cups lpd xfs
[...1124 lines suppressed...]
[ "${ETC_INITD_XPRINT_XPLSPRINTERS_PATH}" != "" ] && cmd="${ETC_INITD_XPRINT_XPLSPRINTERS_PATH}"
[ "${cmd}" = "" -a "${XPCUSTOMGLUE}" = "GISWxprintglue" ] && cmd="/opt/GISWxprintglue/bin/xplsprinters"
[ "${cmd}" = "" -a "${XPCUSTOMGLUE}" = "GISWxprint" ] && cmd="/opt/GISWxprint/bin/xplsprinters"
[ "${cmd}" = "" -a "${XPROJECTROOT}" != "" ] && cmd="${XPROJECTROOT}/bin/xplsprinters"
[ "${cmd}" = "" ] && cmd="xplsprinters"
shift
export XPSERVERLIST="$(do_get_xpserverlist)"
[ "${XPSERVERLIST}" = "" ] && fatal_error "No Xprint servers found."
exec "${cmd}" "$@"
;;
## Print usage
*)
msg "Usage: $0 { start | stop | restart | reload | force-reload | status | condrestart | try-restart | wrapper | lsprinters | get_xpserverlist }"
exit 2
esac
exit 0
# EOF.
- Previous message: [xorg-commit-diffs] xc/programs/Xserver/Xprint/etc/Xsession.d
Imakefile, NONE, 1.1.2.1 cde_xsessiond_xprint.sh, NONE, 1.1.2.1
- Next message: [xorg-commit-diffs] xc/programs/Xserver/Xprint/etc/profile.d
Imakefile, NONE, 1.1.2.1 xprint.csh, NONE, 1.1.2.1 xprint.sh,
NONE, 1.1.2.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the xorg-commit-diffs
mailing list