bluez-utils: added the pppdopts configuration option for dund
[packages.git] / utils / bluez-utils / Makefile
1
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=bluez-utils
12 PKG_VERSION:=2.24
13 PKG_RELEASE:=3
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://bluez.sourceforge.net/download
17 PKG_MD5SUM:=5f5488ff3d31bdb9cd36b7991fe68408
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/bluez-utils
26   SECTION:=utils
27   CATEGORY:=Utilities
28   DEPENDS:=+bluez-libs +libpthread
29   TITLE:=Bluetooth utilities
30   URL:=http://www.bluez.org/
31 endef
32
33 define Package/bluez-utils/conffiles
34 /etc/bluetooth/givepin
35 /etc/bluetooth/hcid.conf
36 /etc/bluetooth/rfcomm.conf
37 /etc/config/bluetooth
38 endef
39
40 define Build/Configure
41         $(call Build/Configure/Default, \
42                 --disable-dbus \
43                 --disable-fuse \
44                 --disable-obex \
45                 --disable-alsa \
46                 --disable-cups \
47                 --disable-pcmcia \
48                 --disable-initscripts \
49                 --disable-bccmd \
50                 --disable-avctrl \
51                 --disable-hid2hci \
52                 --disable-dfutool \
53                 --disable-bcm203x \
54                 --disable-bluepin \
55                 --with-bluez="$(STAGING_DIR)/usr/include" \
56                 --with-usb=no \
57         )
58 endef
59
60 define Build/Compile
61         $(MAKE) -C $(PKG_BUILD_DIR) \
62                 DESTDIR="$(PKG_INSTALL_DIR)" \
63                 all install
64 endef
65
66 define Package/bluez-utils/install
67         $(INSTALL_DIR) $(1)/usr/bin
68         $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
69         $(INSTALL_DIR) $(1)/usr/sbin
70         $(CP) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin/
71         $(INSTALL_DIR) $(1)/etc/bluetooth
72         $(CP) $(PKG_INSTALL_DIR)/../hcid/hcid.conf $(1)/etc/bluetooth/
73         $(CP) $(PKG_INSTALL_DIR)/../rfcomm/rfcomm.conf $(1)/etc/bluetooth/
74         install -m0700 ./files/givepin $(1)/etc/bluetooth/
75         $(INSTALL_DIR) $(1)/etc/config
76         $(INSTALL_DATA) ./files/bluetooth.conf $(1)/etc/config/bluetooth
77         $(INSTALL_DIR) $(1)/etc/init.d
78         $(INSTALL_BIN) ./files/bluez-utils.init $(1)/etc/init.d/bluez-utils
79 endef
80
81 $(eval $(call BuildPackage,bluez-utils))