source: packages/utils/pcmciautils/Makefile @ 27249

Last change on this file since 27249 was 27249, checked in by florian, 5 years ago

[package] pcmciautils: bump to 018

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