55 lines
1.3 KiB
Plaintext
55 lines
1.3 KiB
Plaintext
![]() |
# $Id: Pkgfile 1330 2006-11-13 20:54:04Z prologic $
|
||
|
# Description: Popular IRC BNC Software.
|
||
|
# URL: http://www.psychoid.net/psybnc.html
|
||
|
# Maintainer: James Mills prologic at shortcircuit dot net dot au
|
||
|
# Packager: James Mills prologic at shortcircuit dot net dot au
|
||
|
# Depends on:
|
||
|
|
||
|
name=psybnc
|
||
|
version=2.3.1
|
||
|
release=1
|
||
|
source=(http://www.psychoid.net/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/
|
||
|
}
|
||
|
|