1 1.3 riastrad # $NetBSD: Makefile,v 1.3 2023/09/03 18:31:01 riastradh Exp $ 2 1.1 riastrad # 3 1.1 riastrad 4 1.1 riastrad MAN= certctl.8 5 1.1 riastrad SCRIPTS= certctl.sh 6 1.1 riastrad 7 1.3 riastrad # XXX This is a hack to install certs.conf both in /etc/openssl (in the 8 1.3 riastrad # etc set) and in /usr/share/examples/certctl (in the base set). 9 1.3 riastrad # Really, all files in /etc should have /usr/share/examples versions; 10 1.3 riastrad # once you arrange the build to do that, you can get rid of this hack. 11 1.3 riastrad etc-certs.conf base-certs.conf: certs.conf 12 1.3 riastrad cat ${.ALLSRC} >${.TARGET}.tmp 13 1.3 riastrad ${MV} -f ${.TARGET}.tmp ${.TARGET} 14 1.3 riastrad 15 1.3 riastrad CONFIGFILES+= etc-certs.conf 16 1.3 riastrad FILESBUILD_etc-certs.conf= yes 17 1.3 riastrad FILESDIR_etc-certs.conf= /etc/openssl 18 1.3 riastrad FILESNAME_etc-certs.conf= certs.conf 19 1.3 riastrad FILESMODE_etc-certs.conf= 644 20 1.3 riastrad 21 1.3 riastrad FILES+= base-certs.conf 22 1.3 riastrad FILESBUILD_base-certs.conf= yes 23 1.3 riastrad FILESDIR_base-certs.conf= /usr/share/examples/certctl 24 1.3 riastrad FILESNAME_base-certs.conf= certs.conf 25 1.1 riastrad 26 1.1 riastrad .include <bsd.prog.mk> 27