[40251] trunk/dports/news

raimue at macports.org raimue at macports.org
Sat Sep 27 01:25:39 PDT 2008


Revision: 40251
          http://trac.macports.org/changeset/40251
Author:   raimue at macports.org
Date:     2008-09-27 01:25:39 -0700 (Sat, 27 Sep 2008)
Log Message:
-----------
news/leafnode:
New port: leafnode, a store & forward NNTP proxy
Closes #16548

Added Paths:
-----------
    trunk/dports/news/leafnode/
    trunk/dports/news/leafnode/Portfile
    trunk/dports/news/leafnode/files/
    trunk/dports/news/leafnode/files/Restart_Fetchnews.command.in
    trunk/dports/news/leafnode/files/Restart_Leafnode.command.in
    trunk/dports/news/leafnode/files/Restart_Texpire.command.in
    trunk/dports/news/leafnode/files/config
    trunk/dports/news/leafnode/files/dummy
    trunk/dports/news/leafnode/files/filters
    trunk/dports/news/leafnode/files/org.macports.fetchnews.plist.in
    trunk/dports/news/leafnode/files/org.macports.leafnode.plist.in
    trunk/dports/news/leafnode/files/org.macports.texpire.plist.in

Added: trunk/dports/news/leafnode/Portfile
===================================================================
--- trunk/dports/news/leafnode/Portfile	                        (rev 0)
+++ trunk/dports/news/leafnode/Portfile	2008-09-27 08:25:39 UTC (rev 40251)
@@ -0,0 +1,111 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4
+# $Id$
+
+PortSystem 1.0
+
+name				leafnode
+version				1.11.6
+revision			4
+categories			news
+platforms			darwin
+maintainers			me.com:krischik
+description			Leafnode is a store & forward NNTP proxy
+long_description	Leafnode is a software package that implements a store	\
+					& forward NNTP proxy (client and server) that supportis	\
+					TCP connections across IPv4 and IPv6. It can be used to	\
+					give a regular newsreader off-line functionality, merge	\
+					news articles from several upstream newsservers for		\
+					newsreaders that only support one server well and avoid	\
+					duplicate news download for a small LAN with multiple	\
+					users reading news.
+
+homepage			http://leafnode.sourceforge.net/
+master_sites		sourceforge
+
+checksums			md5 5a083968dbacc3d6f6d1013241c23e39
+
+depends_lib			path:${prefix}/bin/zsh:zsh
+
+use_bzip2			yes
+
+configure.args		--mandir='\${prefix}/share/man'			\
+					--sysconfdir='\${prefix}/etc/${name}'	\
+					--with-user=_news						\
+					--with-group=_news
+
+configure.cxxflags-append	"-I${prefix}/include"
+
+destroot.destdir	prefix=${destroot}${prefix}
+
+# Can be removed once MacPorts 1.7.0 is released
+if {![info exists applications_dir]} {
+    set applications_dir /Applications/MacPorts
+}
+
+set launch_dir /etc/LaunchDaemons/org.macports.${name}
+
+pre-destroot {
+	addgroup	_news			realname="NEWS Server group"
+	adduser		_news gid=_news realname="NEWS Server user"
+}
+
+post-destroot {
+	xinstall -o _news -g _news	-m 750 -d ${destroot}${prefix}/etc/${name}
+	xinstall -o root  -g wheel	-m 750 -d ${destroot}${prefix}${launch_dir}
+	xinstall					-m 755 -d ${destroot}${prefix}/var
+	xinstall					-m 755 -d ${destroot}${prefix}/var/spool
+	xinstall -o _news -g _news	-m 755 -d ${destroot}${prefix}/var/spool/news
+	xinstall					-m 750 -d ${destroot}/${applications_dir}/Utilities
+
+	xinstall -o _news -g _news -m 640											\
+		-W ${filespath}															\
+		config																	\
+		filters																	\
+		${destroot}${prefix}/etc/${name}
+
+	xinstall -o _news -g _news -m 644											\
+		-W ${filespath}															\
+		dummy																	\
+		${destroot}${prefix}/var/spool/news
+
+	xinstall -o root -g wheel -m 644											\
+		-W ${filespath}															\
+		org.macports.fetchnews.plist.in											\
+		${destroot}${prefix}${launch_dir}/org.macports.fetchnews.plist
+	xinstall -o root -g wheel -m 644											\
+		-W ${filespath}															\
+		org.macports.leafnode.plist.in											\
+		${destroot}${prefix}${launch_dir}/org.macports.leafnode.plist
+	xinstall -o root -g wheel -m 644											\
+		-W ${filespath}															\
+		org.macports.texpire.plist.in											\
+		${destroot}${prefix}${launch_dir}/org.macports.texpire.plist
+
+	xinstall -m 755																\
+		-W ${filespath}															\
+		Restart_Fetchnews.command.in											\
+		${destroot}/${applications_dir}/Utilities/Restart_Fetchnews.command
+	xinstall -m 755																\
+		-W ${filespath}															\
+		Restart_Leafnode.command.in												\
+		${destroot}/${applications_dir}/Utilities/Restart_Leafnode.command
+	xinstall -m 755																\
+		-W ${filespath}															\
+		Restart_Texpire.command.in												\
+		${destroot}/${applications_dir}/Utilities/Restart_Texpire.command
+
+	reinplace																	\
+		s|@PREFIX@|${prefix}|g													\
+		${destroot}${prefix}${launch_dir}/org.macports.fetchnews.plist			\
+		${destroot}${prefix}${launch_dir}/org.macports.leafnode.plist			\
+		${destroot}${prefix}${launch_dir}/org.macports.texpire.plist
+	reinplace																	\
+		s|@PREFIX@|${prefix}|g													\
+		${destroot}/${applications_dir}/Utilities/Restart_Fetchnews.command		\
+		${destroot}/${applications_dir}/Utilities/Restart_Leafnode.command		\
+		${destroot}/${applications_dir}/Utilities/Restart_Texpire.command
+}
+
+############################################################ {{{1 ###########
+# vim: set nowrap tabstop=4 shiftwidth=4 softtabstop=4 noexpandtab :
+# vim: set textwidth=0 filetype=tcl foldmethod=marker nospell :


