blob: 6eb02225be27119ffc16c5fa25234cc0655a9824 (
plain)
1 # $Id: Pkgfile 1330 2006-11-13 20:54:04Z prologic $
2 # Description: Popular IRC BNC Software.
3 # URL: http://www.psychoid.net/psybnc.html
4 # Maintainer: James Mills prologic at shortcircuit dot net dot au
5 # Packager: James Mills prologic at shortcircuit dot net dot au
6 # Depends on:
7
8 name=psybnc
9 version=2.3.1
10 release=1
11 source=(http://www.psychoid.net/psyBNC$version.tar.gz \
12 Makefile-patch psybnc.rc makefile.out-patch \
13 p_string.c-patch p_global.h-patch psybnc.conf ssl.cnf)
14
15 psybnc_user=psybnc
16
17 error_user() {
18 echo "ERROR: The user $psybnc_user does not exist!"
19 echo "Please run the pre-install script"
20 exit 1
21 }
22
23 build() {
24
25 id $psybnc_user || error_user
26
27 cd $name
28
29 patch -i $SRC/Makefile-patch
30 make
31 patch -i $SRC/makefile.out-patch
32 patch -i $SRC/p_string.c-patch src/p_string.c
33 patch -i $SRC/p_global.h-patch src/p_global.h
34 make -f makefile.out
35
36 install -d \
37 $PKG/usr/{bin,share/$name} \
38 $PKG/etc/{rc.d,$name,$name/key} \
39 $PKG/var/{log,run}
40
41 cp -r lang $PKG/usr/share/$name/
42 cp -r help $PKG/usr/share/$name/
43 cp -r motd $PKG/usr/share/$name/
44
45 touch $PKG/var/run/$name.pid
46 touch $PKG/var/log/$name.log
47 chown psybnc:users $PKG/var/run/$name.pid
48 chown psybnc:users $PKG/var/log/$name.log
49
50 install -m755 $name $PKG/usr/bin/
51 install -m755 $SRC/$name.rc $PKG/etc/rc.d/$name
52 install -m644 $SRC/$name.conf $PKG/etc/$name/
53 }
|