Sponsored Content
Operating Systems Linux Ubuntu Debian install maintainer environment variable problem Post 302438506 by royalibrahim on Tuesday 20th of July 2010 02:41:00 AM
Old 07-20-2010
Debian install maintainer environment variable problem

Hi,

I am using Ubuntu 8.04 (Hardy heron) and I am trying to package my application using 'dpkg'. I am following 'rules' based debian packaging. I am using install script to copy certain shared object libraries into my package installation path.

for eg: ../../../Qt-4.6.2/Release/bin/libSettings.so.1* usr/local/myapp/

Now, I am facing a problem, every time if I install the new version of the supported package (Qt here), I have to manually edit this *.install file for the path (since version is included in the path). I have tried setting an environment variable and tried to read it inside the script but in no vain.

Can anyone help me how to solve this issue? if environment variable is not the right approach, how I can proceed with this?
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

HISTSIZE environment variable problem

Hi All, I am connecting to a sun solaris 5.9 unix (korn shell) server using the x terminal. There is some problem with the HISTORY File where the HISTSIZE env variable is not working. Although the HISTSIZE is set to 20 already but the HISTORY file keep increasing and exceeded the size. There... (5 Replies)
Discussion started by: Kenneth2006
5 Replies

2. Debian

How to install Debian on a SUNBLADE 100?

I have tried to install the Debian distribution for SPARC processor, but is a pian in the neck trying to boot from cdrom or floppy. Please can somebody to help me to know the easiest way to boot and install Debian on a SUNBLADE 100 system? or wich is the best way to installed on this system, I... (2 Replies)
Discussion started by: GEIER
2 Replies

3. Shell Programming and Scripting

problem in getting the path of environment variable set in bashrc in my shell script

hi all i have joined new to the group. i have set an variable in my bashrc file. .bashrc PROGHOME=/home/braf/braf/prog export PROGHOME but while using it in my shell script its path is not taken and i had to explicitly give the export command to set the path. in my script... (8 Replies)
Discussion started by: krithika
8 Replies

4. Linux

install pptpd on debian 5

When I try to configure vpn(client,server), i not find pptpd.conf in debian lenny 5.0. After in command-line: if translate: Don't find package pptpd How can added pptpd? (0 Replies)
Discussion started by: sotich82
0 Replies

5. Shell Programming and Scripting

Expand an environment variable in sed, when the variable contains a slash

I'm trying to make a sed substitution where the substitution pattern is an environment variable to be expanded, but the variable contains a "slash". sed -e 's/<HOME_DIRECTORY>/'$HOME'/'This gives me the following error: sed: -e expression #1, char 21: unknown option to `s'Obviously this is... (2 Replies)
Discussion started by: Ilja
2 Replies

6. HP-UX

Install Patch on ServiceGuard environment

I have two hpux11iv1 on ServiceGuard. I need to backup my hpux 11iv1 by EMC backup software. but before i install client agent, i need to install two software patch: 1. J4256AA HP-UX IPSec 2. IPv6NCF11i HP-UX 11iv1 IPv6 I wantna know if i installed two software patch have any impact? or... (5 Replies)
Discussion started by: cooljack123
5 Replies

7. Shell Programming and Scripting

problem with setting environment variable

shell script: #!/bin/csh set VAR=12345 echo $VAR will peacefully give the output 12345 at shell. I need to use C++ to do the same in some part of the code: string str = "12345"; retValue="set var1= "+str; system(retValue1.c_str()); system("echo $var1"); This doesn't create a system... (1 Reply)
Discussion started by: harshvardhan360
1 Replies

8. UNIX for Dummies Questions & Answers

Install Cacti on Debian for dummies

Hi all, I want to install cacti (frontend to RRDTool) on my Debian 6 VPS. My dummy questions please... The requirements include RRDTool and net-snmp so is there a way to check these are properly installed? Re the command # apt-get install cacti After logging in to my VPS in putty... (1 Reply)
Discussion started by: Juc1
1 Replies

9. UNIX for Dummies Questions & Answers

Setting environment variable problem in Ubuntu?

I am trying to install timbl- memory based learner tools in ubuntu. it after unpacking the tar file it brings the following msg No package 'ticcutils' found Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you... (1 Reply)
Discussion started by: gbdaw
1 Replies

10. Debian

Debian install - kernel panic

Hello all, I would like to install Debian Jessie on my i386 When I boot from the installiso I see the menu and pick 'install'. The bios beeps once immediately and I get the following output: I 've tried 3 cd's already...(md5 sum=ok) this computer always ran... (13 Replies)
Discussion started by: drum159
13 Replies
DH_INSTALLYORICK(1)						     Debhelper						       DH_INSTALLYORICK(1)

