VectorLinux
September 20, 2014, 01:38:32 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: 1 [2]
  Print  
Author Topic: cruxports4slack (pkgfile) scripts- submit/feedback thread  (Read 3694 times)
kidd
Packager
Vectorian
****
Posts: 682


« 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:
#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?
Logged

M0E-lnx
Administrator
Vectorian
*****
Posts: 3180



« 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
Logged

Pages: 1 [2]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!