svn commit: r347356 - head/etc

Emmanuel Vadot manu at FreeBSD.org
Wed May 8 17:47:00 UTC 2019


Author: manu
Date: Wed May  8 17:46:59 2019
New Revision: 347356
URL: https://svnweb.freebsd.org/changeset/base/347356

Log:
  pkgbase: Deal with the last etc files
  
  Add tags=package=runtime for password related files.
  Add tags=package=sendmail for rc.sendmail
  Add tags=package=ipfw for rc.firewall
  
  Reviewed by:	bapt
  MFC after:	2 weeks
  Differential Revision:	https://reviews.freebsd.org/D20173

Modified:
  head/etc/Makefile

Modified: head/etc/Makefile
==============================================================================
--- head/etc/Makefile	Wed May  8 16:30:38 2019	(r347355)
+++ head/etc/Makefile	Wed May  8 17:46:59 2019	(r347356)
@@ -18,15 +18,10 @@ BIN1=	\
 	group \
 	login.access \
 	rc.bsdextended \
-	rc.firewall \
 	termcap.small
 
 # NB: keep these sorted by MK_* knobs
 
-.if ${MK_SENDMAIL} != "no"
-BIN1+=	rc.sendmail
-.endif
-
 .if ${MK_SENDMAIL} == "no"
 ETCMAIL=mailer.conf aliases
 .else
@@ -63,10 +58,20 @@ distribution:
 	@echo "set DESTDIR before running \"make ${.TARGET}\""
 	@false
 .endif
+.if ${MK_SENDMAIL} != "no"
 	cd ${.CURDIR}; \
-	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
+	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 -T "tags=package=sendmail"\
+		rc.sendmail ${DESTDIR}/etc;
+.endif
+.if ${MK_IPFW} != "no"
+	cd ${.CURDIR}; \
+	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 -T "tags=package=ipfw"\
+		rc.firewall ${DESTDIR}/etc;
+.endif
+	cd ${.CURDIR}; \
+	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 -T "tags=package=runtime"\
 		${BIN1} ${DESTDIR}/etc; \
-	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \
+	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 -T "tags=package=runtime"\
 		master.passwd ${DESTDIR}/etc;
 
 .if ${MK_TCSH} == "no"
@@ -78,6 +83,7 @@ distribution:
 		echo "./etc/passwd type=file mode=0644 uname=root gname=wheel"; \
 		echo "./etc/pwd.db type=file mode=0644 uname=root gname=wheel"; \
 		echo "./etc/spwd.db type=file mode=0600 uname=root gname=wheel"; \
+
 	) | ${METALOG.add}
 .endif
 	${_+_}cd ${.CURDIR}/gss; ${MAKE} install


More information about the svn-src-all mailing list