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.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=cups
|
2008-09-21 12:46:13 +00:00
|
|
|
PKG_VERSION:=1.3.7
|
2009-01-07 18:29:05 +00:00
|
|
|
PKG_RELEASE:=4
|
2006-08-01 13:33:09 +00:00
|
|
|
|
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)
|
2008-09-21 12:46:13 +00:00
|
|
|
PKG_MD5SUM:=db4a45a17104f10f3ee599d88267c9e5
|
2006-08-01 13:33:09 +00:00
|
|
|
|
2007-01-22 17:33:10 +00:00
|
|
|
PKG_BUILD_DEPENDS:=zlib
|
2006-08-01 13:33:09 +00:00
|
|
|
|
2008-09-23 15:40:17 +00:00
|
|
|
TARGET_LDFLAGS+=-Wl,-rpath-link=$(STAGING_DIR)/usr/lib
|
|
|
|
|
2006-08-01 13:33:09 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/cups
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2008-09-21 12:46:13 +00:00
|
|
|
DEPENDS:=+zlib +libpthread +libpng +libjpeg
|
2006-08-01 13:33:09 +00:00
|
|
|
TITLE:=Common UNIX Printing System
|
|
|
|
URL:=http://www.cups.org/
|
2007-10-18 18:37:22 +00:00
|
|
|
SUBMENU:=printing
|
2006-08-01 13:33:09 +00:00
|
|
|
endef
|
|
|
|
|
2007-10-14 04:32:56 +00:00
|
|
|
define Package/cups/description
|
|
|
|
A printer spooling system for devices with USB or LP support.
|
|
|
|
endef
|
|
|
|
|
2006-08-01 13:33:09 +00:00
|
|
|
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 \
|
2008-12-02 16:00:49 +00:00
|
|
|
--disable-dbus \
|
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 \
|
2008-09-23 15:40:17 +00:00
|
|
|
--disable-gssapi \
|
2006-10-15 13:30:40 +00:00
|
|
|
--disable-slp, \
|
|
|
|
UNAME="Linux" \
|
2008-09-21 12:46:13 +00:00
|
|
|
LIBS="-L$(STAGING_DIR)/usr/lib -lz -lpng -ljpeg" \
|
2006-10-15 13:30:40 +00:00
|
|
|
)
|
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) \
|
2007-04-01 15:06:16 +00:00
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2006-08-01 13:33:09 +00:00
|
|
|
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
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
|
2006-08-01 13:33:09 +00:00
|
|
|
rm -f $(1)/usr/bin/cups-config
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2008-09-21 12:46:13 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libcups.so* $(1)/usr/lib/
|
2006-08-01 13:33:09 +00:00
|
|
|
$(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/
|
2008-10-24 14:45:22 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/doc/cups/*.css $(1)/usr/share/doc/cups/
|
2006-08-01 13:33:09 +00:00
|
|
|
$(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
|
2009-01-04 00:06:33 +00:00
|
|
|
$(INSTALL_BIN) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/sbin/{accept,cupsaddsmb,cupsctl,cupsd,cupsfilter,lpadmin,lpc,lpinfo,lpmove} \
|
|
|
|
$(1)/usr/sbin/
|
2009-01-07 18:29:05 +00:00
|
|
|
(cd $(1)/usr/sbin; ln -sf accept reject; ln -sf accept cupsenable; ln -sf accept cupsdisable;)
|
2006-08-01 13:33:09 +00:00
|
|
|
# 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
|
2008-09-04 11:31:27 +00:00
|
|
|
$(INSTALL_DIR) $(2)/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/cups-config $(2)/bin/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
2007-10-07 03:20:26 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/cups $(1)/usr/include/
|
2008-09-04 11:31:27 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2008-09-21 12:46:13 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libcups.so* $(1)/usr/lib/
|
2006-08-01 13:33:09 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,cups))
|