ca-certificates: add system CA certificates package (based on the debian one)
[openwrt/openwrt.git] / package / system / ca-certificates / 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 include $(TOPDIR)/rules.mk
8
9 PKG_NAME:=ca-certificates
10 PKG_VERSION:=20140223
11
12 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.xz
13 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
14 PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/c/ca-certificates
15 PKG_MD5SUM:=ff4049c32342ea450cda82bb14026ffd
16
17 PKG_INSTALL:=1
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/ca-certificates
22 SECTION:=base
23 CATEGORY:=Base system
24 TITLE:=System CA certificates
25 endef
26
27 define Build/Install
28 mkdir -p \
29 $(PKG_INSTALL_DIR)/usr/sbin \
30 $(PKG_INSTALL_DIR)/usr/share/ca-certificates
31 $(call Build/Install/Default,)
32 endef
33
34 define Package/ca-certificates/install
35 $(INSTALL_DIR) $(1)/etc/ssl
36 ln -s ../../usr/share/ca-certificates $(1)/etc/ssl/certs
37 $(INSTALL_DIR) $(1)/usr/share/ca-certificates
38 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/ca-certificates/*/*.crt $(1)/usr/share/ca-certificates/
39 endef
40
41 $(eval $(call BuildPackage,ca-certificates))