Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Jan 2017 03:08:21 +0000 (UTC)
From:      Ngie Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r311739 - in head/usr.sbin/bsnmpd/modules: snmp_atm snmp_hast snmp_hostres snmp_mibII snmp_target snmp_usm snmp_vacm
Message-ID:  <201701090308.v0938L66035365@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ngie
Date: Mon Jan  9 03:08:21 2017
New Revision: 311739
URL: https://svnweb.freebsd.org/changeset/base/311739

Log:
  Use SRCTOP instead of spelling out the full path with .CURDIR
  
  This helps condense the output for CFLAGS and .PATH
  
  MFC after:	3 days

Modified:
  head/usr.sbin/bsnmpd/modules/snmp_atm/Makefile
  head/usr.sbin/bsnmpd/modules/snmp_hast/Makefile
  head/usr.sbin/bsnmpd/modules/snmp_hostres/Makefile
  head/usr.sbin/bsnmpd/modules/snmp_mibII/Makefile
  head/usr.sbin/bsnmpd/modules/snmp_target/Makefile
  head/usr.sbin/bsnmpd/modules/snmp_usm/Makefile
  head/usr.sbin/bsnmpd/modules/snmp_vacm/Makefile

Modified: head/usr.sbin/bsnmpd/modules/snmp_atm/Makefile
==============================================================================
--- head/usr.sbin/bsnmpd/modules/snmp_atm/Makefile	Mon Jan  9 02:48:08 2017	(r311738)
+++ head/usr.sbin/bsnmpd/modules/snmp_atm/Makefile	Mon Jan  9 03:08:21 2017	(r311739)
@@ -2,7 +2,7 @@
 #
 # Author: Harti Brandt <harti@freebsd.org>
 
-CONTRIB= ${.CURDIR}/../../../../contrib/ngatm
+CONTRIB= ${SRCTOP}/contrib/ngatm
 .PATH: ${CONTRIB}/snmp_atm
 
 MOD=	atm

Modified: head/usr.sbin/bsnmpd/modules/snmp_hast/Makefile
==============================================================================
--- head/usr.sbin/bsnmpd/modules/snmp_hast/Makefile	Mon Jan  9 02:48:08 2017	(r311738)
+++ head/usr.sbin/bsnmpd/modules/snmp_hast/Makefile	Mon Jan  9 03:08:21 2017	(r311739)
@@ -2,7 +2,7 @@
 
 .include <src.opts.mk>
 
-.PATH:	${.CURDIR}/../../../../sbin/hastd
+.PATH:	${SRCTOP}/sbin/hastd
 
 MOD=	hast
 SRCS=	ebuf.c
@@ -18,7 +18,7 @@ MAN=	snmp_hast.3
 NO_WFORMAT=
 NO_WCAST_ALIGN=
 NO_WMISSING_VARIABLE_DECLARATIONS=
-CFLAGS+=-I${.CURDIR}/../../../../sbin/hastd
+CFLAGS+=-I${SRCTOP}/sbin/hastd
 CFLAGS+=-DHAVE_CAPSICUM
 CFLAGS+=-DINET
 .if ${MK_INET6_SUPPORT} != "no"

Modified: head/usr.sbin/bsnmpd/modules/snmp_hostres/Makefile
==============================================================================
--- head/usr.sbin/bsnmpd/modules/snmp_hostres/Makefile	Mon Jan  9 02:48:08 2017	(r311738)
+++ head/usr.sbin/bsnmpd/modules/snmp_hostres/Makefile	Mon Jan  9 03:08:21 2017	(r311739)
@@ -28,7 +28,7 @@
 # $FreeBSD$
 #
 
-LPRSRC=	${.CURDIR}/../../../lpr/common_source
+LPRSRC=	${SRCTOP}/usr.sbin/lpr/common_source
 .PATH: ${LPRSRC}
 
 MOD=	hostres

Modified: head/usr.sbin/bsnmpd/modules/snmp_mibII/Makefile
==============================================================================
--- head/usr.sbin/bsnmpd/modules/snmp_mibII/Makefile	Mon Jan  9 02:48:08 2017	(r311738)
+++ head/usr.sbin/bsnmpd/modules/snmp_mibII/Makefile	Mon Jan  9 03:08:21 2017	(r311739)
@@ -2,7 +2,7 @@
 #
 # Author: Harti Brandt <harti@freebsd.org>
 
-CONTRIB= ${.CURDIR}/../../../../contrib/bsnmp
+CONTRIB= ${SRCTOP}/contrib/bsnmp
 .PATH: ${CONTRIB}/snmp_mibII
 
 MOD=	mibII

Modified: head/usr.sbin/bsnmpd/modules/snmp_target/Makefile
==============================================================================
--- head/usr.sbin/bsnmpd/modules/snmp_target/Makefile	Mon Jan  9 02:48:08 2017	(r311738)
+++ head/usr.sbin/bsnmpd/modules/snmp_target/Makefile	Mon Jan  9 03:08:21 2017	(r311739)
@@ -2,7 +2,7 @@
 #
 # Author: Shteryana Shopova <syrinx@freebsd.org>
 
-CONTRIB= ${.CURDIR}/../../../../contrib/bsnmp
+CONTRIB= ${SRCTOP}/contrib/bsnmp
 .PATH: ${CONTRIB}/snmp_target
 
 MOD=	target

Modified: head/usr.sbin/bsnmpd/modules/snmp_usm/Makefile
==============================================================================
--- head/usr.sbin/bsnmpd/modules/snmp_usm/Makefile	Mon Jan  9 02:48:08 2017	(r311738)
+++ head/usr.sbin/bsnmpd/modules/snmp_usm/Makefile	Mon Jan  9 03:08:21 2017	(r311739)
@@ -2,7 +2,7 @@
 #
 # Author: Shteryana Shopova <syrinx@freebsd.org>
 
-CONTRIB= ${.CURDIR}/../../../../contrib/bsnmp
+CONTRIB= ${SRCTOP}/contrib/bsnmp
 .PATH: ${CONTRIB}/snmp_usm
 
 MOD=	usm

Modified: head/usr.sbin/bsnmpd/modules/snmp_vacm/Makefile
==============================================================================
--- head/usr.sbin/bsnmpd/modules/snmp_vacm/Makefile	Mon Jan  9 02:48:08 2017	(r311738)
+++ head/usr.sbin/bsnmpd/modules/snmp_vacm/Makefile	Mon Jan  9 03:08:21 2017	(r311739)
@@ -2,7 +2,7 @@
 #
 # Author: Shteryana Shopova <syrinx@freebsd.org>
 
-CONTRIB= ${.CURDIR}/../../../../contrib/bsnmp
+CONTRIB= ${SRCTOP}/contrib/bsnmp
 .PATH: ${CONTRIB}/snmp_vacm
 
 MOD=	vacm



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