Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Apr 2013 14:36:36 -0700 (PDT)
From:      Craig Leres <leres@ee.lbl.gov>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        leres@ee.lbl.gov
Subject:   ports/177675: [PATCH] net-mgmt/argus3-clients: Fix MANPAGES=no
Message-ID:  <201304062136.r36Laal8090307@fun.ee.lbl.gov>
Resent-Message-ID: <201304062140.r36Le0d3086638@freefall.freebsd.org>

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

>Number:         177675
>Category:       ports
>Synopsis:       [PATCH] net-mgmt/argus3-clients: Fix MANPAGES=no
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Apr 06 21:40:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Craig Leres
>Release:        FreeBSD 8.2-RELEASE amd64
>Organization:
Lawrence Berkeley National Laboratory
>Environment:
FreeBSD bob2.lbl.gov 8.2-RELEASE-p9 FreeBSD 8.2-RELEASE-p9 #0: Mon Jun 11 23:00:11 UTC 2012     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
	Turning off the MANPAGES option generates lots of errors
	on install and fatal errors when attempting to create a
	package.

>How-To-Repeat:
	(With MANPAGES disasbled)

	# cd /home/u2/FreeBSD-current/ports/net-mgmt/argus3-clients && make install
	[...]
	===>   Compressing manual pages for argus-clients-sasl-3.0.6.2
	gzip: can't stat: /usr/local/man/man1/rasql.1: No such file or directory
	gzip: can't stat: /usr/local/man/man1/rasqlinsert.1: No such file or directory
	[...]
	# make package
	bob2 194 # make package
	===>  Building package for argus-clients-sasl-3.0.6.2
	tar: man/man1/rasql.1.gz: Cannot stat: No such file or directory
	tar: man/man1/rasqlinsert.1.gz: Cannot stat: No such file or directory
	[...]
	pkg_create: make_dist: tar command failed with code 256
	*** Error code 1

>Fix:
	Wrap remaining MAN1, MAN5 and MAN8 assignments with a
	".if ${PORT_OPTIONS:MMANPAGES}" test; see attached patch.

--- patch.txt begins here ---
--- Makefile.orig	2013-03-12 05:30:14.000000000 -0700
+++ Makefile	2013-04-06 14:26:54.000000000 -0700
@@ -3,6 +3,7 @@
 
 PORTNAME=	argus-clients
 PORTVERSION=	3.0.6.2
+PORTREVISION=	1
 CATEGORIES=	net-mgmt security
 MASTER_SITES=	http://qosient.com/argus/src/ \
 		ftp://qosient.com/pub/argus/src/
@@ -33,7 +34,9 @@
 .if ${PORT_OPTIONS:MMYSQL}
 USE_MYSQL=	yes
 PLIST_SUB+=	MYSQL=""
+.if ${PORT_OPTIONS:MMANPAGES}
 MAN1+=		rasql.1 rasqlinsert.1 rasqltimeindex.1
+.endif
 .else
 PLIST_SUB+=	MYSQL="@comment "
 .endif
@@ -43,11 +46,13 @@
 CONFIGURE_ARGS+=	--with-GeoIP=${LOCALBASE}
 .endif
 
+.if ${PORT_OPTIONS:MMANPAGES}
 MAN1+=	ra.1 rabins.1 racluster.1 raconvert.1 racount.1 radump.1 raevent.1 \
 	rafilteraddr.1 ragraph.1 ragrep.1 rahisto.1 ralabel.1 ranonymize.1 \
 	rapath.1 rapolicy.1 rasort.1 rasplit.1 rastream.1 rastrip.1
 MAN5=	racluster.5 radium.conf.5 ralabel.conf.5 ranonymize.5 rarc.5
 MAN8=	radium.8
+.endif
 
 do-install:
 .for i in ra rabins racluster raconvert racount radium radump raevent \
--- patch.txt ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



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