summaryrefslogtreecommitdiff
path: root/package/cups
diff options
context:
space:
mode:
authorwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
committerwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
commit219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch)
treeb9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/cups
Initial import
Diffstat (limited to 'package/cups')
-rw-r--r--package/cups/Config.in10
-rw-r--r--package/cups/Makefile77
-rw-r--r--package/cups/files/cupsd.init28
-rw-r--r--package/cups/files/etc/cups/classes.conf7
-rw-r--r--package/cups/files/etc/cups/client.conf9
-rw-r--r--package/cups/files/etc/cups/cupsd.conf34
-rw-r--r--package/cups/files/etc/cups/printers.conf23
-rw-r--r--package/cups/ipkg/cups.conffiles4
-rw-r--r--package/cups/ipkg/cups.control5
-rw-r--r--package/cups/ipkg/cups.postinst6
-rw-r--r--package/cups/patches/patch-Makefile12
-rw-r--r--package/cups/patches/patch-configure12
12 files changed, 227 insertions, 0 deletions
diff --git a/package/cups/Config.in b/package/cups/Config.in
new file mode 100644
index 000000000..662ff5a84
--- /dev/null
+++ b/package/cups/Config.in
@@ -0,0 +1,10 @@
+config ADK_PACKAGE_CUPS
+ prompt "cups.............................. Common UNIX Printing System"
+ tristate
+ select ADK_PACKAGE_ZLIB
+ select ADK_PACKAGE_LIBPTHREAD
+ default n
+ help
+ A printer spooling system for devices with USB or LP support
+
+ http://www.cups.org/
diff --git a/package/cups/Makefile b/package/cups/Makefile
new file mode 100644
index 000000000..4d045c77b
--- /dev/null
+++ b/package/cups/Makefile
@@ -0,0 +1,77 @@
+# $Id$
+#-
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include ${TOPDIR}/rules.mk
+
+PKG_NAME:= cups
+PKG_VERSION:= 1.3.10
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 84fffe96b8537c81a463faccead80026
+DISTFILES:= ${PKG_NAME}-${PKG_VERSION}-source.tar.bz2
+MASTER_SITES:= http://ftp.rz.tu-bs.de/pub/mirror/ftp.easysw.com/ftp/pub/cups/${PKG_VERSION}/ \
+ ftp://ftp.easysw.com/pub/cups/${PKG_VERSION}/
+
+include ${TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,CUPS,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+
+CONFIGURE_STYLE= gnu
+CONFIGURE_ENV+= ac_cv_func_sigset=no \
+ OPTIM=''
+CONFIGURE_ARGS+= --with-cups-user=root \
+ --with-cups-group=root \
+ --disable-ldap \
+ --disable-gssapi \
+ --disable-pam \
+ --disable-pap \
+ --disable-dbus \
+ --without-java \
+ --without-perl \
+ --without-python \
+ --without-php \
+ --disable-slp \
+ --disable-gnutls \
+ --disable-openssl \
+ --disable-cdsassl \
+ --disable-dbus \
+ --disable-ssl
+BUILD_STYLE= auto
+INSTALL_STYLE= auto
+FAKE_FLAGS+= DSTROOT="${WRKINST}" STRIP="/bin/true"
+XAKE_FLAGS+= OPTIM=''
+
+post-install:
+ ${INSTALL_DIR} ${IDIR_CUPS}/etc/init.d
+ ${INSTALL_DIR} ${IDIR_CUPS}/usr/share/doc/cups
+ ${INSTALL_DIR} ${IDIR_CUPS}/usr/bin
+ ${INSTALL_DIR} ${IDIR_CUPS}/usr/sbin
+ ${INSTALL_DIR} ${IDIR_CUPS}/etc/cups
+ ${INSTALL_DIR} ${IDIR_CUPS}/usr/lib/cups/cgi-bin
+ ${INSTALL_DIR} ${IDIR_CUPS}/usr/lib/cups/daemon
+ ${INSTALL_DIR} ${IDIR_CUPS}/usr/share/cups/banners
+ ${INSTALL_DIR} ${IDIR_CUPS}/usr/share/cups/templates
+ ${CP} ${WRKINST}/etc/cups/* ${IDIR_CUPS}/etc/cups/
+ rm ${IDIR_CUPS}/etc/cups/cupsd.conf.default
+ ${CP} ${WRKINST}/usr/bin/* ${IDIR_CUPS}/usr/bin/
+ ${CP} ${WRKINST}/usr/share/doc/cups/index.html \
+ ${IDIR_CUPS}/usr/share/doc/cups/
+ ${CP} ${WRKINST}/usr/share/doc/cups/*.css \
+ ${IDIR_CUPS}/usr/share/doc/cups/
+ ${CP} ${WRKINST}/usr/share/doc/cups/images \
+ ${IDIR_CUPS}/usr/share/doc/cups/
+ rm -f ${IDIR_CUPS}/usr/bin/cups-config
+ ${CP} ${WRKINST}/usr/lib/libcups.so* ${IDIR_CUPS}/usr/lib/
+ ${CP} ${WRKINST}/usr/lib/cups/cgi-bin/* ${IDIR_CUPS}/usr/lib/cups/cgi-bin/
+ ${CP} ${WRKINST}/usr/lib/cups/daemon/* ${IDIR_CUPS}/usr/lib/cups/daemon/
+ ${CP} ${WRKINST}/usr/share/cups/banners/* \
+ ${IDIR_CUPS}/usr/share/cups/banners/
+ ${CP} ${WRKINST}/usr/share/cups/templates/*.tmpl \
+ ${IDIR_CUPS}/usr/share/cups/templates/
+ ${CP} ${WRKINST}/usr/sbin/* ${IDIR_CUPS}/usr/sbin/
+ ${CP} ./files/etc/cups/* ${IDIR_CUPS}/etc/cups/
+ ${INSTALL_BIN} ./files/cupsd.init \
+ ${IDIR_CUPS}/etc/init.d/cupsd
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/cups/files/cupsd.init b/package/cups/files/cupsd.init
new file mode 100644
index 000000000..d22f55c96
--- /dev/null
+++ b/package/cups/files/cupsd.init
@@ -0,0 +1,28 @@
+#!/bin/sh
+#FWINIT 60
+. /etc/rc.conf
+
+case $1 in
+autostop) ;;
+autostart)
+ test x"${cups:-NO}" = x"NO" && exit 0
+ exec sh $0 start
+ ;;
+start)
+ [ -d /var/cache/cups ] || mkdir -p /var/cache/cups
+ [ -d /var/cups ] || mkdir -p /var/cups/tmp
+ [ -d /var/cups/spool/cups/tmp ] || mkdir -p /var/cups/spool/cups/tmp
+ /usr/sbin/cupsd -c /etc/cups/cupsd.conf
+ ;;
+stop)
+ killall cupsd
+ ;;
+restart)
+ sh $0 stop
+ sh $0 start
+ ;;
+*)
+ echo "Usage: $0 {start | stop | restart}"
+ ;;
+esac
+exit $?
diff --git a/package/cups/files/etc/cups/classes.conf b/package/cups/files/etc/cups/classes.conf
new file mode 100644
index 000000000..15afda75a
--- /dev/null
+++ b/package/cups/files/etc/cups/classes.conf
@@ -0,0 +1,7 @@
+########################################################################
+# #
+# This is a sample class configuration file. This file is included #
+# from the main configuration file (cups.conf) and lists all of the #
+# printer classes known to the system. #
+# #
+########################################################################
diff --git a/package/cups/files/etc/cups/client.conf b/package/cups/files/etc/cups/client.conf
new file mode 100644
index 000000000..c8d9f910e
--- /dev/null
+++ b/package/cups/files/etc/cups/client.conf
@@ -0,0 +1,9 @@
+########################################################################
+# #
+# This is the CUPS client configuration file. This file is used to #
+# define client-specific parameters, such as the default server or #
+# default encryption settings. #
+# #
+########################################################################
+
+Encryption Never
diff --git a/package/cups/files/etc/cups/cupsd.conf b/package/cups/files/etc/cups/cupsd.conf
new file mode 100644
index 000000000..89aa40c2a
--- /dev/null
+++ b/package/cups/files/etc/cups/cupsd.conf
@@ -0,0 +1,34 @@
+AccessLog syslog
+ErrorLog syslog
+LogLevel info
+PageLog syslog
+PreserveJobHistory No
+PreserveJobFiles No
+AutoPurgeJobs Yes
+MaxJobs 25
+MaxPrinterHistory 10
+RequestRoot /tmp/cups
+User cups
+Group cups
+RIPCache 512k
+TempDir /tmp/cups
+Port 631
+HostNameLookups Off
+KeepAlive On
+Browsing On
+BrowseProtocols cups
+
+<Location />
+AuthType Basic
+AuthClass System
+Order Allow,Deny
+Allow From All
+</Location>
+
+<Location /admin>
+AuthType Basic
+AuthClass System
+Order Allow,Deny
+Allow From All
+</Location>
+
diff --git a/package/cups/files/etc/cups/printers.conf b/package/cups/files/etc/cups/printers.conf
new file mode 100644
index 000000000..88bba1b13
--- /dev/null
+++ b/package/cups/files/etc/cups/printers.conf
@@ -0,0 +1,23 @@
+<DefaultPrinter USB>
+Info USB Printer
+Location
+DeviceURI usb:/dev/usb/lp0
+State Idle
+Accepting Yes
+JobSheets none none
+QuotaPeriod 0
+PageLimit 0
+KLimit 0
+</Printer>
+
+<Printer LP>
+Info Parallel Port Printer
+Location
+DeviceURI parallel:/dev/printers/0
+State Idle
+Accepting Yes
+JobSheets none none
+QuotaPeriod 0
+PageLimit 0
+KLimit 0
+</Printer>
diff --git a/package/cups/ipkg/cups.conffiles b/package/cups/ipkg/cups.conffiles
new file mode 100644
index 000000000..bed6faa3f
--- /dev/null
+++ b/package/cups/ipkg/cups.conffiles
@@ -0,0 +1,4 @@
+/etc/cups/classes.conf
+/etc/cups/client.conf
+/etc/cups/cupsd.conf
+/etc/cups/printers.conf
diff --git a/package/cups/ipkg/cups.control b/package/cups/ipkg/cups.control
new file mode 100644
index 000000000..de3d14250
--- /dev/null
+++ b/package/cups/ipkg/cups.control
@@ -0,0 +1,5 @@
+Package: cups
+Priority: optional
+Section: net
+Depends: zlib, libpthread
+Description: Common Unix Printing System
diff --git a/package/cups/ipkg/cups.postinst b/package/cups/ipkg/cups.postinst
new file mode 100644
index 000000000..fa191bee7
--- /dev/null
+++ b/package/cups/ipkg/cups.postinst
@@ -0,0 +1,6 @@
+#!/bin/sh
+. $IPKG_INSTROOT/etc/functions.sh
+gid=$(get_next_gid)
+add_user cups $(get_next_uid) $gid /tmp
+add_group cups $gid
+add_rcconf cups cups NO
diff --git a/package/cups/patches/patch-Makefile b/package/cups/patches/patch-Makefile
new file mode 100644
index 000000000..663b989b9
--- /dev/null
+++ b/package/cups/patches/patch-Makefile
@@ -0,0 +1,12 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- cups-1.3.10.orig/Makefile 2009-03-12 22:34:21.000000000 +0100
++++ cups-1.3.10/Makefile 2009-05-09 22:41:42.000000000 +0200
+@@ -19,7 +19,7 @@ include Makedefs
+ # Directories to make...
+ #
+
+-DIRS = cups backend berkeley cgi-bin filter locale man monitor \
++DIRS = cups backend berkeley cgi-bin filter locale monitor \
+ notifier scheduler systemv test \
+ $(PHPDIR) \
+ conf data doc $(FONTS) ppd templates
diff --git a/package/cups/patches/patch-configure b/package/cups/patches/patch-configure
new file mode 100644
index 000000000..773a2da96
--- /dev/null
+++ b/package/cups/patches/patch-configure
@@ -0,0 +1,12 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- cups-1.3.10.orig/configure 2009-04-16 22:02:06.000000000 +0200
++++ cups-1.3.10/configure 2009-05-09 22:44:29.000000000 +0200
+@@ -9254,7 +9254,7 @@ if test "$libdir" = "\${exec_prefix}/lib
+ ;;
+ Linux*)
+ if test -d /usr/lib64; then
+- libdir="$exec_prefix/lib64"
++ libdir="$exec_prefix/lib"
+ fi
+ ;;
+ HP-UX*)