From 0b209f2c73989609709bbd471d526ebd8a2f4bbb Mon Sep 17 00:00:00 2001 From: Ørjan Malde Date: May 14 2018 17:32:17 +0000 Subject: Add certdata2pem_host and certhash script --- diff --git a/Makefile b/Makefile index 6d36e08..d51c7fb 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -all: update-ca-certificates c_rehash certdata.stamp +all: update-ca-certificates c_rehash certdata2pem update-ca-certificates: update-ca.c ${CC} ${CFLAGS} -o $@ update-ca.c ${LDFLAGS} @@ -9,9 +9,12 @@ c_rehash: c_rehash.c certdata2pem: certdata2pem.c ${CC} ${CFLAGS} -o $@ certdata2pem.c ${LDFLAGS} -certdata.stamp: - ./certdata2pem - touch $@ +certdata2pem_host: certdata2pem.c + ${HOST_CC} -o $@ certdata2pem.c + +#certdata.stamp: +# ./certdata2pem +# touch $@ install: all install -d -m755 ${DESTDIR}/etc/ca-certificates/update.d \ @@ -28,8 +31,10 @@ install: all install -D -m644 update-ca-certificates.8 ${DESTDIR}/usr/share/man/man8/update-ca-certificates.8 install -m755 update-ca-certificates ${DESTDIR}/usr/sbin install -m755 c_rehash ${DESTDIR}/usr/bin + install -m755 certdata2pem ${DESTDIR}/usr/bin + install -m755 certhash ${DESTDIR}/etc/ca-certificates/update.d clean: - rm -rf update-ca-certificates c_rehash certdata2pem certdata.stamp *.crt + rm -rf update-ca-certificates c_rehash certdata2pem certdata2pem_host certdata.stamp *.crt .PHONY: install clean diff --git a/certhash b/certhash new file mode 100644 index 0000000..8943cd5 --- /dev/null +++ b/certhash @@ -0,0 +1,2 @@ +#!/bin/sh +exec /usr/bin/c_rehash /etc/ssl/certs