Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Jun 2011 21:50:00 +0200 (CEST)
From:      freebsd@nagilum.org
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        flz@FreeBSD.org
Subject:   ports/158324: net-p2p/rtorrent 0.8.7_2 no option to install (obsolete) manpage
Message-ID:  <20110626195000.F07166807B@cakebox.homeunix.net>
Resent-Message-ID: <201106262000.p5QK015F002668@freefall.freebsd.org>

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

>Number:         158324
>Category:       ports
>Synopsis:       net-p2p/rtorrent 0.8.7_2 no option to install (obsolete) manpage
>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:   Sun Jun 26 20:00:01 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     freebsd@nagilum.org
>Release:        FreeBSD 8.2-STABLE i386
>Organization:
>Environment:
System: FreeBSD cakebox.tis 8.2-STABLE FreeBSD 8.2-STABLE #0: Sun May 29 10:04:47 CEST 2011 root@cakebox.tis:/usr/obj/export/src/sys/net5501 i386


>Description:
        Although obsolete the manpage is still a lot better than nothing at all.
        The authors opinion that it would be better not to install it is
        reflected by the default setting.

>How-To-Repeat:
        install net-p2p/rtorrent 0.8.7_2

>Fix:
        Apply attached patch which adds an option (disabled by default) to
        install the (obsolete) manpage.

--- rtorrent.patch begins here ---
diff -Naur rtorrent.orig/Makefile rtorrent/Makefile
--- rtorrent.orig/Makefile	2011-06-09 19:23:25.000000000 +0200
+++ rtorrent/Makefile	2011-06-26 21:36:59.000000000 +0200
@@ -28,12 +28,17 @@
 CONFIGURE_ENV+= LDFLAGS="${LDFLAGS} -pthread"
 CONFIGURE_ARGS=	--disable-debug
 
+.if defined(WITH_INSTMAN)
+MAN1?=		rtorrent.1
+.endif
+
 SUB_FILES=	pkg-message
 
 PORTDOCS=	README
 
 OPTIONS=	XMLRPC "Compile with xmlrpc-c support" on \
-		IPV6 "Enable IPv6 support" on
+		IPV6 "Enable IPv6 support" on \
+		INSTMAN "Install obsolete manpage" off
 
 .include <bsd.port.pre.mk>
 
@@ -54,6 +59,9 @@
 post-install:
 	${MKDIR} ${EXAMPLESDIR}
 	${INSTALL_DATA} ${WRKSRC}/doc/rtorrent.rc ${EXAMPLESDIR}/
+.if defined(WITH_INSTMAN)
+	${INSTALL_MAN} ${WRKSRC}/doc/rtorrent.1 ${MANPREFIX}/man/man1
+.endif
 .if !defined(NOPORTDOCS)
 	${MKDIR} ${DOCSDIR}
 	${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${DOCSDIR}/
--- rtorrent.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



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