diff --git a/package/praenti/cups/cups.conf b/package/praenti/cups/cups.conf new file mode 100644 index 000000000..34688597a --- /dev/null +++ b/package/praenti/cups/cups.conf @@ -0,0 +1,39 @@ +# --- ROCK-COPYRIGHT-NOTE-BEGIN --- +# +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# Please add additional copyright information _after_ the line containing +# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by +# the ./scripts/Create-CopyPatch script. Do not edit this copyright text! +# +# ROCK Linux: rock-src/package/praenti/cups/cups.conf +# ROCK Linux is Copyright (C) 1998 - 2004 Clifford Wolf +# +# 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. A copy of the GNU General Public +# License can be found at Documentation/COPYING. +# +# Many people helped and are helping developing ROCK Linux. Please +# have a look at http://www.rocklinux.org/ and the Documentation/TEAM +# file for details. +# +# --- ROCK-COPYRIGHT-NOTE-END --- + +cups_pm(){ + install_init cups $confdir/cups.init + + # cups is too stupid to create the ../tmp dir itself - only + # needed for some ipp transfers (...?) -ReneR + mkdir -p $root/var/spool/cups/tmp + chown daemon:daemon $root/var/spool/cups/tmp +} + +var_append copfopt "--with-logdir=/var/cups/log + --with-cups-user=daemon --with-cups-group=daemon" + +# Force same compiler version for C and C++ +export CC="${CXX/[cg]++/gcc}" + +hook_add postmake 5 cups_pm + diff --git a/package/praenti/cups/cups.desc b/package/praenti/cups/cups.desc new file mode 100644 index 000000000..3ff51086d --- /dev/null +++ b/package/praenti/cups/cups.desc @@ -0,0 +1,58 @@ + +[COPY] --- ROCK-COPYRIGHT-NOTE-BEGIN --- +[COPY] +[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch. +[COPY] Please add additional copyright information _after_ the line containing +[COPY] the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by +[COPY] the ./scripts/Create-CopyPatch script. Do not edit this copyright text! +[COPY] +[COPY] ROCK Linux: rock-src/package/praenti/cups/cups.desc +[COPY] ROCK Linux is Copyright (C) 1998 - 2004 Clifford Wolf +[COPY] +[COPY] This program is free software; you can redistribute it and/or modify +[COPY] it under the terms of the GNU General Public License as published by +[COPY] the Free Software Foundation; either version 2 of the License, or +[COPY] (at your option) any later version. A copy of the GNU General Public +[COPY] License can be found at Documentation/COPYING. +[COPY] +[COPY] Many people helped and are helping developing ROCK Linux. Please +[COPY] have a look at http://www.rocklinux.org/ and the Documentation/TEAM +[COPY] file for details. +[COPY] +[COPY] --- ROCK-COPYRIGHT-NOTE-END --- + +[I] Common Unix Printing System + +[T] CUPS provides a portable printing layer for UNIX(r)-based operating +[T] systems. It has been developed by Easy Software Products to provide +[T] a standard printing solution for all UNIX vendors and users. CUPS +[T] provides the System V and Berkeley command-line interfaces. +[T] +[T] CUPS uses the Internet Printing Protocol (IETF-IPP) as the basis +[T] for managing print jobs and queues. The Line Printer Daemon (LPD, +[T] RFC1179), Server Message Block (SMB), and AppSocket protocols are +[T] also supported with reduced functionality. CUPS adds network printer +[T] browsing and PostScript Printer Description ("PPD")-based printing +[T] options to support real world applications under UNIX. +[T] +[T] CUPS also includes a customized version of GNU GhostScript (currently +[T] based off GNU GhostScript 4.03) and an image file RIP that can be +[T] used to support non-PostScript printers. + +[U] http://www.cups.org/ + +[A] Easy Software Products +[M] Michael Obster +[M] Kent Skaar + +[C] extra/server extra/printing + +[F] PRINTER + +[L] GPL +[S] Stable +[V] 1.1.21 +[P] X -?---5---9 122.900 + +[D] 2380237460 cups-1.1.21-source.tar.bz2 ftp://ftp.easysw.com/pub/cups/1.1.21/ + diff --git a/package/praenti/cups/cups.init b/package/praenti/cups/cups.init new file mode 100644 index 000000000..3b1cfd1c7 --- /dev/null +++ b/package/praenti/cups/cups.init @@ -0,0 +1,46 @@ +#!/bin/bash +# +# --- ROCK-COPYRIGHT-NOTE-BEGIN --- +# +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# Please add additional copyright information _after_ the line containing +# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by +# the ./scripts/Create-CopyPatch script. Do not edit this copyright text! +# +# ROCK Linux: rock-src/package/praenti/cups/cups.init +# ROCK Linux is Copyright (C) 1998 - 2004 Clifford Wolf +# +# 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. A copy of the GNU General Public +# License can be found at Documentation/COPYING. +# +# Many people helped and are helping developing ROCK Linux. Please +# have a look at http://www.rocklinux.org/ and the Documentation/TEAM +# file for details. +# +# --- ROCK-COPYRIGHT-NOTE-END --- +# +# ROCK Linux /etc/rc.d/init.d/pdnsd +# +# Desc: The CUPS print server +# Runlevel: 30 rcX +# + +main_begin + + block_begin(start, `Starting cupsd.') + check(`D_prefix/sbin/cupsd') + block_end + + block_begin(stop, `Stopping cupsd.') + check(`killall -15 D_prefix/sbin/cupsd') + block_end + + block_begin(restart, `Restarting cupsd.') + check(`killall -1 D_prefix/sbin/cupsd') + block_end + +main_end + diff --git a/package/praenti/cups/noinit.patch b/package/praenti/cups/noinit.patch new file mode 100644 index 000000000..f2fb2bcca --- /dev/null +++ b/package/praenti/cups/noinit.patch @@ -0,0 +1,52 @@ +# --- ROCK-COPYRIGHT-NOTE-BEGIN --- +# +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# Please add additional copyright information _after_ the line containing +# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by +# the ./scripts/Create-CopyPatch script. Do not edit this copyright text! +# +# ROCK Linux: rock-src/package/praenti/cups/noinit.patch +# ROCK Linux is Copyright (C) 1998 - 2004 Clifford Wolf +# +# This patch file is dual-licensed. It is available under the license the +# patched project is licensed under, as long as it is an OpenSource license +# as defined at http://www.opensource.org/ (e.g. BSD, X11) or 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. +# +# --- ROCK-COPYRIGHT-NOTE-END --- + +--- ./Makefile.orig 2003-08-16 17:12:44.000000000 +0000 ++++ ./Makefile 2003-08-16 17:12:58.000000000 +0000 +@@ -89,30 +89,6 @@ + echo Installing cups-config script... + $(INSTALL_DIR) $(BINDIR) + $(INSTALL_SCRIPT) cups-config $(BINDIR)/cups-config +- echo Installing startup script... +- if test "x$(INITDIR)" != "x"; then \ +- $(INSTALL_DIR) $(BUILDROOT)$(INITDIR)/init.d; \ +- $(INSTALL_SCRIPT) cups.sh $(BUILDROOT)$(INITDIR)/init.d/cups; \ +- $(INSTALL_DIR) $(BUILDROOT)$(INITDIR)/rc0.d; \ +- $(INSTALL_SCRIPT) cups.sh $(BUILDROOT)$(INITDIR)/rc0.d/K00cups; \ +- $(INSTALL_DIR) $(BUILDROOT)$(INITDIR)/rc2.d; \ +- $(INSTALL_SCRIPT) cups.sh $(BUILDROOT)$(INITDIR)/rc2.d/S99cups; \ +- $(INSTALL_DIR) $(BUILDROOT)$(INITDIR)/rc3.d; \ +- $(INSTALL_SCRIPT) cups.sh $(BUILDROOT)$(INITDIR)/rc3.d/S99cups; \ +- $(INSTALL_DIR) $(BUILDROOT)$(INITDIR)/rc5.d; \ +- $(INSTALL_SCRIPT) cups.sh $(BUILDROOT)$(INITDIR)/rc5.d/S99cups; \ +- fi +- if test "x$(INITDIR)" = "x" -a "x$(INITDDIR)" != "x"; then \ +- $(INSTALL_DIR) $(BUILDROOT)$(INITDDIR); \ +- if test "$(INITDDIR)" = "/System/Library/StartupItems/PrintingServices"; then \ +- $(INSTALL_SCRIPT) cups.osx $(BUILDROOT)$(INITDDIR)/PrintingServices; \ +- $(INSTALL_DATA) cups.plist $(BUILDROOT)$(INITDDIR)/StartupParameters.plist; \ +- $(INSTALL_DIR) $(BUILDROOT)$(INITDDIR)/Resources/English.lproj; \ +- $(INSTALL_DATA) cups.strings $(BUILDROOT)$(INITDDIR)/Resources/English.lproj/Localizable.strings; \ +- else \ +- $(INSTALL_SCRIPT) cups.sh $(BUILDROOT)$(INITDDIR)/cups; \ +- fi \ +- fi + + # + # Install source and header files... diff --git a/package/praenti/cups/setprinter.patch b/package/praenti/cups/setprinter.patch new file mode 100644 index 000000000..da04cc01e --- /dev/null +++ b/package/praenti/cups/setprinter.patch @@ -0,0 +1,124 @@ +# --- ROCK-COPYRIGHT-NOTE-BEGIN --- +# +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# Please add additional copyright information _after_ the line containing +# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by +# the ./scripts/Create-CopyPatch script. Do not edit this copyright text! +# +# ROCK Linux: rock-src/package/praenti/cups/setprinter.patch +# ROCK Linux is Copyright (C) 1998 - 2004 Clifford Wolf +# +# This patch file is dual-licensed. It is available under the license the +# patched project is licensed under, as long as it is an OpenSource license +# as defined at http://www.opensource.org/ (e.g. BSD, X11) or 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. +# +# --- ROCK-COPYRIGHT-NOTE-END --- + +diff -Nur ../cups-1.1.21-org/berkeley/Makefile ./berkeley/Makefile +--- ../cups-1.1.21-org/berkeley/Makefile 2004-09-26 16:42:06.254764248 +0200 ++++ ./berkeley/Makefile 2004-09-26 16:43:33.658476864 +0200 +@@ -57,11 +57,11 @@ + + install: all + $(INSTALL_DIR) $(BINDIR) +- $(INSTALL_BIN) lpq $(BINDIR) +- $(INSTALL_BIN) lpr $(BINDIR) +- $(INSTALL_BIN) lprm $(BINDIR) ++ $(INSTALL_BIN) lpq $(BINDIR)/lpq_cups ++ $(INSTALL_BIN) lpr $(BINDIR)/lpr_cups ++ $(INSTALL_BIN) lprm $(BINDIR)/lprm_cups + $(INSTALL_DIR) $(SBINDIR) +- $(INSTALL_BIN) lpc $(SBINDIR) ++ $(INSTALL_BIN) lpc $(SBINDIR)/lpc_cups + + + # +diff -Nur ../cups-1.1.21-org/man/Makefile ./man/Makefile +--- ../cups-1.1.21-org/man/Makefile 2004-09-26 16:42:07.097636112 +0200 ++++ ./man/Makefile 2004-09-26 16:49:54.448587968 +0200 +@@ -70,25 +70,25 @@ + install: all + $(INSTALL_DIR) $(MANDIR)/man1 + for file in $(MAN1); do \ +- echo Installing $$file in $(MANDIR)/man1...; \ +- $(INSTALL_MAN) $$file $(MANDIR)/man1/`basename $$file man`1; \ ++ inst=`echo $$file | sed -e 's/\\.[0-9a-z]*$$//'`; \ ++ $(INSTALL_MAN) $$file $(MANDIR)/man1/$$inst'_cups.1'; \ + done +- $(RM) $(MANDIR)/man1/cancel.1 +- $(LN) lp.1 $(MANDIR)/man1/cancel.1 ++ $(RM) $(MANDIR)/man1/cancel_cups.1 ++ $(LN) lp.1 $(MANDIR)/man1/cancel_cups.1 + $(INSTALL_DIR) $(MANDIR)/man5 + for file in $(MAN5); do \ +- echo Installing $$file in $(MANDIR)/man5...; \ +- $(INSTALL_MAN) $$file $(MANDIR)/man5/`basename $$file man`5; \ ++ inst=`echo $$file | sed -e 's/\\.[0-9a-z]*$$//'`; \ ++ $(INSTALL_MAN) $$file $(MANDIR)/man5/$$(inst)'_cups.5'; \ + done + $(INSTALL_DIR) $(AMANDIR)/man$(MAN8EXT) + for file in $(MAN8); do \ +- echo Installing $$file in $(AMANDIR)/man$(MAN8EXT)...; \ +- $(INSTALL_MAN) $$file $(AMANDIR)/man$(MAN8EXT)/`basename $$file man`$(MAN8EXT); \ ++ inst=`echo $$file | sed -e 's/\\.[0-9a-z]*$$//'`; \ ++ $(INSTALL_MAN) $$file $(AMANDIR)/man$(MAN8EXT)/$$(inst)'_cups'.$(MAN8EXT); \ + done +- $(RM) $(AMANDIR)/man$(MAN8EXT)/reject.$(MAN8EXT) +- $(LN) accept.$(MAN8EXT) $(AMANDIR)/man$(MAN8EXT)/reject.$(MAN8EXT) +- $(RM) $(AMANDIR)/man$(MAN8EXT)/disable.$(MAN8EXT) +- $(LN) enable.$(MAN8EXT) $(AMANDIR)/man$(MAN8EXT)/disable.$(MAN8EXT) ++ $(RM) $(AMANDIR)/man$(MAN8EXT)/reject_cups.$(MAN8EXT) ++ $(LN) accept_cups.$(MAN8EXT) $(AMANDIR)/man$(MAN8EXT)/reject_cups.$(MAN8EXT) ++ $(RM) $(AMANDIR)/man$(MAN8EXT)/disable_cups.$(MAN8EXT) ++ $(LN) enable_cups.$(MAN8EXT) $(AMANDIR)/man$(MAN8EXT)/disable_cups.$(MAN8EXT) + $(INSTALL_DIR) $(MANDIR)/cat1 + for file in $(CAT1); do \ + echo Installing $$file in $(MANDIR)/cat1...; \ +diff -Nur ../cups-1.1.21-org/systemv/Makefile ./systemv/Makefile +--- ../cups-1.1.21-org/systemv/Makefile 2004-09-26 16:42:07.529570448 +0200 ++++ ./systemv/Makefile 2004-09-26 16:52:35.884046048 +0200 +@@ -60,26 +60,24 @@ + + install: all + $(INSTALL_DIR) $(SBINDIR) +- $(INSTALL_BIN) accept $(SBINDIR) +- $(RM) $(SBINDIR)/reject +- $(LN) accept $(SBINDIR)/reject ++ $(INSTALL_BIN) accept $(SBINDIR)/accept_cups ++ $(LN) accept $(SBINDIR)/reject_cups + $(INSTALL_BIN) cupsaddsmb $(SBINDIR) +- $(INSTALL_BIN) lpadmin $(SBINDIR) +- $(INSTALL_BIN) lpinfo $(SBINDIR) +- $(INSTALL_BIN) lpmove $(SBINDIR) ++ $(INSTALL_BIN) lpadmin $(SBINDIR)/lpadmin_cups ++ $(INSTALL_BIN) lpinfo $(SBINDIR)/lpinfo_cups ++ $(INSTALL_BIN) lpmove $(SBINDIR)/lpremove_cups + $(INSTALL_DIR) $(BINDIR) +- $(INSTALL_BIN) cancel $(BINDIR) ++ $(INSTALL_BIN) cancel $(BINDIR)/cancel_cups + $(INSTALL_BIN) cupstestppd $(BINDIR) +- $(RM) $(BINDIR)/disable +- $(LN) ../sbin/accept $(BINDIR)/disable +- $(RM) $(BINDIR)/enable +- $(LN) ../sbin/accept $(BINDIR)/enable +- $(INSTALL_BIN) lp $(BINDIR) +- $(INSTALL_BIN) lpoptions $(BINDIR) +- $(INSTALL_BIN) lpstat $(BINDIR) +- -$(INSTALL_BIN) -m 4755 -o $(CUPS_USER) -g $(CUPS_GROUP) lppasswd $(BINDIR) +- if test ! -x $(BINDIR)/lppasswd; then \ +- chmod 755 $(BINDIR)/lppasswd; \ ++ $(LN) ../sbin/accept $(BINDIR)/disable_cups ++ $(LN) ../sbin/accept $(BINDIR)/enable_cups ++ $(INSTALL_BIN) lp $(BINDIR)/lp_cups ++ $(INSTALL_BIN) lpoptions $(BINDIR)/lpoptions_cups ++ $(INSTALL_BIN) lpstat $(BINDIR)/lpstat_cups ++ $(INSTALL_BIN) lppasswd $(BINDIR)/lppasswd_cups ++ -$(INSTALL_BIN) -m 4755 -o $(CUPS_USER) -g $(CUPS_GROUP) lppasswd $(BINDIR)/lppasswd_cups ++ if test ! -x $(BINDIR)/lppasswd_cups; then \ ++ chmod 755 $(BINDIR)/lppasswd_cups; \ + fi + +