Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 152588 Details for
Bug 236059
Port setuputil onto HP-UX
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
build-hp-setuputil.pl
build-hp-setuputil.pl (text/plain), 4.60 KB, created by
Noriko Hosoi
on 2007-04-13 20:53:31 UTC
(
hide
)
Description:
build-hp-setuputil.pl
Filename:
MIME Type:
Creator:
Noriko Hosoi
Created:
2007-04-13 20:53:31 UTC
Size:
4.60 KB
patch
obsolete
>#!/usr/bin/perl ># Author: Nathan Kinder ># Modified by: nhosoi ># ># This program helps to build SetupUtil on HP-UX. ># It basically lets you avoid typing a long list of options ># to configure as well as doing the component packaging for ># you. > >use Getopt::Std; > >#---------------------------- ># Useful Variables ># ># Change these as needed for ># your build environment >#---------------------------- >$arch="HP-UXB.11.23_ia64_64_DBG.OBJ"; >$sbc="/share/builds/components"; >$sbsint="/share/builds/sbsintegration"; >$ENV{"CC"} = "aCC +DD64"; >$ENV{"CXX"} = "aCC -AA"; >$ENV{"CXXFLAGS"} = "+DD64"; > >#---------------------------- ># Component Locations ># ># Change these as needed for ># your build environment >#---------------------------- >$nspr_loc="$sbc/nspr/v4.6.4/$arch"; >$nss_loc="$sbc/nss/NSS_3_11_3_RTM/$arch"; >$svrcore_loc="$sbc/svrcore/SVRCORE_4_0_1_RTM/$arch"; >$ldapsdk_loc="$sbsint/ldapcsdk/v6.0.3/$arch"; >$sasl_loc="$sbsint/sasl/cyrus/v2.1.20.2/$arch"; > >#---------------------------- ># Configure Options ># ># Change these as needed for ># your build environment >#---------------------------- >$cfg_options .= "--enable-bundle "; >#$cfg_options .= "--enable-debug "; >$cfg_options .= "--enable-64bit "; >$cfg_options .= "--with-nspr=$nspr_loc "; >$cfg_options .= "--with-nss=$nss_loc "; >$cfg_options .= "--with-svrcore=$svrcore_loc "; >$cfg_options .= "--with-ldapsdk=$ldapsdk_loc "; >$cfg_options .= "--with-sasl=$sasl_loc "; > >#---------------------------- ># Load and Check Args >#---------------------------- >getopts('t:i:zH'); > >if ($opt_H) {ExitHelp();} > >$tree = $opt_t || die "Must specify -t <path to source tree>"; >$instdir = $opt_i || die "Must specify -i <absolute path to installation dir>"; >die "Error: Source tree $tree does not exist!" unless -e "$tree"; >die "Error: Installation directory $instdir does not exist!" unless -e "$instdir"; > >#---------------------------- ># Perform the Build >#---------------------------- >print(STDERR "=== Running configure ===\n"); >print(STDERR "$tree/configure $cfg_options\n"); >system("$tree/configure $cfg_options") && die "--- Error during configure ---"; >print(STDERR "=== Running gmake ===\n"); >system("gmake") && die "--- Error during make ---"; >print(STDERR "=== Running gmake install ===\n"); >system("gmake install DESTDIR=$instdir") && die "--- Error during make ---"; >print(STDERR "=== Bundling Components ===\n"); >mkDirs(); >PkgNSPR(); >PkgNSS(); >PkgLDAPSDK(); >PkgSASL(); >if ($opt_z) { > print("=== Creating Package ===\n"); > system("cd $instdir; tar cvf $instdir/setuputil.tar ./opt") && die "--- Error creating tarball ---"; > system("gzip $instdir/setuputil.tar") && die "--- Error compressing tarball ---"; > print("=== Build Complete! Package available at $instdir/setuputil.tar.gz\n"); >} else { > print("=== Build Complete! Installed in $instdir ===\n"); >} > >#-------------------------------- ># Component Fetching Subroutines >#-------------------------------- >sub mkDirs() { > system("if test ! -d ${instdir}/opt/setuputil/lib; then mkdir -p ${instdir}/opt/setuputil/lib; fi") && die "--- Error mkdir ${instdir}/opt/setuputil/lib ---"; > system("if test ! -d ${instdir}/opt/setuputil/bin; then mkdir -p ${instdir}/opt/setuputil/bin; fi") && die "--- Error mkdir ${instdir}/opt/setuputil/bin ---"; > system("if test ! -d ${instdir}/opt/setuputil/sbin; then mkdir -p ${instdir}/opt/setuputil/sbin; fi") && die "--- Error mkdir ${instdir}/opt/setuputil/sbin ---"; >} > >sub PkgNSPR { > print(" -- NSPR --\n"); > system("cp ${nspr_loc}/lib/lib*.so ${instdir}/opt/setuputil/lib") && die "--- Error packaging NSPR ---"; >} > >sub PkgNSS { > print(" -- NSS --\n"); > system("cp ${nss_loc}/lib/lib*.so ${instdir}/opt/setuputil/lib") && die "--- Error packaging NSS ---"; > system("cp ${nss_loc}/bin/certutil ${instdir}/opt/setuputil/bin") && die "--- Error packaging NSS ---"; >} > >sub PkgLDAPSDK { > print(" -- LDAPSDK --\n"); > system("cp ${ldapsdk_loc}/lib/lib*.so ${instdir}/opt/setuputil/lib") && die "--- Error packaging LDAPSDK ---"; > system("cp ${ldapsdk_loc}/bin/ldap* ${instdir}/opt/setuputil/bin") && die "--- Error packaging LDAPSDK ---"; >} > >sub PkgSASL { > print(" -- SASL --\n"); > system("cp ${sasl_loc}/lib/lib*.so* ${instdir}/opt/setuputil/lib") && die "--- Error packaging SASL ---"; > system("cp -r ${sasl_loc}/lib/sasl2 ${instdir}/opt/setuputil/lib") && die "--- Error packaging SASL ---"; >} > >#---------------------- ># Usage Subroutine >#---------------------- >sub ExitHelp { > print(STDERR "$0 > \t-t <path> Path to the source tree > \t-i <path> Absolute path to installation directory > \t-z Create optional tarball package > \t-H Print this help message\n"); > exit(0); >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 236059
:
152585
|
152586
| 152588 |
152728