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