forked from ports/contrib
54 lines
1.3 KiB
Plaintext
54 lines
1.3 KiB
Plaintext
# Description: Popular IRC BNC Software.
|
|
# URL: http://www.psybnc.at
|
|
# Maintainer: Thomas Penteker, tek at serverop dot de
|
|
# Packager: James Mills, prologic at shortcircuit dot net dot au
|
|
# Depends on:
|
|
|
|
name=psybnc
|
|
version=2.3.2-7
|
|
release=1
|
|
source=(http://www.psybnc.at/download/beta/psyBNC-$version.tar.gz \
|
|
Makefile-patch psybnc.rc makefile.out-patch \
|
|
p_string.c-patch p_global.h-patch psybnc.conf ssl.cnf)
|
|
|
|
psybnc_user=psybnc
|
|
|
|
error_user() {
|
|
echo "ERROR: The user $psybnc_user does not exist!"
|
|
echo "Please run the pre-install script"
|
|
exit 1
|
|
}
|
|
|
|
build() {
|
|
|
|
id $psybnc_user || error_user
|
|
|
|
cd $name
|
|
|
|
patch -i $SRC/Makefile-patch
|
|
make
|
|
patch -i $SRC/makefile.out-patch
|
|
patch -i $SRC/p_string.c-patch src/p_string.c
|
|
patch -i $SRC/p_global.h-patch src/p_global.h
|
|
make -f makefile.out
|
|
|
|
install -d \
|
|
$PKG/usr/{bin,share/$name} \
|
|
$PKG/etc/{rc.d,$name,$name/key} \
|
|
$PKG/var/{log,run}
|
|
|
|
cp -r lang $PKG/usr/share/$name/
|
|
cp -r help $PKG/usr/share/$name/
|
|
cp -r motd $PKG/usr/share/$name/
|
|
|
|
touch $PKG/var/run/$name.pid
|
|
touch $PKG/var/log/$name.log
|
|
chown psybnc:users $PKG/var/run/$name.pid
|
|
chown psybnc:users $PKG/var/log/$name.log
|
|
|
|
install -m755 $name $PKG/usr/bin/
|
|
install -m755 $SRC/$name.rc $PKG/etc/rc.d/$name
|
|
install -m644 $SRC/$name.conf $PKG/etc/$name/
|
|
}
|
|
|