summaryrefslogtreecommitdiff
path: root/package/crda/Makefile
blob: 267a0fd7eee20012c60902fb53e7e7f7c87d9d3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include $(ADK_TOPDIR)/rules.mk

PKG_NAME:=		crda
PKG_VERSION:=		1.1.3
PKG_RELEASE:=		1
PKG_HASH:=		aa8a7fe92f0765986c421a5b6768a185375ac210393df0605ee132f6754825f0
PKG_DESCR:=		central regulatory domain agent for wireless networks
PKG_SECTION:=		net/wifi
PKG_DEPENDS:=		libnl
PKG_BUILDDEP:=		libnl
PKG_URL:=		http://wireless.kernel.org/en/developers/Regulatory
PKG_SITES:=		http://linuxwireless.org/download/crda/

PKG_CFLINE_CRDA:=	depends on ADK_BROKEN

DISTFILES:=             $(PKG_NAME)-$(PKG_VERSION).tar.bz2

PKG_FLAVOURS_CRDA:=	WITH_UDEV
PKGFD_WITH_UDEV:=	install shipped udev rules
PKGFS_WITH_UDEV:=	udev
PKGFB_WITH_UDEV:=	eudev

PKG_CHOICES_CRDA:=	WITH_LIBRESSL WITH_OPENSSL WITH_GCRYPT
PKGCD_WITH_OPENSSL:=	ssl support via openssl library
PKGCB_WITH_OPENSSL:=	openssl
PKGCS_WITH_OPENSSL:=	libopenssl
PKGCD_WITH_LIBRESSL:=	ssl support via libressl library
PKGCB_WITH_LIBRESSL:=	libressl
PKGCS_WITH_LIBRESSL:=	libressl
PKGCD_WITH_GCRYPT:=	ssl support via gcrypt library
PKGCB_WITH_GCRYPT:=	libgcrypt
PKGCS_WITH_GCRYPT:=	libgcrypt

include $(ADK_TOPDIR)/mk/package.mk

$(eval $(call PKG_template,CRDA,crda,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))

CONFIG_STYLE:=		manual
ALL_TARGET:=		all_noverify

ifneq ($(ADK_PACKAGE_CRDA_WITH_OPENSSL),)
XAKE_FLAGS+=		USE_OPENSSL=1
endif

crda-install:
	$(INSTALL_DIR) $(IDIR_CRDA)/usr/sbin
	$(INSTALL_BIN) $(WRKINST)/sbin/{crda,regdbdump} \
		$(IDIR_CRDA)/usr/sbin
ifneq ($(ADK_PACKAGE_CRDA_WITH_UDEV),)
	$(INSTALL_DIR) $(IDIR_CRDA)/lib/udev/rules.d
	$(INSTALL_DATA) $(WRKINST)/lib/udev/rules.d/85-regulatory.rules \
		$(IDIR_CRDA)/lib/udev/rules.d
endif

include $(ADK_TOPDIR)/mk/pkg-bottom.mk