mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-24 10:02:29 +01:00
network/znc: Updated for version 0.076.
This commit is contained in:
parent
e6796da6d4
commit
359180cba8
6 changed files with 30 additions and 15 deletions
|
@ -1,4 +1,4 @@
|
|||
ZNC is an advanced IRC bouncer.
|
||||
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
|
||||
|
@ -26,4 +26,4 @@ build script uses "znc" as the user. If you wish to change it, e.g.
|
|||
to use the "nobody" user, then run the script as follows:
|
||||
ZNC_USER=nobody ./znc.SlackBuild
|
||||
|
||||
See README.SLACKWARE for configuration information.
|
||||
See README.SBo for configuration information.
|
||||
|
|
18
network/znc/README.SBo
Normal file
18
network/znc/README.SBo
Normal file
|
@ -0,0 +1,18 @@
|
|||
znc README.SBo
|
||||
|
||||
Once the package is installed, you should create your config file using
|
||||
znc's own interactive utility; run the following command:
|
||||
su - _ZNC_USER_ -c '/usr/bin/znc --makeconf --datadir /etc/znc'
|
||||
|
||||
Since znc is configured to run as a nonprivileged user by default in
|
||||
this build script, you must choose a listening port higher than 1024.
|
||||
|
||||
Once you have answered all the questions, your znc.conf file will be
|
||||
located at /etc/znc/configs/znc.conf
|
||||
|
||||
It should be noted that by default (if run without any arguments), ZNC
|
||||
will look for its configuation file in ~/.znc (which is /etc/znc/.znc
|
||||
as suggested by the build script). This is irrelevant if you are using
|
||||
the init script supplied with the package, but it might be worth knowing
|
||||
just in case.
|
||||
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
# User account under which ZNC should run; only change this if you
|
||||
# know what you are doing :-)
|
||||
ZNC_USER="@ZNC_USER@"
|
||||
ZNC_USER="_ZNC_USER_"
|
||||
|
||||
# First, a sanity check
|
||||
if [[ ! -e /etc/znc/configs/znc.conf ]]; then
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
#!/bin/sh -e
|
||||
|
||||
# Slackware build script for ZNC
|
||||
|
||||
|
@ -59,8 +59,6 @@ if ! grep -q "^$ZNC_USER:" /etc/passwd; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
|
@ -92,7 +90,6 @@ CFLAGS="$SLKCFLAGS" \
|
|||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
|
@ -118,7 +115,7 @@ chown -R $ZNC_USER $PKG/etc/znc
|
|||
|
||||
# Install an init script
|
||||
mkdir -p $PKG/etc/rc.d
|
||||
sed -e "s/@ZNC_USER@/$ZNC_USER/g" -e "s/@VERSION@/$VERSION/g" $CWD/rc.znc \
|
||||
sed -e "s/_ZNC_USER_/$ZNC_USER/g" -e "s/_VERSION_/$VERSION/g" $CWD/rc.znc \
|
||||
> $PKG/etc/rc.d/rc.znc.new
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
|
@ -126,12 +123,12 @@ cp -a \
|
|||
AUTHORS LICENSE* README \
|
||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
sed s/@ZNC_USER@/$ZNC_USER/g $CWD/README.SLACKWARE > \
|
||||
$PKG/usr/doc/$PRGNAM-$VERSION/README.SLACKWARE
|
||||
sed s/_ZNC_USER_/$ZNC_USER/g $CWD/README.SBo > \
|
||||
$PKG/usr/doc/$PRGNAM-$VERSION/README.SBo
|
||||
|
||||
mkdir -p $PKG/install
|
||||
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.tgz
|
||||
|
|
|
@ -7,4 +7,4 @@ DOWNLOAD_x86_64=""
|
|||
MD5SUM_x86_64=""
|
||||
MAINTAINER="Sean Donner"
|
||||
EMAIL="sean.donner at gmail dot com"
|
||||
APPROVED="rworkman"
|
||||
APPROVED="Erik Hanson"
|
||||
|
|
Loading…
Reference in a new issue