Commit 2ea272f4 authored by Carlo Landmeter's avatar Carlo Landmeter
Browse files

testing/eggdrop: added log2html and gseen. fixed deps.

parent c2b5f896
# Contributor: Carlo Landmeter <clandmeter at gmail>
pkgname=eggdrop
pkgver=1.6.19
pkgrel=0
pkgrel=1
pkgdesc="World's most popular Open Source IRC bot"
url="http://www.eggheads.org/"
license='GPL-2'
depends="tcl bind-libs"
makedepends="tcl-dev bind-dev"
install=$pkgname-install
depends="tcl"
makedepends="tcl-dev !bind-libs"
install="$pkgname.post-install"
subpackages="$pkgname-logs2html $pkgname-gseen"
source="ftp://ftp.eggheads.org/pub/eggdrop/GNU/1.6/${pkgname}${pkgver}.tar.bz2
eggdrop-installer
$pkgname-install"
$install
gseen.mod.patch
logs2html.mod.patch"
build() {
cd "$srcdir/${pkgname}${pkgver}"
for i in "$srcdir"/*.patch; do
msg "Applying ${i}"
patch -p0 -i $i || return 1
done
./configure --prefix=/usr
make config || return 1
make -j1 || return 1
make || return 1
mkdir -p $pkgdir/opt/eggdrop
make -j1 DEST="$pkgdir/opt/eggdrop" install
install -Dm755 "$srcdir"/eggdrop-installer "$pkgdir"/usr/bin/eggdrop-installer
install -Dm755 "$srcdir"/eggdrop-installer "$pkgdir"/usr/bin/eggdrop-installer || return 1
}
logs2html() {
install=""
cd "$srcdir/${pkgname}${pkgver}"
for dirs in language help; do
mkdir -p "$subpkgdir"/opt/eggdrop/${dirs}
mv "$pkgdir"/opt/eggdrop/${dirs}/logs2html.* "$subpkgdir"/opt/eggdrop/${dirs}/ || return 1
done
mkdir -p "$subpkgdir"/opt/eggdrop/modules/
mv "$pkgdir"/opt/eggdrop/modules/logs2html.so "$subpkgdir"/opt/eggdrop/modules/ || return 1
mkdir -p "$subpkgdir"/opt/eggdrop/log2html
for files in logs2html.conf top100.tpl user.css readme.txt chan.list; do
cp src/mod/logs2html.mod/${files} "$subpkgdir"/opt/eggdrop/log2html/ || return 1
done
}
gseen() {
install=""
cd "$srcdir/${pkgname}${pkgver}"
mkdir -p "$subpkgdir"/opt/eggdrop/language
mv "$pkgdir"/opt/eggdrop/language/gseen.* "$subpkgdir"/opt/eggdrop/language/ || return 1
mkdir -p "$subpkgdir"/opt/eggdrop/modules/
mv "$pkgdir"/opt/eggdrop/modules/gseen.so "$subpkgdir"/opt/eggdrop/modules/ || return 1
mkdir -p "$subpkgdir"/opt/eggdrop/gseen
cp src/mod/gseen.mod/gseen.conf "$subpkgdir"/opt/eggdrop/gseen/ || return 1
cp src/mod/gseen.mod/README "$subpkgdir"/opt/eggdrop/gseen/ || return 1
}
md5sums="b706bbe4fdd05964e0ea0cd920f28539 eggdrop1.6.19.tar.bz2
d5214dc16c07c55edff22f495c9c367b eggdrop-installer
e96a44f5bcd972c4ad538ffe3940cbff eggdrop-install"
48ac9f366630ca18281ab2c98a5091ba eggdrop.post-install
37b82f60413913758cd4161dbc2e7849 gseen.mod.patch
490ffd522d5058413c96b8325d19b838 logs2html.mod.patch"
#!/bin/sh
echo "*"
echo "* Please run /usr/bin/eggdrop-installer to install your eggdrop bot."
echo "*"
exit 0
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment