1### conf.freebsd.mk -- Installation of configuration files for FreeBSD 2 3# Author: Michael Grünewald 4# Date: Sam 3 oct 2009 18:25:04 CEST 5# Cookie: SYNOPSIS TARGET VARIABLE EN DOCUMENTATION 6 7# BSD Owl Scripts (https://bitbucket.org/michipili/bsdowl) 8# This file is part of BSD Owl Scripts 9# 10# Copyright © 2005–2014 Michael Grünewald 11# 12# This file must be used under the terms of the CeCILL-B. 13# This source file is licensed as described in the file COPYING, which 14# you should have received as part of this distribution. The terms 15# are also available at 16# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt 17 18# This module defines several FILESGROUPS that can be used to install 19# configuration files on FreeBSD systems. 20# 21# These files groups are: 22# 23# BASE For base system configuration files, in /etc 24# PORT For port configuration files, in ${LOCALBASE}/etc 25# KERN For kernel configuration files 26# BOOT For boot configuration files, in /boot 27# CSUP For csup configuration files, in /etc/csup 28# FDI For device file informations used by HAL 29# RC For RC files used to boot the system 30# KDE For KDE configuration files 31# XDM For XDM configuration files, in ${LOCALBASE}/lib/X11/xdm 32# XDMPIXMAP For XDM pixmaps 33# XFCE For XFCE configuration files 34 35PREFIX?= 36LOCALBASE?= /usr/local 37 38 39# BASE 40# 41# Base system configuration files 42# 43# Such as rc.conf, hosts, networks, groups, etc. 44 45FILESGROUPS+= BASE 46 47BASEDIR?= /etc 48BASEOWN?= root 49BASEGRP?= wheel 50BASEMODE?= 444 51BASEDIR.sshd_config = ${BASEDIR}/ssh 52BASEDIR.ssh_config = ${BASEDIR}/ssh 53BASEMODE.hostpad.conf = 400 54 55 56# RC 57# 58# Setting up services at boot time 59 60FILESGROUPS+= RC 61 62RCDIR?= ${LOCALBASE}/etc/rc.d 63RCOWN?= ${BASEOWN} 64RCGRP?= ${BASEGRP} 65RCMODE?= 555 66 67.if defined(RC)&&!empty(RC) 68.if ${RC} == "f77" 69RC:= 70.endif 71.endif 72 73 74# PORT 75# 76# Third party packages configurations files 77# 78# Such as sudoers, pkgtools.conf, apache configuration files, etc. 79 80FILESGROUPS+= PORT 81 82PORTDIR?= ${LOCALBASE}/etc 83PORTOWN?= ${BASEOWN} 84PORTGRP?= ${BASEGRP} 85PORTMODE?= 444 86 87PORTMODE.sudoers = 440 88PORTDIR.PolicyKit.conf = ${PORTDIR}/PolicyKit 89PORTDIR.fonts-local.conf = ${PORTDIR}/fonts 90PORTNAME.fonts-local.conf = local.conf 91 92# FDI 93# 94# Device information files for the HAL system 95 96FILESGROUPS+= FDI 97 98FDIDIR?= ${LOCALBASE}/share/hal/fdi/preprobe/20thirdparty 99FDIOWN?= ${BASEOWN} 100FDIGRP?= ${BASEGRP} 101FDIMODE?= 444 102 103 104# KERN 105# 106# Kernel configuration files 107# 108# The machine is guessed from the MACHINE variable. Note: it would 109# be nice to define a group for each supported machine type, so that 110# kernels for various machines can be prepared. 111 112FILESGROUPS+= KERN 113 114KERNDIR?= /usr/src/sys/${MACHINE}/conf 115KERNOWN?= ${BASEOWN} 116KERNGRP?= ${BASEGRP} 117KERNMODE?= 444 118 119 120# BOOT 121# 122# Loader configuration files 123# 124# These files usually go under /boot. 125 126FILESGROUPS+= BOOT 127 128BOOTDIR?= /boot 129BOOTOWN?= ${BASEOWN} 130BOOTGRP?= ${BASEGRP} 131BOOTMODE?= 444 132 133 134# CSUP 135# 136# CVS Update 137# 138# Csup is a software package for updating collections of files 139# across a network. It is used to keep FreeBSD sources and the ports 140# collection in sync. Its configuration files goes under /etc/csup. 141 142FILESGROUPS+= CSUP 143 144CSUPDIR?= /etc/csup 145CSUPOWN?= ${BASEOWN} 146CSUPGRP?= ${BASEGRP} 147CSUPMODE?= 444 148 149CSUPDIR.refuse-supfile =/var/db/sup 150CSUPNAME.refuse-supfile = refuse 151 152 153# XORG 154# 155# X server configuration files 156# 157# Theses files go under /etc/X11. Note that these files must be read 158# somewhere to be effective, for instance in the Xsession script. 159 160FILESGROUPS+= XORG 161 162XORGDIR?= /etc/X11 163XORGOWN?= ${BASEOWN} 164XORGGRP?= ${BASEGRP} 165XORGMODE?= 444 166 167 168# KDE 169# 170# K Desktop Environment 171# 172# KDE is a desktop environment. Among other bits of software, it 173# provides a display manager daemon, that is a system component. We 174# handle KDE4. 175 176FILESGROUPS+= KDE 177 178KDEDIR?= ${LOCALBASE}/kde4/share/config 179KDEOWN?= ${BASEOWN} 180KDEGRP?= ${BASEGRP} 181KDEMODE?= 444 182 183KDEDIR.kdmrc = ${KDEDIR}/kdm 184 185 186# XDM 187# 188# X Display Manager 189# 190# XDM is the display manager daemon shipped with Xorg. It is highly 191# configurable, see comments in the relevant files. 192 193FILESGROUPS+= XDM 194XDMDIR?= ${LOCALBASE}/lib/X11/xdm 195XDMOWN?= ${BASEOWN} 196XDMGRP?= ${BASEGRP} 197XDMMODE?= 444 198 199XDMMODE.GiveConsole?= 555 200XDMMODE.TakeConsole?= 555 201XDMMODE.Xreset?= 555 202XDMMODE.Xsession?= 555 203XDMMODE.Xstartup?= 555 204XDMMODE.Xwilling?= 555 205 206.for file in ${XDM:MXsetup_*} 207XDMMODE.${file:T}?= 555 208.endfor 209 210FILESGROUPS+= XDMPIXMAP 211XDMPIXMAPDIR?= ${LOCALBASE}/lib/X11/xdm/pixmaps 212XDMPIXMAPOWN?= ${BASEOWN} 213XDMPIXMAPGRP?= ${BASEGRP} 214XDMPIXMAPMODE?= 444 215 216 217 218# Images goes under ${XDMDIR}/pixmaps 219.for suffix in png gif jpg jpeg xpm 220.for file in ${XDM:M*.${suffix}} 221XDMDIR.${file:T}?= ${XDMDIR}/pixmaps 222.endfor 223.endfor 224 225 226# 227# Epilogue 228# 229 230USE_SWITCH_CREDENTIALS = yes 231 232.include "bps.init.mk" 233.include "bps.credentials.mk" 234.include "bps.clean.mk" 235.include "bps.files.mk" 236.include "bps.usertarget.mk" 237 238### End of file `conf.freebsd.mk' 239