Bug 164456 - New port: sysutils/news Print news items
Summary: New port: sysutils/news Print news items
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Jason Helfman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-24 20:10 UTC by hokan
Modified: 2012-02-16 18:10 UTC (History)
1 user (show)

See Also:


Attachments
news.shar (1.56 KB, text/plain)
2012-01-24 20:10 UTC, hokan
no flags Details
news.shar.txt (1.70 KB, text/plain; charset=us-ascii)
2012-01-24 21:48 UTC, Jason Helfman
no flags Details
news.shar (2.58 KB, application/x-shar)
2012-02-08 23:02 UTC, hokan
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description hokan 2012-01-24 20:10:09 UTC
	Print local system news items
Comment 1 Jason Helfman freebsd_committer freebsd_triage 2012-01-24 20:19:35 UTC
Responsible Changed
From-To: freebsd-ports-bugs->jgh

I'll take it.
Comment 2 Jason Helfman freebsd_committer freebsd_triage 2012-01-24 21:48:14 UTC
Hi Hokan,

I have attached an updated shar for your review, but would like your
comments.

- Used do-install target using ports to handle installation of binary and
  man page

Port version doesn't match the version of the software

===>   Registering installation for news-1.2
[jhelfman@dormouse ~/workspace/ports/sysutils/news]$ news -v
news:  version 1.1

Additionally, when invoking the program after it is installed with any
option other that to get the version, you will receive the following error:

news:  cannot open '/usr/local/news'.

I suggest to add creating this directory when the port is installed in a
pkg-install file, or handle separately in the Makefile, and in a pkg-plist
file.

Is there an official website for this software? If so it should be added to
the pkg-descr.

Also, how do you actually configure this software and run it. I would like
to see what it actually does.

Thanks,
Jason

-- 
Jason Helfman         | FreeBSD Committer
jgh@FreeBSD.org       | http://people.freebsd.org/~jgh
Comment 3 hokan 2012-02-08 23:02:51 UTC
Hello Jason,

Thanks so much for your help and suggestions!

I'm returning a new shar with some changes:

I've fixed a 12-year-old bug with the version number.

I moved the default location of news.  I don't know why the
original author picked /usr/local/news when the UNIX systems
he was emulating have the location at /var/news.  An additional
problem with /usr/local/news I just realized, it that it is used
by some usenet servers.

I created /var/news and populated it with a sample news item.

There is no website for the program.

I've updated the pkg-descr and, with that and the sample news item
it should be more obvious what this thing does.

And just FYI, here's a man page from True64 about a program
with similar function:
http://nixdoc.net/man-pages/Tru64/man1/news.1.html
and for Solaris:
http://manpages.unixforum.co.uk/man-pages/unix/solaris-10-11_06/1/news-man-page.html
and Irix:
http://nixdoc.net/man-pages/IRIX/news.1.html
HP-UX:
http://nixdoc.net/man-pages/hp-ux/man1/news.1.html

It seems to be often the case (and certainly in our case) that
/var/news (or whatever) is replaced by a link to a network mounted
location shared by all local systems.

On Tue, Jan 24, 2012 at 01:48:14PM -0800, Jason Helfman wrote:
> Hi Hokan,
> 
> I have attached an updated shar for your review, but would like your
> comments.
> 
> - Used do-install target using ports to handle installation of binary and
>   man page
> 
> Port version doesn't match the version of the software
> 
> ===>   Registering installation for news-1.2
> [jhelfman@dormouse ~/workspace/ports/sysutils/news]$ news -v
> news:  version 1.1
> 
> Additionally, when invoking the program after it is installed with any
> option other that to get the version, you will receive the following error:
> 
> news:  cannot open '/usr/local/news'.
> 
> I suggest to add creating this directory when the port is installed in a
> pkg-install file, or handle separately in the Makefile, and in a pkg-plist
> file.
> 
> Is there an official website for this software? If so it should be added to
> the pkg-descr.
> 
> Also, how do you actually configure this software and run it. I would like
> to see what it actually does.
Comment 4 dfilter service freebsd_committer freebsd_triage 2012-02-16 18:06:20 UTC
jgh         2012-02-16 18:06:06 UTC

  FreeBSD ports repository

  Modified files:
    sysutils             Makefile 
  Added files:
    sysutils/news        Makefile distinfo pkg-descr pkg-plist 
  Log:
  Add new port: (sysutils/news)
  
  News is used to read and maintain news relevant to a local system.
  Typically it is run from the .login script so it can automatically
  check for any new news items.  If it finds any, it will report,
  "You have news:  item1 item2 etc..."
  
  No website for software
  
  PR: ports/164456
  Submitted by:   Hokan <hokan at me.umn.edu>
  
  Revision  Changes    Path
  1.1381    +1 -0      ports/sysutils/Makefile
  1.1       +42 -0     ports/sysutils/news/Makefile (new)
  1.1       +2 -0      ports/sysutils/news/distinfo (new)
  1.1       +20 -0     ports/sysutils/news/pkg-descr (new)
  1.1       +6 -0      ports/sysutils/news/pkg-plist (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 5 Jason Helfman freebsd_committer freebsd_triage 2012-02-16 18:06:38 UTC
State Changed
From-To: open->closed

New port added, with minor changes. Thanks!