cups: Update to 1.5.4
Update CUPS to 1.5.4 and package client, libs, filters, locales and daemon to separate packages. Replace makefile-targets patch with components patch. Fix ppdc patch. Signed-off-by: Bernd Krumböck <krumboeck@universalnet.at> Patchwork: http://patchwork.openwrt.org/patch/3072/ Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/packages@34929 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
764da6c839
commit
fd86c97fa2
@ -8,43 +8,392 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=cups
|
PKG_NAME:=cups
|
||||||
PKG_VERSION:=1.4.4
|
PKG_VERSION:=1.5.4
|
||||||
PKG_RELEASE:=3
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-source.tar.bz2
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-source.tar.bz2
|
||||||
PKG_SOURCE_URL:= \
|
PKG_SOURCE_URL:= \
|
||||||
http://ftp.rz.tu-bs.de/pub/mirror/ftp.easysw.com/ftp/pub/cups/$(PKG_VERSION) \
|
http://ftp.rz.tu-bs.de/pub/mirror/ftp.easysw.com/ftp/pub/cups/$(PKG_VERSION) \
|
||||||
ftp://ftp.easysw.com/pub/cups/$(PKG_VERSION) \
|
ftp://ftp.easysw.com/pub/cups/$(PKG_VERSION) \
|
||||||
ftp://ftp3.easysw.com/pub/cups/$(PKG_VERSION)
|
ftp://ftp3.easysw.com/pub/cups/$(PKG_VERSION)
|
||||||
PKG_MD5SUM:=8776403ad60fea9e85eab9c04d88560d
|
PKG_MD5SUM:=de3006e5cf1ee78a9c6145ce62c4e982
|
||||||
|
|
||||||
TARGET_LDFLAGS+=-Wl,-rpath-link=$(STAGING_DIR)/usr/lib
|
TARGET_LDFLAGS+=-Wl,-rpath-link=$(STAGING_DIR)/usr/lib
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
|
define Package/cups/Default
|
||||||
|
URL:=http://www.cups.org/
|
||||||
|
SUBMENU:=Printing
|
||||||
|
endef
|
||||||
|
|
||||||
define Package/cups
|
define Package/cups
|
||||||
|
$(call Package/cups/Default)
|
||||||
SECTION:=net
|
SECTION:=net
|
||||||
CATEGORY:=Network
|
CATEGORY:=Network
|
||||||
DEPENDS:=+zlib +libpthread +libpng +libjpeg +libstdcpp +libusb
|
DEPENDS:=+libcups +libcupsmime +libcupscgi +libcupsppdc +libusb
|
||||||
TITLE:=Common UNIX Printing System
|
TITLE:=Common UNIX Printing System (daemon)
|
||||||
URL:=http://www.cups.org/
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/cups/description
|
define Package/cups/description
|
||||||
A printer spooling system for devices with USB or LP support.
|
Common UNIX Printing System (daemon)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/cups/conffiles
|
define Package/cups/conffiles
|
||||||
/etc/cups/classes.conf
|
/etc/cups/classes.conf
|
||||||
/etc/cups/client.conf
|
|
||||||
/etc/cups/cupsd.conf
|
/etc/cups/cupsd.conf
|
||||||
/etc/cups/printers.conf
|
/etc/cups/printers.conf
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/cups-bsd
|
||||||
|
$(call Package/cups/Default)
|
||||||
|
SECTION:=net
|
||||||
|
CATEGORY:=Network
|
||||||
|
DEPENDS:=+libcups
|
||||||
|
TITLE:=Common UNIX Printing System - BSD commands (old)
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-bsd/description
|
||||||
|
Common UNIX Printing System - BSD commands (old)
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-client
|
||||||
|
$(call Package/cups/Default)
|
||||||
|
SECTION:=net
|
||||||
|
CATEGORY:=Network
|
||||||
|
DEPENDS:=+libcups +libcupsimage +libcupsmime
|
||||||
|
TITLE:=Common UNIX Printing System - Client commands
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-client/conffiles
|
||||||
|
/etc/cups/client.conf
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-client/description
|
||||||
|
Common UNIX Printing System - Client commands
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-filters
|
||||||
|
$(call Package/cups/Default)
|
||||||
|
SECTION:=net
|
||||||
|
CATEGORY:=Network
|
||||||
|
DEPENDS:=+libcupsimage +libcupsdriver
|
||||||
|
TITLE:=Common UNIX Printing System - Filter
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-filters/description
|
||||||
|
Common UNIX Printing System - Filter
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-ppdc
|
||||||
|
$(call Package/cups/Default)
|
||||||
|
SECTION:=net
|
||||||
|
CATEGORY:=Network
|
||||||
|
DEPENDS:=+libcupsppdc
|
||||||
|
TITLE:=Common UNIX Printing System - PPDC utils
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-ppdc/description
|
||||||
|
Common UNIX Printing System - PPDC utils
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/libcups
|
||||||
|
$(call Package/cups/Default)
|
||||||
|
SECTION:=libs
|
||||||
|
CATEGORY:=Libraries
|
||||||
|
DEPENDS:=+zlib +libpthread +libpng +libjpeg
|
||||||
|
TITLE:=Common UNIX Printing System - Core library
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/libcups/description
|
||||||
|
Common UNIX Printing System - Core library
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/libcupscgi
|
||||||
|
$(call Package/cups/Default)
|
||||||
|
SECTION:=libs
|
||||||
|
CATEGORY:=Libraries
|
||||||
|
DEPENDS:=+libcups
|
||||||
|
TITLE:=Common UNIX Printing System - CGI library
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/libcupscgi/description
|
||||||
|
Common UNIX Printing System - CGI library
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/libcupsdriver
|
||||||
|
$(call Package/cups/Default)
|
||||||
|
SECTION:=libs
|
||||||
|
CATEGORY:=Libraries
|
||||||
|
DEPENDS:=+libcups
|
||||||
|
TITLE:=Common UNIX Printing System - Driver library
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/libcupsdriver/description
|
||||||
|
Common UNIX Printing System - Driver library
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/libcupsimage
|
||||||
|
$(call Package/cups/Default)
|
||||||
|
SECTION:=libs
|
||||||
|
CATEGORY:=Libraries
|
||||||
|
DEPENDS:=+libcups +libpng +libjpeg
|
||||||
|
TITLE:=Common UNIX Printing System - Image library
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/libcupsimage/description
|
||||||
|
Common UNIX Printing System - Image library
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/libcupsmime
|
||||||
|
$(call Package/cups/Default)
|
||||||
|
SECTION:=libs
|
||||||
|
CATEGORY:=Libraries
|
||||||
|
DEPENDS:=+libcups
|
||||||
|
TITLE:=Common UNIX Printing System - MIME library
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/libcupsmime/description
|
||||||
|
Common UNIX Printing System - MIME library
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/libcupsppdc
|
||||||
|
$(call Package/cups/Default)
|
||||||
|
SECTION:=libs
|
||||||
|
CATEGORY:=Libraries
|
||||||
|
DEPENDS:=+libcups +libstdcpp
|
||||||
|
TITLE:=Common UNIX Printing System - PPDC library
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/libcupsppdc/description
|
||||||
|
Common UNIX Printing System - PPDC library
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-locale-de
|
||||||
|
$(call Package/cups/Default)
|
||||||
|
SECTION:=net
|
||||||
|
CATEGORY:=Network
|
||||||
|
TITLE:=Common UNIX Printing System - Locale de
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-locale-de/description
|
||||||
|
Common UNIX Printing System - Locale de
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-locale-nl
|
||||||
|
$(call Package/cups/Default)
|
||||||
|
SECTION:=net
|
||||||
|
CATEGORY:=Network
|
||||||
|
TITLE:=Common UNIX Printing System - Locale nl
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-locale-nl/description
|
||||||
|
Common UNIX Printing System - Locale nl
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-locale-hu
|
||||||
|
$(call Package/cups/Default)
|
||||||
|
SECTION:=net
|
||||||
|
CATEGORY:=Network
|
||||||
|
TITLE:=Common UNIX Printing System - Locale hu
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-locale-hu/description
|
||||||
|
Common UNIX Printing System - Locale hu
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-locale-pt
|
||||||
|
$(call Package/cups/Default)
|
||||||
|
SECTION:=net
|
||||||
|
CATEGORY:=Network
|
||||||
|
TITLE:=Common UNIX Printing System - Locale pt
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-locale-pt/description
|
||||||
|
Common UNIX Printing System - Locale pt
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-locale-pt_BR
|
||||||
|
$(call Package/cups/Default)
|
||||||
|
SECTION:=net
|
||||||
|
CATEGORY:=Network
|
||||||
|
TITLE:=Common UNIX Printing System - Locale pt_BR
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-locale-pt_BR/description
|
||||||
|
Common UNIX Printing System - Locale pt_BR
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-locale-fi
|
||||||
|
$(call Package/cups/Default)
|
||||||
|
SECTION:=net
|
||||||
|
CATEGORY:=Network
|
||||||
|
TITLE:=Common UNIX Printing System - Locale fi
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-locale-fi/description
|
||||||
|
Common UNIX Printing System - Locale fi
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-locale-sv
|
||||||
|
$(call Package/cups/Default)
|
||||||
|
SECTION:=net
|
||||||
|
CATEGORY:=Network
|
||||||
|
TITLE:=Common UNIX Printing System - Locale sv
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-locale-sv/description
|
||||||
|
Common UNIX Printing System - Locale sv
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-locale-da
|
||||||
|
$(call Package/cups/Default)
|
||||||
|
SECTION:=net
|
||||||
|
CATEGORY:=Network
|
||||||
|
TITLE:=Common UNIX Printing System - Locale da
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-locale-da/description
|
||||||
|
Common UNIX Printing System - Locale da
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-locale-ko
|
||||||
|
$(call Package/cups/Default)
|
||||||
|
SECTION:=net
|
||||||
|
CATEGORY:=Network
|
||||||
|
TITLE:=Common UNIX Printing System - Locale ko
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-locale-ko/description
|
||||||
|
Common UNIX Printing System - Locale ko
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-locale-zh
|
||||||
|
$(call Package/cups/Default)
|
||||||
|
SECTION:=net
|
||||||
|
CATEGORY:=Network
|
||||||
|
TITLE:=Common UNIX Printing System - Locale zh
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-locale-zh/description
|
||||||
|
Common UNIX Printing System - Locale zh
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-locale-ja
|
||||||
|
$(call Package/cups/Default)
|
||||||
|
SECTION:=net
|
||||||
|
CATEGORY:=Network
|
||||||
|
TITLE:=Common UNIX Printing System - Locale ja
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-locale-ja/description
|
||||||
|
Common UNIX Printing System - Locale ja
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-locale-es
|
||||||
|
$(call Package/cups/Default)
|
||||||
|
SECTION:=net
|
||||||
|
CATEGORY:=Network
|
||||||
|
TITLE:=Common UNIX Printing System - Locale es
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-locale-es/description
|
||||||
|
Common UNIX Printing System - Locale es
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-locale-zh_TW
|
||||||
|
$(call Package/cups/Default)
|
||||||
|
SECTION:=net
|
||||||
|
CATEGORY:=Network
|
||||||
|
TITLE:=Common UNIX Printing System - Locale zh_TW
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-locale-zh_TW/description
|
||||||
|
Common UNIX Printing System - Locale zh_TW
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-locale-pl
|
||||||
|
$(call Package/cups/Default)
|
||||||
|
SECTION:=net
|
||||||
|
CATEGORY:=Network
|
||||||
|
TITLE:=Common UNIX Printing System - Locale pl
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-locale-pl/description
|
||||||
|
Common UNIX Printing System - Locale pl
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-locale-no
|
||||||
|
$(call Package/cups/Default)
|
||||||
|
SECTION:=net
|
||||||
|
CATEGORY:=Network
|
||||||
|
TITLE:=Common UNIX Printing System - Locale no
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-locale-no/description
|
||||||
|
Common UNIX Printing System - Locale no
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-locale-ru
|
||||||
|
$(call Package/cups/Default)
|
||||||
|
SECTION:=net
|
||||||
|
CATEGORY:=Network
|
||||||
|
TITLE:=Common UNIX Printing System - Locale ru
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-locale-ru/description
|
||||||
|
Common UNIX Printing System - Locale ru
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-locale-eu
|
||||||
|
$(call Package/cups/Default)
|
||||||
|
SECTION:=net
|
||||||
|
CATEGORY:=Network
|
||||||
|
TITLE:=Common UNIX Printing System - Locale eu
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-locale-eu/description
|
||||||
|
Common UNIX Printing System - Locale eu
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-locale-fr
|
||||||
|
$(call Package/cups/Default)
|
||||||
|
SECTION:=net
|
||||||
|
CATEGORY:=Network
|
||||||
|
TITLE:=Common UNIX Printing System - Locale fr
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-locale-fr/description
|
||||||
|
Common UNIX Printing System - Locale fr
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-locale-it
|
||||||
|
$(call Package/cups/Default)
|
||||||
|
SECTION:=net
|
||||||
|
CATEGORY:=Network
|
||||||
|
TITLE:=Common UNIX Printing System - Locale it
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-locale-it/description
|
||||||
|
Common UNIX Printing System - Locale it
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-locale-id
|
||||||
|
$(call Package/cups/Default)
|
||||||
|
SECTION:=net
|
||||||
|
CATEGORY:=Network
|
||||||
|
TITLE:=Common UNIX Printing System - Locale id
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-locale-id/description
|
||||||
|
Common UNIX Printing System - Locale id
|
||||||
|
endef
|
||||||
|
|
||||||
define Build/Configure
|
define Build/Configure
|
||||||
$(call Build/Configure/Default, \
|
$(call Build/Configure/Default, \
|
||||||
--with-cups-user="nobody" \
|
--with-cups-user="nobody" \
|
||||||
--with-cups-group="nogroup" \
|
--with-cups-group="nogroup" \
|
||||||
|
--with-components="embedded" \
|
||||||
--without-perl \
|
--without-perl \
|
||||||
--without-python \
|
--without-python \
|
||||||
--without-php \
|
--without-php \
|
||||||
@ -82,30 +431,235 @@ define Package/cups/install
|
|||||||
$(CP) $(PKG_INSTALL_DIR)/etc/cups/* $(1)/etc/cups/
|
$(CP) $(PKG_INSTALL_DIR)/etc/cups/* $(1)/etc/cups/
|
||||||
rm -rf $(1)/etc/cups/certs
|
rm -rf $(1)/etc/cups/certs
|
||||||
ln -sf /tmp $(1)/etc/cups/certs
|
ln -sf /tmp $(1)/etc/cups/certs
|
||||||
$(INSTALL_DIR) $(1)/usr/bin
|
|
||||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
|
|
||||||
rm -f $(1)/usr/bin/cups-config
|
rm -f $(1)/usr/bin/cups-config
|
||||||
$(INSTALL_DIR) $(1)/usr/lib
|
$(INSTALL_DIR) $(1)/usr/lib/cups
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libcups*.so* $(1)/usr/lib/
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/cups/backend $(1)/usr/lib/cups
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/cups $(1)/usr/lib/
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/cups/cgi-bin $(1)/usr/lib/cups
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/cups/daemon $(1)/usr/lib/cups
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/cups/driver $(1)/usr/lib/cups
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/cups/monitor $(1)/usr/lib/cups
|
||||||
|
$(INSTALL_DIR) $(1)/usr/lib/cups/filter
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/cups/filter/{commandtops,pstops} \
|
||||||
|
$(PKG_INSTALL_DIR)/usr/lib/cups/filter/gziptoany \
|
||||||
|
$(1)/usr/lib/cups/filter
|
||||||
$(INSTALL_DIR) $(1)/usr/share/cups/templates
|
$(INSTALL_DIR) $(1)/usr/share/cups/templates
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/share/cups/templates/*.tmpl $(1)/usr/share/cups/templates/
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/cups/templates/*.tmpl \
|
||||||
|
$(1)/usr/share/cups/templates/
|
||||||
$(INSTALL_DIR) $(1)/usr/share/cups/mime
|
$(INSTALL_DIR) $(1)/usr/share/cups/mime
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/share/cups/mime/* $(1)/usr/share/cups/mime/
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/cups/mime/* $(1)/usr/share/cups/mime/
|
||||||
$(INSTALL_DIR) $(1)/usr/share/doc/cups
|
$(INSTALL_DIR) $(1)/usr/share/doc/cups
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/share/doc/cups/index.html $(1)/usr/share/doc/cups/
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/doc/cups/index.html \
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/share/doc/cups/*.css $(1)/usr/share/doc/cups/
|
$(1)/usr/share/doc/cups/
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/share/doc/cups/images $(1)/usr/share/doc/cups/
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/doc/cups/*.css \
|
||||||
|
$(1)/usr/share/doc/cups/
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/doc/cups/images \
|
||||||
|
$(1)/usr/share/doc/cups/
|
||||||
$(INSTALL_DIR) $(1)/usr/sbin
|
$(INSTALL_DIR) $(1)/usr/sbin
|
||||||
$(INSTALL_BIN) \
|
|
||||||
$(PKG_INSTALL_DIR)/usr/sbin/{accept,cupsaddsmb,cupsctl,cupsd,cupsfilter,lpadmin,lpc,lpinfo,lpmove} \
|
|
||||||
$(1)/usr/sbin/
|
|
||||||
(cd $(1)/usr/sbin; ln -sf accept reject; ln -sf accept cupsenable; ln -sf accept cupsdisable;)
|
|
||||||
# overwrite default config with our own
|
# overwrite default config with our own
|
||||||
$(CP) ./files/etc/cups/* $(1)/etc/cups/
|
$(CP) ./files/etc/cups/* $(1)/etc/cups/
|
||||||
# install initscript with priority 60
|
# install initscript with priority 60
|
||||||
$(INSTALL_DIR) $(1)/etc/init.d
|
$(INSTALL_DIR) $(1)/etc/init.d
|
||||||
$(INSTALL_BIN) ./files/cupsd.init $(1)/etc/init.d/cupsd
|
$(INSTALL_BIN) ./files/cupsd.init $(1)/etc/init.d/cupsd
|
||||||
|
$(INSTALL_BIN) \
|
||||||
|
$(PKG_INSTALL_DIR)/usr/sbin/{cupsctl,cupsd} \
|
||||||
|
$(1)/usr/sbin/
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-bsd/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/bin
|
||||||
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{lprm,lpq,lpr} $(1)/usr/bin/
|
||||||
|
$(INSTALL_DIR) $(1)/usr/sbin
|
||||||
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/lpc $(1)/usr/sbin/
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-client/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/bin
|
||||||
|
$(INSTALL_BIN) \
|
||||||
|
$(PKG_INSTALL_DIR)/usr/bin/{lp,cancel,cupstestppd,cupstestdsc} \
|
||||||
|
$(PKG_INSTALL_DIR)/usr/bin/{ipptool,lpoptions,lpstat,lppasswd} \
|
||||||
|
$(1)/usr/bin/
|
||||||
|
$(INSTALL_DIR) $(1)/usr/sbin
|
||||||
|
$(INSTALL_BIN) \
|
||||||
|
$(PKG_INSTALL_DIR)/usr/sbin/{cupsaccept,cupsaddsmb,cupsfilter} \
|
||||||
|
$(PKG_INSTALL_DIR)/usr/sbin/{lpadmin,lpinfo,lpmove} \
|
||||||
|
$(1)/usr/sbin/
|
||||||
|
(cd $(1)/usr/sbin; ln -sf cupsaccept accept;
|
||||||
|
ln -sf cupsaccept cupsenable; ln -sf cupsaccept cupsdisable;
|
||||||
|
ln -sf cupsaccept reject; ln -sf cupsaccept cupsreject;)
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-filters/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/lib/cups/filter
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/cups/filter/{bannertops,commandtoescpx,commandtopclx,imagetops,imagetoraster,pdftops,rastertoepson,rastertopwg,rastertohp,rastertoescpx,rastertopclx,rastertolabel,texttops} \
|
||||||
|
$(1)/usr/lib/cups/filter
|
||||||
|
(cd $(1)/usr/lib/cups/filter; ln -sf rastertolabel rastertodymo;)
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-ppdc/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/bin
|
||||||
|
$(INSTALL_BIN) \
|
||||||
|
$(PKG_INSTALL_DIR)/usr/bin/{ppdc,ppdhtml,ppdi,ppdmerge,ppdpo} \
|
||||||
|
$(1)/usr/bin/
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/libcups/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/lib
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libcups.so* $(1)/usr/lib/
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/libcupscgi/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/lib
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libcupscgi.so* $(1)/usr/lib/
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/libcupsdriver/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/lib
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libcupsdriver.so* $(1)/usr/lib/
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/libcupsimage/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/lib
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libcupsimage.so* $(1)/usr/lib/
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/libcupsmime/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/lib
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libcupsmime.so* $(1)/usr/lib/
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/libcupsppdc/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/lib
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libcupsppdc.so* $(1)/usr/lib/
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-locale-de/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/share/locale
|
||||||
|
$(INSTALL_DIR) $(1)/usr/share/cups/templates
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/locale/de $(1)/usr/share/locale/
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/cups/templates/de \
|
||||||
|
$(1)/usr/share/cups/templates/
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-locale-nl/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/share/locale
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/locale/nl $(1)/usr/share/locale/
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-locale-hu/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/share/locale
|
||||||
|
$(INSTALL_DIR) $(1)/usr/share/cups/templates
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/locale/hu $(1)/usr/share/locale/
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/cups/templates/hu \
|
||||||
|
$(1)/usr/share/cups/templates/
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-locale-pt/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/share/locale
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/locale/pt $(1)/usr/share/locale/
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-locale-pt_BR/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/share/locale
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/locale/pt_BR $(1)/usr/share/locale/
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-locale-fi/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/share/locale
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/locale/fi $(1)/usr/share/locale/
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-locale-sv/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/share/locale
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/locale/sv $(1)/usr/share/locale/
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-locale-da/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/share/locale
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/locale/da $(1)/usr/share/locale/
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-locale-ko/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/share/locale
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/locale/ko $(1)/usr/share/locale/
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-locale-zh/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/share/locale
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/locale/zh $(1)/usr/share/locale/
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-locale-ja/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/share/locale
|
||||||
|
$(INSTALL_DIR) $(1)/usr/share/cups/templates
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/locale/ja $(1)/usr/share/locale/
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/cups/templates/ja \
|
||||||
|
$(1)/usr/share/cups/templates/
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-locale-es/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/share/locale
|
||||||
|
$(INSTALL_DIR) $(1)/usr/share/cups/templates
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/locale/es $(1)/usr/share/locale/
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/cups/templates/es \
|
||||||
|
$(1)/usr/share/cups/templates/
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-locale-zh_TW/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/share/locale
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/locale/zh_TW $(1)/usr/share/locale/
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-locale-pl/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/share/locale
|
||||||
|
$(INSTALL_DIR) $(1)/usr/share/cups/templates
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/locale/pl $(1)/usr/share/locale/
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/cups/templates/pl \
|
||||||
|
$(1)/usr/share/cups/templates/
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-locale-no/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/share/locale
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/locale/no $(1)/usr/share/locale/
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-locale-ru/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/share/locale
|
||||||
|
$(INSTALL_DIR) $(1)/usr/share/cups/templates
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/locale/ru $(1)/usr/share/locale/
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/cups/templates/ru \
|
||||||
|
$(1)/usr/share/cups/templates/
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-locale-eu/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/share/locale
|
||||||
|
$(INSTALL_DIR) $(1)/usr/share/cups/templates
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/locale/eu $(1)/usr/share/locale/
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/cups/templates/eu \
|
||||||
|
$(1)/usr/share/cups/templates/
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-locale-fr/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/share/locale
|
||||||
|
$(INSTALL_DIR) $(1)/usr/share/cups/templates
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/locale/fr $(1)/usr/share/locale/
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/cups/templates/fr \
|
||||||
|
$(1)/usr/share/cups/templates/
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-locale-it/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/share/locale
|
||||||
|
$(INSTALL_DIR) $(1)/usr/share/cups/templates
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/locale/it $(1)/usr/share/locale/
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/cups/templates/it \
|
||||||
|
$(1)/usr/share/cups/templates/
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cups-locale-id/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/share/locale
|
||||||
|
$(INSTALL_DIR) $(1)/usr/share/cups/templates
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/locale/id $(1)/usr/share/locale/
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/cups/templates/id \
|
||||||
|
$(1)/usr/share/cups/templates/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/InstallDev
|
define Build/InstallDev
|
||||||
@ -118,3 +672,33 @@ define Build/InstallDev
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,cups))
|
$(eval $(call BuildPackage,cups))
|
||||||
|
$(eval $(call BuildPackage,libcups))
|
||||||
|
$(eval $(call BuildPackage,libcupscgi))
|
||||||
|
$(eval $(call BuildPackage,libcupsdriver))
|
||||||
|
$(eval $(call BuildPackage,libcupsimage))
|
||||||
|
$(eval $(call BuildPackage,libcupsmime))
|
||||||
|
$(eval $(call BuildPackage,libcupsppdc))
|
||||||
|
$(eval $(call BuildPackage,cups-bsd))
|
||||||
|
$(eval $(call BuildPackage,cups-client))
|
||||||
|
$(eval $(call BuildPackage,cups-filters))
|
||||||
|
$(eval $(call BuildPackage,cups-ppdc))
|
||||||
|
$(eval $(call BuildPackage,cups-locale-de))
|
||||||
|
$(eval $(call BuildPackage,cups-locale-nl))
|
||||||
|
$(eval $(call BuildPackage,cups-locale-hu))
|
||||||
|
$(eval $(call BuildPackage,cups-locale-pt))
|
||||||
|
$(eval $(call BuildPackage,cups-locale-pt_BR))
|
||||||
|
$(eval $(call BuildPackage,cups-locale-fi))
|
||||||
|
$(eval $(call BuildPackage,cups-locale-sv))
|
||||||
|
$(eval $(call BuildPackage,cups-locale-da))
|
||||||
|
$(eval $(call BuildPackage,cups-locale-ko))
|
||||||
|
$(eval $(call BuildPackage,cups-locale-zh))
|
||||||
|
$(eval $(call BuildPackage,cups-locale-ja))
|
||||||
|
$(eval $(call BuildPackage,cups-locale-es))
|
||||||
|
$(eval $(call BuildPackage,cups-locale-zh_TW))
|
||||||
|
$(eval $(call BuildPackage,cups-locale-pl))
|
||||||
|
$(eval $(call BuildPackage,cups-locale-no))
|
||||||
|
$(eval $(call BuildPackage,cups-locale-ru))
|
||||||
|
$(eval $(call BuildPackage,cups-locale-eu))
|
||||||
|
$(eval $(call BuildPackage,cups-locale-fr))
|
||||||
|
$(eval $(call BuildPackage,cups-locale-it))
|
||||||
|
$(eval $(call BuildPackage,cups-locale-id))
|
||||||
|
42
net/cups/patches/100-components.patch
Normal file
42
net/cups/patches/100-components.patch
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
--- cups-1.5.4/configure 2012-10-09 09:22:45.000000000 +0200
|
||||||
|
+++ cups-1.5.4/configure 2012-10-09 09:24:30.000000000 +0200
|
||||||
|
@@ -1619,6 +1619,7 @@
|
||||||
|
--with-operkey set the default operator @AUTHKEY value
|
||||||
|
--with-components set components to build:
|
||||||
|
- "all" (default) builds everything
|
||||||
|
+ - "embedded" builds everything except man and notifier
|
||||||
|
- "core" builds libcups and ipptool
|
||||||
|
--with-privateinclude set path for private include files, default=none
|
||||||
|
--with-rcdir set path for rc scripts
|
||||||
|
@@ -5861,6 +5862,10 @@
|
||||||
|
BUILDDIRS="filter backend berkeley cgi-bin driver monitor notifier ppdc scheduler systemv conf data desktop locale man doc examples templates"
|
||||||
|
;;
|
||||||
|
|
||||||
|
+ embedded)
|
||||||
|
+ BUILDDIRS="filter backend berkeley cgi-bin driver monitor ppdc scheduler systemv conf data locale doc examples templates"
|
||||||
|
+ ;;
|
||||||
|
+
|
||||||
|
core)
|
||||||
|
BUILDDIRS="data locale"
|
||||||
|
;;
|
||||||
|
--- cups-1.5.4/config-scripts/cups-common.m4.orig 2012-10-09 09:17:08.000000000 +0200
|
||||||
|
+++ cups-1.5.4/config-scripts/cups-common.m4 2012-10-09 09:24:42.000000000 +0200
|
||||||
|
@@ -414,6 +414,7 @@
|
||||||
|
|
||||||
|
AC_ARG_WITH(components, [ --with-components set components to build:
|
||||||
|
- "all" (default) builds everything
|
||||||
|
+ - "embedded" builds everything except locale, man and notifier
|
||||||
|
- "core" builds libcups and ipptool],
|
||||||
|
COMPONENTS="$withval")
|
||||||
|
|
||||||
|
@@ -422,6 +423,10 @@
|
||||||
|
BUILDDIRS="filter backend berkeley cgi-bin driver monitor notifier ppdc scheduler systemv conf data desktop locale man doc examples templates"
|
||||||
|
;;
|
||||||
|
|
||||||
|
+ embedded)
|
||||||
|
+ BUILDDIRS="filter backend berkeley cgi-bin driver monitor ppdc scheduler systemv conf data locale doc examples templates"
|
||||||
|
+ ;;
|
||||||
|
+
|
||||||
|
core)
|
||||||
|
BUILDDIRS="data locale"
|
||||||
|
;;
|
@ -1,13 +0,0 @@
|
|||||||
--- a/Makefile
|
|
||||||
+++ b/Makefile
|
|
||||||
@@ -20,8 +20,8 @@ include Makedefs
|
|
||||||
# Directories to make...
|
|
||||||
#
|
|
||||||
|
|
||||||
-DIRS = cups filter backend berkeley cgi-bin driver locale man monitor \
|
|
||||||
- notifier ppdc scheduler systemv test \
|
|
||||||
+DIRS = cups filter backend berkeley cgi-bin driver monitor \
|
|
||||||
+ ppdc scheduler systemv \
|
|
||||||
$(PHPDIR) \
|
|
||||||
conf data doc examples $(FONTS) templates
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
|||||||
--- a/ppdc/Makefile
|
--- cups-1.5.4/ppdc/Makefile 2012-10-09 09:36:00.000000000 +0200
|
||||||
+++ b/ppdc/Makefile
|
+++ cups-1.5.4/ppdc/Makefile 2012-10-09 09:36:34.000000000 +0200
|
||||||
@@ -239,12 +239,7 @@ framedhelp:
|
@@ -239,12 +239,7 @@
|
||||||
|
|
||||||
genstrings: genstrings.o libcupsppdc.a ../cups/libcups.a \
|
genstrings: genstrings.o libcupsppdc.a ../cups/$(LIBCUPSSTATIC) \
|
||||||
sample.drv ../data/media.defs
|
sample.drv ../data/media.defs
|
||||||
- echo Linking $@...
|
- echo Linking $@...
|
||||||
- $(CXX) $(ARCHFLAGS) $(LDFLAGS) -o genstrings genstrings.o \
|
- $(CXX) $(ARCHFLAGS) $(LDFLAGS) -o genstrings genstrings.o \
|
||||||
- libcupsppdc.a ../cups/libcups.a $(LIBGSSAPI) $(SSLLIBS) \
|
- libcupsppdc.a ../cups/$(LIBCUPSSTATIC) $(LIBGSSAPI) $(SSLLIBS) \
|
||||||
- $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ)
|
- $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ)
|
||||||
- echo Generating localization strings...
|
- echo Generating localization strings...
|
||||||
- ./genstrings >sample.c
|
- ./genstrings >sample.c
|
||||||
|
Loading…
x
Reference in New Issue
Block a user