04-27-2009
Custom Packaging scripts
Hi,
I am creating a test package and putting echo statements in the custom scripts (preinstall, postinstall, preremove, etc).
Here is the template file
Pre-installation Script: <pre-install script>
Post-installation Script: <post-install script>
These are getting called.
How do i call the pre_d script? (I think this is equivalent to pre-remove script)
Is there anything analogous to postremove script?
Thanks
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi
Could somebody explain what Sun Packaging is
What are its uses
How to package and things like that
I would appreciate if u could give me
some study materials or a url where
I could get more details on that
Thanks in advance
Ram (1 Reply)
Discussion started by: ramukmar
1 Replies
2. HP-UX
Hi,
I am doing some testing with creation of depots on HP-UX systems (11.11).
Want to display some echo statements based on the processing during checkinstall, pre & postinstall scripts on the terminal.
The echo statements are getting directed to /var/adm/sw/swagent.log
I want to display... (7 Replies)
Discussion started by: vibhor_agarwali
7 Replies
3. Red Hat
Hi,
I need to create an RPM package for my java application.
Already build package for that application avail;able.
I need to create binary RPM package for my java application.
For that in spec file, do I need to write any script kind of thing to install my package.
any one have idea... (1 Reply)
Discussion started by: ram.sj
1 Replies
4. Shell Programming and Scripting
I wrote a sh program with many options and lot of cool stuff and I will to learn how to package it. So ppl could downlaod it and use it just like ls cp ..
So if I have BUX.sh
ppl could type
BUX -r-r
on the command line and it just work
or I could have
BUM man
Also I like to offer them... (4 Replies)
Discussion started by: just_linux
4 Replies
5. UNIX for Dummies Questions & Answers
Hai friends,
I have used the dpkg command to install the package.
This package is created my me. This has only one "C" file.
I checked my module status by "lintian" command as a root.
When I execute the command it gives me following messages... (0 Replies)
Discussion started by: Nila
0 Replies
6. Homework & Coursework Questions
Dear All,
I python program which print "Hello World".
I want to run this program in 100 system.
I dont want to copy and run this script. I want to make .deb package which is easy to install by gui double click itself.
Is this possible ?, If yes, how to do.
PS: I am not using glade... (1 Reply)
Discussion started by: kiranpulsar2007
1 Replies
7. Solaris
Hi guys
My friend needs nfo driver for his Solaris box. I installed that driver for myself from scratch and he needs that driver in SVR4 format. I downloaded source code and run make and this is the point I don't how to proceed.
How can I recognize which needs go to the package ?
Does make... (0 Replies)
Discussion started by: solaris_user
0 Replies
8. Shell Programming and Scripting
So this is kind of an odd question. Our school uses a very complicated management suite for student schedules. I wanted a way to look up a students schedule from a CSV without having to load it up in numbers/excel. I wrote a script to do that, but I want to be able to distribute this without... (0 Replies)
Discussion started by: nextyoyoma
0 Replies
9. UNIX for Advanced & Expert Users
Simple question: how to package from source in hpux?
On Linux slackware i Use configure,make,make install DESTDIR=$pkg,etc..
and then makepkg -l y -c n.
Is possible something similar on hpux?
I want to create a depot for samba because,the official
doesn't had the winbind pam,and the package on... (1 Reply)
Discussion started by: Linusolaradm1
1 Replies
10. Solaris
I have installed WL on Solaris 11 and have to create IPS packaging for following directories so that
/local/apps/wl/wls12.x
/local/apps/wl/oraInventory
/local/apps/wl/jdk/jdk1.x
Can someone provide the steps for creating IPS or point to the website where I can get help.
Thanks,... (2 Replies)
Discussion started by: sam101
2 Replies
LEARN ABOUT OSX
test::script
Test::Script(3) User Contributed Perl Documentation Test::Script(3)
NAME
Test::Script - Basic cross-platform tests for scripts
DESCRIPTION
The intent of this module is to provide a series of basic tests for 80% of the testing you will need to do for scripts in the script (or
bin as is also commonly used) paths of your Perl distribution.
Further, it aims to provide this functionality with perfect platform-compatibility, and in a way that is as unobtrusive as possible.
That is, if the program works on a platform, then Test::Script should always work on that platform as well. Anything less than 100% is
considered unacceptable.
In doing so, it is hoped that Test::Script can become a module that you can safely make a dependency of all your modules, without risking
that your module won't on some platform because of the dependency.
Where a clash exists between wanting more functionality and maintaining platform safety, this module will err on the side of platform
safety.
FUNCTIONS
script_compiles
script_compiles( 'script/foo.pl', 'Main script compiles' );
The "script_compiles" test calls the script with "perl -c script.pl", and checks that it returns without error.
The path it should be passed is a relative unix-format script name. This will be localised when running "perl -c" and if the test fails the
local name used will be shown in the diagnostic output.
Note also that the test will be run with the same perl interpreter that is running the test script (and not with the default system perl).
This will also be shown in the diagnostic output on failure.
script_runs
script_runs( 'script/foo.pl', 'Main script runs' );
The "script_runs" test executes the script with "perl script.pl" and checks that it returns success.
The path it should be passed is a relative unix-format script name. This will be localised when running "perl -c" and if the test fails the
local name used will be shown in the diagnostic output.
The test will be run with the same perl interpreter that is running the test script (and not with the default system perl). This will also
be shown in the diagnostic output on failure.
SUPPORT
All bugs should be filed via the bug tracker at
http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Test-Script <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Test-Script>
For other issues, or commercial enhancement and support, contact the author.
AUTHOR
Adam Kennedy <adamk@cpan.org>
SEE ALSO
prove, <http://ali.as/>
COPYRIGHT
Copyright 2006 - 2009 Adam Kennedy.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
perl v5.16.2 2009-11-23 Test::Script(3)