Property changes on: trunk/dports/news/leafnode/Portfile
___________________________________________________________________
Added: svn:executable
   + *
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/news/leafnode/files/Restart_Fetchnews.command.in
===================================================================
--- trunk/dports/news/leafnode/files/Restart_Fetchnews.command.in	                        (rev 0)
+++ trunk/dports/news/leafnode/files/Restart_Fetchnews.command.in	2008-09-27 08:25:39 UTC (rev 40251)
@@ -0,0 +1,26 @@
+#!@PREFIX@/bin/zsh
+############################################################## {{{1 ##########
+#   $Author: krischik at users.sourceforge.net $
+#   $Revision: 19 $
+#   $Date: 2008-09-25 19:24:17 +0200 (Do, 25 Sep 2008) $
+#   $HeadURL: https://macport-staging.googlecode.com/svn/trunk/ports/news/leafnode/files/Restart_Fetchnews.command.in $
+############################################################## }}}1 ##########
+
+setopt X_Trace;
+
+if test "${USER}" = "root"; then
+    if test ! -L /Library/LaunchDaemons/org.macports.fetchnews.plist; then
+	ln -s											\
+	    @PREFIX@/etc/LaunchDaemons/org.macports.leafnode/org.macports.fetchnews.plist	\
+	    /Library/LaunchDaemons/org.macports.fetchnews.plist					;
+    fi;
+
+    launchctl unload -w /Library/LaunchDaemons/org.macports.fetchnews.plist
+    launchctl load   -w /Library/LaunchDaemons/org.macports.fetchnews.plist
+else
+    sudo ${0};
+fi;
+
+############################################################ {{{1 ###########
+# vim: set nowrap tabstop=8 shiftwidth=4 softtabstop=4 noexpandtab :
+# vim: set textwidth=0 filetype=zsh foldmethod=marker nospell :