NAME
dh_installyorick - install Yorick add-on packages SYNOPSIS
dh_installyorick [debhelper options] [-m] [--no-make-install] DESCRIPTION
dh_installyorick is a debhelper program that installs the files of your Yorick add-on at the right place when building a Debian package. For a simple plug-in package, this is mostly done by calling "make DESTDIR=debian/<package> install" and then moving arch-independent files to usr/share. Note that there is no Y_SITE/contrib directory in the Debian packages, its content is merged into YSITE/i. Calling "make ... install" can be disabled by using the "--no-make-install" flag. This is useful in particular for interpreted add-on pack- ages, which do not ship with a standard Yorick Makefile. If the "-m" flag is used (but not the "-n" one), dh_installyorick will also add lines to your package's postinst and postrm scripts to call "update-yorickdoc --auto" if the yorick-doc package is installed. It is necessary to call dh_installdeb after dh_installyorick for this to work. It is usually not necessary with a recent dpkg supporting triggers, so this possibility is kept mostly for easing backports and should be deprecated soon. dh_installyorick will look for a file named debian/<package>.ynstall for additional files to install (see YNSTALL FILE below). The prefix "<package>." can be omitted for the main binary package being built (usally the first one listed in debian/control). For the time being, Y_SITE=Y_HOME=/usr/lib/yorick. Requests to install a file under Y_SITE results in its installation under /usr/share/yorick. dh_installyorick handles the creation of the necessary symbolic links from Y_HOME to /usr/share/yorick. Files that are installed in a directory ending in "/bin" or "/sbin", as well as files that are pointed at by symbolic link in such a direc- tory, are installed with execution permission for everyone. OPTIONS
-m Modify postinst/postrm scripts to add a call to update-yorickdoc. This is needed only if the target dpkg does not support triggers. If both "-m" and "-n" are specified, the scripts are not modified. --no-make-install Do not call "make DESTDIR=debian/<package> install". --infofile= An additional pkg_mngr .info file to install. Additionally, dh_installyorick abides by the following standard debhelper options: -a/--arch, -i/--indep, --mainpackage, -n, --no-act, -N/--no-package, -p/--package, -P/--tmpdir, -s/--same-arch, and -v/--verbose. YNSTALL FILE
Blank lines are ignored, several blank character are counted as one, and line starting with "#" (possibly following one or more blanks) are ignored. Each non-comment, non-blank line should be of the form: file [directory [link]] Where file is the file to install, directory the directory it should be installed in, and link an optional symbolic link pointing on the installed file. file the relative path from the top directory of the package source to the file. If link is not specified, file can contain shell globs and actually denote sevral files. If directory is not specified, it is guessed from the extension of file: .i files are installed in Y_SITE/i, .gs and .gp in Y_SITE/g, .info in Y_SITE/packages/installed, .packinfo, .aliases and .keywords in /usr/share/yorick-doc, and .so in Y_HOME/lib. directory the full path (without leading "/") into which the file should be installed. If the file is to be installed inside Yorick's Y_SITE or Y_HOME directory (which will almost alway be the case), it is possible (and advisable) to not specify the full path, but to write "Y_SITE/" or "Y_HOME" followed by the relative path from there. It is also possible to omit this "Y_SITE/" or "Y_HOME/" prefix if directory starts whith one of: Y_SITE/i, Y_SITE/i0, Y_SITE/i-start, Y_SITE/g, Y_SITE/packages, Y_HOME/bin or Y_HOME/lib. link the full path to a symbolic link that should point to the installed file. The same shortcuts apply as for directory. EXAMPLES
The four following lines in debian/ynstall would be equivalent: somefile.i /usr/share/yorick/i somefile.i Y_SITE/i somefile.i i somefile.i Likewise, the following are equivalent: somefile.i /usr/share/yorick/i0 somefile.i Y_SITE/i0 somefile.i i0 Example with a symlink. Here, somefile.i is a script that is both useful #included from within Yorick or from the command line. Its first line reads "#!/usr/bin/yorick -batch". somefile.i i usr/bin/command_name SEE ALSO
debhelper(7), update-yorickdoc(1), deb-triggers(5) This program is a part of yorick-dev but is made to work with debhelper. Note that only compatibility level 5 has been implemented and tested. This script is not idempotent, dh_clean -k should be executed between any two runs. AUTHORS
Thibaut Paumard <paumard@users.sourceforge.net> 2008-05-15 DH_INSTALLYORICK(1)
All times are GMT -4. The time now is 05:06 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy