xref: /netbsd-src/usr.sbin/certctl/Makefile (revision 24bd4d73cb050ce135d48dc9024b3e8473a43a55)
1*24bd4d73Sriastradh#	$NetBSD: Makefile,v 1.3 2023/09/03 18:31:01 riastradh Exp $
250a8b412Sriastradh#
350a8b412Sriastradh
450a8b412SriastradhMAN=		certctl.8
550a8b412SriastradhSCRIPTS=	certctl.sh
650a8b412Sriastradh
7*24bd4d73Sriastradh# XXX This is a hack to install certs.conf both in /etc/openssl (in the
8*24bd4d73Sriastradh# etc set) and in /usr/share/examples/certctl (in the base set).
9*24bd4d73Sriastradh# Really, all files in /etc should have /usr/share/examples versions;
10*24bd4d73Sriastradh# once you arrange the build to do that, you can get rid of this hack.
11*24bd4d73Sriastradhetc-certs.conf base-certs.conf: certs.conf
12*24bd4d73Sriastradh	cat ${.ALLSRC} >${.TARGET}.tmp
13*24bd4d73Sriastradh	${MV} -f ${.TARGET}.tmp ${.TARGET}
14*24bd4d73Sriastradh
15*24bd4d73SriastradhCONFIGFILES+=	etc-certs.conf
16*24bd4d73SriastradhFILESBUILD_etc-certs.conf=	yes
17*24bd4d73SriastradhFILESDIR_etc-certs.conf=	/etc/openssl
18*24bd4d73SriastradhFILESNAME_etc-certs.conf=	certs.conf
19*24bd4d73SriastradhFILESMODE_etc-certs.conf=	644
20*24bd4d73Sriastradh
21*24bd4d73SriastradhFILES+=		base-certs.conf
22*24bd4d73SriastradhFILESBUILD_base-certs.conf=	yes
23*24bd4d73SriastradhFILESDIR_base-certs.conf=	/usr/share/examples/certctl
24*24bd4d73SriastradhFILESNAME_base-certs.conf=	certs.conf
2550a8b412Sriastradh
2650a8b412Sriastradh.include <bsd.prog.mk>
27