2 # Copyright (C) 2008-2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://www.kernel.org/pub/linux/utils/kernel/pcmcia/
16 PKG_MD5SUM:=9e12435c8b6cf7bf59894e90e480b4aa
18 include $(INCLUDE_DIR)/package.mk
20 define Package/pcmciautils
23 DEPENDS:=+sysfsutils @LINUX_2_6 @PCMCIA_SUPPORT
24 TITLE:=PCMCIA Utilities
25 URL:=http://www.kernel.org/pub/linux/utils/kernel/pcmcia/pcmcia.html
29 rm -rf "$(PKG_INSTALL_DIR)"
30 mkdir -p "$(PKG_INSTALL_DIR)"
31 $(call Build/Compile/Default, \
32 LD="$(TARGET_CC)" UDEV=false \
33 CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) \
34 -DPCMCIAUTILS_VERSION=\\\"$(PKG_VERSION)\\\"" \
39 define Package/pcmciautils/install
40 $(INSTALL_DIR) $(1)/usr/sbin/
41 $(CP) $(PKG_BUILD_DIR)/pccardctl $(1)/usr/sbin/
42 $(CP) $(PKG_BUILD_DIR)/pcmcia-check-broken-cis $(1)/usr/sbin/
43 $(CP) $(PKG_BUILD_DIR)/pcmcia-socket-startup $(1)/usr/sbin/
44 rm -f $(1)/usr/sbin/lspcmcia
45 ln -s pccardctl $(1)/usr/sbin/lspcmcia
46 $(INSTALL_DIR) $(1)/etc/pcmcia/
47 $(CP) $(PKG_BUILD_DIR)/config/config.opts $(1)/etc/pcmcia/
50 $(eval $(call BuildPackage,pcmciautils))