ports/168278: [PATCH] net-mgmt/nagios-pf-plugin remove obsolete OSVERSION check
Chris Rees
crees at FreeBSD.org
Wed May 23 20:10:07 UTC 2012
>Number: 168278
>Category: ports
>Synopsis: [PATCH] net-mgmt/nagios-pf-plugin remove obsolete OSVERSION check
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed May 23 20:10:06 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Chris Rees
>Release: FreeBSD 9.0-STABLE i386
>Organization:
>Environment:
System: FreeBSD freefall.freebsd.org 9.0-STABLE FreeBSD 9.0-STABLE #6 r235139: Tue May 8 21:19:03 UTC 2012 simon at freefall.freebsd.org:/usr/obj/usr/src/sys/FREEFALL i386
>Description:
FreeBSD ports tree doesn't support <7.x, so this check is unnecessary.
Also, creating a directory under PREFIX is a privileged operation, so pre-su-install must be used.
>How-To-Repeat:
>Fix:
--- net-mgmt-nagios-pf-plugin.diff begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/net-mgmt/nagios-pf-plugin/Makefile,v
retrieving revision 1.3
diff -u -r1.3 Makefile
--- Makefile 13 Feb 2010 11:28:36 -0000 1.3
+++ Makefile 23 May 2012 19:54:46 -0000
@@ -23,12 +23,6 @@
SUB_FILES= pkg-message
SUB_LIST= NAGIOS_PLUGIN_DIR=${NAGIOS_PLUGIN_DIR}
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} < 601000
-IGNORE= requires FreeBSD 6.1 or later
-.endif
-
pre-everything::
@${ECHO_MSG} ""
@${ECHO_MSG} "You can redefine the following additional variables:"
@@ -45,10 +39,10 @@
"s,/usr/local/libexec/nagios,${PREFIX}/${NAGIOS_PLUGIN_DIR}," \
${WRKSRC}/Makefile
-pre-install:
+pre-su-install:
@${MKDIR} ${PREFIX}/${NAGIOS_PLUGIN_DIR}
post-install:
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
--- net-mgmt-nagios-pf-plugin.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list