[95557] trunk/dports/news/leafnode
krischik at macports.org
krischik at macports.org
Mon Jul 16 11:25:02 PDT 2012
Revision: 95557
https://trac.macports.org/changeset/95557
Author: krischik at macports.org
Date: 2012-07-16 11:25:02 -0700 (Mon, 16 Jul 2012)
Log Message:
-----------
Improved (Re)Start scripts.
Modified Paths:
--------------
trunk/dports/news/leafnode/Portfile
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/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
Modified: trunk/dports/news/leafnode/Portfile
===================================================================
--- trunk/dports/news/leafnode/Portfile 2012-07-16 17:55:03 UTC (rev 95556)
+++ trunk/dports/news/leafnode/Portfile 2012-07-16 18:25:02 UTC (rev 95557)
@@ -5,10 +5,10 @@
name leafnode
version 1.11.8
-revision 1
+revision 2
categories news
platforms darwin
-maintainers macports.org:krischik
+maintainers openmaintainer 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 \
Modified: trunk/dports/news/leafnode/files/Restart_Fetchnews.command.in
===================================================================
--- trunk/dports/news/leafnode/files/Restart_Fetchnews.command.in 2012-07-16 17:55:03 UTC (rev 95556)
+++ trunk/dports/news/leafnode/files/Restart_Fetchnews.command.in 2012-07-16 18:25:02 UTC (rev 95557)
@@ -15,8 +15,10 @@
/Library/LaunchDaemons/org.macports.fetchnews.plist ;
fi;
+ launchctl stop org.macports.fetchnews
launchctl unload -w /Library/LaunchDaemons/org.macports.fetchnews.plist
launchctl load -w /Library/LaunchDaemons/org.macports.fetchnews.plist
+ launchctl start org.macports.fetchnews
else
sudo ${0};
fi;
Modified: trunk/dports/news/leafnode/files/Restart_Leafnode.command.in
===================================================================
--- trunk/dports/news/leafnode/files/Restart_Leafnode.command.in 2012-07-16 17:55:03 UTC (rev 95556)
+++ trunk/dports/news/leafnode/files/Restart_Leafnode.command.in 2012-07-16 18:25:02 UTC (rev 95557)
@@ -11,12 +11,14 @@
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 \
+ @PREFIX@/etc/LaunchDaemons/org.macports.leafnode/org.macports.leafnode.plist \
/Library/LaunchDaemons/org.macports.leafnode.plist ;
fi;
-
+
+ launchctl stop org.macports.leafnode
launchctl unload -w /Library/LaunchDaemons/org.macports.leafnode.plist
launchctl load -w /Library/LaunchDaemons/org.macports.leafnode.plist
+ launchctl start org.macports.leafnode
else
sudo ${0};
fi;
Modified: trunk/dports/news/leafnode/files/Restart_Texpire.command.in
===================================================================
--- trunk/dports/news/leafnode/files/Restart_Texpire.command.in 2012-07-16 17:55:03 UTC (rev 95556)
+++ trunk/dports/news/leafnode/files/Restart_Texpire.command.in 2012-07-16 18:25:02 UTC (rev 95557)
@@ -15,8 +15,10 @@
/Library/LaunchDaemons/org.macports.texpire.plist ;
fi;
+ launchctl stop org.macports.texpire
launchctl unload -w /Library/LaunchDaemons/org.macports.texpire.plist
launchctl load -w /Library/LaunchDaemons/org.macports.texpire.plist
+ launchctl start org.macports.texpire
else
sudo ${0};
fi;
Modified: trunk/dports/news/leafnode/files/config
===================================================================
--- trunk/dports/news/leafnode/files/config 2012-07-16 17:55:03 UTC (rev 95556)
+++ trunk/dports/news/leafnode/files/config 2012-07-16 18:25:02 UTC (rev 95557)
@@ -15,7 +15,7 @@
## 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
+## again, you may end up downloading ALL articles from the upstream
## in that group. So uncomment and adjust this line:
# initialfetch = 100
@@ -81,7 +81,7 @@
# username = xenu
# password = secret
-## This is a news server which does not understand the
+## 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
@@ -151,7 +151,7 @@
#
# 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
@@ -260,7 +260,7 @@
## 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
+## 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.
Modified: trunk/dports/news/leafnode/files/filters
===================================================================
--- trunk/dports/news/leafnode/files/filters 2012-07-16 17:55:03 UTC (rev 95556)
+++ trunk/dports/news/leafnode/files/filters 2012-07-16 18:25:02 UTC (rev 95557)
@@ -1,6 +1,6 @@
# 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.
Modified: trunk/dports/news/leafnode/files/org.macports.fetchnews.plist.in
===================================================================
--- trunk/dports/news/leafnode/files/org.macports.fetchnews.plist.in 2012-07-16 17:55:03 UTC (rev 95556)
+++ trunk/dports/news/leafnode/files/org.macports.fetchnews.plist.in 2012-07-16 18:25:02 UTC (rev 95557)
@@ -2,22 +2,22 @@
<!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>
+ <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>
Modified: trunk/dports/news/leafnode/files/org.macports.leafnode.plist.in
===================================================================
--- trunk/dports/news/leafnode/files/org.macports.leafnode.plist.in 2012-07-16 17:55:03 UTC (rev 95556)
+++ trunk/dports/news/leafnode/files/org.macports.leafnode.plist.in 2012-07-16 18:25:02 UTC (rev 95557)
@@ -1,31 +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>
+ <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 :-->
+<!-- vim: set nowrap tabstop=4 shiftwidth=4 softtabstop=4 noexpandtab :-->
+<!-- vim: set textwidth=0 filetype=xml foldmethod=marker nospell :-->
Modified: trunk/dports/news/leafnode/files/org.macports.texpire.plist.in
===================================================================
--- trunk/dports/news/leafnode/files/org.macports.texpire.plist.in 2012-07-16 17:55:03 UTC (rev 95556)
+++ trunk/dports/news/leafnode/files/org.macports.texpire.plist.in 2012-07-16 18:25:02 UTC (rev 95557)
@@ -1,21 +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>
+ <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 :-->
+<!-- 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/20120716/35a1faa4/attachment.html>
More information about the macports-changes
mailing list