summaryrefslogtreecommitdiff
path: root/package/ca-certificates/Makefile
blob: 90754fbc75596502540d1ed759cf5d21582168df (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
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include $(TOPDIR)/rules.mk

PKG_NAME:=		ca-certificates
PKG_VERSION:=		20090814
PKG_RELEASE:=		2
PKG_MD5SUM:=		307052c985bec7f9a00eb84293eef779
PKG_DESCR:=		Collection of common CA certificates
PKG_SECTION:=		shells
PKG_DEPENDS:=		openssl-util libopenssl
PKG_URL:=		http://packages.debian.org/sid/ca-certificates
PKG_SITES:=		http://ftp.debian.org/debian/pool/main/c/ca-certificates/

DISTFILES:=		${PKG_NAME}_${PKG_VERSION}.tar.gz

PKG_FLAVOURS:=		SMALL
PKGFD_SMALL:=		Minimal set of CA certificates

include $(TOPDIR)/mk/package.mk

$(eval $(call PKG_template,CA_CERTS,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))

CONFIG_STYLE:=		manual

post-install:
ifeq (${ADK_PACKAGE_CA_CERTS_SMALL},n)
	$(INSTALL_DIR) $(IDIR_CA_CERTS)/{etc/ssl/certs,usr/share,usr/sbin}
	$(CP) $(WRKINST)/usr/share/ca-certificates $(IDIR_CA_CERTS)/usr/share/
	( cd ${IDIR_CA_CERTS}/usr/share/ca-certificates && \
		ls */*.crt >${IDIR_CA_CERTS}/etc/ca-certificates.conf \
	)
	${INSTALL_BIN} ./extra/update-ca-certificates ${IDIR_CA_CERTS}/usr/sbin/
	-DESTDIR=${IDIR_CA_CERTS} ${BASH} ./extra/update-ca-certificates
else
	${INSTALL_DIR} ${IDIR_CA_CERTS}/etc/ssl
	${INSTALL_DATA} ./cert.pem ${IDIR_CA_CERTS}/etc/ssl/
endif

include ${TOPDIR}/mk/pkg-bottom.mk