2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
)-source.
tar.bz2
17 http
://ftp.rz.tu-bs.de
/pub
/mirror
/ftp.easysw.com
/ftp
/pub
/cups
/$(PKG_VERSION
) \
18 ftp
://ftp.easysw.com
/pub
/cups
/$(PKG_VERSION
) \
19 ftp
://ftp3.easysw.com
/pub
/cups
/$(PKG_VERSION
)
20 PKG_MD5SUM
:=4ce09b1dce09b6b9398af0daae9adf63
23 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
24 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
28 include $(INCLUDE_DIR
)/package.mk
34 TITLE
:=Common UNIX Printing System
36 A printer spooling system for devices with USB or LP support.
37 URL
:=http
://www.cups.org
/
40 define Package
/cups
/conffiles
41 /etc
/cups
/classes.conf
44 /etc
/cups
/printers.conf
47 define Build
/Configure
48 $(call Build
/Configure
/Default
, \
49 --libexecdir
=/usr
/lib \
50 --with-cups-user
=root \
51 --with-cups-group
=root \
67 rm -rf
$(PKG_INSTALL_DIR
)
68 mkdir
-p
$(PKG_INSTALL_DIR
)
69 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
70 DSTROOT
="$(PKG_INSTALL_DIR)" \
75 define Package
/cups
/install
77 $(INSTALL_DIR
) $(1)/etc
/cups
78 $(CP
) $(PKG_INSTALL_DIR
)/etc
/cups
/* $(1)/etc
/cups
/
79 rm -rf
$(1)/etc
/cups
/certs
80 ln
-sf
/tmp
$(1)/etc
/cups
/certs
81 $(INSTALL_DIR
) $(1)/usr
/bin
82 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/* $(1)/usr
/bin
/
83 rm -f
$(1)/usr
/bin
/cups-config
84 $(INSTALL_DIR
) $(1)/usr
/lib
85 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libcups.so.
* $(1)/usr
/lib
/
86 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/cups
$(1)/usr
/lib
/
87 $(INSTALL_DIR
) $(1)/usr
/share
/cups
/templates
88 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/cups
/templates
/*.tmpl
$(1)/usr
/share
/cups
/templates
/
89 $(INSTALL_DIR
) $(1)/usr
/share
/doc
/cups
90 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/doc
/cups
/index.html
$(1)/usr
/share
/doc
/cups
/
91 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/doc
/cups
/images
$(1)/usr
/share
/doc
/cups
/
92 $(INSTALL_DIR
) $(1)/usr
/sbin
93 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/* $(1)/usr
/sbin
/
94 # overwrite default config with our own
95 $(CP
) .
/files
/etc
/cups
/* $(1)/etc
/cups
/
96 # install initscript with priority 60
97 $(INSTALL_DIR
) $(1)/etc
/init.d
98 $(INSTALL_BIN
) .
/files
/cupsd.init
$(1)/etc
/init.d
/cupsd
101 define Build
/InstallDev
102 mkdir
-p
$(STAGING_DIR
)/usr
/bin
103 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/cups-config
$(STAGING_DIR
)/usr
/bin
/
104 mkdir
-p
$(STAGING_DIR
)/usr
/include
105 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/cups
$(STAGING_DIR
)/usr
/include/
106 mkdir
-p
$(STAGING_DIR
)/usr
/lib
107 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libcups.
{a
,so
*} $(STAGING_DIR
)/usr
/lib
/
110 define Build
/UninstallDev
112 $(STAGING_DIR
)/usr
/bin
/cups-config \
113 $(STAGING_DIR
)/usr
/include/cups \
114 $(STAGING_DIR
)/usr
/lib
/libcups.
{a
,so
*}
117 $(eval
$(call BuildPackage
,cups
))