VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Pages: 1 [2]

Author Topic: cruxports4slack (pkgfile) scripts- submit/feedback thread  (Read 4465 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: 3258
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
Pages: 1 [2]