Property changes on: trunk/dports/news/leafnode/files/Restart_Fetchnews.command.in
___________________________________________________________________
Added: svn:executable
   + *

Added: trunk/dports/news/leafnode/files/Restart_Leafnode.command.in
===================================================================
--- trunk/dports/news/leafnode/files/Restart_Leafnode.command.in	                        (rev 0)
+++ trunk/dports/news/leafnode/files/Restart_Leafnode.command.in	2008-09-27 08:25:39 UTC (rev 40251)
@@ -0,0 +1,26 @@
+#!@PREFIX@/bin/zsh
+############################################################## {{{1 ##########
+#   $Author: krischik at users.sourceforge.net $
+#   $Revision: 19 $
+#   $Date: 2008-09-25 19:24:17 +0200 (Do, 25 Sep 2008) $
+#   $HeadURL: https://macport-staging.googlecode.com/svn/trunk/ports/news/leafnode/files/Restart_Leafnode.command.in $
+############################################################## }}}1 ##########
+
+setopt X_Trace;
+
+if test "${USER}" = "root"; then
+    if test ! -L /Library/LaunchDaemons/org.macports.leafnode.plist; then
+        ln -s										    \
+	   @PREFIX@/etc/LaunchDaemons/org.macports.leafnode/org.macports.leafnode.plist   \
+	    /Library/LaunchDaemons/org.macports.leafnode.plist				    ;
+    fi;
+    
+    launchctl unload -w /Library/LaunchDaemons/org.macports.leafnode.plist
+    launchctl load   -w /Library/LaunchDaemons/org.macports.leafnode.plist
+else
+    sudo ${0};
+fi;
+
+############################################################ {{{1 ###########
+# vim: set nowrap tabstop=8 shiftwidth=4 softtabstop=4 noexpandtab :
+# vim: set textwidth=0 filetype=zsh foldmethod=marker nospell :


Property changes on: trunk/dports/news/leafnode/files/Restart_Leafnode.command.in
___________________________________________________________________
Added: svn:executable
   + *

Added: trunk/dports/news/leafnode/files/Restart_Texpire.command.in
===================================================================
--- trunk/dports/news/leafnode/files/Restart_Texpire.command.in	                        (rev 0)
+++ trunk/dports/news/leafnode/files/Restart_Texpire.command.in	2008-09-27 08:25:39 UTC (rev 40251)
@@ -0,0 +1,26 @@
+#!@PREFIX@/bin/zsh
+############################################################## {{{1 ##########
+#   $Author: krischik at users.sourceforge.net $
+#   $Revision: 19 $
+#   $Date: 2008-09-25 19:24:17 +0200 (Do, 25 Sep 2008) $
+#   $HeadURL: https://macport-staging.googlecode.com/svn/trunk/ports/news/leafnode/files/Restart_Texpire.command.in $
+############################################################## }}}1 ##########
+
+setopt X_Trace;
+
+if test "${USER}" = "root"; then
+    if test ! -L /Library/LaunchDaemons/org.macports.texpire.plist; then
+	ln -s										    \
+	    @PREFIX@/etc/LaunchDaemons/org.macports.leafnode/org.macports.texpire.plist   \
+	    /Library/LaunchDaemons/org.macports.texpire.plist				    ;
+    fi;
+
+    launchctl unload -w	/Library/LaunchDaemons/org.macports.texpire.plist
+    launchctl load   -w	/Library/LaunchDaemons/org.macports.texpire.plist
+else
+    sudo ${0};
+fi;
+
+############################################################ {{{1 ###########
+# vim: set nowrap tabstop=8 shiftwidth=4 softtabstop=4 noexpandtab :
+# vim: set textwidth=0 filetype=zsh foldmethod=marker nospell :


Property changes on: trunk/dports/news/leafnode/files/Restart_Texpire.command.in
___________________________________________________________________
Added: svn:executable
   + *

