diff options
Diffstat (limited to 'network/leafnode')
-rw-r--r-- | network/leafnode/README | 11 | ||||
-rw-r--r-- | network/leafnode/leafnode.SlackBuild | 16 |
2 files changed, 19 insertions, 8 deletions
diff --git a/network/leafnode/README b/network/leafnode/README index 004977ddaa..31af7b91fe 100644 --- a/network/leafnode/README +++ b/network/leafnode/README @@ -1,7 +1,7 @@ -Leafnode 2 is an NNTP proxy server intended for small sites, where -there are few users and little disk space, but where a large number of -groups is desired. It can also be used to give a regular newsreader -off-line functionality. +Leafnode 2 is an NNTP proxy server intended for small sites, where +there are few users and little disk space, but where a large number +of groups is desired. It can also be used to give a regular newsreader +off-line functionality. There is some work to do to install this program effectively, all of which is clearly set out in the README file contained in the @@ -9,7 +9,8 @@ documents. It is strongly advised that you read this file thoroughly before installing Leafnode 2. In summary you will need to: 1. Ensure $NNTPSERVER or /etc/nntpserver points to 'localhost'. -2. Set /etc/inetd.conf so leafnode is executed for incoming NNTP connections. +2. Set /etc/inetd.conf so leafnode is executed for incoming NNTP + connections. 3. Set /etc/hosts.deny and /etc/hosts.allow to protect the server. 4. Create /etc/leafnode/config and adjust settings as required. 5. Set cronjobs for fetchnews and texpire. diff --git a/network/leafnode/leafnode.SlackBuild b/network/leafnode/leafnode.SlackBuild index 4be907f6b9..6c779979c3 100644 --- a/network/leafnode/leafnode.SlackBuild +++ b/network/leafnode/leafnode.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for Leafnode 2 @@ -22,10 +22,13 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=leafnode VERSION=${VERSION:-2.0.0.alpha20140727b} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -35,7 +38,14 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -103,4 +113,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |