1833779 Members
2060 Online
110063 Solutions
New Discussion

Re: packaging a software

 
SOLVED
Go to solution
sixto
Advisor

packaging a software

Hi gurus

I am very new to packaging of software.
Can anything tell how a packaging of software is done using epm Tool
I want a detail procedure and also which files are put inside the packaging depot or file

IF knows about RPM packaging or swpackage also will help
I want to know how to package a software.
I want detail procedure.

cheers
dsilva

19 REPLIES 19
sixto
Advisor

Re: packaging a software

Hi Vrijhoeven
I tried the given link but i was unable to create a depot using swpackage.
Did u created any software package using swpackage.
IF so ,can u tell how to go about in create a software package for a tcl software
I am finding It stuff. Here i don't know which files to include inside the package

any suggestion

cheers !!!!!
dsilva
G. Vrijhoeven
Honored Contributor
Solution

Re: packaging a software

Hi,

Yes i did create multiple packages.

first you need to create an psf file ( product specification file)

eg.

# File: psf
#
# Description: Patch 02 voor DWP
#
# Name Date Description
#
# Henk Jansen 16 oktober 2001 Correctie op organisatie-eenheid 1192
#
# ---------------- Begin of PSF file --------------------- #

product
# Algemene gegevens:
tag
title ""
description ""
revision
category
architecture Series_700/800_HP-UX_11.xx
machine_type 9000/[78]*
os_name HP-UX
os_release ?.11.*
os_version [A-Z]
os_release ?.11.*
os_version [A-Z]

directory /apps/
checkinstall scripts/checkinstall.ksh
postinstall scripts/postinstall.ksh


# Fileset definitions:
fileset
tag
title ""
revision 1.0
description ""

# Files voor install
directory path=/path
file_permissions -m 755 -o user-g group
file *

end #

#---------------- End of PSF file --------------------- #"

Now you can create scripts like postinstall en checkinstall, configure preinstall ( you can create multiple)

And put the source in path.

Hope this will help a bit,


Gideon
sixto
Advisor

Re: packaging a software

Hi Vrijhoeven

I tried to create a software package for make depot i have written psf file like this
#
# Vendor Definition
#

vendor
tag HP
title GNU make utility to maintain groups of program
description The company that does stuff
end
#
# Product Definition
#
product

tag namethatappearsinswinstall
title Mycompany's cool software
revision 2.3
description <./description
copyright <./copyright
architecture 9000/800_HPUX_11.0
machine_type 9000/800
os_name HP-UX
os_release B.11.00
os_name HP-UX
os_release B.11.00
os_version B.11.0 U
directory /

#
# Fileset Definitions
#

fileset
#dependencies
tag fileset1
title GNU make utility Fileset
revision 3.8
prerequisites othersw,r=1.0
corequisites othersw,r=1.0
directory ./ = /home/sixto/make-3.80/
configure configure
#preremove mcspreremove.ksh

directory ./ = /opt/mcs/bin
file -m 0755 -o mcsuser -g bin mcsbin1
file -m 0755 -o mcsuser -g bin mcsbin2
file -m 0755 -o mcsuser -g bin mcsbin1
file -m 0755 -o mcsuser -g bin mcsbin2

end
# End of PSF

But the problem here is i don't know which file to inside and which file not to include

I have tar file of make as make-3.80-sd-11.20.depot

using this file i want to create a software package using swpackage but the problem is dont know which file to inside
that

FILE * is giving me the problem,



with regards
sixto
G. Vrijhoeven
Honored Contributor

Re: packaging a software

Hi.

If you put the tar in a subdir, and change
directory / to /subdir
and
directory ./subdir = /opt/mcs/bin

Does this help?

Gideon

sixto
Advisor

Re: packaging a software

Hi Vrijhoeven

can you tell which file i have to include inside the package , once i get the depot tar file to create software package

what that file * will do man.

cheers
sixto
sixto
Advisor

Re: packaging a software

Hi
Can you write psf file a make.
I will cross check it

cheers
sixto
Advisor

Re: packaging a software

Hi

Can you write a PSF for a make depot
i will cross check it.

