52 | | * Create pb psf(product specification file) |
53 | | {{{ |
54 | | #vi pb.psf |
| 52 | * Create control files for ProjectBuilder |
| 53 | {{{ |
| 54 | # vi postinstall |
| 55 | "postinstall" 11 lines, 860 characters |
| 56 | pod2man --section=1 ./bin/pbdistrocheck > /opt/perl_32/man/man1/pbdistrocheck.1 |
| 57 | pod2man --section=3 ./lib/ProjectBuilder/Base.pm > /opt/perl_32/man/man3/ProjectBuilder::Base.3 |
| 58 | pod2man --section=3 ./lib/ProjectBuilder/Conf.pm > /opt/perl_32/man/man3/ProjectBuilder::Conf.3 |
| 59 | pod2man --section=3 ./lib/ProjectBuilder/Display.pm > /opt/perl_32/man/man3/ProjectBuilder::Display.3 |
| 60 | pod2man --section=3 ./lib/ProjectBuilder/Distrobution.pm > /opt/perl_32/man/man3/ProjectBuilder::Distrobution.3 |
| 61 | pod2man --section=3 ./lib/ProjectBuilder/Log/Item.pm > /opt/perl_32/man/man3/ProjectBuilder::Item.3 |
| 62 | pod2man --section=3 ./lib/ProjectBuilder/Log.pm > /opt/perl_32/man/man3/ProjectBuilder::Log.3 |
| 63 | pod2man --section=3 ./lib/ProjectBuilder/Version.pm > /opt/perl_32/man/man3/ProjectBuilder::Version.3 |
| 64 | pod2man --section=5 ./etc/pb.conf.pod > /usr/local/share/man/man5/pb.conf.5 |
| 65 | # vi postremove |
| 66 | "postremove" 11 lines, 458 characters |
| 67 | rm -f /opt/perl_32/man/man1/pbdistrocheck.1 |
| 68 | rm -f /opt/perl_32/man/man3/ProjectBuilder::Base.3 |
| 69 | rm -f /opt/perl_32/man/man3/ProjectBuilder::Conf.3 |
| 70 | rm -f /opt/perl_32/man/man3/ProjectBuilder::Display.3 |
| 71 | rm -f /opt/perl_32/man/man3/ProjectBuilder::Distrobution.3 |
| 72 | rm -f /opt/perl_32/man/man3/ProjectBuilder::Item.3 |
| 73 | rm -f /opt/perl_32/man/man3/ProjectBuilder::Log.3 |
| 74 | rm -f /opt/perl_32/man/man3/ProjectBuilder::Version.3 |
| 75 | rm -f /usr/local/share/man/man5/pb.conf.5 |
| 76 | }}} |
| 77 | |
| 78 | * Create pb psf(product specification file) for ProjectBuilder |
| 79 | {{{ |
| 80 | # vi pb.psf |
| 81 | "pb.psf" 41 lines, 874 characters |
87 | | directory ./blib/bin=/opt/pb/bin |
| 114 | postinstall ./postinstall |
| 115 | postremove ./postremove |
| 116 | directory ./bin=/opt/perl_32/bin |
| 117 | file pbdistrocheck |
| 118 | directory ./lib/ProjectBuilder=/opt/perl_32/lib/5.8.8/ProjectBuilder |
| 119 | file * |
| 120 | |
| 121 | }}} |
| 122 | |
| 123 | * Create control files for project-builder |
| 124 | {{{ |
| 125 | # vi postinstall |
| 126 | "postinstall" 9 lines, 576 characters |
| 127 | pod2man --section=1 ./bin/pb > /opt/perl_32/man/man1/pb.1 |
| 128 | pod2man --section=1 ./bin/pbg > /opt/perl_32/man/man1/pbg.1 |
| 129 | pod2man --section=1 ./bin/pbvi > /opt/perl_32/man/man1/pbvi.1 |
| 130 | pod2man --section=3 ./lib/ProjectBuilder/Changelog.pm > /opt/perl_32/man/man3/ProjectBuilder::Changelog.3 |
| 131 | pod2man --section=3 ./lib/ProjectBuilder/CMS.pm > /opt/perl_32/man/man3/ProjectBuilder::CMS.3 |
| 132 | pod2man --section=3 ./lib/ProjectBuilder/Env.pm > /opt/perl_32/man/man3/ProjectBuilder::Env.3 |
| 133 | pod2man --section=3 ./lib/ProjectBuilder/Filter.pm > /opt/perl_32/man/man3/ProjectBuilder::Filter.3 |
| 134 | # vi postremove |
| 135 | "postremove" 7 lines, 311 characters |
| 136 | rm -f /opt/perl_32/man/man1/pb.1 |
| 137 | rm -f /opt/perl_32/man/man1/pbg.1 |
| 138 | rm -f /opt/perl_32/man/man1/pbvi.1 |
| 139 | rm -f /opt/perl_32/man/man3/ProjectBuilder::Changelog.3 |
| 140 | rm -f /opt/perl_32/man/man3/ProjectBuilder::CMS.3 |
| 141 | rm -f /opt/perl_32/man/man3/ProjectBuilder::Env.3 |
| 142 | rm -f /opt/perl_32/man/man3/ProjectBuilder::Filter.3 |
| 143 | }}} |
| 144 | |
| 145 | * Create pb psf(product specification file) for project-builder |
| 146 | {{{ |
| 147 | # vi p-b.psf |
| 148 | "p-b.psf" 41 lines, 874 characters |
| 149 | depot |
| 150 | layout_version 1.0 |
| 151 | |
| 152 | vendor |
| 153 | tag HP |
| 154 | depot |
| 155 | layout_version 1.0 |
| 156 | |
| 157 | vendor |
| 158 | tag HP |
| 159 | description HP EMEA CME solution center |
| 160 | title HP Intel Redhat Lab |
| 161 | |
| 162 | category |
| 163 | tag package_tool |
| 164 | description packags source code to different OS platform |
| 165 | |
| 166 | product |
| 167 | tag p-b |
| 168 | architecture HP-UX_B.11.23_32/64 |
| 169 | category package_tool |
| 170 | # copyright <copyright |
| 171 | description "PB part of package tool to distribute source code for |
| 172 | different OS platform" |
| 173 | directory /opt/perl_32 |
| 174 | is_locatable false |
| 175 | is_patch false |
| 176 | machine_type * |
| 177 | os_name HP-UX |
| 178 | os_release ?.11.23.* |
| 179 | revision 0.10.1 |
| 180 | title project-builder |
| 181 | vendor_tag HP |
| 182 | fileset |
| 183 | tag commands |
| 184 | architecture HP-UX_B.11.23_32/64 |
| 185 | # prerequisites |
| 186 | postinstall ./postinstall |
| 187 | postremove ./postremove |
| 188 | directory ./bin=/opt/perl_32/bin |
91 | | directory ./blib/lib/ProjectBuilder=/opt/perl_32/lib/5.8.8/ProjectBuilder |
92 | | file CMS.pm |
93 | | file Changelog.pm |
94 | | file Env.pm |
95 | | file Filter.pm |
96 | | file Version.pm |
97 | | directory ./blib/man1=/usr/share/man/man1 |
98 | | file pb.1 |
99 | | directory ./blib/man3=/usr/share/man/man3 |
100 | | file ProjectBuilder::CMS.3 |
101 | | file ProjectBuilder::Changelog.3 |
102 | | file ProjectBuilder::Env.3 |
103 | | file ProjectBuilder::Filter.3 |
104 | | }}} |
105 | | * Package pb as HPUX-SD format based on its psf file |
106 | | {{{ |
107 | | #swpackage –vv –s ./pb.psf –d /tmp/pb.depot |
108 | | #swreg -l depot /tmp/pb.depot |
109 | | }}} |
| 192 | directory ./lib/ProjectBuilder=/opt/perl_32/lib/5.8.8/ProjectBuilder |
| 193 | file * |
| 194 | }}} |
| 195 | |
| 196 | * Package pb as HPUX-SD format based on its psf file then register into depository |
| 197 | {{{ |
| 198 | # swpackage -s pb.psf -d /tmp/pb.depot |
| 199 | |
| 200 | ======= 01/24/11 12:50:50 EAT BEGIN swpackage SESSION |
| 201 | |
| 202 | * Session started for user "root@ux14230". |
| 203 | |
| 204 | * Source: ux14230:pb.psf |
| 205 | * Target: ux14230:/tmp/pb.depot |
| 206 | * Software selections: |
| 207 | * |
| 208 | |
| 209 | |
| 210 | * Beginning Selection Phase. |
| 211 | * Reading the Product Specification File (PSF) "pb.psf". |
| 212 | * Reading the product "PB" at line 13. |
| 213 | * Reading the fileset "commands" at line 30. |
| 214 | |
| 215 | * Selection Phase succeeded. |
| 216 | |
| 217 | |
| 218 | * Beginning Analysis Phase. |
| 219 | NOTE: The estimated free disk space required on filesystem "/tmp" is |
| 220 | 112 Kbyte blocks. This requirement will leave 2077472 Kbyte |
| 221 | blocks of free disk space on the filesystem after the |
| 222 | packaging session completes. |
| 223 | * Analysis Phase succeeded. |
| 224 | |
| 225 | |
| 226 | * Beginning Package Phase. |
| 227 | * Packaging the product "PB". |
| 228 | * Packaging the fileset "PB.commands". |
| 229 | * Package Phase succeeded. |
| 230 | |
| 231 | ======= 01/24/11 12:50:51 EAT END swpackage SESSION |
| 232 | # swpackage -s p-b.psf -d /tmp/pb.depot |
| 233 | |
| 234 | ======= 01/24/11 13:36:30 EAT BEGIN swpackage SESSION |
| 235 | |
| 236 | * Session started for user "root@ux14230". |
| 237 | |
| 238 | * Source: ux14230:p-b.psf |
| 239 | * Target: ux14230:/tmp/pb.depot |
| 240 | * Software selections: |
| 241 | * |
| 242 | |
| 243 | |
| 244 | * Beginning Selection Phase. |
| 245 | * Reading the Product Specification File (PSF) "p-b.psf". |
| 246 | * Reading the product "p-b" at line 13. |
| 247 | * Reading the fileset "commands" at line 30. |
| 248 | |
| 249 | * Selection Phase succeeded. |
| 250 | |
| 251 | |
| 252 | * Beginning Analysis Phase. |
| 253 | NOTE: The estimated free disk space required on filesystem "/tmp" is |
| 254 | 248 Kbyte blocks. This requirement will leave 2077152 Kbyte |
| 255 | blocks of free disk space on the filesystem after the |
| 256 | packaging session completes. |
| 257 | * Analysis Phase succeeded. |
| 258 | |
| 259 | |
| 260 | * Beginning Package Phase. |
| 261 | * Packaging the product "p-b". |
| 262 | * Packaging the fileset "p-b.commands". |
| 263 | * Package Phase succeeded. |
| 264 | |
| 265 | ======= 01/24/11 13:36:30 EAT END swpackage SESSION |
| 266 | |
| 267 | # swreg -l depot /tmp/pb.depot |
| 268 | |
| 269 | ======= 01/24/11 13:38:37 EAT BEGIN swreg SESSION (non-interactive) |
| 270 | |
| 271 | * Session started for user "root@ux14230". |
| 272 | |
| 273 | * Beginning Selection |
| 274 | * Targets: ux14230 |
| 275 | * Objects: /tmp/pb.depot |
| 276 | * Selection succeeded. |
| 277 | |
| 278 | |
| 279 | |
| 280 | ======= 01/24/11 13:38:37 EAT END swreg SESSION (non-interactive) |
| 281 | |
| 282 | }}} |
| 283 | |
113 | | }}} |
| 287 | |
| 288 | ┌ === SD Install - Software Selection (ux14230) (1) ┐ |
| 289 | │File View Options Actions Help │ |
| 290 | │ Press CTRL-K for keyboard help. │ |
| 291 | │Source: ux14230:/tmp/pb.depot │ |
| 292 | │Target: ux14230:/ │ |
| 293 | │ │ |
| 294 | │All software on the source is available for selection. │ |
| 295 | │──────────────────────────────────────────────────────────────────────────────│ |
| 296 | │Top (Bundles and Products) 0 of 3 selected│ |
| 297 | │──────────────────────────────────────────────────────────────────────────────│ |
| 298 | │ Marked? Name Revision Information Size( │ |
| 299 | │┌───────────────────────────────────────────────────────────────────────────┐ │ |
| 300 | ││ PB -> 0.10.1 ProjectBuilder ^ │ |
| 301 | ││ p-b -> 0.10.1 project-builder 1 │ |
| 302 | ││ pb -> 0.9.10 project-builder │ |
| 303 | ││ │ |
| 304 | ││ │ |
| 305 | ││ │ |
| 306 | ││ │ |
| 307 | ││ │ |
| 308 | ││ v │ |
| 309 | │ <─────────────────────────────────────────────────────────────────────────>┘ │ |
| 310 | │ │ |
| 311 | └──────────────────────────────────────────────────────────────────────────────┘ |
| 312 | |
| 313 | }}} |
| 314 | then follow the instruction to install pb project. |
| 315 | |
| 316 | * to check the product of pb installed successfully by swlist command or run the command pb |
| 317 | {{{ |
| 318 | }}} |
| 319 | |