Please support VectorLinux!

Author Topic: cruxports4slack (pkgfile) scripts- submit/feedback thread  (Read 4275 times)

kidd

  • Packager
  • Vectorian
  • ****
  • Posts: 682
Re: cruxports4slack (pkgfile) scripts- submit/feedback thread
« Reply #15 on: January 05, 2008, 03:27:34 am »
I'm having some troubles with a port I'm writting:
The program is 'fish', an interactive shell.

After doing the 'make install', the build script should append to /etc/shells
the following line:

/usr/bin/fish
my Pkgfile looks like this and when the tlz is created, it appends the line, not when installed

Code: [Select]
#package: fish (user friendly command line shell)
#Packaged by kidd

name=fish
version=1.22.3
release=1
source=(http://www.fishshell.org/files/1.22.3/$name-$version.tar.gz)
build() {
cd $name-$version
./configure --prefix=/usr --sysconfdir=/etc --mandir=/usr/man --libdir=/usr/lib --bindir=/usr/bin --localstatedir=/var --with-included-gettext
make || exit 1
make DESTDIR=$PKG install || exit 1
grep -li 'fish' /etc/shells || echo '/usr/bin/fish' >> /etc/shells
}

Browsing the tlz file I see doinst.sh is empty


Suggestions?

M0E-lnx

  • Administrator
  • Vectorian
  • *****
  • Posts: 3208
Re: cruxports4slack (pkgfile) scripts- submit/feedback thread
« Reply #16 on: January 05, 2008, 07:09:13 am »
that is one of the disadvantages that I found to the cruxports thing. the number of available commands to the script file is somewhat limited.
Are you shipping a new /etc/shells with this package?
if you are then you should append the $PKG/etc/shells instead.
if you are not, then you should append the $PKG/install/doinst.sh to make this call

HTH