2006-10-30 13:51:50 +00:00
|
|
|
#
|
2006-08-01 13:33:09 +00:00
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=cups
|
|
|
|
PKG_VERSION:=1.1.23
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
2006-10-30 13:51:50 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-source.tar.bz2
|
2006-08-04 19:07:43 +00:00
|
|
|
PKG_SOURCE_URL:= \
|
2006-10-18 20:02:30 +00:00
|
|
|
http://ftp.rz.tu-bs.de/pub/mirror/ftp.easysw.com/ftp/pub/cups/$(PKG_VERSION) \
|
2006-08-04 19:07:43 +00:00
|
|
|
ftp://ftp.easysw.com/pub/cups/$(PKG_VERSION) \
|
2006-10-18 20:02:30 +00:00
|
|
|
ftp://ftp3.easysw.com/pub/cups/$(PKG_VERSION)
|
2006-10-30 13:51:50 +00:00
|
|
|
PKG_MD5SUM:=4ce09b1dce09b6b9398af0daae9adf63
|
2006-08-01 13:33:09 +00:00
|
|
|
PKG_CAT:=bzcat
|
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
|
|
|
|
2007-01-22 17:33:10 +00:00
|
|
|
PKG_BUILD_DEPENDS:=zlib
|
2006-08-01 13:33:09 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/cups
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
DEPENDS:=+zlib
|
|
|
|
TITLE:=Common UNIX Printing System
|
2006-10-30 13:51:50 +00:00
|
|
|
DESCRIPTION:=\
|
|
|
|
A printer spooling system for devices with USB or LP support.
|
2006-08-01 13:33:09 +00:00
|
|
|
URL:=http://www.cups.org/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/cups/conffiles
|
|
|
|
/etc/cups/classes.conf
|
|
|
|
/etc/cups/client.conf
|
|
|
|
/etc/cups/cupsd.conf
|
|
|
|
/etc/cups/printers.conf
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
2006-10-30 13:51:50 +00:00
|
|
|
$(call Build/Configure/Default, \
|
2006-10-15 13:30:40 +00:00
|
|
|
--with-cups-user=root \
|
|
|
|
--with-cups-group=root \
|
|
|
|
--without-perl \
|
|
|
|
--without-python \
|
|
|
|
--without-php \
|
|
|
|
--enable-shared \
|
2007-03-25 12:28:30 +00:00
|
|
|
--disable-pam \
|
2006-10-15 13:30:40 +00:00
|
|
|
--disable-slp \
|
|
|
|
--disable-gnutls \
|
|
|
|
--disable-openssl \
|
|
|
|
--disable-cdsassl \
|
|
|
|
--disable-ssl \
|
|
|
|
--disable-slp, \
|
|
|
|
UNAME="Linux" \
|
|
|
|
)
|
2006-08-01 13:33:09 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
rm -rf $(PKG_INSTALL_DIR)
|
|
|
|
mkdir -p $(PKG_INSTALL_DIR)
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
DSTROOT="$(PKG_INSTALL_DIR)" \
|
|
|
|
STRIP="/bin/true" \
|
|
|
|
all install
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/cups/install
|
|
|
|
rm -rf $(1)/etc/cups
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/cups
|
2006-08-01 13:33:09 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/etc/cups/* $(1)/etc/cups/
|
|
|
|
rm -rf $(1)/etc/cups/certs
|
|
|
|
ln -sf /tmp $(1)/etc/cups/certs
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2006-08-01 13:33:09 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
|
|
|
|
rm -f $(1)/usr/bin/cups-config
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2006-08-01 13:33:09 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libcups.so.* $(1)/usr/lib/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/cups $(1)/usr/lib/
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/share/cups/templates
|
2006-08-01 13:33:09 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/cups/templates/*.tmpl $(1)/usr/share/cups/templates/
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/share/doc/cups
|
2006-08-01 13:33:09 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/doc/cups/index.html $(1)/usr/share/doc/cups/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/doc/cups/images $(1)/usr/share/doc/cups/
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2006-08-01 13:33:09 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin/
|
|
|
|
# overwrite default config with our own
|
|
|
|
$(CP) ./files/etc/cups/* $(1)/etc/cups/
|
|
|
|
# install initscript with priority 60
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) ./files/cupsd.init $(1)/etc/init.d/cupsd
|
2006-08-01 13:33:09 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
|
|
|
mkdir -p $(STAGING_DIR)/usr/bin
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/cups-config $(STAGING_DIR)/usr/bin/
|
|
|
|
mkdir -p $(STAGING_DIR)/usr/include
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/cups $(STAGING_DIR)/usr/include/
|
|
|
|
mkdir -p $(STAGING_DIR)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libcups.{a,so*} $(STAGING_DIR)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/UninstallDev
|
|
|
|
rm -rf \
|
2006-10-30 13:51:50 +00:00
|
|
|
$(STAGING_DIR)/usr/bin/cups-config \
|
|
|
|
$(STAGING_DIR)/usr/include/cups \
|
|
|
|
$(STAGING_DIR)/usr/lib/libcups.{a,so*}
|
2006-08-01 13:33:09 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,cups))
|