summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2015-03-05 16:22:31 +0000
committerbapt <bapt@FreeBSD.org>2015-03-05 16:22:31 +0000
commit5bd9a0b317c62f13b5decc06ca87d0ad511f37df (patch)
tree75f1f6052848fe51100eb9e7b00a1f0b3aa09a32 /etc
parent427b397417ca7b8af7608de868215a665ed4e128 (diff)
downloadFreeBSD-src-5bd9a0b317c62f13b5decc06ca87d0ad511f37df.zip
FreeBSD-src-5bd9a0b317c62f13b5decc06ca87d0ad511f37df.tar.gz
Make acpi an individual package
Flag /etc/devd/asus.conf as a config file so it will be automatically merged on updates
Diffstat (limited to 'etc')
-rw-r--r--etc/devd/Makefile9
-rw-r--r--etc/rc.d/Makefile7
2 files changed, 13 insertions, 3 deletions
diff --git a/etc/devd/Makefile b/etc/devd/Makefile
index a0909af..d031f19 100644
--- a/etc/devd/Makefile
+++ b/etc/devd/Makefile
@@ -2,7 +2,7 @@
.include <src.opts.mk>
-FILES=
+FILEGROUPS= FILES
.if ${MACHINE} == "powerpc"
FILES+= apple.conf
@@ -10,7 +10,12 @@ FILES+= apple.conf
.if ${MACHINE} == "amd64" || ${MACHINE} == "i386"
.if ${MK_ACPI} != "no"
-FILES+= asus.conf
+FILESGROUPS+= ACPI
+ACPI= asus.conf
+ACPIPACKAGE= acpi
+ACPIDIR= /etc/devd
+ACPITAGS= config
+ACPIMODE= 644
.endif
.if ${MK_HYPERV} != "no"
FILES+= hyperv.conf
diff --git a/etc/rc.d/Makefile b/etc/rc.d/Makefile
index b4f8058..811517f 100644
--- a/etc/rc.d/Makefile
+++ b/etc/rc.d/Makefile
@@ -140,7 +140,8 @@ FILES+= accounting
.endif
.if ${MK_ACPI} != "no"
-FILES+= power_profile
+FILESGROUPS+= ACPI
+ACPI= power_profile
.endif
.if ${MK_ACPI} != "no" || ${MK_APM} != "no"
@@ -293,4 +294,8 @@ UNBOUNDDIR= /etc/rc.d
UNBOUNDMODE= ${BINMODE}
UNBOUNDPACKAGE= unbound
+ACPIDIR= /etc/rc.d
+ACPIMODE= ${BINMODE}
+ACPIPACKAGE= acpi
+
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud