How to set a specific destination directory when install a package using installpkg tool of slackware -


i trying make package , install in slackware os. package has binary executable file. have created package .tgz file using makepkg tool. when tried install package using installpkg tool binary file extracted root directory. how can change destination directory other location (like /usr/bin).

what use of doinst.sh script in package.can write own script in it?

thanks

  1. make temporary directory
  2. make tree structure of installed files
  3. make install/ directory 'slack-desc' file , (optional) 'doinst.sh'
  4. run makepkg /tmp/package-name-version-arch-build_tag.txz

    # mkdir /tmp/pkg; cd /tmp/pkg # mkdir -p usr/bin # cp /path/to/your/file usr/bin/ # chmod a+x usr/bin/file # mkdir install # cat <<eof >install/slack-desc appname: appname (short description of app) appname: appname: long description of appname, wrapped @ 71 characters *after* appname: colon following "appname" (and 'handy ruler' should start @ appname: colon , 71 characters long). appname: if there room, there might link homepage of appname: application on 1 of these lines, it's not necessary. appname: appname: maximum number of lines prefixed "appname:" 11. appname: lines without other text should *not* have space after : appname: eof # makepkg /tmp/appname-1.0-x86_64-1_me.txz # upgradepkg --install-new /tmp/appname-1.0-x86_64-1_me.txz 

Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -