pkgbase: Create a FreeBSD-newsyslog package

This allow one to install it without having to install FreeBSD-utilities.
While here put some newsyslog.d file in their own package.

MFC after:	2 weeks
Sponsored by:	Beckhoff Automation GmbH & Co. KG
Differential Revision:	https://reviews.freebsd.org/D33456
This commit is contained in:
Emmanuel Vadot 2021-12-15 10:46:00 +01:00
parent 25367c806b
commit 26ea904caa
3 changed files with 22 additions and 4 deletions

View File

@ -79,6 +79,8 @@ mlx-tools_COMMENT= Mellanox Utilities
mlx-tools_DESC= Mellanox Utilities
mtree_COMMENT= MTREE Files
mtree_DESC= MTREE Files
newsyslog_COMMENT= Newsyslog Utility
newsyslog_DESC= Newsyslog Utility
nfs_COMMENT= NFS Utilities
nfs_DESC= NFS Utilities
openssl_COMMENT= OpenSSL Library and Utility

View File

@ -2,6 +2,8 @@
.include <src.opts.mk>
PACKAGE= newsyslog
CONFS= newsyslog.conf
PROG= newsyslog
MAN= newsyslog.8 newsyslog.conf.5

View File

@ -2,12 +2,17 @@
.include <src.opts.mk>
PACKAGE= newsyslog
CONFSDIR= /etc/newsyslog.conf.d
CONFGROUPS= CONFS
CONFS=
.if ${MK_FTP} != "no"
CONFS+= ftp.conf
CONFGROUPS+= FTP
FTP+= ftp.conf
FTPPACKAGE= ftpd
FTPDIR= /etc/newsyslog.conf.d
.endif
.if ${MK_LPR} != "no"
@ -19,15 +24,24 @@ CONFS+= opensm.conf
.endif
.if ${MK_PF} != "no"
CONFS+= pf.conf
CONFGROUPS+= PF
PF+= pf.conf
PFPACKAGE= pf
PFDIR= /etc/newsyslog.conf.d
.endif
.if ${MK_PPP} != "no"
CONFS+= ppp.conf
CONFGROUPS+= PPP
PPP+= ppp.conf
PPPPACKAGE= ppp
PPPDIR= /etc/newsyslog.conf.d
.endif
.if ${MK_SENDMAIL} != "no"
CONFS+= sendmail.conf
CONFGROUPS+= SENDMAIL
SENDMAIL+= sendmail.conf
SENDMAILPACKAGE= sendmail
SENDMAILDIR= /etc/newsyslog.conf.d
.endif
.include <bsd.prog.mk>