Added: trunk/dports/news/leafnode/files/config
===================================================================
--- trunk/dports/news/leafnode/files/config	                        (rev 0)
+++ trunk/dports/news/leafnode/files/config	2008-09-27 08:25:39 UTC (rev 40251)
@@ -0,0 +1,277 @@
+## Unread articles will be deleted after this many days if
+## you don't define special expire times. Mandatory.
+expire = 20
+
+## This is the NNTP server leafnode fetches its news from.
+## You need read and post access to it. Mandatory.
+server = news.example.org
+
+##
+## All the following parameters are optional
+##
+
+## Important and recommended setting:
+## Fetch only a few articles when we subscribe a new newsgroup. The
+## default is to fetch all articles.
+## As leafnode forgets the article numbers of its upstream server when
+## a group is marked as uninteresting, and later marked interesting
+## again, you may end up downloading ALL articles from the upstream 
+## in that group. So uncomment and adjust this line:
+# initialfetch = 100
+
+## Debugging setting:
+##
+## This MUST be accompanied by syslog.conf changes!
+## ------------------------------------------------
+## Make sure you've also read the TROUBLESHOOTING section in README.
+##
+## The higher, the more output will be logged - note the debugging
+## output is copious in any case, so leave this at 0 for normal use,
+## and set to 1, 2 or 3 only for debugging.
+# debugmode = 3
+
+## I have free access to my news server. If you don't have, comment out
+## the following two lines and change them accordingly.
+# username = gulbrandsen
+# password = secret
+
+## By default, leafnode only serves connections from addresses in the
+## local networks and drops those from outside. An IPv4 address is
+## considered local if it is within the networks (IP/netmask) of the local
+## interfaces. An IPv6 address is considered local if it is site-local,
+## link-local or the loopback address (::1).
+##
+## You can enable remote access by doing:
+## 1. enabling access for single static IPs (or subnetworks) through
+##    your super server (xinetd, tcpserver) or, if the service is wrapped by
+##    tcpd, hosts.allow/hosts.deny configuration,
+## 2. disabling access for all other hosts (default to deny),
+## 3. testing that "deny" works, to avoid abuse of your server,
+## 4. uncommenting this option, capitalizing the "strangers" subword and
+##    setting the value to 42.
+##
+## WARNING: ENABLING THIS OPTION IS DANGEROUS. YOU AGREE TO BE LIABLE
+## FOR ALL ABUSE OF YOUR SERVER WHEN THIS OPTION IS ENABLED.
+## IF ANYTHING ABOUT ITEMS 1. TO 3. ABOVE IS UNCLEAR, DO NOT ENABLE THIS!
+## IF YOU ARE NOT FAMILIAR WITH ACCESS CONTROL, OR YOUR CLIENTS ARE ON
+## DYNAMIC IPS, YOU MUST NOT ENABLE THIS. (You can use other, authenticated,
+## methods of access instead, for instance SSH tunnels.)
+##
+# allowstrangers = 0
+
+## Standard news servers run on port 119, reserved for NNTP, so that's
+## the default port fetchnews wants to connect to. If your ISP's news
+## server (or other "upstream") does not listen on this standard port,
+## you can set the "port" option. Note that it is only relevant for
+## fetchnews, for leafnode, set the port in your inetd.conf, xinetd.conf
+## file or tcpsvd/tcpserver command line, whatever is relevant for your
+## system. Leafnode does not currently support SSL.
+## Give "port" a numeric value, example:
+# port = 9119
+
+## If you want to guarantee that the stdout/stderr are line buffered
+## (GNU libc sets them to full buffering if they are redirected to
+## files), then set this:
+# linebuffer = 1
+
+## This is another news server which stores some groups that are not
+## available on the first one. You can define username, password and port
+## for each server separately.
+# server = specific.newsgroups.example.com
+# username = xenu
+# password = secret
+
+## This is a news server which does not understand the 
+## "LIST NEWSGROUP news.group" command. For this reason, we don't try to
+## download newsgroups descriptions when getting new newsgroups. This is
+## achieved by putting "nodesc = 1" somewhere behind the server
+## line.
+# server = broken.upstream.example.org
+# nodesc = 1
+
+## Here we have another news server which has a very slow connection. For
+## that reason, we wait a full minute before we give up trying to connect.
+## The default is 10 seconds.
+# server = really.slow.example.org
+# timeout = 60
+
+## Disable the updating of the active file unless specifically requested
+## in order to minimise network usage as much as possible.  The active
+## file can be updated manually with the "-f" option to fetchnews.
+# server = even.slower.example.com
+# noactive = 1
+
+## And this is a news server you only want to pull news from, but never
+## post to. You can also use this as a workaround if you do not have posting
+## permission on the server while it still greets you with a 200 code.
+## The default is: nopost = 0
+# server = lurk-only.example.com
+# nopost = 1
+
+## And this is a news server you only want to post to, but never
+## fetch messages from. If set, noactive = 1 is also assumed.
+## The default is: noread = 0
+# server = post-only.example.com
+# noread = 1
+
+## And this is a news server with broken XOVER. Forbid XOVER,
+## leafnode will use XHDR. XHDR may be slower or faster than XOVER,
+## depending how many of the maxlines/minlines, maxbytes, maxage
+## and similar options.
+## The default is: noxover = 0
+# server = post-only.example.com
+# noxover = 1
+
+## The post_anygroup parameter affects posting and makes leafnode skip
+## the check if the newsgroup is carried by the respective server.
+## Use this on servers that allow only posting, but no "GROUP" commands.
+## Note: do not enable unless you know you may post to that server, your
+## postings might end up in the failed.postings directory otherwise.
+# server = post-only.example.com
+# post_anygroup = 1
+
+## This shows how a server is configured that only has specific news
+## groups. Note that this parameter is a PCRE, not a wildmat! See
+## pcre(3), pcrepattern(3) or pcre(7), depending on your PCRE version.
+## IMPORTANT: you must run fetchnews -f to make changes to this
+## option effective.
+# server = cnews.corel.com
+# only_groups_pcre = corel\.
+
+## Another option related to and depending on this only_groups_pcre option
+## is relevant for posting; if set, ALL groups in a Newsgroups: header
+## of a cross-posting will must match before the article is posted to
+## the server. If unset, ANY group that matches allows the post.
+# only_groups_match_all = 1
+
+## Non-standard expire times (glob(7) wildcard constructs possible)
+#
+# groups too big to hold articles 20 days:
+# groupexpire comp.os.linux.* = 5
+#
+# very interesting, hold articles longer:
+# groupexpire any.local.newsgroup = 100
+# 
+# archive this group (fetchnews uses the global expire to figure the
+# maxage, but texpire will skip it):
+# groupexpire my.archived.group = -1
+
+## Never fetch more than this many articles from one group in one run.
+## Be careful with this; setting it much below 1000 is probably a bad
+## idea.
+# maxfetch = 2000
+
+## If you want to use leafnode like an offline newsreader (e.g. Forte
+## Agent) you can download headers and bodies separately if you set
+## delaybody to 1. In this case, fetch will only download the headers
+## and only when you select an article, it will download the body.
+## This can save a huge amount of bandwith if only few articles are really
+## read from groups with lots of postings.
+## This feature works not very well with Netscape, though (which is not
+## a fault of Leafnode).
+# delaybody = 0
+
+## If you have configured delaybody mode and your newsreader doesn't
+## cope with articles changing their numbers but not their Message-ID
+## such as Knode, then try setting this switch to 1, which
+## will make fetchnews keep the article number.
+## You'll have to switch the article body cache off though in your
+## newsreader.
+# delaybody_in_situ = 0
+
+## To avoid spam, you can select the maximum number of crosspostings
+## that are allowed in incoming postings. Setting this below 5 is
+## probably a bad idea. The default is unlimited crossposting.
+# maxcrosspost = 5
+
+## If you suffer from repeatedly receiving old postings (this happens
+## sometimes when an upstream server goes into hiccup mode) you can
+## refuse to receive them with the parameter "maxage" which tells the
+## maximum allowed age of an article in days. A value of 0 indicates that
+## no checking should be performed. The default maxage is 10 days.
+## WARNING: maxage can be overridden by expire! See the clamp_maxage
+## parameter below.
+# maxage = 10
+
+## By default, maxage is limited to groupexpire (if applicable) or
+## expire (otherwise). On some rare occasions, this limit may be
+## undesirable. To avoid this maxage manipulation, uncomment this line:
+# clamp_maxage = 0
+
+## maxlines will make fetch reject postings that are longer than a certain
+## amount of lines.
+# maxlines = 100
+
+## minlines will make fetch reject postings that are shorter than a certain
+## amount of lines.
+# minlines = 2
+
+## maxbytes will make fetch reject postings that are larger
+# maxbytes = 50000
+
+## timeout_short determines how many days fetch gets a newsgroup which
+## has been accidentally opened. The default is two days.
+# timeout_short = 1
+
+## timeout_long determines how many days fetch will wait before not getting
+## an unread newsgroup any more. The default is seven days.
+# timeout_long = 6
+
+## timeout_active determines how many days fetch will wait before re-reading
+## the whole active file. The default is 90 days.
+# timeout_active = 365
+
+## timeout_client determines how many seconds of inactivity to allow before
+## a client is forcibly disconnected. The default is 15 mins (900s). Optional.
+# timeout_client = 900
+
+## timeout_fetchnews determines how many seconds fetchnews will wait for
+## a server reply before assuming the server has become wedged.
+## The default is 5 mins (300s). Optional.
+# timeout_fetchnews = 300
+
+## timeout_lock determines how long the leafnode programs retry to
+## obtain the lock file. The default is 5 seconds.
+## Note you can use the LN_LOCK_TIMEOUT environment variable to override
+## this.
+# timeout_lock = 900
+
+## If you want to have your newsreader score/kill on Xref: lines, you might
+## want to uncomment this.
+# create_all_links = 1
+
+## If you want to filter out certain regular expressions in the header,
+## create a "filterfile" (how this is done is explained in the README)
+## and set
+# filterfile = /etc/leafnode/filters
+
+## Note that filtering usually means HEAD and BODY are downloaded
+## separately, so fetchnews has to wait for the packets TWICE to travel
+## to the server and back. If you have a fast link with high latencies
+## (for example a DSL line with interleaving or a satellite link), it
+## may be faster to request header and body in a single command and
+## discard the body. Note that the filter applies to the header only in
+## either case because PCRE matching is expensive.
+##
+## If you have one of the high-latency high-throughput links and have
+## enough free traffic left or a flat rate (no per-MByte billing), uncomment
+## this:
+# article_despite_filter = 1
+
+## If your newsreader does not supply a Message-ID for your postings
+## Leafnode will supply one, using the hostname of the machine it is
+## running on.  If this hostname is not suitable, this parameter can be 
+## used to override it.  Do not use a fantasy name, it may interfere with
+## the propagation of your messages.  Most modern newsreaders do provide
+## a Message-ID.
+# hostname = myhost.example.org
+
+## You can also override the From: header address shown in placeholder
+## articles. It should be the news administrator's mail address.
+# newsadmin = postmaster at another.example.org
+
+## If in your local Usenet hierarchy, posting unencoded 8-bit data in
+## headers is condoned, uncomment this option to allow this. 8-bit data
+## in headers is officially illegal, although the header character set
+## may change to UTF-8 soon.
+# allow_8bit_headers = 1

