Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Aug 2014 18:13:36 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 192878] comms/pr [maintainer] new source location
Message-ID:  <bug-192878-13-nvwzCP5Erj@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-192878-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-192878-13@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192878

--- Comment #4 from John Marino <marino@FreeBSD.org> ---
In my 10-second review, I only spotted one set of things I'd change (besides
the USES= not be 2-tabbed)

+do-install:
+.for P in ${PROGRAMS}
+    ${CP} ${WRKSRC}/sbin/$P ${STAGEDIR}${PREFIX}/sbin
+.endfor
+.for C in ${ETCFILES} 
+    ${CP} ${WRKSRC}/etc/$C ${STAGEDIR}${PREFIX}/etc
+.endfor
+.for R in ${RCDFILES}
+    ${CP} ${WRKSRC}/etc/rc.d/$R ${STAGEDIR}${PREFIX}/etc/rc.d
+.endfor
+
+.for D in ${DOCFILES}
+    @${MKDIR} ${STAGEDIR}${DOCSDIR}
+    ${INSTALL_DATA} ${WRKSRC}/share/doc/pr/$D ${STAGEDIR}${DOCSDIR}
+.endfor


problem 1) You use $CP instead of $INSTALL_ macros

problen 2) See the top 3 loops?  
The don't need to exist at all.  For example, the first one should be:
(cd ${WRKSRC}/sbin && ${INSTALL_PROGRAM} ${PROGRAMS} ${STAGEDIR}${PREFIX}

problem 3)
you create the DOCSDIR directory once per file.  It's inside the loop!!
and you don't need a loop either (see problem 2)
You need to check ${PORT_OPTIONS:MDOC}


also, portlint did not complain about ${CP}?  or you didn't run portlint?

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-192878-13-nvwzCP5Erj>