From bf8a86cd148750ce577f389cb3799189d83c7ee9 Mon Sep 17 00:00:00 2001
From: Brad Davis <brd@FreeBSD.org>
Date: Sat, 11 Aug 2018 13:52:23 +0000
Subject: [PATCH] Move cron.d/at to usr.bin/at/

This helps with pkgbase as it tags this as a config file so it is handled as
such

Approved by:	allanjude (mentor)
Sponsored by:	Essen Hackathon
Differential Revision:	https://reviews.freebsd.org/D16673
---
 etc/Makefile                      |  1 -
 etc/cron.d/Makefile               | 11 -----------
 usr.bin/at/Makefile               |  3 +++
 etc/cron.d/at => usr.bin/at/atrun |  0
 4 files changed, 3 insertions(+), 12 deletions(-)
 delete mode 100644 etc/cron.d/Makefile
 rename etc/cron.d/at => usr.bin/at/atrun (100%)

diff --git a/etc/Makefile b/etc/Makefile
index 68b3c15d1c3c..d48538d9e10f 100644
--- a/etc/Makefile
+++ b/etc/Makefile
@@ -174,7 +174,6 @@ distribution:
 .if ${MK_BLUETOOTH} != "no"
 	${_+_}cd ${.CURDIR}/bluetooth; ${MAKE} install
 .endif
-	${_+_}cd ${.CURDIR}/cron.d; ${MAKE} install
 	${_+_}cd ${.CURDIR}/defaults; ${MAKE} install
 	${_+_}cd ${.CURDIR}/devd; ${MAKE} install
 	${_+_}cd ${.CURDIR}/gss; ${MAKE} install
diff --git a/etc/cron.d/Makefile b/etc/cron.d/Makefile
deleted file mode 100644
index 3ddc5fb438ac..000000000000
--- a/etc/cron.d/Makefile
+++ /dev/null
@@ -1,11 +0,0 @@
-# $FreeBSD$
-
-.include <src.opts.mk>
-
-.if ${MK_AT} != "no"
-FILES+=		at
-.endif
-
-BINDIR=		/etc/cron.d
-
-.include <bsd.prog.mk>
diff --git a/usr.bin/at/Makefile b/usr.bin/at/Makefile
index 5e9cfc9302fd..7dde46f28e67 100644
--- a/usr.bin/at/Makefile
+++ b/usr.bin/at/Makefile
@@ -2,6 +2,9 @@
 
 .include "${.CURDIR}/Makefile.inc"
 
+CONFS=	atrun
+CONFSDIR=	/etc/cron.d
+CONFSNAME=	at
 PROG=	at
 SRCS=	at.c panic.c parsetime.c perm.c
 LINKS=	${BINDIR}/at ${BINDIR}/atq \
diff --git a/etc/cron.d/at b/usr.bin/at/atrun
similarity index 100%
rename from etc/cron.d/at
rename to usr.bin/at/atrun