Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Aug 1999 14:47:34 +0200
From:      Neil Blakey-Milner <nbm@mithrandr.moria.org>
To:        ports@FreeBSD.org
Subject:   arb patch to tell who installed port and when
Message-ID:  <19990824144734.A73970@rucus.ru.ac.za>

next in thread | raw e-mail | index | archive | help
Hi

I was bored and irritated with other sysadmin not owning up to
installing a port, and I thought something like the following might be
in order:

Index: bsd.port.mk
===================================================================
RCS file: /usr/home/nbm/ncvs/ports/Mk/bsd.port.mk,v
retrieving revision 1.316
diff -u -r1.316 bsd.port.mk
--- bsd.port.mk	1999/08/22 11:20:25	1.316
+++ bsd.port.mk	1999/08/24 11:51:05
@@ -2568,6 +2568,12 @@
 		if [ -f ${PKGMESSAGE} ]; then \
 			${CP} ${PKGMESSAGE} ${PKG_DBDIR}/${PKGNAME}/+DISPLAY; \
 		fi; \
+		if [ -n "${RECORD_USER}" ]; then \
+			echo ${USER} > ${PKG_DBDIR}/${PKGNAME}/+WHOM; \
+		fi; \
+		if [ -n "${RECORD_DATE}" ]; then \
+			date > ${PKG_DBDIR}/${PKGNAME}/+WHEN; \
+		fi; \
 		for dep in `${MAKE} ${__softMAKEFLAGS} package-depends ECHO_MSG=/usr/bin/true | sort -u`; do \
 			if [ -d ${PKG_DBDIR}/$$dep ]; then \
 				if ! ${GREP} ^${PKGNAME}$$ ${PKG_DBDIR}/$$dep/+REQUIRED_BY \

In any case, I think it adds some usefulness that may positively affect
some environments (especially student servers with multiple active
sysadmin).

Neil
-- 
Neil Blakey-Milner
nbm@rucus.ru.ac.za


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990824144734.A73970>