cheers
G. Vrijhoeven
Honored Contributor

Re: packaging a software

dsilva,

Sorrie, but make-3.80-sd-11.20.depot is an depot. so it is packaged. If you register it you can install the software..

swreg -l depot PATH/make-3.80-sd-11.20.depot

Now you can use swinstall to install the software.

Gideon
sixto
Advisor

Re: packaging a software

Hi

But i won't take a depot file but
make-3.80-ss-11.00.tar

using the above file i will try to make a depot file using swpackage

Here i am struck,
I don't know which file in tar file show be included to make a package depot

what i will do is will untar the make-3.80-ss-11.00.tar

then i don't which files i should include


any suggestion

cheers!!!!!

G. Vrijhoeven
Honored Contributor

Re: packaging a software

Hi,

Just put the tar file in the subdir. You have to adjust the configure script to untar the tar on the source and remove the original.

Gideon
sixto
Advisor

Re: packaging a software

Hi,
I did get what this directories will do

directory /apps/
directory path=/path

i am very new to this package environment
Can tell what that
file * will do
whether it will include all the file from the
untared directory inside the depot

can u send me a sample of psf files which you have created so that i will have look at it, if it not confidential.

cheers
dsilva
Umapathy S
Honored Contributor

Re: packaging a software

DSilva,
file command gives the type of the binary you are working with. man file for more details.

You include the files you deem to be necessary for a depot. Put them in a dir. Create a psf file as per the above details.

Can you tell what are the problems exactly?

HTH,
Umapathy
Arise Awake and Stop NOT till the goal is Reached!
G. Vrijhoeven
Honored Contributor

Re: packaging a software

Hi,

sourcepath = targetpath
file *

file * specifies all files in sourcepath.

In your case this includes the psf file, etc.

Gideon
sixto
Advisor

Re: packaging a software

Hi umapathy
I have tar file for make as make-3.80-ss-11.00.tar

then i will write psf file like this

# Name Date Description
#
# Henk Jansen 16 oktober 2001 Correctie op organisatie-eenheid 1192
#
# ---------------- Begin of PSF file --------------------- #

product
# Algemene gegevens:
tag -> product name like i will give make
title "" -> i don't what title can give make
description "" -> product description
revision 2.0
category i don't what to write
architecture Series_700/800_HP-UX_11.00
machine_type 9000/[78]*
os_name HP-UX
os_release ?.11.*
os_version [A-Z]
os_release ?.11.*
os_version [A-Z]

os_version [A-Z]

directory /apps/ -> can u tell what is this directory
checkinstall scripts/checkinstall.ksh
postinstall scripts/postinstall.ksh


# Fileset definitions:
fileset
tag
title ""
revision 1.0
description ""

# Files voor install
directory ./=/pathdsilva -> what this will do
file_permissions -m 755 -o root -g root
file *

end #

#---------------- End of PSF file --------------------- #"

I have my untar make file as make-3.80

can you tell what this will do

# Files voor install
directory ./=/pathdsilva -> what this will do
file_permissions -m 755 -o root -g root
file *


sixto
Advisor

Re: packaging a software

Hi ALL

Thanks for information
I was able to create the depot.

But the problem is i was unable to find out where my executable will get stored
for example i will create the depot for make then i don't where executable like make is installed

cheers
sixto


Umapathy S
Honored Contributor

Re: packaging a software

It will be installed in the directory.

directory ./=/pathdsilva

make and other gnu stuff will get installed under /usr/local.

HTH,
Umapathy
Arise Awake and Stop NOT till the goal is Reached!
Umapathy S
Honored Contributor

Re: packaging a software

Check this.
http://www.software.hp.com/products/SD_AT_HP/docs/cookbook.html

Check Appendix 1, 2 and 3 for the example psf files.

HTH,
Umapathy
Arise Awake and Stop NOT till the goal is Reached!
sixto
Advisor

Re: packaging a software

Hi Umapathy

whether that packaging software should have all the source or not please specify which files to be included in the package

when i have created the depot i have include all the file present the make tar .
even the source file.

now i came to known that i should include only bin and man files inside the package

with regards
Dsilva