You are not logged in.

#1 2004-06-20 13:50:39

rensel
Member
From: Milan, Italy, Europe, Earth, S
Registered: 2004-06-20
Posts: 93
Website

[network : internet relay chat] eggdrop-1.6.16

Here is the PKGBUILD I wrote for the latest version of Eggdrop:

# Contributor: Rensel <rensel@email.it>

pkgname=eggdrop
pkgver=1.6.16
pkgrel=1
pkgdesc="An IRC bot that supports TCL scripts"
url="ftp://ftp.eggheads.org/pub/eggdrop/source/1.6"
license="GPL"
depends=('tcl')
backup=()
source=($url/$pkgname$pkgver.tar.bz2)
md5sums=('bbbb77f9a1a28398f05ae433b482f4ac')
install=eggdrop.install

build() {
      cd $startdir/src/$pkgname$pkgver
      ./configure --prefix=/usr/share/$pkgname
    make config || return 1
      make || return 1
      make DEST=$startdir/pkg/usr/share/$pkgname install
    rm -rf $startdir/pkg/usr/share/$pkgname/doc/
}

...and the eggdrop.install:

# arg 1:  the new package version
post_install() {
  ln -sf /usr/share/eggdrop/eggdrop /usr/bin/eggdrop
  echo ''
  echo 'You MUST ensure that you edit/verify your configuration file.'
  echo 'An example configuration file, eggdrop.conf, is distributed with Eggdrop.'
  echo 'Remember to change directory to /usr/share/eggdrop before you proceed.'
  echo ''
}

# arg 1:  the new package version
# arg 2:  the old package version
post_upgrade() {
 /bin/true
}

# arg 1:  the old package version
pre_remove() {
  rm -f /usr/bin/eggdrop
}

op=$1
shift

$op $*

I uploaded the archive with the PKGBUILD, the package, the filelist and the eggdrop.install file as ftp://ftp.archlinux.org/incoming/eggdrop-1.6.16.tar.bz2 , I hope I didn't make mistakes!


Arch GNU/Linux 0.7 Trusted User
"If I were more modest, I would be perfect"

Offline

#2 2004-06-20 14:38:59

contrasutra
Member
From: New Jersey
Registered: 2003-07-26
Posts: 507

Re: [network : internet relay chat] eggdrop-1.6.16

A few things:
1. Why are you installing it to /usr/share/? /usr is the standard.
2. On Make Install, you should use DESTDIR=$startdir/pkg.
3. You can do the symlinking of `eggdrop` inside the PKGBUILD. Just do "ln -s /usr/share/eggdrop/eggdrop $startdir/pkg/usr/bin/eggdrop. It's obviously a broken symlink, but it'll work fine once the pkg is installed. This way you can get rid of the .install.


"Contrary to popular belief, penguins are not the salvation of modern technology.  Neither do they throw parties for the urban proletariat."

Offline

#3 2004-06-20 17:52:12

rensel
Member
From: Milan, Italy, Europe, Earth, S
Registered: 2004-06-20
Posts: 93
Website

Re: [network : internet relay chat] eggdrop-1.6.16

This program does not install the binaries in bin/, the manpages in man/ etc., but it uses his own directory... the default is /usr/local/eggdrop, but as Arch doesn't use /usr/local I thought /usr/share/eggdrop would be the right one. An alternative could be /opt/eggdrop, should I install it there?


Arch GNU/Linux 0.7 Trusted User
"If I were more modest, I would be perfect"

Offline

#4 2004-06-20 18:14:30

jlvsimoes
Member
From: portugal
Registered: 2002-12-23
Posts: 392
Website

Re: [network : internet relay chat] eggdrop-1.6.16


-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GU/ d- s: a- C L U P+ L+++ E--- W+
N 0+ K- W-- !O !M V-- PS+ PE- V++ PGP T 5 Z+ R* TV+ B+
DI-- D- G-- e-- h! r++ z+ z*
------END GEEK CODE BLOCK------

Offline

Board footer

Powered by FluxBB