Added: trunk/dports/news/leafnode/files/dummy
===================================================================
--- trunk/dports/news/leafnode/files/dummy	                        (rev 0)
+++ trunk/dports/news/leafnode/files/dummy	2008-09-27 08:25:39 UTC (rev 40251)
@@ -0,0 +1 @@
+Force directory creation

Added: trunk/dports/news/leafnode/files/filters
===================================================================
--- trunk/dports/news/leafnode/files/filters	                        (rev 0)
+++ trunk/dports/news/leafnode/files/filters	2008-09-27 08:25:39 UTC (rev 40251)
@@ -0,0 +1,12 @@
+# Leafnode filter configuration file (see the applyfilter(8) manual page
+# and /usr/share/doc/packages/leafnode/filters.example)
+# 
+# this file contains the set of filtering rules that are applied
+# to the newsspool. Each rule must be on a separate line. Empty lines
+# and comments (marked by a #  at the beginning of the line) are allowed.
+#
+# Each rule is a regular expression. For example, the following set of
+# rules will delete all crosspostings to alt.flame.
+
+# ^Newsgroups:.*[, ]alt.flame$
+# ^Newsgroups:.*[, ]alt.flame,

Added: trunk/dports/news/leafnode/files/org.macports.fetchnews.plist.in
===================================================================
--- trunk/dports/news/leafnode/files/org.macports.fetchnews.plist.in	                        (rev 0)
+++ trunk/dports/news/leafnode/files/org.macports.fetchnews.plist.in	2008-09-27 08:25:39 UTC (rev 40251)
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+	<key>KeepAlive</key>
+	<false/>
+	<key>Label</key>
+	<string>org.macports.fetchnews</string>
+	<key>Program</key>
+	<string>/usr/bin/sudo</string>
+	<key>ProgramArguments</key>
+	<array>
+		<string>/usr/bin/sudo</string>
+		<string>-u</string>
+		<string>_news</string>
+		<string>@PREFIX@/sbin/fetchnews</string>
+	</array>
+	<key>StartInterval</key>
+	<integer>1800</integer>
+	<key>WorkingDirectory</key>
+	<string>@PREFIX@/var/spool/news</string>
+</dict>
+</plist>

Added: trunk/dports/news/leafnode/files/org.macports.leafnode.plist.in
===================================================================
--- trunk/dports/news/leafnode/files/org.macports.leafnode.plist.in	                        (rev 0)
+++ trunk/dports/news/leafnode/files/org.macports.leafnode.plist.in	2008-09-27 08:25:39 UTC (rev 40251)
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+	<dict>
+		<key>OnDemand</key>			<true/>
+		<key>Label</key>			<string>org.macports.leafnode</string>
+		<key>WorkingDirectory</key>	<string>@PREFIX@/var/spool/news</string>
+		<key>Program</key>			<string>/usr/bin/sudo</string>
+		<key>ProgramArguments</key>
+		<array>
+			<string>/usr/bin/sudo</string>
+			<string>-u</string>
+			<string>_news</string>
+			<string>@PREFIX@/sbin/leafnode</string>
+		</array>
+		<key>Sockets</key>
+		<dict>
+			<key>Listeners</key>
+			<dict>
+				<key>SockServiceName</key>	<string>nntp</string>
+			</dict>
+		</dict>
+		<key>inetdCompatibility</key>
+		<dict>
+			<key>Wait</key>	<false/>
+		</dict>
+	</dict>
+</plist>
+
+<!--vim: set nowrap tabstop=4 shiftwidth=4 softtabstop=4 noexpandtab :-->
+<!--vim: set textwidth=0 filetype=xml foldmethod=marker nospell :-->

Added: trunk/dports/news/leafnode/files/org.macports.texpire.plist.in
===================================================================
--- trunk/dports/news/leafnode/files/org.macports.texpire.plist.in	                        (rev 0)
+++ trunk/dports/news/leafnode/files/org.macports.texpire.plist.in	2008-09-27 08:25:39 UTC (rev 40251)
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+	<dict>
+		<key>KeepAlive</key>		<false/>
+		<key>Label</key>			<string>org.macports.texpire</string>
+		<key>StartInterval</key>	<integer>86400</integer>
+		<key>WorkingDirectory</key>	<string>@PREFIX@/var/spool/news</string>
+		<key>Program</key>			<string>/usr/bin/sudo</string>
+		<key>ProgramArguments</key>
+		<array>
+			<string>/usr/bin/sudo</string>
+			<string>-u</string>
+			<string>_news</string>
+			<string>@PREFIX@/sbin/texpire</string>
+		</array>
+	</dict>
+</plist>
+
+<!--vim: set nowrap tabstop=4 shiftwidth=4 softtabstop=4 noexpandtab :-->
+<!--vim: set textwidth=0 filetype=xml foldmethod=marker nospell :-->
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080927/bb8e1f7d/attachment-0001.html 


More information about the macports-changes mailing list