Bug 192720 - [STAGE] irc/undernet-ircu - add staging, take maintainer
Summary: [STAGE] irc/undernet-ircu - add staging, take maintainer
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: John Marino
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-16 22:29 UTC by Daniel Austin
Modified: 2014-08-17 09:39 UTC (History)
1 user (show)

See Also:


Attachments
add staging support (6.98 KB, patch)
2014-08-16 22:29 UTC, Daniel Austin
no flags Details | Diff
Reworks (intermediate?) version (9.62 KB, patch)
2014-08-17 09:18 UTC, John Marino
no flags Details | Diff
Final version (7.33 KB, patch)
2014-08-17 09:30 UTC, John Marino
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Austin 2014-08-16 22:29:23 UTC
Created attachment 145890 [details]
add staging support

Add staging to irc/undernet-ircu and take maintainer.


New files:
  files/pkg-message.in
  pkg-plist


poudriere testport logs at:

http://poudriere.dan.tm/latest-per-pkg/undernet-ircu/2.10.12.14_1/
Comment 1 John Marino freebsd_committer freebsd_triage 2014-08-16 22:31:23 UTC
tested staging PR, moving to patch-ready
Comment 2 John Marino freebsd_committer freebsd_triage 2014-08-17 08:38:18 UTC
You're rapidly gaining a reputation with me, I'll take your PR over somebody elses because of their testing and quality.

- don't forget to run portlint as well.

On this particular PR, you added a pkg-message (good) but didn't remove the post-install echo (redundant, unnecessary).  The new functionality will display pkg-message automatically.  If you look at your logs, you'll see the message twice.
Comment 3 John Marino freebsd_committer freebsd_triage 2014-08-17 08:39:21 UTC
another tip:
If possible, use "\" separators to wrap lines that exceed 80 columns
Comment 4 John Marino freebsd_committer freebsd_triage 2014-08-17 08:42:00 UTC
this port would benefit heavily from the configuration capability of options ( https://www.freebsd.org/doc/en/books/porters-handbook/makefile-options.html )
addendum: actually, these options are backwards!  Rather than "disable" the option, it should be "enable" but set by default.  right?

It makes the makefile a lot shorter and clearer.
Comment 5 Daniel Austin 2014-08-17 08:45:02 UTC
hmmm yes.. give me a little while and i'll drop in a new diff with all the changes and a neater Makefile etc :-)
Comment 6 John Marino freebsd_committer freebsd_triage 2014-08-17 08:46:02 UTC
this one is really obscure: The PROFILE option needs to controlled by the make.conf variable "NO_PROFILE".  It's a global thing and can't shouldn't be controlled by options.
Comment 7 John Marino freebsd_committer freebsd_triage 2014-08-17 08:46:20 UTC
(In reply to Daniel Austin from comment #5)
> hmmm yes.. give me a little while and i'll drop in a new diff with all the
> changes and a neater Makefile etc :-)

No, not yet, I'm working on it myself.
Comment 8 John Marino freebsd_committer freebsd_triage 2014-08-17 08:46:52 UTC
I'll attach makefile before committing
Comment 9 Daniel Austin 2014-08-17 08:48:00 UTC
ok no problem, i'll wait :)
Comment 10 John Marino freebsd_committer freebsd_triage 2014-08-17 08:58:34 UTC
Another tip: rather than three MKDIR commands, use one command with 3 arguments.  I generally wrap to put one directory per line, indented, but that varies.
Comment 11 John Marino freebsd_committer freebsd_triage 2014-08-17 08:59:39 UTC
another tip: eliminate loops when unnecessary, see my DOCS rework when it comes
Comment 12 John Marino freebsd_committer freebsd_triage 2014-08-17 09:06:59 UTC
i just noticed this,
you don't need ${MKDIR} ${STAGEDIR}${DOCSDIR} ${STAGEDIR}${DOCSDIR}/api

MKDIR = mkdir -p so the first one will be created when you create the second one.  So you can omit the first one.
Comment 13 John Marino freebsd_committer freebsd_triage 2014-08-17 09:11:48 UTC
We remove AUTHOR lines from pkg-descr when we find them now.
Comment 14 John Marino freebsd_committer freebsd_triage 2014-08-17 09:18:12 UTC
Created attachment 145906 [details]
Reworks (intermediate?) version

Here's the current version.
However, I personally disagree with creating a pkg-plist version.
I'd rather use PORTDOCS=* which removes all the PORTSDOCS entries from pkg-plist which then makes it so small we can embed it into the Makefile.

What do you think?
Comment 15 John Marino freebsd_committer freebsd_triage 2014-08-17 09:23:03 UTC
actually that made me notice that your PORTEXAMPLES is wrong.  PORTEXAMPLES refers to files specifically located in %%EXAMPLESDIR%% not %%ETCDIR%% so we need to change that.
Comment 16 Daniel Austin 2014-08-17 09:26:57 UTC
Hi John,

I'm happy with that (and your comment about PORTDOCS) - and thanks for the advice.
Comment 17 John Marino freebsd_committer freebsd_triage 2014-08-17 09:30:57 UTC
Created attachment 145909 [details]
Final version

Okay so this is the final version.
Comment 18 commit-hook freebsd_committer freebsd_triage 2014-08-17 09:37:35 UTC
A commit references this bug:

Author: marino
Date: Sun Aug 17 09:36:48 UTC 2014
New revision: 365163
URL: http://svnweb.freebsd.org/changeset/ports/365163

Log:
  Stage irc/undernet-ircu and assign maintainership to submitter

  Big changes include moving ircd from bin to sbin and installing lots
  of documentation.  Also "disable" options were swapped to "enable"
  options and turned on by default.

  PR:		192720
  Submitted by:	Daniel Austin
  Add'l work by:	marino

Changes:
  head/irc/undernet-ircu/Makefile
  head/irc/undernet-ircu/files/pkg-message.in
  head/irc/undernet-ircu/files/undernet.in
  head/irc/undernet-ircu/pkg-descr
Comment 19 John Marino freebsd_committer freebsd_triage 2014-08-17 09:38:38 UTC
Great, hopefully all those tips and reworks were illustrative!
Comment 20 Daniel Austin 2014-08-17 09:39:52 UTC
(In reply to John Marino from comment #19)
> Great, hopefully all those tips and reworks were illustrative!

They were useful, thanks :)