09-10-2008
Modify a config file during installation (package developing)
Hi,
In the package I have a config file which after requesting some user input I need to modify accordingly.
I created a build file in which I wrote the script to modify the config file (using sed command replace some parameters values with the ones read from user input)
In prototype I added the following line:
i copyright
i pkginfo
i request
i checkinstall
i postinstall
i postremove
i depend
e build $DIR/bin/server.ini ? ? ?
But this is not good and generate errors during packaging
no object for $DIR/bin/server.ini found in search path
Tried without the $DIR/ too.
But this file is included in the package.
Could somebody help ?
Thanks,
Bianca
9 More Discussions You Might Find Interesting
1. Solaris
hello solaris friends,
I've tried installing Sun Solaris 10.0, but everytime it seems to bypass the network config. screen that looks similar to this...here's the url:
http://www.hup.hu/old/images/hup/Solaris/Sol10beta7/9.png
I'm able to install it all the way through but I get no... (2 Replies)
Discussion started by: cadmiumgreen
2 Replies
2. Solaris
Hi Friends,,
I got a doubt about installing packages after the installation of Solaris 10.
Suppose if we want to get smc tool by installing some packages from cd-3,,
then how can we know the packages that has to be installed to get the smc tool.
Can anyone help to solve this small... (1 Reply)
Discussion started by: sdspawankumar
1 Replies
3. UNIX for Advanced & Expert Users
To all,
I have just installed a newer software package on one of our Performance testing AIX machine A. I later found out that this package didn't need to be installed on this machine cause it was a client and not a server package. I want to back out with pkgrm but the old package doesn't... (1 Reply)
Discussion started by: liketheshell
1 Replies
4. Red Hat
Hi,
can someone help me with this?
How do we apply a new version of s/w package without disrupting the processes & daemons running with the old version?
Thanks (1 Reply)
Discussion started by: naan
1 Replies
5. Red Hat
Hi there,
I've started playing around with Linux a few days back, as part of my intenship. I was wondering if there is anyway I can install custom packages (non RPM packages...say like Oracle) as a part of Kickstart. My machines are running RHEL 4.
Thanks a lot :) (1 Reply)
Discussion started by: iman453
1 Replies
6. Solaris
Hi All,
I have a solaris machine, in which I wanted to find the Oracle Installation date and Solaris Installation date.Any ways of finding out the package installation dates.
Kindly let me know
Thanks
Rj (1 Reply)
Discussion started by: jegaraman
1 Replies
7. Solaris
can u tell me the procedure to install php 5 using package ..
i downloaded php-5.2.1-sol10-x86-local.gz from sunfreeware
i have added package using
pkgadd -d php-5.2.1-sol10-x86-local
then i have added these two lines in httpd.conf
LoadModule php5_module modules/libphp5.so... (7 Replies)
Discussion started by: senkerth
7 Replies
8. Fedora
Hi Guys I want to know whether is it possible to automatically Install a RPM package after installing OS.
Basically we have have one rpm package which we want to install as part of OS installation . Please Suggest (3 Replies)
Discussion started by: mr_deb
3 Replies
9. Solaris
I have Solaris-11 and installed few non global zones inside it. I saw many of the packages are not installed in non global zone after installing it.
root@pos_ddr01 # pkg list | wc -l
479
root@pos_ddr01 #
root@pos_ddr01-zkmq01:~# pkg list | wc -l
206
root@pos_ddr01-zkmq01:~#
I can... (1 Reply)
Discussion started by: solaris_1977
1 Replies
LEARN ABOUT V7
dh_installdebconf
DH_INSTALLDEBCONF(1) Debhelper DH_INSTALLDEBCONF(1)
NAME
dh_installdebconf - install files used by debconf in package build directories
SYNOPSIS
dh_installdebconf [debhelperoptions] [-n] [--params]
DESCRIPTION
dh_installdebconf is a debhelper program that is responsible for installing files used by debconf into package build directories.
It also automatically generates the postrm commands needed to interface with debconf. The commands are added to the maintainer scripts by
dh_installdeb. See dh_installdeb(1) for an explanation of how that works.
Note that if you use debconf, your package probably needs to depend on it (it will be added to ${misc:Depends} by this program).
Note that for your config script to be called by dpkg, your postinst needs to source debconf's confmodule. dh_installdebconf does not
install this statement into the postinst automatically as it is too hard to do it right.
FILES
debian/package.config
This is the debconf config script, and is installed into the DEBIAN directory in the package build directory.
Inside the script, the token #DEBHELPER# is replaced with shell script snippets generated by other debhelper commands.
debian/package.templates
This is the debconf templates file, and is installed into the DEBIAN directory in the package build directory.
debian/po/
If this directory is present, this program will automatically use po2debconf(1) to generate merged templates files that include the
translations from there.
For this to work, your package should build-depend on po-debconf.
OPTIONS
-n, --no-scripts
Do not modify postrm script.
-- params
Pass the params to po2debconf.
SEE ALSO
debhelper(7)
This program is a part of debhelper.
AUTHOR
Joey Hess <joeyh@debian.org>
11.1.6ubuntu2 2018-05-10 DH_INSTALLDEBCONF(1)