mirror of
https://github.com/SlackBuildsOrg/slackbuilds
synced 2024-09-28 15:21:00 +02:00
network/znc: Added to 12.0 repository
This commit is contained in:
parent
62c1699c5a
commit
69103e7df3
4 changed files with 130 additions and 0 deletions
26
network/znc/README
Normal file
26
network/znc/README
Normal file
|
@ -0,0 +1,26 @@
|
|||
ZNC is an advanced IRC bouncer
|
||||
|
||||
ZNC will remain connected to an IPv4 or IPv6 IRC server even while you
|
||||
are offline. You can reattach your client at a later time and catch up
|
||||
with what happened while you were gone via the history buffer. You can
|
||||
add additional users under one running process: useful for public shells
|
||||
that limit background processes. ZNC also supports the dynamic loading
|
||||
of C++ and Perl modules.
|
||||
|
||||
Once the package is installed, you can interactivly create your znc.conf
|
||||
using the following command:
|
||||
/usr/bin/znc --makeconf --datadir /etc/znc
|
||||
Once you have answered all the questions, your znc.conf file will be located
|
||||
at /etc/znc/configs/znc.conf.
|
||||
|
||||
It is recommended that you do *NOT* run znc as 'root' but rather as a
|
||||
more benign user such as 'nobody'. It should be noted that you can
|
||||
only run as a non-root user if you choose a listening port higher than
|
||||
1024. The following is necessary to allow znc to be run as the 'nobody'
|
||||
user; it only needs to be run once:
|
||||
chown -R nobody:nobody /etc/znc
|
||||
To actually execute ZNC as the 'nobody' user, use the following command:
|
||||
su - nobody -c '/usr/bin/znc --datadir /etc/znc'
|
||||
By default, ZNC will look for its configuration file in ~/.znc. If you
|
||||
used the '--datadir' option when creating the znc.conf file, it must also
|
||||
be used when starting ZNC.
|
19
network/znc/slack-desc
Normal file
19
network/znc/slack-desc
Normal file
|
@ -0,0 +1,19 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description. Line
|
||||
# up the first '|' above the ':' following the base package name, and the '|'
|
||||
# on the right side marks the last column you can put a character in. You must
|
||||
# make exactly 11 lines for the formatting to be correct. It's also
|
||||
# customary to leave one space after the ':'.
|
||||
|
||||
|-----handy-ruler--------------------------------------------------------|
|
||||
znc: ZNC (advanced IRC bouncer)
|
||||
znc:
|
||||
znc: ZNC will remain connected to an IPv4 or IPv6 IRC server even while you
|
||||
znc: are offline. You can reattach your client at a later time and catch up
|
||||
znc: with what happened while you were gone via the history buffer. You can
|
||||
znc: add additional users under one running process,useful for public shells
|
||||
znc: that limit background processes. ZNC also supports the dynamic loading
|
||||
znc: of C++ and Perl modules.
|
||||
znc:
|
||||
znc:
|
||||
znc:
|
77
network/znc/znc.SlackBuild
Normal file
77
network/znc/znc.SlackBuild
Normal file
|
@ -0,0 +1,77 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Slackware build script for VDE2
|
||||
|
||||
# Copyright 2007-2008 Sean Donner (sean.donner@sbcglobal.net)
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
# permitted provided that the following conditions are met:
|
||||
#
|
||||
# 1. Redistributions of this script must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
|
||||
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
||||
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
||||
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
||||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
PRGNAM=znc
|
||||
VERSION=0.052
|
||||
ARCH=${ARCH:-i486}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
fi
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1
|
||||
cd $PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
chmod -R u+w,go+r-w,a-s .
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--with-openssl \
|
||||
--enable-ipv6
|
||||
|
||||
make all || exit 1
|
||||
make install DESTDIR=$PKG || exit 1
|
||||
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
)
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a AUTHORS LICENSE* README $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
|
8
network/znc/znc.info
Normal file
8
network/znc/znc.info
Normal file
|
@ -0,0 +1,8 @@
|
|||
PRGNAM="znc"
|
||||
VERSION="0.052"
|
||||
HOMEPAGE="http://znc.sf.net"
|
||||
DOWNLOAD="http://downloads.sourceforge.net/znc/znc-0.052.tar.gz"
|
||||
MD5SUM="726046e3b44d811ededf4e850b5e0f06"
|
||||
MAINTAINER="Sean Donner"
|
||||
EMAIL="sean.donner@sbcglobal.net"
|
||||
APPROVED="rworkman"
|
Loading…
Reference in a new issue