summaryrefslogtreecommitdiffstats
path: root/extra/ca-certificates/Pkgfile
blob: fa26d75ca23262a3c3fb02a843eb0b28b4fe9992 (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
# Description: CA rtificats courant
# Url : http://packages.qa.debian.org/c/ca-certificates.html
# Maintainer: NutyX core team
# Packager: lesibel at free dot fr
# Depends on: openssl,findutils,coreutils,nmap
# Run on:

name=ca-certificates
version=20110502
release=1

source=(http://ftp.debian.org/debian/pool/main/c/$name/${name}_${version}.tar.gz )

build() {
	cd $name-$version
	sed 's|/usr/bin/python|/usr/bin/python2|g' -i mozilla/certdata2pem.py
	sed 's|python|python2|g' -i mozilla/Makefile
	make
	install -d -m755 $PKG/{etc/ca-certificates/update.d,usr/{sbin,share/ca-certificates},etc/ssl/certs}
	make install DESTDIR=$PKG
	install -D -m644 sbin/update-ca-certificates.8 $PKG/usr/share/man/man8/update-ca-certificates.8
	
	(
	echo "# Automatically generated by $name-$version-$release"
	echo "# see update-ca-certificates man page"
	echo "# "
	cd $PKG/usr/share/ca-certificates
	find . -name '*.crt' | sort | cut -b3-
	) > $PKG/etc/ca-certificates.conf
	
	cp -av /usr/share/ncat/ca-bundle.crt $PKG/etc/ssl/certs/ca-certificates.crt 
}