diff options
author | Emmanuel Vadot <manu@FreeBSD.org> | 2021-12-15 09:46:00 +0000 |
---|---|---|
committer | Emmanuel Vadot <manu@FreeBSD.org> | 2021-12-21 09:17:42 +0000 |
commit | 26ea904caae7e6be8394eb8ca94f282d99f63c8c (patch) | |
tree | adeb338579b83caad5495eda333a1e253286c79d | |
parent | 25367c806be5b321b6c7b2fd6bee264b99f240da (diff) | |
download | src-26ea904caae7e6be8394eb8ca94f282d99f63c8c.tar.gz src-26ea904caae7e6be8394eb8ca94f282d99f63c8c.zip |
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
-rw-r--r-- | release/packages/Makefile.package | 2 | ||||
-rw-r--r-- | usr.sbin/newsyslog/Makefile | 2 | ||||
-rw-r--r-- | usr.sbin/newsyslog/newsyslog.conf.d/Makefile | 22 |
3 files changed, 22 insertions, 4 deletions
diff --git a/release/packages/Makefile.package b/release/packages/Makefile.package index 2356940828b0..2f90307cfda2 100644 --- a/release/packages/Makefile.package +++ b/release/packages/Makefile.package @@ -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 diff --git a/usr.sbin/newsyslog/Makefile b/usr.sbin/newsyslog/Makefile index 81237126afed..a0f933333320 100644 --- a/usr.sbin/newsyslog/Makefile +++ b/usr.sbin/newsyslog/Makefile @@ -2,6 +2,8 @@ .include <src.opts.mk> +PACKAGE= newsyslog + CONFS= newsyslog.conf PROG= newsyslog MAN= newsyslog.8 newsyslog.conf.5 diff --git a/usr.sbin/newsyslog/newsyslog.conf.d/Makefile b/usr.sbin/newsyslog/newsyslog.conf.d/Makefile index 3974581ff57f..1c8980c2e383 100644 --- a/usr.sbin/newsyslog/newsyslog.conf.d/Makefile +++ b/usr.sbin/newsyslog/newsyslog.conf.d/Makefile @@ -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> |