You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
1.4 KiB

  1. #
  2. # Copyright (C) 2008-2017 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=pcmciautils
  9. PKG_VERSION:=018
  10. PKG_RELEASE:=3
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:=@KERNEL/linux/utils/kernel/pcmcia
  13. PKG_MD5SUM:=5d85669b3440baa4532363da6caaf1b4
  14. PKG_LICENSE:=GPL-2.0
  15. PKG_LICENSE_FILES:=COPYING
  16. PKG_MAINATINER:=Tomasz Maciej Nowak <tomek_n@o2.pl>
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/pcmciautils
  19. SECTION:=utils
  20. CATEGORY:=Utilities
  21. DEPENDS:=+libsysfs @PCMCIA_SUPPORT
  22. TITLE:=PCMCIA Utilities
  23. URL:=http://www.kernel.org/pub/linux/utils/kernel/pcmcia/pcmcia.html
  24. endef
  25. define Build/Compile
  26. $(call Build/Compile/Default, \
  27. LD="$(TARGET_CC)" UDEV=false \
  28. CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) \
  29. -DPCMCIAUTILS_VERSION=\\\"$(PKG_VERSION)\\\"" \
  30. prefix=/usr all \
  31. )
  32. endef
  33. define Package/pcmciautils/install
  34. $(INSTALL_DIR) $(1)/usr/sbin/
  35. $(CP) $(PKG_BUILD_DIR)/pccardctl $(1)/usr/sbin/
  36. $(CP) $(PKG_BUILD_DIR)/pcmcia-check-broken-cis $(1)/usr/sbin/
  37. $(CP) $(PKG_BUILD_DIR)/pcmcia-socket-startup $(1)/usr/sbin/
  38. rm -f $(1)/usr/sbin/lspcmcia
  39. ln -s pccardctl $(1)/usr/sbin/lspcmcia
  40. $(INSTALL_DIR) $(1)/etc/pcmcia/
  41. $(CP) $(PKG_BUILD_DIR)/config/config.opts $(1)/etc/pcmcia/
  42. $(CP) files/* $(1)/
  43. endef
  44. define Package/pcmciautils/conffiles
  45. /etc/pcmcia/config.opts
  46. endef
  47. $(eval $(call BuildPackage,pcmciautils))