# PaCkAgE DaTaStReAm
opensvc 1 3449
# end of header
070701000877ca000081a40000000000000000000000014ed27b04000000dc000000b600010002ffffffffffffffff0000001000000000opensvc/pkginfo PKG=opensvc
NAME=opensvc Service Manager for logical servers v1.3-111127.1749
ARCH=all
VERSION=1.3
CATEGORY=application
VENDOR=http://www.opensvc.com
EMAIL=support@opensvc.com
PSTAMP=OPENSVC-1.3-111127.1749
CLASSES=none
070701000877c9000081a40000000000000000000000014ed27b0400005b26000000b600010002ffffffffffffffff0000000f00000000opensvc/pkgmap : 1 3449
1 d none /opt/opensvc 0755 root root
1 d none /opt/opensvc/.be 0755 root root
1 d none /opt/opensvc/.be/bugs 0755 root root
1 d none /opt/opensvc/.be/bugs/1edaf8af-367e-4d9b-8604-5b29e089215d 0755 root root
1 d none /opt/opensvc/.be/bugs/1edaf8af-367e-4d9b-8604-5b29e089215d/comments 0755 root root
1 d none /opt/opensvc/.be/bugs/1edaf8af-367e-4d9b-8604-5b29e089215d/comments/53babb48-bd35-4130-9f96-99806d5bc239 0755 root root
1 f none /opt/opensvc/.be/bugs/1edaf8af-367e-4d9b-8604-5b29e089215d/comments/53babb48-bd35-4130-9f96-99806d5bc239/body 0644 root root 157 14121 1322412578
1 f none /opt/opensvc/.be/bugs/1edaf8af-367e-4d9b-8604-5b29e089215d/comments/53babb48-bd35-4130-9f96-99806d5bc239/values 0644 root root 136 10270 1322412578
1 f none /opt/opensvc/.be/bugs/1edaf8af-367e-4d9b-8604-5b29e089215d/values 0644 root root 190 14629 1322412578
1 d none /opt/opensvc/.be/bugs/23f6ceaf-d0db-47b6-a127-55a2fae83a03 0755 root root
1 f none /opt/opensvc/.be/bugs/23f6ceaf-d0db-47b6-a127-55a2fae83a03/values 0644 root root 262 21256 1322412578
1 d none /opt/opensvc/.be/bugs/93b834b7-89d4-4462-89fb-d313864f3a51 0755 root root
1 f none /opt/opensvc/.be/bugs/93b834b7-89d4-4462-89fb-d313864f3a51/values 0644 root root 290 23948 1322412578
1 f none /opt/opensvc/.be/settings 0644 root root 19 1295 1322412578
1 f none /opt/opensvc/.be/version 0644 root root 25 2098 1322412578
1 d none /opt/opensvc/bin 0755 root root
1 s none /opt/opensvc/bin/alldownservices=svcmgr
1 s none /opt/opensvc/bin/allprimaryservices=svcmgr
1 s none /opt/opensvc/bin/allsecondaryservices=svcmgr
1 s none /opt/opensvc/bin/allservices=svcmgr
1 s none /opt/opensvc/bin/allupservices=svcmgr
1 d none /opt/opensvc/bin/cron 0755 root root
1 f none /opt/opensvc/bin/cron/opensvc 0755 root root 1677 8360 1322412578
1 f none /opt/opensvc/bin/freezer 0755 root root 1364 49689 1322412578
1 f none /opt/opensvc/bin/nodemgr 0755 root root 5866 27284 1322412578
1 f none /opt/opensvc/bin/opensvc.init.AIX 0755 root root 209 18797 1322412578
1 f none /opt/opensvc/bin/opensvc.init.Darwin 0644 root root 441 36791 1322412578
1 f none /opt/opensvc/bin/opensvc.init.FreeBSD 0755 root root 300 25712 1322412578
1 f none /opt/opensvc/bin/opensvc.init.SunOS 0755 root root 396 34372 1322412578
1 f none /opt/opensvc/bin/opensvc.init.debian 0755 root root 454 35881 1322412578
1 f none /opt/opensvc/bin/opensvc.init.hpux 0755 root root 738 60175 1322412578
1 f none /opt/opensvc/bin/opensvc.init.redhat 0755 root root 476 40877 1322412578
1 f none /opt/opensvc/bin/perfagt.Darwin 0755 root root 2523 46695 1322412578
1 f none /opt/opensvc/bin/perfagt.HP-UX 0755 root root 3049 31594 1322412578
1 f none /opt/opensvc/bin/perfagt.Linux 0755 root root 858 64967 1322412578
1 d none /opt/opensvc/bin/pkg 0755 root root
1 f none /opt/opensvc/bin/pkg/make.lib 0644 root root 1929 11741 1322412578
1 f none /opt/opensvc/bin/pkg/make_deb 0755 root root 889 7276 1322412578
1 f none /opt/opensvc/bin/pkg/make_depot 0755 root root 1340 37386 1322412578
1 f none /opt/opensvc/bin/pkg/make_pkg 0755 root root 4851 39318 1322412578
1 f none /opt/opensvc/bin/pkg/make_rpm 0755 root root 959 14283 1322412578
1 f none /opt/opensvc/bin/pkg/make_tbz 0755 root root 1936 27386 1322412578
1 f none /opt/opensvc/bin/postinstall 0755 root root 16916 62783 1322412578
1 s none /opt/opensvc/bin/svcfreeze=freezer
1 s none /opt/opensvc/bin/svcfrozen=freezer
1 f none /opt/opensvc/bin/svcmgr 0755 root root 11797 51353 1322412578
1 f none /opt/opensvc/bin/svcmon 0755 root root 5582 39499 1322412578
1 s none /opt/opensvc/bin/svcthaw=freezer
1 d none /opt/opensvc/lib 0755 root root
1 f none /opt/opensvc/lib/checkFsInodeDarwin.py 0644 root root 1821 5364 1322412578
1 f none /opt/opensvc/lib/checkFsInodeHP-UX.py 0644 root root 1953 12217 1322412578
1 f none /opt/opensvc/lib/checkFsInodeLinux.py 0644 root root 1752 809 1322412578
1 s none /opt/opensvc/lib/checkFsUsageDarwin.py=checkFsUsageLinux.py
1 s none /opt/opensvc/lib/checkFsUsageFreeBSD.py=checkFsUsageLinux.py
1 s none /opt/opensvc/lib/checkFsUsageHP-UX.py=checkFsUsageLinux.py
1 f none /opt/opensvc/lib/checkFsUsageLinux.py 0644 root root 1943 13768 1322412578
1 f none /opt/opensvc/lib/checkMpathHP-UX.py 0644 root root 2126 22276 1322412578
1 f none /opt/opensvc/lib/checkMpathLinux.py 0644 root root 2135 20486 1322412578
1 f none /opt/opensvc/lib/checkMpathSunOS.py 0644 root root 2122 21966 1322412578
1 f none /opt/opensvc/lib/checkRaidSmartArray.py 0644 root root 3105 30495 1322412578
1 s none /opt/opensvc/lib/checkRaidSmartArrayLinux.py=checkRaidSmartArray.py
1 s none /opt/opensvc/lib/checkRaidSmartArraySunOS.py=checkRaidSmartArray.py
1 f none /opt/opensvc/lib/checkVgUsageHP-UX.py 0644 root root 2635 64776 1322412578
1 f none /opt/opensvc/lib/checkVgUsageLinux.py 0644 root root 1954 14175 1322412578
1 f none /opt/opensvc/lib/checkZfsUsageSunOS.py 0644 root root 3185 32511 1322412578
1 f none /opt/opensvc/lib/checks.py 0644 root root 3745 7929 1322412578
1 f none /opt/opensvc/lib/collector.py 0644 root root 6001 211 1322412578
1 f none /opt/opensvc/lib/compliance.py 0644 root root 16538 32473 1322412578
1 f none /opt/opensvc/lib/freezer.py 0644 root root 1780 9411 1322412578
1 f none /opt/opensvc/lib/hostidAIX.py 0644 root root 1107 26120 1322412578
1 f none /opt/opensvc/lib/hostidDarwin.py 0644 root root 888 9879 1322412578
1 s none /opt/opensvc/lib/hostidFreeBSD.py=hostidLinux.py
1 f none /opt/opensvc/lib/hostidHP-UX.py 0644 root root 1203 33767 1322412578
1 f none /opt/opensvc/lib/hostidLinux.py 0644 root root 888 9879 1322412578
1 f none /opt/opensvc/lib/hostidSunOS.py 0644 root root 888 9879 1322412578
1 f none /opt/opensvc/lib/lock.py 0644 root root 2810 17169 1322412578
1 f none /opt/opensvc/lib/loopSunOS.py 0644 root root 1439 52901 1322412578
1 f none /opt/opensvc/lib/node.py 0644 root root 27965 29041 1322412578
1 f none /opt/opensvc/lib/nodeHP-UX.py 0644 root root 1106 25464 1322412578
1 f none /opt/opensvc/lib/nodeLinux.py 0644 root root 1076 23916 1322412578
1 f none /opt/opensvc/lib/provFs.py 0644 root root 3731 9313 1322412578
1 f none /opt/opensvc/lib/provFsExt2.py 0644 root root 143 11721 1322412578
1 f none /opt/opensvc/lib/provFsExt3.py 0644 root root 143 11723 1322412578
1 f none /opt/opensvc/lib/provFsExt4.py 0644 root root 143 11725 1322412578
1 f none /opt/opensvc/lib/provFsZfs.py 0644 root root 1558 61639 1322412578
1 f none /opt/opensvc/lib/provIp.py 0644 root root 125 11090 1322412578
1 f none /opt/opensvc/lib/provKvm.py 0644 root root 4571 1199 1322412578
1 f none /opt/opensvc/lib/provLoopLinux.py 0644 root root 877 65497 1322412578
1 f none /opt/opensvc/lib/provLxc.py 0644 root root 8342 61843 1322412578
1 f none /opt/opensvc/lib/provVgLinux.py 0644 root root 1760 59090 1322412578
1 f none /opt/opensvc/lib/provZone.py 0644 root root 8220 40373 1322412578
1 f none /opt/opensvc/lib/provisioning.py 0644 root root 168 12704 1322412578
1 f none /opt/opensvc/lib/rcAddService.py 0644 root root 911 11569 1322412578
1 f none /opt/opensvc/lib/rcAsset.py 0644 root root 7328 9079 1322412578
1 f none /opt/opensvc/lib/rcAssetDarwin.py 0644 root root 3024 33023 1322412578
1 f none /opt/opensvc/lib/rcAssetFreeBSD.py 0644 root root 2476 53625 1322412578
1 f none /opt/opensvc/lib/rcAssetHP-UX.py 0644 root root 5872 14238 1322412578
1 f none /opt/opensvc/lib/rcAssetLinux.py 0644 root root 8642 6870 1322412578
1 f none /opt/opensvc/lib/rcAssetSunOS.py 0644 root root 3914 21758 1322412578
1 f none /opt/opensvc/lib/rcCommandWorker.py 0644 root root 1902 14479 1322412578
1 f none /opt/opensvc/lib/rcContainerLinux.py 0644 root root 5010 5843 1322412578
1 f none /opt/opensvc/lib/rcDiskInfo.py 0644 root root 1095 24481 1322412578
1 f none /opt/opensvc/lib/rcDiskInfoAIX.py 0644 root root 2382 50855 1322412578
1 f none /opt/opensvc/lib/rcDiskInfoDarwin.py 0644 root root 888 9990 1322412578
1 f none /opt/opensvc/lib/rcDiskInfoFreeBSD.py 0644 root root 1303 41131 1322412578
1 f none /opt/opensvc/lib/rcDiskInfoHP-UX.py 0644 root root 2956 22391 1322412578
1 f none /opt/opensvc/lib/rcDiskInfoLinux.py 0644 root root 3105 25786 1322412578
1 f none /opt/opensvc/lib/rcDiskInfoSunOS.py 0644 root root 3398 44230 1322412578
1 f none /opt/opensvc/lib/rcExceptions.py 0644 root root 3580 30536 1322412578
1 f none /opt/opensvc/lib/rcGlobalEnv.py 0644 root root 5890 63824 1322412578
1 f none /opt/opensvc/lib/rcIfconfig.py 0644 root root 4124 44119 1322412578
1 f none /opt/opensvc/lib/rcIfconfigAIX.py 0644 root root 2810 69 1322412578
1 f none /opt/opensvc/lib/rcIfconfigDarwin.py 0644 root root 2631 51701 1322412578
1 f none /opt/opensvc/lib/rcIfconfigFreeBSD.py 0644 root root 2631 51701 1322412578
1 s none /opt/opensvc/lib/rcIfconfigFreeBSDhpvm.py=rcIfconfigFreeBSDkvm.py
1 f none /opt/opensvc/lib/rcIfconfigFreeBSDkvm.py 0644 root root 1266 39292 1322412578
1 s none /opt/opensvc/lib/rcIfconfigFreeBSDldom.py=rcIfconfigFreeBSDkvm.py
1 s none /opt/opensvc/lib/rcIfconfigFreeBSDxen.py=rcIfconfigFreeBSDkvm.py
1 f none /opt/opensvc/lib/rcIfconfigHP-UX.py 0644 root root 3359 34241 1322412578
1 f none /opt/opensvc/lib/rcIfconfigHP-UXhpvm.py 0644 root root 1779 7622 1322412578
1 f none /opt/opensvc/lib/rcIfconfigLinux.py 0644 root root 2878 1079 1322412578
1 s none /opt/opensvc/lib/rcIfconfigLinuxhpvm.py=rcIfconfigLinuxkvm.py
1 f none /opt/opensvc/lib/rcIfconfigLinuxkvm.py 0644 root root 1281 40272 1322412578
1 s none /opt/opensvc/lib/rcIfconfigLinuxldom.py=rcIfconfigLinuxkvm.py
1 f none /opt/opensvc/lib/rcIfconfigLinuxlxc.py 0644 root root 1567 61437 1322412578
1 s none /opt/opensvc/lib/rcIfconfigLinuxovm.py=rcIfconfigLinuxkvm.py
1 f none /opt/opensvc/lib/rcIfconfigLinuxvz.py 0644 root root 1123 27805 1322412578
1 s none /opt/opensvc/lib/rcIfconfigLinuxxen.py=rcIfconfigLinuxkvm.py
1 f none /opt/opensvc/lib/rcIfconfigSunOS.py 0644 root root 2855 1531 1322412578
1 s none /opt/opensvc/lib/rcIfconfigSunOSkvm.py=rcIfconfigSunOSldom.py
1 f none /opt/opensvc/lib/rcIfconfigSunOSldom.py 0644 root root 1281 40216 1322412578
1 s none /opt/opensvc/lib/rcIfconfigSunOSxen.py=rcIfconfigSunOSldom.py
1 f none /opt/opensvc/lib/rcIfconfigWindowskvm.py 0644 root root 1096 27277 1322412578
1 f none /opt/opensvc/lib/rcLogger.py 0644 root root 2193 42617 1322412578
1 f none /opt/opensvc/lib/rcLoopLinux.py 0644 root root 1694 4675 1322412578
1 f none /opt/opensvc/lib/rcMounts.py 0644 root root 1933 18912 1322412578
1 f none /opt/opensvc/lib/rcMountsAIX.py 0644 root root 3212 36906 1322412578
1 f none /opt/opensvc/lib/rcMountsDarwin.py 0644 root root 2436 54804 1322412578
1 f none /opt/opensvc/lib/rcMountsFreeBSD.py 0644 root root 2436 54804 1322412578
1 f none /opt/opensvc/lib/rcMountsHP-UX.py 0644 root root 2250 45165 1322412578
1 f none /opt/opensvc/lib/rcMountsLinux.py 0644 root root 2301 49085 1322412578
1 f none /opt/opensvc/lib/rcMountsSunOS.py 0644 root root 1938 19118 1322412578
1 f none /opt/opensvc/lib/rcNexenta.py 0755 root root 11720 3539 1322412578
1 f none /opt/opensvc/lib/rcNode.py 0644 root root 1498 60669 1322412578
1 f none /opt/opensvc/lib/rcOptParser.py 0644 root root 8847 23822 1322412578
1 f none /opt/opensvc/lib/rcOs.py 0644 root root 126 9734 1322412578
1 f none /opt/opensvc/lib/rcOsHP-UX.py 0644 root root 122 10053 1322412578
1 f none /opt/opensvc/lib/rcOsLinux.py 0644 root root 216 16341 1322412578
1 f none /opt/opensvc/lib/rcOvm.py 0755 root root 4499 12375 1322412578
1 f none /opt/opensvc/lib/rcPkgAIX.py 0644 root root 1825 14243 1322412578
1 f none /opt/opensvc/lib/rcPkgDarwin.py 0644 root root 1754 9786 1322412578
1 f none /opt/opensvc/lib/rcPkgFreeBSD.py 0644 root root 1308 39656 1322412578
1 f none /opt/opensvc/lib/rcPkgHP-UX.py 0644 root root 1271 36609 1322412578
1 f none /opt/opensvc/lib/rcPkgLinux.py 0644 root root 1822 13831 1322412578
1 f none /opt/opensvc/lib/rcPkgSunOS.py 0644 root root 2327 44357 1322412578
1 f none /opt/opensvc/lib/rcPrintTable.py 0644 root root 8216 58324 1322412578
1 f none /opt/opensvc/lib/rcStats.py 0644 root root 3859 32390 1322412578
1 f none /opt/opensvc/lib/rcStatsAIX.py 0644 root root 4851 34443 1322412578
1 f none /opt/opensvc/lib/rcStatsDarwin.py 0644 root root 5463 37133 1322412578
1 f none /opt/opensvc/lib/rcStatsFreeBSD.py 0644 root root 5268 21932 1322412578
1 f none /opt/opensvc/lib/rcStatsHP-UX.py 0644 root root 7637 2991 1322412578
1 f none /opt/opensvc/lib/rcStatsLinux.py 0644 root root 9429 3105 1322412578
1 f none /opt/opensvc/lib/rcStatsSunOS.py 0644 root root 6337 26249 1322412578
1 f none /opt/opensvc/lib/rcStatus.py 0644 root root 5867 61184 1322412578
1 f none /opt/opensvc/lib/rcSymmetrix.py 0644 root root 5572 9151 1322412578
1 f none /opt/opensvc/lib/rcUtilities.py 0644 root root 7213 15832 1322412578
1 f none /opt/opensvc/lib/rcUtilitiesAIX.py 0644 root root 326 23568 1322412578
1 f none /opt/opensvc/lib/rcUtilitiesDarwin.py 0644 root root 376 25693 1322412578
1 f none /opt/opensvc/lib/rcUtilitiesFreeBSD.py 0644 root root 330 22872 1322412578
1 f none /opt/opensvc/lib/rcUtilitiesHP-UX.py 0644 root root 262 18527 1322412578
1 f none /opt/opensvc/lib/rcUtilitiesLinux.py 0644 root root 2622 63352 1322412578
1 f none /opt/opensvc/lib/rcUtilitiesSunOS.py 0644 root root 200 15386 1322412578
1 f none /opt/opensvc/lib/rcZfs.py 0644 root root 7683 46609 1322412578
1 f none /opt/opensvc/lib/rcZone.py 0644 root root 3816 35934 1322412578
1 f none /opt/opensvc/lib/resApp.py 0644 root root 9385 35760 1322412578
1 f none /opt/opensvc/lib/resAppVm.py 0644 root root 3852 30814 1322412578
1 f none /opt/opensvc/lib/resContainer.py 0644 root root 5831 46462 1322412578
1 f none /opt/opensvc/lib/resContainerEsx.py 0644 root root 4157 45873 1322412578
1 f none /opt/opensvc/lib/resContainerHpVm.py 0644 root root 3903 35665 1322412578
1 f none /opt/opensvc/lib/resContainerJail.py 0644 root root 3913 29078 1322412578
1 f none /opt/opensvc/lib/resContainerKvm.py 0644 root root 5373 13404 1322412578
1 f none /opt/opensvc/lib/resContainerLdom.py 0644 root root 5010 39189 1322412578
1 f none /opt/opensvc/lib/resContainerLxc.py 0644 root root 6215 45476 1322412578
1 f none /opt/opensvc/lib/resContainerOvm.py 0644 root root 4575 13950 1322412578
1 f none /opt/opensvc/lib/resContainerVbox.py 0644 root root 4458 3543 1322412578
1 f none /opt/opensvc/lib/resContainerVz.py 0644 root root 4445 60210 1322412578
1 f none /opt/opensvc/lib/resContainerXen.py 0644 root root 3916 34031 1322412578
1 f none /opt/opensvc/lib/resContainerZone.py 0644 root root 11761 65019 1322412578
1 f none /opt/opensvc/lib/resDg.py 0644 root root 2769 24481 1322412578
1 f none /opt/opensvc/lib/resDrbd.py 0644 root root 6475 25395 1322412578
1 f none /opt/opensvc/lib/resHb.py 0644 root root 2607 64888 1322412578
1 f none /opt/opensvc/lib/resHbLinuxHA.py 0644 root root 1941 26504 1322412578
1 f none /opt/opensvc/lib/resHbOpenHA.py 0644 root root 6719 37649 1322412578
1 f none /opt/opensvc/lib/resHbovm.py 0644 root root 2867 27470 1322412578
1 f none /opt/opensvc/lib/resIp.py 0644 root root 8884 59671 1322412578
1 f none /opt/opensvc/lib/resIpAIX.py 0644 root root 1918 23091 1322412578
1 f none /opt/opensvc/lib/resIpDarwin.py 0644 root root 1926 23304 1322412578
1 f none /opt/opensvc/lib/resIpEsx.py 0644 root root 1553 60513 1322412578
1 f none /opt/opensvc/lib/resIpFreeBSD.py 0644 root root 1926 23304 1322412578
1 f none /opt/opensvc/lib/resIpHP-UX.py 0644 root root 1942 21914 1322412578
1 f none /opt/opensvc/lib/resIpHpVm.py 0644 root root 1544 60631 1322412578
1 f none /opt/opensvc/lib/resIpKvm.py 0644 root root 1572 61663 1322412578
1 f none /opt/opensvc/lib/resIpLdom.py 0644 root root 1573 61617 1322412578
1 f none /opt/opensvc/lib/resIpLinux.py 0644 root root 2278 50264 1322412578
1 f none /opt/opensvc/lib/resIpLinuxLxc.py 0644 root root 1573 61673 1322412578
1 f none /opt/opensvc/lib/resIpSunOS.py 0644 root root 1644 4270 1322412578
1 f none /opt/opensvc/lib/resIpVbox.py 0644 root root 1553 60541 1322412578
1 f none /opt/opensvc/lib/resIpVm.py 0644 root root 3249 58427 1322412578
1 f none /opt/opensvc/lib/resIpXen.py 0644 root root 1612 65334 1322412578
1 f none /opt/opensvc/lib/resIpZone.py 0644 root root 1723 8076 1322412578
1 f none /opt/opensvc/lib/resLoop.py 0644 root root 1901 20297 1322412578
1 f none /opt/opensvc/lib/resLoopFreeBSD.py 0644 root root 3201 49127 1322412578
1 f none /opt/opensvc/lib/resLoopLinux.py 0644 root root 2546 3632 1322412578
1 f none /opt/opensvc/lib/resMount.py 0644 root root 5631 38219 1322412578
1 f none /opt/opensvc/lib/resMountAIX.py 0644 root root 5307 5892 1322412578
1 f none /opt/opensvc/lib/resMountDarwin.py 0644 root root 5664 33046 1322412578
1 f none /opt/opensvc/lib/resMountFreeBSD.py 0644 root root 5664 33046 1322412578
1 f none /opt/opensvc/lib/resMountHP-UX.py 0644 root root 3938 40941 1322412578
1 f none /opt/opensvc/lib/resMountLinux.py 0644 root root 10575 33539 1322412578
1 f none /opt/opensvc/lib/resMountSunOS.py 0644 root root 5509 4654 1322412578
1 f none /opt/opensvc/lib/resScsiReserv.py 0644 root root 6490 22015 1322412578
1 s none /opt/opensvc/lib/resScsiReservFreeBSD.py=resScsiReservLinux.py
1 f none /opt/opensvc/lib/resScsiReservHP-UX.py 0644 root root 5718 41271 1322412578
1 f none /opt/opensvc/lib/resScsiReservLinux.py 0644 root root 5026 57594 1322412578
1 s none /opt/opensvc/lib/resScsiReservSunOS.py=resScsiReservLinux.py
1 f none /opt/opensvc/lib/resStonith.py 0644 root root 2339 50083 1322412578
1 f none /opt/opensvc/lib/resStonithIlo.py 0644 root root 609 48429 1322412578
1 f none /opt/opensvc/lib/resSync.py 0644 root root 5467 19166 1322412578
1 f none /opt/opensvc/lib/resSyncDds.py 0644 root root 15053 133 1322412578
1 f none /opt/opensvc/lib/resSyncEvasnap.py 0644 root root 11154 44658 1322412578
1 f none /opt/opensvc/lib/resSyncNetapp.py 0644 root root 10927 23290 1322412578
1 f none /opt/opensvc/lib/resSyncNexenta.py 0644 root root 9320 37158 1322412578
1 f none /opt/opensvc/lib/resSyncRsync.py 0644 root root 15381 53890 1322412578
1 f none /opt/opensvc/lib/resSyncSymclone.py 0644 root root 8607 47818 1322412578
1 f none /opt/opensvc/lib/resSyncSymcloneLinux.py 0644 root root 2799 22002 1322412578
1 f none /opt/opensvc/lib/resSyncZfs.py 0644 root root 13802 51747 1322412578
1 f none /opt/opensvc/lib/resVdisk.py 0644 root root 2888 29549 1322412578
1 f none /opt/opensvc/lib/resVgAIX.py 0644 root root 4023 35474 1322412578
1 f none /opt/opensvc/lib/resVgHP-UX.py 0644 root root 9785 40769 1322412578
1 f none /opt/opensvc/lib/resVgHpVm.py 0644 root root 5204 48662 1322412578
1 f none /opt/opensvc/lib/resVgLdom.py 0644 root root 4127 28231 1322412578
1 f none /opt/opensvc/lib/resVgLibvirtVm.py 0644 root root 2421 56479 1322412578
1 f none /opt/opensvc/lib/resVgLinux.py 0644 root root 5606 12232 1322412578
1 f none /opt/opensvc/lib/resVgRaw.py 0644 root root 2058 24455 1322412578
1 f none /opt/opensvc/lib/resVgVeritas.py 0644 root root 4248 45984 1322412578
1 f none /opt/opensvc/lib/resVgZfs.py 0644 root root 5579 18907 1322412578
1 f none /opt/opensvc/lib/resources.py 0644 root root 11799 29941 1322412578
1 f none /opt/opensvc/lib/snap.py 0644 root root 5147 59907 1322412578
1 f none /opt/opensvc/lib/snapJfs2AIX.py 0644 root root 4920 36536 1322412578
1 f none /opt/opensvc/lib/snapLvmLinux.py 0644 root root 3414 2784 1322412578
1 f none /opt/opensvc/lib/snapVxfsHP-UX.py 0644 root root 3569 10405 1322412578
1 f none /opt/opensvc/lib/snapZfsSunOS.py 0644 root root 2189 43488 1322412578
1 f none /opt/opensvc/lib/svc.py 0644 root root 46768 4420 1322412578
1 f none /opt/opensvc/lib/svcBuilder.py 0644 root root 59522 31412 1322412578
1 f none /opt/opensvc/lib/svcDict.py 0644 root root 61592 4484 1322412578
1 f none /opt/opensvc/lib/svcEsx.py 0644 root root 1481 59006 1322412578
1 f none /opt/opensvc/lib/svcHosted.py 0644 root root 1753 7454 1322412578
1 f none /opt/opensvc/lib/svcHpVm.py 0644 root root 1506 61854 1322412578
1 f none /opt/opensvc/lib/svcJail.py 0644 root root 1675 6427 1322412578
1 f none /opt/opensvc/lib/svcKvm.py 0644 root root 1501 61306 1322412578
1 f none /opt/opensvc/lib/svcLdom.py 0644 root root 1506 61860 1322412578
1 f none /opt/opensvc/lib/svcLxc.py 0644 root root 2243 46574 1322412578
1 f none /opt/opensvc/lib/svcOvm.py 0644 root root 1602 3700 1322412578
1 f none /opt/opensvc/lib/svcVbox.py 0644 root root 1415 52098 1322412578
1 f none /opt/opensvc/lib/svcVz.py 0644 root root 1963 24257 1322412578
1 f none /opt/opensvc/lib/svcXen.py 0644 root root 1459 57213 1322412578
1 f none /opt/opensvc/lib/svcZone.py 0644 root root 4556 32462 1322412578
1 f none /opt/opensvc/lib/version.py 0644 root root 28 1728 1322416900
1 f none /opt/opensvc/lib/xmlrpcClient.py 0644 root root 34759 30855 1322412578
1 d none /opt/opensvc/usr 0755 root root
1 d none /opt/opensvc/usr/share 0755 root root
1 f none /opt/opensvc/usr/share/AUTHORS 0644 root root 48 4634 1322412578
1 f none /opt/opensvc/usr/share/BANNER 0644 root root 828 5079 1322412578
1 f none /opt/opensvc/usr/share/COPYING 0644 root root 26436 9725 1322412578
1 d none /opt/opensvc/usr/share/bash_completion.d 0755 root root
1 f none /opt/opensvc/usr/share/bash_completion.d/opensvc 0644 root root 1489 53839 1322412578
1 d none /opt/opensvc/usr/share/doc 0755 root root
1 f none /opt/opensvc/usr/share/doc/node.conf 0644 root root 3283 2076 1322412578
1 f none /opt/opensvc/usr/share/doc/opensvc.haresource 0644 root root 506 43100 1322412578
1 d none /opt/opensvc/usr/share/doc/provisioning 0755 root root
1 f none /opt/opensvc/usr/share/doc/provisioning/provisioning.agent.debian 0755 root root 2602 50922 1322412578
1 f none /opt/opensvc/usr/share/doc/provisioning/provisioning.example 0644 root root 362 30449 1322412578
1 f none /opt/opensvc/usr/share/doc/template.comp_module.py 0755 root root 1235 30145 1322412578
1 f none /opt/opensvc/usr/share/doc/template.comp_module.sh 0644 root root 539 36167 1322412578
1 f none /opt/opensvc/usr/share/doc/template.env 0644 root root 29023 38007 1322412578
1 d none /opt/opensvc/var 0755 root root
1 d none /opt/opensvc/var/compliance 0755 root root
1 d none /opt/opensvc/var/compliance/com.opensvc 0755 root root
1 f none /opt/opensvc/var/compliance/com.opensvc/authkeys.py 0755 root root 7658 32509 1322412578
1 f none /opt/opensvc/var/compliance/com.opensvc/bios.py 0755 root root 2000 16409 1322412578
1 f none /opt/opensvc/var/compliance/com.opensvc/comp.py 0644 root root 1204 31330 1322412578
1 f none /opt/opensvc/var/compliance/com.opensvc/cron.py 0755 root root 7554 59893 1322412578
1 f none /opt/opensvc/var/compliance/com.opensvc/files.py 0755 root root 8659 24218 1322412578
1 f none /opt/opensvc/var/compliance/com.opensvc/groups.py 0755 root root 5331 63349 1322412578
1 f none /opt/opensvc/var/compliance/com.opensvc/groups_membership.py 0755 root root 5491 14753 1322412578
1 f none /opt/opensvc/var/compliance/com.opensvc/packages.py 0755 root root 4196 48782 1322412578
1 f none /opt/opensvc/var/compliance/com.opensvc/users.py 0755 root root 7236 64132 1322412578
1 f none /opt/opensvc/var/compliance/com.opensvc/utilities.py 0644 root root 1683 8796 1322412578
1 f none /opt/opensvc/var/compliance/com.opensvc/vuln.py 0755 root root 10422 33784 1322412578
1 f none /opt/opensvc/var/compliance/com.opensvc/xinetd.py 0755 root root 5857 15927 1322412578
1 i pkginfo 220 17789 1322416900
1 i postinstall 302 26825 1322416900
07070100000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000b00000000TRAILER!!! 070701000877ca000081a40000000000000000000000014ed27b04000000dc000000b600010002ffffffffffffffff0000000800000000pkginfo PKG=opensvc
NAME=opensvc Service Manager for logical servers v1.3-111127.1749
ARCH=all
VERSION=1.3
CATEGORY=application
VENDOR=http://www.opensvc.com
EMAIL=support@opensvc.com
PSTAMP=OPENSVC-1.3-111127.1749
CLASSES=none
070701000877c9000081a40000000000000000000000014ed27b0400005b26000000b600010002ffffffffffffffff0000000700000000pkgmap : 1 3449
1 d none /opt/opensvc 0755 root root
1 d none /opt/opensvc/.be 0755 root root
1 d none /opt/opensvc/.be/bugs 0755 root root
1 d none /opt/opensvc/.be/bugs/1edaf8af-367e-4d9b-8604-5b29e089215d 0755 root root
1 d none /opt/opensvc/.be/bugs/1edaf8af-367e-4d9b-8604-5b29e089215d/comments 0755 root root
1 d none /opt/opensvc/.be/bugs/1edaf8af-367e-4d9b-8604-5b29e089215d/comments/53babb48-bd35-4130-9f96-99806d5bc239 0755 root root
1 f none /opt/opensvc/.be/bugs/1edaf8af-367e-4d9b-8604-5b29e089215d/comments/53babb48-bd35-4130-9f96-99806d5bc239/body 0644 root root 157 14121 1322412578
1 f none /opt/opensvc/.be/bugs/1edaf8af-367e-4d9b-8604-5b29e089215d/comments/53babb48-bd35-4130-9f96-99806d5bc239/values 0644 root root 136 10270 1322412578
1 f none /opt/opensvc/.be/bugs/1edaf8af-367e-4d9b-8604-5b29e089215d/values 0644 root root 190 14629 1322412578
1 d none /opt/opensvc/.be/bugs/23f6ceaf-d0db-47b6-a127-55a2fae83a03 0755 root root
1 f none /opt/opensvc/.be/bugs/23f6ceaf-d0db-47b6-a127-55a2fae83a03/values 0644 root root 262 21256 1322412578
1 d none /opt/opensvc/.be/bugs/93b834b7-89d4-4462-89fb-d313864f3a51 0755 root root
1 f none /opt/opensvc/.be/bugs/93b834b7-89d4-4462-89fb-d313864f3a51/values 0644 root root 290 23948 1322412578
1 f none /opt/opensvc/.be/settings 0644 root root 19 1295 1322412578
1 f none /opt/opensvc/.be/version 0644 root root 25 2098 1322412578
1 d none /opt/opensvc/bin 0755 root root
1 s none /opt/opensvc/bin/alldownservices=svcmgr
1 s none /opt/opensvc/bin/allprimaryservices=svcmgr
1 s none /opt/opensvc/bin/allsecondaryservices=svcmgr
1 s none /opt/opensvc/bin/allservices=svcmgr
1 s none /opt/opensvc/bin/allupservices=svcmgr
1 d none /opt/opensvc/bin/cron 0755 root root
1 f none /opt/opensvc/bin/cron/opensvc 0755 root root 1677 8360 1322412578
1 f none /opt/opensvc/bin/freezer 0755 root root 1364 49689 1322412578
1 f none /opt/opensvc/bin/nodemgr 0755 root root 5866 27284 1322412578
1 f none /opt/opensvc/bin/opensvc.init.AIX 0755 root root 209 18797 1322412578
1 f none /opt/opensvc/bin/opensvc.init.Darwin 0644 root root 441 36791 1322412578
1 f none /opt/opensvc/bin/opensvc.init.FreeBSD 0755 root root 300 25712 1322412578
1 f none /opt/opensvc/bin/opensvc.init.SunOS 0755 root root 396 34372 1322412578
1 f none /opt/opensvc/bin/opensvc.init.debian 0755 root root 454 35881 1322412578
1 f none /opt/opensvc/bin/opensvc.init.hpux 0755 root root 738 60175 1322412578
1 f none /opt/opensvc/bin/opensvc.init.redhat 0755 root root 476 40877 1322412578
1 f none /opt/opensvc/bin/perfagt.Darwin 0755 root root 2523 46695 1322412578
1 f none /opt/opensvc/bin/perfagt.HP-UX 0755 root root 3049 31594 1322412578
1 f none /opt/opensvc/bin/perfagt.Linux 0755 root root 858 64967 1322412578
1 d none /opt/opensvc/bin/pkg 0755 root root
1 f none /opt/opensvc/bin/pkg/make.lib 0644 root root 1929 11741 1322412578
1 f none /opt/opensvc/bin/pkg/make_deb 0755 root root 889 7276 1322412578
1 f none /opt/opensvc/bin/pkg/make_depot 0755 root root 1340 37386 1322412578
1 f none /opt/opensvc/bin/pkg/make_pkg 0755 root root 4851 39318 1322412578
1 f none /opt/opensvc/bin/pkg/make_rpm 0755 root root 959 14283 1322412578
1 f none /opt/opensvc/bin/pkg/make_tbz 0755 root root 1936 27386 1322412578
1 f none /opt/opensvc/bin/postinstall 0755 root root 16916 62783 1322412578
1 s none /opt/opensvc/bin/svcfreeze=freezer
1 s none /opt/opensvc/bin/svcfrozen=freezer
1 f none /opt/opensvc/bin/svcmgr 0755 root root 11797 51353 1322412578
1 f none /opt/opensvc/bin/svcmon 0755 root root 5582 39499 1322412578
1 s none /opt/opensvc/bin/svcthaw=freezer
1 d none /opt/opensvc/lib 0755 root root
1 f none /opt/opensvc/lib/checkFsInodeDarwin.py 0644 root root 1821 5364 1322412578
1 f none /opt/opensvc/lib/checkFsInodeHP-UX.py 0644 root root 1953 12217 1322412578
1 f none /opt/opensvc/lib/checkFsInodeLinux.py 0644 root root 1752 809 1322412578
1 s none /opt/opensvc/lib/checkFsUsageDarwin.py=checkFsUsageLinux.py
1 s none /opt/opensvc/lib/checkFsUsageFreeBSD.py=checkFsUsageLinux.py
1 s none /opt/opensvc/lib/checkFsUsageHP-UX.py=checkFsUsageLinux.py
1 f none /opt/opensvc/lib/checkFsUsageLinux.py 0644 root root 1943 13768 1322412578
1 f none /opt/opensvc/lib/checkMpathHP-UX.py 0644 root root 2126 22276 1322412578
1 f none /opt/opensvc/lib/checkMpathLinux.py 0644 root root 2135 20486 1322412578
1 f none /opt/opensvc/lib/checkMpathSunOS.py 0644 root root 2122 21966 1322412578
1 f none /opt/opensvc/lib/checkRaidSmartArray.py 0644 root root 3105 30495 1322412578
1 s none /opt/opensvc/lib/checkRaidSmartArrayLinux.py=checkRaidSmartArray.py
1 s none /opt/opensvc/lib/checkRaidSmartArraySunOS.py=checkRaidSmartArray.py
1 f none /opt/opensvc/lib/checkVgUsageHP-UX.py 0644 root root 2635 64776 1322412578
1 f none /opt/opensvc/lib/checkVgUsageLinux.py 0644 root root 1954 14175 1322412578
1 f none /opt/opensvc/lib/checkZfsUsageSunOS.py 0644 root root 3185 32511 1322412578
1 f none /opt/opensvc/lib/checks.py 0644 root root 3745 7929 1322412578
1 f none /opt/opensvc/lib/collector.py 0644 root root 6001 211 1322412578
1 f none /opt/opensvc/lib/compliance.py 0644 root root 16538 32473 1322412578
1 f none /opt/opensvc/lib/freezer.py 0644 root root 1780 9411 1322412578
1 f none /opt/opensvc/lib/hostidAIX.py 0644 root root 1107 26120 1322412578
1 f none /opt/opensvc/lib/hostidDarwin.py 0644 root root 888 9879 1322412578
1 s none /opt/opensvc/lib/hostidFreeBSD.py=hostidLinux.py
1 f none /opt/opensvc/lib/hostidHP-UX.py 0644 root root 1203 33767 1322412578
1 f none /opt/opensvc/lib/hostidLinux.py 0644 root root 888 9879 1322412578
1 f none /opt/opensvc/lib/hostidSunOS.py 0644 root root 888 9879 1322412578
1 f none /opt/opensvc/lib/lock.py 0644 root root 2810 17169 1322412578
1 f none /opt/opensvc/lib/loopSunOS.py 0644 root root 1439 52901 1322412578
1 f none /opt/opensvc/lib/node.py 0644 root root 27965 29041 1322412578
1 f none /opt/opensvc/lib/nodeHP-UX.py 0644 root root 1106 25464 1322412578
1 f none /opt/opensvc/lib/nodeLinux.py 0644 root root 1076 23916 1322412578
1 f none /opt/opensvc/lib/provFs.py 0644 root root 3731 9313 1322412578
1 f none /opt/opensvc/lib/provFsExt2.py 0644 root root 143 11721 1322412578
1 f none /opt/opensvc/lib/provFsExt3.py 0644 root root 143 11723 1322412578
1 f none /opt/opensvc/lib/provFsExt4.py 0644 root root 143 11725 1322412578
1 f none /opt/opensvc/lib/provFsZfs.py 0644 root root 1558 61639 1322412578
1 f none /opt/opensvc/lib/provIp.py 0644 root root 125 11090 1322412578
1 f none /opt/opensvc/lib/provKvm.py 0644 root root 4571 1199 1322412578
1 f none /opt/opensvc/lib/provLoopLinux.py 0644 root root 877 65497 1322412578
1 f none /opt/opensvc/lib/provLxc.py 0644 root root 8342 61843 1322412578
1 f none /opt/opensvc/lib/provVgLinux.py 0644 root root 1760 59090 1322412578
1 f none /opt/opensvc/lib/provZone.py 0644 root root 8220 40373 1322412578
1 f none /opt/opensvc/lib/provisioning.py 0644 root root 168 12704 1322412578
1 f none /opt/opensvc/lib/rcAddService.py 0644 root root 911 11569 1322412578
1 f none /opt/opensvc/lib/rcAsset.py 0644 root root 7328 9079 1322412578
1 f none /opt/opensvc/lib/rcAssetDarwin.py 0644 root root 3024 33023 1322412578
1 f none /opt/opensvc/lib/rcAssetFreeBSD.py 0644 root root 2476 53625 1322412578
1 f none /opt/opensvc/lib/rcAssetHP-UX.py 0644 root root 5872 14238 1322412578
1 f none /opt/opensvc/lib/rcAssetLinux.py 0644 root root 8642 6870 1322412578
1 f none /opt/opensvc/lib/rcAssetSunOS.py 0644 root root 3914 21758 1322412578
1 f none /opt/opensvc/lib/rcCommandWorker.py 0644 root root 1902 14479 1322412578
1 f none /opt/opensvc/lib/rcContainerLinux.py 0644 root root 5010 5843 1322412578
1 f none /opt/opensvc/lib/rcDiskInfo.py 0644 root root 1095 24481 1322412578
1 f none /opt/opensvc/lib/rcDiskInfoAIX.py 0644 root root 2382 50855 1322412578
1 f none /opt/opensvc/lib/rcDiskInfoDarwin.py 0644 root root 888 9990 1322412578
1 f none /opt/opensvc/lib/rcDiskInfoFreeBSD.py 0644 root root 1303 41131 1322412578
1 f none /opt/opensvc/lib/rcDiskInfoHP-UX.py 0644 root root 2956 22391 1322412578
1 f none /opt/opensvc/lib/rcDiskInfoLinux.py 0644 root root 3105 25786 1322412578
1 f none /opt/opensvc/lib/rcDiskInfoSunOS.py 0644 root root 3398 44230 1322412578
1 f none /opt/opensvc/lib/rcExceptions.py 0644 root root 3580 30536 1322412578
1 f none /opt/opensvc/lib/rcGlobalEnv.py 0644 root root 5890 63824 1322412578
1 f none /opt/opensvc/lib/rcIfconfig.py 0644 root root 4124 44119 1322412578
1 f none /opt/opensvc/lib/rcIfconfigAIX.py 0644 root root 2810 69 1322412578
1 f none /opt/opensvc/lib/rcIfconfigDarwin.py 0644 root root 2631 51701 1322412578
1 f none /opt/opensvc/lib/rcIfconfigFreeBSD.py 0644 root root 2631 51701 1322412578
1 s none /opt/opensvc/lib/rcIfconfigFreeBSDhpvm.py=rcIfconfigFreeBSDkvm.py
1 f none /opt/opensvc/lib/rcIfconfigFreeBSDkvm.py 0644 root root 1266 39292 1322412578
1 s none /opt/opensvc/lib/rcIfconfigFreeBSDldom.py=rcIfconfigFreeBSDkvm.py
1 s none /opt/opensvc/lib/rcIfconfigFreeBSDxen.py=rcIfconfigFreeBSDkvm.py
1 f none /opt/opensvc/lib/rcIfconfigHP-UX.py 0644 root root 3359 34241 1322412578
1 f none /opt/opensvc/lib/rcIfconfigHP-UXhpvm.py 0644 root root 1779 7622 1322412578
1 f none /opt/opensvc/lib/rcIfconfigLinux.py 0644 root root 2878 1079 1322412578
1 s none /opt/opensvc/lib/rcIfconfigLinuxhpvm.py=rcIfconfigLinuxkvm.py
1 f none /opt/opensvc/lib/rcIfconfigLinuxkvm.py 0644 root root 1281 40272 1322412578
1 s none /opt/opensvc/lib/rcIfconfigLinuxldom.py=rcIfconfigLinuxkvm.py
1 f none /opt/opensvc/lib/rcIfconfigLinuxlxc.py 0644 root root 1567 61437 1322412578
1 s none /opt/opensvc/lib/rcIfconfigLinuxovm.py=rcIfconfigLinuxkvm.py
1 f none /opt/opensvc/lib/rcIfconfigLinuxvz.py 0644 root root 1123 27805 1322412578
1 s none /opt/opensvc/lib/rcIfconfigLinuxxen.py=rcIfconfigLinuxkvm.py
1 f none /opt/opensvc/lib/rcIfconfigSunOS.py 0644 root root 2855 1531 1322412578
1 s none /opt/opensvc/lib/rcIfconfigSunOSkvm.py=rcIfconfigSunOSldom.py
1 f none /opt/opensvc/lib/rcIfconfigSunOSldom.py 0644 root root 1281 40216 1322412578
1 s none /opt/opensvc/lib/rcIfconfigSunOSxen.py=rcIfconfigSunOSldom.py
1 f none /opt/opensvc/lib/rcIfconfigWindowskvm.py 0644 root root 1096 27277 1322412578
1 f none /opt/opensvc/lib/rcLogger.py 0644 root root 2193 42617 1322412578
1 f none /opt/opensvc/lib/rcLoopLinux.py 0644 root root 1694 4675 1322412578
1 f none /opt/opensvc/lib/rcMounts.py 0644 root root 1933 18912 1322412578
1 f none /opt/opensvc/lib/rcMountsAIX.py 0644 root root 3212 36906 1322412578
1 f none /opt/opensvc/lib/rcMountsDarwin.py 0644 root root 2436 54804 1322412578
1 f none /opt/opensvc/lib/rcMountsFreeBSD.py 0644 root root 2436 54804 1322412578
1 f none /opt/opensvc/lib/rcMountsHP-UX.py 0644 root root 2250 45165 1322412578
1 f none /opt/opensvc/lib/rcMountsLinux.py 0644 root root 2301 49085 1322412578
1 f none /opt/opensvc/lib/rcMountsSunOS.py 0644 root root 1938 19118 1322412578
1 f none /opt/opensvc/lib/rcNexenta.py 0755 root root 11720 3539 1322412578
1 f none /opt/opensvc/lib/rcNode.py 0644 root root 1498 60669 1322412578
1 f none /opt/opensvc/lib/rcOptParser.py 0644 root root 8847 23822 1322412578
1 f none /opt/opensvc/lib/rcOs.py 0644 root root 126 9734 1322412578
1 f none /opt/opensvc/lib/rcOsHP-UX.py 0644 root root 122 10053 1322412578
1 f none /opt/opensvc/lib/rcOsLinux.py 0644 root root 216 16341 1322412578
1 f none /opt/opensvc/lib/rcOvm.py 0755 root root 4499 12375 1322412578
1 f none /opt/opensvc/lib/rcPkgAIX.py 0644 root root 1825 14243 1322412578
1 f none /opt/opensvc/lib/rcPkgDarwin.py 0644 root root 1754 9786 1322412578
1 f none /opt/opensvc/lib/rcPkgFreeBSD.py 0644 root root 1308 39656 1322412578
1 f none /opt/opensvc/lib/rcPkgHP-UX.py 0644 root root 1271 36609 1322412578
1 f none /opt/opensvc/lib/rcPkgLinux.py 0644 root root 1822 13831 1322412578
1 f none /opt/opensvc/lib/rcPkgSunOS.py 0644 root root 2327 44357 1322412578
1 f none /opt/opensvc/lib/rcPrintTable.py 0644 root root 8216 58324 1322412578
1 f none /opt/opensvc/lib/rcStats.py 0644 root root 3859 32390 1322412578
1 f none /opt/opensvc/lib/rcStatsAIX.py 0644 root root 4851 34443 1322412578
1 f none /opt/opensvc/lib/rcStatsDarwin.py 0644 root root 5463 37133 1322412578
1 f none /opt/opensvc/lib/rcStatsFreeBSD.py 0644 root root 5268 21932 1322412578
1 f none /opt/opensvc/lib/rcStatsHP-UX.py 0644 root root 7637 2991 1322412578
1 f none /opt/opensvc/lib/rcStatsLinux.py 0644 root root 9429 3105 1322412578
1 f none /opt/opensvc/lib/rcStatsSunOS.py 0644 root root 6337 26249 1322412578
1 f none /opt/opensvc/lib/rcStatus.py 0644 root root 5867 61184 1322412578
1 f none /opt/opensvc/lib/rcSymmetrix.py 0644 root root 5572 9151 1322412578
1 f none /opt/opensvc/lib/rcUtilities.py 0644 root root 7213 15832 1322412578
1 f none /opt/opensvc/lib/rcUtilitiesAIX.py 0644 root root 326 23568 1322412578
1 f none /opt/opensvc/lib/rcUtilitiesDarwin.py 0644 root root 376 25693 1322412578
1 f none /opt/opensvc/lib/rcUtilitiesFreeBSD.py 0644 root root 330 22872 1322412578
1 f none /opt/opensvc/lib/rcUtilitiesHP-UX.py 0644 root root 262 18527 1322412578
1 f none /opt/opensvc/lib/rcUtilitiesLinux.py 0644 root root 2622 63352 1322412578
1 f none /opt/opensvc/lib/rcUtilitiesSunOS.py 0644 root root 200 15386 1322412578
1 f none /opt/opensvc/lib/rcZfs.py 0644 root root 7683 46609 1322412578
1 f none /opt/opensvc/lib/rcZone.py 0644 root root 3816 35934 1322412578
1 f none /opt/opensvc/lib/resApp.py 0644 root root 9385 35760 1322412578
1 f none /opt/opensvc/lib/resAppVm.py 0644 root root 3852 30814 1322412578
1 f none /opt/opensvc/lib/resContainer.py 0644 root root 5831 46462 1322412578
1 f none /opt/opensvc/lib/resContainerEsx.py 0644 root root 4157 45873 1322412578
1 f none /opt/opensvc/lib/resContainerHpVm.py 0644 root root 3903 35665 1322412578
1 f none /opt/opensvc/lib/resContainerJail.py 0644 root root 3913 29078 1322412578
1 f none /opt/opensvc/lib/resContainerKvm.py 0644 root root 5373 13404 1322412578
1 f none /opt/opensvc/lib/resContainerLdom.py 0644 root root 5010 39189 1322412578
1 f none /opt/opensvc/lib/resContainerLxc.py 0644 root root 6215 45476 1322412578
1 f none /opt/opensvc/lib/resContainerOvm.py 0644 root root 4575 13950 1322412578
1 f none /opt/opensvc/lib/resContainerVbox.py 0644 root root 4458 3543 1322412578
1 f none /opt/opensvc/lib/resContainerVz.py 0644 root root 4445 60210 1322412578
1 f none /opt/opensvc/lib/resContainerXen.py 0644 root root 3916 34031 1322412578
1 f none /opt/opensvc/lib/resContainerZone.py 0644 root root 11761 65019 1322412578
1 f none /opt/opensvc/lib/resDg.py 0644 root root 2769 24481 1322412578
1 f none /opt/opensvc/lib/resDrbd.py 0644 root root 6475 25395 1322412578
1 f none /opt/opensvc/lib/resHb.py 0644 root root 2607 64888 1322412578
1 f none /opt/opensvc/lib/resHbLinuxHA.py 0644 root root 1941 26504 1322412578
1 f none /opt/opensvc/lib/resHbOpenHA.py 0644 root root 6719 37649 1322412578
1 f none /opt/opensvc/lib/resHbovm.py 0644 root root 2867 27470 1322412578
1 f none /opt/opensvc/lib/resIp.py 0644 root root 8884 59671 1322412578
1 f none /opt/opensvc/lib/resIpAIX.py 0644 root root 1918 23091 1322412578
1 f none /opt/opensvc/lib/resIpDarwin.py 0644 root root 1926 23304 1322412578
1 f none /opt/opensvc/lib/resIpEsx.py 0644 root root 1553 60513 1322412578
1 f none /opt/opensvc/lib/resIpFreeBSD.py 0644 root root 1926 23304 1322412578
1 f none /opt/opensvc/lib/resIpHP-UX.py 0644 root root 1942 21914 1322412578
1 f none /opt/opensvc/lib/resIpHpVm.py 0644 root root 1544 60631 1322412578
1 f none /opt/opensvc/lib/resIpKvm.py 0644 root root 1572 61663 1322412578
1 f none /opt/opensvc/lib/resIpLdom.py 0644 root root 1573 61617 1322412578
1 f none /opt/opensvc/lib/resIpLinux.py 0644 root root 2278 50264 1322412578
1 f none /opt/opensvc/lib/resIpLinuxLxc.py 0644 root root 1573 61673 1322412578
1 f none /opt/opensvc/lib/resIpSunOS.py 0644 root root 1644 4270 1322412578
1 f none /opt/opensvc/lib/resIpVbox.py 0644 root root 1553 60541 1322412578
1 f none /opt/opensvc/lib/resIpVm.py 0644 root root 3249 58427 1322412578
1 f none /opt/opensvc/lib/resIpXen.py 0644 root root 1612 65334 1322412578
1 f none /opt/opensvc/lib/resIpZone.py 0644 root root 1723 8076 1322412578
1 f none /opt/opensvc/lib/resLoop.py 0644 root root 1901 20297 1322412578
1 f none /opt/opensvc/lib/resLoopFreeBSD.py 0644 root root 3201 49127 1322412578
1 f none /opt/opensvc/lib/resLoopLinux.py 0644 root root 2546 3632 1322412578
1 f none /opt/opensvc/lib/resMount.py 0644 root root 5631 38219 1322412578
1 f none /opt/opensvc/lib/resMountAIX.py 0644 root root 5307 5892 1322412578
1 f none /opt/opensvc/lib/resMountDarwin.py 0644 root root 5664 33046 1322412578
1 f none /opt/opensvc/lib/resMountFreeBSD.py 0644 root root 5664 33046 1322412578
1 f none /opt/opensvc/lib/resMountHP-UX.py 0644 root root 3938 40941 1322412578
1 f none /opt/opensvc/lib/resMountLinux.py 0644 root root 10575 33539 1322412578
1 f none /opt/opensvc/lib/resMountSunOS.py 0644 root root 5509 4654 1322412578
1 f none /opt/opensvc/lib/resScsiReserv.py 0644 root root 6490 22015 1322412578
1 s none /opt/opensvc/lib/resScsiReservFreeBSD.py=resScsiReservLinux.py
1 f none /opt/opensvc/lib/resScsiReservHP-UX.py 0644 root root 5718 41271 1322412578
1 f none /opt/opensvc/lib/resScsiReservLinux.py 0644 root root 5026 57594 1322412578
1 s none /opt/opensvc/lib/resScsiReservSunOS.py=resScsiReservLinux.py
1 f none /opt/opensvc/lib/resStonith.py 0644 root root 2339 50083 1322412578
1 f none /opt/opensvc/lib/resStonithIlo.py 0644 root root 609 48429 1322412578
1 f none /opt/opensvc/lib/resSync.py 0644 root root 5467 19166 1322412578
1 f none /opt/opensvc/lib/resSyncDds.py 0644 root root 15053 133 1322412578
1 f none /opt/opensvc/lib/resSyncEvasnap.py 0644 root root 11154 44658 1322412578
1 f none /opt/opensvc/lib/resSyncNetapp.py 0644 root root 10927 23290 1322412578
1 f none /opt/opensvc/lib/resSyncNexenta.py 0644 root root 9320 37158 1322412578
1 f none /opt/opensvc/lib/resSyncRsync.py 0644 root root 15381 53890 1322412578
1 f none /opt/opensvc/lib/resSyncSymclone.py 0644 root root 8607 47818 1322412578
1 f none /opt/opensvc/lib/resSyncSymcloneLinux.py 0644 root root 2799 22002 1322412578
1 f none /opt/opensvc/lib/resSyncZfs.py 0644 root root 13802 51747 1322412578
1 f none /opt/opensvc/lib/resVdisk.py 0644 root root 2888 29549 1322412578
1 f none /opt/opensvc/lib/resVgAIX.py 0644 root root 4023 35474 1322412578
1 f none /opt/opensvc/lib/resVgHP-UX.py 0644 root root 9785 40769 1322412578
1 f none /opt/opensvc/lib/resVgHpVm.py 0644 root root 5204 48662 1322412578
1 f none /opt/opensvc/lib/resVgLdom.py 0644 root root 4127 28231 1322412578
1 f none /opt/opensvc/lib/resVgLibvirtVm.py 0644 root root 2421 56479 1322412578
1 f none /opt/opensvc/lib/resVgLinux.py 0644 root root 5606 12232 1322412578
1 f none /opt/opensvc/lib/resVgRaw.py 0644 root root 2058 24455 1322412578
1 f none /opt/opensvc/lib/resVgVeritas.py 0644 root root 4248 45984 1322412578
1 f none /opt/opensvc/lib/resVgZfs.py 0644 root root 5579 18907 1322412578
1 f none /opt/opensvc/lib/resources.py 0644 root root 11799 29941 1322412578
1 f none /opt/opensvc/lib/snap.py 0644 root root 5147 59907 1322412578
1 f none /opt/opensvc/lib/snapJfs2AIX.py 0644 root root 4920 36536 1322412578
1 f none /opt/opensvc/lib/snapLvmLinux.py 0644 root root 3414 2784 1322412578
1 f none /opt/opensvc/lib/snapVxfsHP-UX.py 0644 root root 3569 10405 1322412578
1 f none /opt/opensvc/lib/snapZfsSunOS.py 0644 root root 2189 43488 1322412578
1 f none /opt/opensvc/lib/svc.py 0644 root root 46768 4420 1322412578
1 f none /opt/opensvc/lib/svcBuilder.py 0644 root root 59522 31412 1322412578
1 f none /opt/opensvc/lib/svcDict.py 0644 root root 61592 4484 1322412578
1 f none /opt/opensvc/lib/svcEsx.py 0644 root root 1481 59006 1322412578
1 f none /opt/opensvc/lib/svcHosted.py 0644 root root 1753 7454 1322412578
1 f none /opt/opensvc/lib/svcHpVm.py 0644 root root 1506 61854 1322412578
1 f none /opt/opensvc/lib/svcJail.py 0644 root root 1675 6427 1322412578
1 f none /opt/opensvc/lib/svcKvm.py 0644 root root 1501 61306 1322412578
1 f none /opt/opensvc/lib/svcLdom.py 0644 root root 1506 61860 1322412578
1 f none /opt/opensvc/lib/svcLxc.py 0644 root root 2243 46574 1322412578
1 f none /opt/opensvc/lib/svcOvm.py 0644 root root 1602 3700 1322412578
1 f none /opt/opensvc/lib/svcVbox.py 0644 root root 1415 52098 1322412578
1 f none /opt/opensvc/lib/svcVz.py 0644 root root 1963 24257 1322412578
1 f none /opt/opensvc/lib/svcXen.py 0644 root root 1459 57213 1322412578
1 f none /opt/opensvc/lib/svcZone.py 0644 root root 4556 32462 1322412578
1 f none /opt/opensvc/lib/version.py 0644 root root 28 1728 1322416900
1 f none /opt/opensvc/lib/xmlrpcClient.py 0644 root root 34759 30855 1322412578
1 d none /opt/opensvc/usr 0755 root root
1 d none /opt/opensvc/usr/share 0755 root root
1 f none /opt/opensvc/usr/share/AUTHORS 0644 root root 48 4634 1322412578
1 f none /opt/opensvc/usr/share/BANNER 0644 root root 828 5079 1322412578
1 f none /opt/opensvc/usr/share/COPYING 0644 root root 26436 9725 1322412578
1 d none /opt/opensvc/usr/share/bash_completion.d 0755 root root
1 f none /opt/opensvc/usr/share/bash_completion.d/opensvc 0644 root root 1489 53839 1322412578
1 d none /opt/opensvc/usr/share/doc 0755 root root
1 f none /opt/opensvc/usr/share/doc/node.conf 0644 root root 3283 2076 1322412578
1 f none /opt/opensvc/usr/share/doc/opensvc.haresource 0644 root root 506 43100 1322412578
1 d none /opt/opensvc/usr/share/doc/provisioning 0755 root root
1 f none /opt/opensvc/usr/share/doc/provisioning/provisioning.agent.debian 0755 root root 2602 50922 1322412578
1 f none /opt/opensvc/usr/share/doc/provisioning/provisioning.example 0644 root root 362 30449 1322412578
1 f none /opt/opensvc/usr/share/doc/template.comp_module.py 0755 root root 1235 30145 1322412578
1 f none /opt/opensvc/usr/share/doc/template.comp_module.sh 0644 root root 539 36167 1322412578
1 f none /opt/opensvc/usr/share/doc/template.env 0644 root root 29023 38007 1322412578
1 d none /opt/opensvc/var 0755 root root
1 d none /opt/opensvc/var/compliance 0755 root root
1 d none /opt/opensvc/var/compliance/com.opensvc 0755 root root
1 f none /opt/opensvc/var/compliance/com.opensvc/authkeys.py 0755 root root 7658 32509 1322412578
1 f none /opt/opensvc/var/compliance/com.opensvc/bios.py 0755 root root 2000 16409 1322412578
1 f none /opt/opensvc/var/compliance/com.opensvc/comp.py 0644 root root 1204 31330 1322412578
1 f none /opt/opensvc/var/compliance/com.opensvc/cron.py 0755 root root 7554 59893 1322412578
1 f none /opt/opensvc/var/compliance/com.opensvc/files.py 0755 root root 8659 24218 1322412578
1 f none /opt/opensvc/var/compliance/com.opensvc/groups.py 0755 root root 5331 63349 1322412578
1 f none /opt/opensvc/var/compliance/com.opensvc/groups_membership.py 0755 root root 5491 14753 1322412578
1 f none /opt/opensvc/var/compliance/com.opensvc/packages.py 0755 root root 4196 48782 1322412578
1 f none /opt/opensvc/var/compliance/com.opensvc/users.py 0755 root root 7236 64132 1322412578
1 f none /opt/opensvc/var/compliance/com.opensvc/utilities.py 0644 root root 1683 8796 1322412578
1 f none /opt/opensvc/var/compliance/com.opensvc/vuln.py 0755 root root 10422 33784 1322412578
1 f none /opt/opensvc/var/compliance/com.opensvc/xinetd.py 0755 root root 5857 15927 1322412578
1 i pkginfo 220 17789 1322416900
1 i postinstall 302 26825 1322416900
070701000878e0000041ed0000000000000000000000024ed27b0400000000000000b600010002ffffffffffffffff0000000800000000install 070701000878e1000081a40000000000000000000000014ed27b040000012e000000b600010002ffffffffffffffff0000001400000000install/postinstall #!/sbin/sh
su - root -c "LD_LIBRARY_PATH=/opt/opensvc/usr/local/lib:$LD_LIBRARY_PATH PATH=/opt/opensvc/usr/local/bin:/opt/opensvc:/usr/gnu/bin:/usr/bin:/usr/X11/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/opensvc/bin:/opt/opensvc/etc:/opt/sfw/bin:/usr/sfw/bin:/usr/local/bin /opt/opensvc/bin/postinstall"
070701000877cb000041ed0000000000000000000000034ed27b0400000000000000b600010002ffffffffffffffff0000000500000000root 070701000877cc000041ed0000000000000000000000034ed27b0400000000000000b600010002ffffffffffffffff0000000900000000root/opt 070701000877cd000041ed0000000000000000000000074ed27b0400000000000000b600010002ffffffffffffffff0000001100000000root/opt/opensvc 070701000877dc000041ed0000000000000000000000044ed27b0400000000000000b600010002ffffffffffffffff0000001500000000root/opt/opensvc/bin 070701000877e1000081ed0000000000000000000000014ed26a22000000d1000000b600010002ffffffffffffffff0000002600000000root/opt/opensvc/bin/opensvc.init.AIX #!/bin/ksh
osvc_path=/opt/opensvc/bin
osvc_opts="--parallel"
allservices=${osvc_path}/allservices
case $1 in
start)
${allservices} ${osvc_opts} boot
;;
stop)
${allservices} ${osvc_opts} shutdown
;;
esac
070701000877ea000081ed0000000000000000000000014ed26a220000035a000000b600010002ffffffffffffffff0000002300000000root/opt/opensvc/bin/perfagt.Linux #!/opt/opensvc/bin/python
import os
import sys
import datetime
pathsvc = os.path.realpath(os.path.join(os.path.dirname(__file__), '..'))
sys.path.append(os.path.join(pathsvc, 'lib'))
import node
from rcUtilities import justcall
node = node.Node()
now = str(datetime.datetime.now())
def fs_u():
vars = ['date',
'nodename',
'mntpt',
'size',
'used']
cmd = ['df', '-lP']
(out, err, ret) = justcall(cmd)
if ret != 0:
return self.undef
lines = out.split('\n')
if len(lines) < 2:
return self.undef
vals = []
for line in lines[1:]:
l = line.split()
if len(l) != 6:
continue
vals.append([now, node.nodename, l[5], l[1], l[4].replace('%','')])
return (vars, vals)
node.collector.call('push_stats_fs_u', fs_u())
node.close()
070701000877e4000081ed0000000000000000000000014ed26a220000018c000000b600010002ffffffffffffffff0000002800000000root/opt/opensvc/bin/opensvc.init.SunOS #!/bin/bash
#
# /etc/init.d/opensvc
#
# Starts the services driven by OpenSVC
#
# description: Starts the services driven by OpenSVC whose
# autostart node is this node.
# processname:
osvc_path=/opt/opensvc/bin
osvc_opts="--parallel"
allservices=${osvc_path}/allservices
case $1 in
start)
${allservices} ${osvc_opts} boot
;;
stop)
${allservices} ${osvc_opts} shutdown
;;
esac
070701000877e6000081ed0000000000000000000000014ed26a22000002e2000000b600010002ffffffffffffffff0000002700000000root/opt/opensvc/bin/opensvc.init.hpux #!/bin/sh
PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH
if [ -r /etc/rc.config.d/opensvc ] ; then
. /etc/rc.config.d/opensvc
fi
osvc_path=/opt/opensvc/bin
osvc_opts="--parallel"
allservices=${osvc_path}/allservices
agt=${osvc_path}/perfagt.`uname -s`
case $1 in
start_msg)
if [ "$RUN_OPENSVC" -ne 0 ] ; then
echo "Starting opensvc services"
fi
;;
start)
if [ "$RUN_OPENSVC" -ne 0 ] ; then
echo "Starting opensvc services"
fi
if [ -x $agt ] ; then
$agt
fi
${allservices} ${osvc_opts} boot
;;
stop_msg)
if [ "$RUN_OPENSVC" -ne 0 ] ; then
echo "Shutting down opensvc services"
fi
;;
stop)
if [ "$RUN_OPENSVC" -ne 0 ] ; then
echo "Starting opensvc services"
fi
${allservices} ${osvc_opts} shutdown
;;
esac
070701000877e2000081a40000000000000000000000014ed26a22000001b9000000b600010002ffffffffffffffff0000002900000000root/opt/opensvc/bin/opensvc.init.Darwin
Disabled
Label
com.opensvc.svcmgr
ProgramArguments
/opt/opensvc/bin/allprimaryservices
--parallel
boot
070701000877e9000081ed0000000000000000000000014ed26a2200000be9000000b600010002ffffffffffffffff0000002300000000root/opt/opensvc/bin/perfagt.HP-UX #!/opt/opensvc/bin/python
import os
import sys
import datetime
from subprocess import *
pathsvc = os.path.realpath(os.path.join(os.path.dirname(__file__), '..'))
sys.path.append(os.path.join(pathsvc, 'lib'))
import node
from rcUtilities import justcall, is_exe
node = node.Node()
now = str(datetime.datetime.now())
def fs_u():
vars = ['date',
'nodename',
'mntpt',
'size',
'used']
cmd = ['df', '-lP']
(out, err, ret) = justcall(cmd)
if ret != 0:
return self.undef
lines = out.split('\n')
if len(lines) < 2:
return self.undef
vals = []
for line in lines[1:]:
l = line.split()
if len(l) != 6:
continue
vals.append([now, node.nodename, l[5], l[1], l[4].replace('%','')])
return (vars, vals)
def glance_running(cmd_str):
(out, err, ret) = justcall(['ps', '-ef'])
if ret != 0:
print 'ps error'
return
for line in out.split('\n'):
l = line.split()
if len(l) < 6:
continue
if cmd_str in ' '.join(l[6:]):
return True
return False
def run_glance():
glance = '/opt/perf/bin/glance'
syn = '/opt/opensvc/tmp/glance.syntax'
now = datetime.datetime.now()
iterations = (23-now.hour)*6+(60-now.minute)//10
cmd = ['/opt/perf/bin/glance', '-aos', syn, '-j', '600', '-iterations']
cmd_str = ' '.join(cmd)
if not is_exe(glance):
print 'glance executable not found'
return
if glance_running(cmd_str):
print 'glance is already running'
return
buff = """print GBL_STATTIME,
// usr
0.00+GBL_CPU_NORMAL_UTIL+GBL_CPU_REALTIME_UTIL,
// nice
0.00+GBL_CPU_NICE_UTIL+GBL_CPU_NNICE_UTIL,
// sys
0.00+GBL_CPU_SYSCALL_UTIL+GBL_CPU_CSWITCH_UTIL+GBL_CPU_TRAP_UTIL+GBL_CPU_VFAULT_UTIL,
// irq
0.00+GBL_CPU_INTERRUPT_UTIL,
// wait
0.00+GBL_CPU_WAIT_UTIL,
// idle
0.00+GBL_CPU_IDLE_UTIL-GBL_CPU_WAIT_UTIL,
// mem
0+GBL_MEM_PHYS,
0+GBL_MEM_FREE,
0+GBL_MEM_CACHE,
0+GBL_MEM_FILE_PAGE_CACHE,
0+GBL_MEM_SYS,
0+GBL_MEM_USER,
// swap
0+GBL_MEM_SWAP,
0+GBL_SWAP_SPACE_AVAIL-GBL_MEM_PHYS,
// load
GBL_LOADAVG,
GBL_LOADAVG5,
GBL_LOADAVG15,
GBL_CPU_QUEUE,
// process list
TBL_PROC_TABLE_USED,
// disk io
GBL_DISK_PHYS_READ_RATE,
GBL_DISK_PHYS_WRITE_RATE,
// disk kB/s
GBL_DISK_PHYS_READ_BYTE_RATE,
GBL_DISK_PHYS_WRITE_BYTE_RATE
"""
try:
with open(syn, 'w') as f:
f.write(buff)
except:
print 'error writing %s'%syn
return
collect_d = '/opt/opensvc/var/'
collect_f = 'glance%0.2d'%now.day
collect_p = os.path.join(collect_d, collect_f)
if os.path.exists(collect_p):
mtime = os.stat(collect_p).st_mtime
if datetime.datetime.fromtimestamp(mtime) < now - datetime.timedelta(days=1):
os.unlink(collect_p)
_cmd = 'nohup %s %d >>%s &'%(cmd_str, iterations, collect_p)
process = Popen(_cmd, shell=True, stdout=PIPE, stderr=PIPE)
run_glance()
node.collector.call('push_stats_fs_u', fs_u())
node.close()
070701000877e5000081ed0000000000000000000000014ed26a22000001c6000000b600010002ffffffffffffffff0000002900000000root/opt/opensvc/bin/opensvc.init.debian #!/bin/sh -e
### BEGIN INIT INFO
# Provides: opensvc
# Required-Start: $all
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: OpenSVC services startup script
### END INIT INFO
osvc_path=/opt/opensvc/bin
osvc_opts="--parallel"
allservices=${osvc_path}/allservices
case $1 in
start)
${allservices} ${osvc_opts} boot
;;
stop)
${allservices} ${osvc_opts} shutdown
;;
esac
070701000877f4000081ed0000000000000000000000014ed26a22000015ce000000b600010002ffffffffffffffff0000001c00000000root/opt/opensvc/bin/svcmon #!/opt/opensvc/bin/python
#
# Copyright (c) 2009 Christophe Varoqui '
# Copyright (c) 2009 Cyril Galibern '
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
import sys
import os
import optparse
import string
#
# add project lib to path
#
pathsvc = os.path.realpath(os.path.join(os.path.dirname(__file__), '..'))
pathetc = os.path.join(pathsvc, 'etc')
sys.path.append(os.path.join(pathsvc, 'lib'))
prog = os.path.basename(__file__)
import svcBuilder
import rcExceptions as ex
from rcUtilities import *
from lock import *
import node
node = node.Node()
try:
from version import version
except:
version = "dev"
def svcmon_verbose(svcs):
for svc in svcs:
try:
svc.print_status()
except:
pass
def max_len(svcs, attr):
_len = 7
for svc in svcs:
if _len < len(getattr(svc, attr)):
_len = len(getattr(svc, attr))
return _len
def svcmon_normal1(svc, upddb=False, fmt=None, queue=None):
status = svc.group_status()
print fmt % (
svc.svcname,
svc.svctype,
svc.svcmode,
status["container"],
status["ip"],
status["disk"],
status["fs"],
status["app"],
status["hb"],
status["sync"],
status["avail"],
status["overall"],
svc.frozen())
if upddb:
lockf = 'svcmon.'+svc.svcname+'.lock'
try:
lockfd = monlock(fname=lockf)
except ex.excError:
sys.exit(1)
except:
import traceback
traceback.print_exc()
sys.exit(1)
if queue is None:
# multiprocess Queue not supported, can't combine results
g_vars, g_vals, r_vars, r_vals = svc.svcmon_push_lists(status)
svc.node.collector.call('svcmon_update_combo', g_vars, g_vals, r_vars, r_vals)
else:
queue.put(svc.svcmon_push_lists(status))
try:
monunlock(lockfd)
except ex.excError:
sys.exit(1)
except:
import traceback
traceback.print_exc()
sys.exit(1)
def svcmon_normal(svcs, upddb=False):
fmt = '%-' + str(max_len(svcs, "svcname")) + 's'
fmt += ' %-7s %-9s %-9s %-9s %-10s %-10s %-10s %-9s %-9s %-10s %-10s %-6s'
print fmt % ("service", "service", "container", "container", "ip ", "disk ", "fs ", "app ", "hb ", "sync ", "avail ", "overall", " ")
print fmt % ("name ", "type ", "type ", "status ", "status", "status", "status", "status", "status", "status", "status", "status ", "frozen")
print fmt % ("-------", "-------", "---------", "---------", "------", "------", "------", "------", "------", "------", "------", "-------", "------")
from multiprocessing import Process, Queue
ps = []
queues = {}
for svc in svcs:
try:
queues[svc.svcname] = Queue()
except:
# some platform don't support Queue's synchronize (bug 3770)
queues[svc.svcname] = None
p = Process(target=svcmon_normal1, args=(svc, upddb, fmt, queues[svc.svcname]))
p.start()
ps.append(p)
for p in ps:
p.join()
if upddb:
g_vals = []
r_vals = []
if options.delay > 0:
import random
import time
delay = int(random.random()*options.delay)
time.sleep(delay)
for svc in svcs:
if queues[svc.svcname] is None:
continue
g_vars, _g_vals, r_vars, _r_vals = queues[svc.svcname].get()
g_vals.append(_g_vals)
r_vals.append(_r_vals)
if len(g_vals) > 0:
svc.node.collector.call('svcmon_update_combo', g_vars, g_vals, r_vars, r_vals)
__ver = prog + " version " + version
__usage = "%prog [options]\n\nDisplay services status"
parser = optparse.OptionParser(version=__ver, usage=__usage)
parser.add_option("--service", default="", action="store", dest="parm_svcs",
help="comma-separated list of service to display status of")
parser.add_option("--updatedb", default=False, action="store_true", dest="upddb",
help="update resource status in central database")
parser.add_option("--verbose", default=False, action="store_true", dest="verbose",
help="display per-resource status for each selected service")
parser.add_option("--maxdelaydb", default=0, action="store", type="int", dest="delay",
help="introduce a random delay before pushing to database to level the load on the collector")
(options, args) = parser.parse_args()
if len(options.parm_svcs) > 0:
node.build_services(svcnames=options.parm_svcs.split(','))
else:
node.build_services()
if options.verbose:
svcmon_verbose(node.svcs)
else:
svcmon_normal(node.svcs, options.upddb)
node.close()
070701000877f2000081ed0000000000000000000000014ed26a2200004214000000b600010002ffffffffffffffff0000002100000000root/opt/opensvc/bin/postinstall #!/usr/bin/env python
import os
import shutil
import glob
import sys
python_names = ['python2.7', 'python2.6']
sysname, nodename, x, x, machine = os.uname()
def python_path():
for n in python_names:
p = _python_path(n)
if p is not None:
return p
def _python_path(python_exe):
for path in os.environ["PATH"].split(os.pathsep):
exe_file = os.path.join(path, python_exe)
if os.path.exists(exe_file) and os.access(exe_file, os.X_OK):
return exe_file
return None
def install_cron():
"""install opensvc cron jobs
"""
agt = '/opt/opensvc/bin/perfagt.'+sysname
ce = [{
'sched': "0,10,20,30,40,50 * * * *",
'reset_sched': False,
'user': "",
'cmd': "[ -x /opt/opensvc/bin/svcmon ] && /opt/opensvc/bin/svcmon --updatedb --maxdelaydb 120 >/dev/null 2>&1",
'marker': 'svcmon --updatedb',
'ok': False
},{
'sched': "0,10,20,30,40,50 * * * *",
'reset_sched': True,
'user': "",
'cmd': "[ -x /opt/opensvc/bin/cron/opensvc ] && /opt/opensvc/bin/cron/opensvc >/dev/null 2>&1",
'marker': '/opt/opensvc/bin/cron/opensvc',
'ok': False
},{
'sched': "0,10,20,30,40,50 * * * *",
'reset_sched': False,
'user': "",
'cmd': "[ -x %(agt)s ] && %(agt)s >/dev/null 2>&1"%dict(agt=agt),
'marker': agt,
'ok': False
}]
remove_entries = ['bin/nodemgr compliance check']
purge = []
root_crontab = False
""" order of preference
"""
if sysname == 'SunOS' :
root_crontab_locs = [
'/var/spool/cron/crontabs/root'
]
else:
root_crontab_locs = [
'/etc/cron.d/opensvc',
'/var/spool/cron/crontabs/root',
'/var/spool/cron/root',
'/var/cron/tabs/root',
'/usr/lib/cron/tabs/root',
]
for loc in root_crontab_locs:
if os.path.exists(os.path.dirname(loc)):
if not root_crontab:
root_crontab = loc
if root_crontab == '/etc/cron.d/opensvc':
ce[0]['user'] = "root"
ce[1]['user'] = "root"
ce[2]['user'] = "root"
elif os.path.exists(loc):
purge.append(loc)
if not root_crontab:
print "no root crontab found in usual locations %s"%str(root_crontab_locs)
return False
ce[0]['full'] = ' '.join([ce[0]['sched'], ce[0]['user'], ce[0]['cmd']])
ce[1]['full'] = ' '.join([ce[1]['sched'], ce[1]['user'], ce[1]['cmd']])
if os.path.exists(agt):
ce[2]['full'] = ' '.join([ce[2]['sched'], ce[2]['user'], ce[2]['cmd']])
else:
ce[2]['full'] = None
new = False
if os.path.exists(root_crontab):
try:
f = open(root_crontab, 'r')
new = f.readlines()
f.close()
except:
f.close()
import traceback
traceback.print_exc()
for i, line in enumerate(new):
for c in ce:
if c['full'] is None:
continue
if c['marker'] in line:
if c['cmd'] in line:
sched = ' '.join(line.split()[:5])
if c['reset_sched'] and sched != c['sched']:
new[i] = ' '.join([c['sched'], c['user'], c['cmd']])+'\n'
c['ok'] = True
else:
# preserve scheduling
if c['reset_sched']:
sched = c['sched']
else:
sched = ' '.join(line.split()[:5])
new[i] = ' '.join([sched, c['user'], c['cmd']])+'\n'
c['ok'] = True
for c in ce:
if c['full'] is not None and not c['ok']:
new.append(c['full']+'\n')
else:
new = []
for c in ce:
if c['full'] is not None and not c['ok']:
new.append(c['full']+'\n')
if not new:
print "problem preparing the new crontab"
return False
for i, line in enumerate(new):
for re in remove_entries:
if re in line:
print 'delete line "%s" from %s'%(re,root_crontab)
del new[i]
try:
f = open(root_crontab, 'w')
f.write(''.join(new))
f.close()
except:
f.close()
import traceback
traceback.print_exc()
""" Activate changes (actually only needed on HP-UX)
"""
if '/var/spool/' in root_crontab:
cmd = ['crontab', root_crontab]
ret = os.system(' '.join(cmd))
for loc in purge:
try:
f = open(loc, 'r')
new = [ line for line in f.readlines() if not 'opensvc.daily' in line and not 'svcmon --updatedb' in line ]
f.close()
f = open(loc, 'w')
f.write(''.join(new))
f.close()
except:
f.close()
import traceback
traceback.print_exc()
""" Clean up old standard file locations
"""
for f in ['/etc/cron.daily/opensvc', '/etc/cron.daily/opensvc.daily']:
if os.path.exists(f):
os.unlink(f)
def activate_chkconfig(svc):
cmd = ['chkconfig', '--add', svc]
ret = os.system(' '.join(cmd))
if ret > 0:
return False
return True
def activate_ovm():
activate_chkconfig('zopensvc')
def activate_redhat():
activate_chkconfig('opensvc')
def activate_debian():
cmd = ['update-rc.d', '-f', 'opensvc', 'remove']
ret = os.system(' '.join(cmd))
if ret > 0:
return False
cmd = ['update-rc.d', 'opensvc', 'defaults', '99', '01']
ret = os.system(' '.join(cmd))
if ret > 0:
return False
return True
def activate_hpux():
rc = "/sbin/init.d/opensvc"
links = ["/sbin/rc1.d/K010opensvc", "/sbin/rc2.d/K010opensvc", "/sbin/rc3.d/S990opensvc"]
if os.path.exists("/sbin/rc2.d/S990opensvc"):
os.unlink("/sbin/rc2.d/S990opensvc")
for l in links:
if not os.path.islink(l):
if os.path.exists(l):
os.unlink(l)
os.symlink(rc, l)
try:
f = open("/etc/rc.config.d/opensvc", "w")
f.write("RUN_OPENSVC=1\n")
f.close()
except:
f.close()
import traceback
traceback.print_exc()
return True
def activate_AIX():
rc = "/etc/rc.d/init.d/opensvc"
links = ["/etc/rc.d/rc2.d/S990opensvc"]
for l in links:
if not os.path.islink(l):
if os.path.exists(l):
os.unlink(l)
print "create link %s -> %s"%(l, rc)
os.symlink(rc, l)
return True
def activate_SunOS():
rc = "/etc/init.d/opensvc"
links = ["/etc/rc0.d/K00opensvc", "/etc/rc3.d/S99opensvc"]
for l in links:
if not os.path.islink(l):
if os.path.exists(l):
os.unlink(l)
os.symlink(rc, l)
return True
def activate_FreeBSD():
return True
def activate_Darwin():
return True
def update_file(filename, srctext, replacetext):
""" replace into filename srctext by replacetext
"""
import fileinput
for line in fileinput.input(filename, inplace=1):
if line.rstrip('\n') == srctext.rstrip('\n') :
line = replacetext
print line.rstrip('\n')
fileinput.close()
def install_rc():
"""install startup script
"""
if os.path.exists('/etc/debian_version'):
rc = '/etc/init.d/opensvc'
src = '/opt/opensvc/bin/opensvc.init.debian'
activate = activate_debian
elif os.path.exists('/etc/SuSE-release'):
rc = '/etc/init.d/opensvc'
src = '/opt/opensvc/bin/opensvc.init.debian'
activate = activate_redhat
elif os.path.exists('/etc/redhat-release'):
try:
f = open('/etc/redhat-release', 'r')
buff = f.read()
f.close()
except:
buff = ""
if 'Oracle VM server' in buff:
rc = '/etc/init.d/zopensvc'
activate = activate_ovm
else:
rc = '/etc/init.d/opensvc'
activate = activate_redhat
src = '/opt/opensvc/bin/opensvc.init.redhat'
elif sysname == "HP-UX":
rc = '/sbin/init.d/opensvc'
src = '/opt/opensvc/bin/opensvc.init.hpux'
activate = activate_hpux
elif sysname == "SunOS":
rc = '/etc/init.d/opensvc'
src = '/opt/opensvc/bin/opensvc.init.SunOS'
activate = activate_SunOS
elif sysname == "FreeBSD":
rc = '/etc/rc.d/opensvc'
src = '/opt/opensvc/bin/opensvc.init.FreeBSD'
activate = activate_FreeBSD
elif sysname == "AIX":
rc = '/etc/rc.d/init.d/opensvc'
src = '/opt/opensvc/bin/opensvc.init.AIX'
activate = activate_AIX
elif sysname == "Darwin":
rc = '/System/Library/LaunchDaemons/opensvc.plist'
src = '/opt/opensvc/bin/opensvc.init.Darwin'
activate = activate_Darwin
else:
print "could not select an init script: unsupported operating system"
return False
if os.path.islink(rc):
os.unlink(rc)
shutil.copyfile(src, rc)
os.chmod(rc, 0755)
activate()
def gen_keys():
home = os.environ['HOME']
priv = os.path.join(home, ".ssh", "id_dsa")
pub = os.path.join(home, ".ssh", "id_dsa.pub")
if os.path.exists(pub) or os.path.exists(priv):
return
cmd = ['ssh-keygen', '-t', 'dsa', '-b', '1024', '-P', '""', '-f', priv]
ret = os.system(' '.join(cmd))
def missing_dir(sub):
pathd = os.path.join(os.sep, 'opt', 'opensvc', sub)
if not os.path.exists(pathd):
os.makedirs(pathd, 755)
def missing_dirs():
missing_dir('log')
missing_dir('tmp')
def convert_svclinks():
missing_dir('etc')
svcmgr = os.path.join('..', 'bin', 'svcmgr')
if not os.path.exists(svcmgr):
return 1
rcService = os.path.realpath(os.path.join(os.sep, 'opt', 'opensvc', 'bin', 'rcService'))
if not os.path.exists(rcService):
return 1
for fname in os.listdir(pathetc):
fpath = os.path.join(pathetc, fname)
if not os.path.islink(fpath):
continue
rpath = os.path.realpath(fpath)
if rpath != rcService:
continue
os.unlink(fpath)
os.symlink(svcmgr, fpath)
def move_usr_to_opt():
linksvc = os.path.join(os.sep, 'service')
pathsvc = os.path.join(os.sep, 'opt', 'opensvc')
pathvar = os.path.join(pathsvc, 'var')
pathetc = os.path.join(pathsvc, 'etc')
old_pathsvc = os.path.join(os.sep, 'usr', 'local', 'opensvc')
old_pathvar = os.path.join(old_pathsvc, 'var')
old_pathetc = os.path.join(old_pathsvc, 'etc')
if os.path.exists(old_pathvar):
for f in glob.glob(old_pathvar+'/*'):
dst = os.path.join(pathvar, os.path.basename(f))
if os.path.exists(dst) and 'host_mode' not in dst:
continue
if os.path.isdir(f):
shutil.copytree(f, dst, symlinks=True)
elif os.path.islink(f):
linkto = os.readlink(f)
os.symlink(linkto, dst)
else:
shutil.copy2(f, dst)
if os.path.exists(old_pathetc):
for f in glob.glob(old_pathetc+'/*'):
dst = os.path.join(pathetc, os.path.basename(f))
if os.path.exists(dst):
continue
if os.path.islink(f):
linkto = os.readlink(f)
os.symlink(linkto, dst)
elif os.path.isdir(f):
shutil.copytree(f, dst, symlinks=True)
else:
shutil.copy2(f, dst)
if os.path.exists(old_pathsvc):
shutil.rmtree(old_pathsvc)
if os.path.islink(linksvc) and os.path.realpath(linksvc) == old_pathsvc:
os.unlink(linksvc)
def install_profile():
prof_d = os.path.join(os.sep, 'etc', 'profile.d')
prof = os.path.join(prof_d, 'opensvc.sh')
buff = "export PATH=$PATH:/opt/opensvc/bin:/opt/opensvc/etc\n"
if not os.path.exists(prof_d):
return
try:
f = open(prof, 'w')
f.write(buff)
f.close()
except:
f.close()
import traceback
traceback.print_exc()
def install_user_linux():
cmd = ['useradd', '-m', 'opensvc', '-s', '/bin/bash']
ret = os.system(' '.join(cmd))
def install_user():
cmd = ['id', 'opensvc']
ret = os.system(' '.join(cmd))
if ret == 0:
return
if sysname == 'Linux':
install_user_linux()
def install_bash_completion():
src = '/opt/opensvc/usr/share/bash_completion.d/opensvc'
ds = [os.path.join(os.sep, 'etc', 'bash_completion.d'),
os.path.join(os.sep, 'etc', 'bash', 'bash_completion.d')]
for d in ds:
dst = os.path.join(d, 'opensvc')
if not os.path.exists(d):
d = None
continue
else:
break
if d is None:
return
shutil.copyfile(src, dst)
os.chmod(dst, 0644)
def install_link(source, target):
if source == '' or target == '':
return False
if os.path.realpath(source) == os.path.realpath(target):
return True
if os.path.islink(target) or os.path.exists(target):
os.unlink(target)
os.symlink(source,target)
def install_pythonlink():
p = python_path()
if p is None:
print >>sys.stderr, "could not find a valid python installation"
sys.exit(1)
target = '/opt/opensvc/bin/python'
return install_link(source=p, target=target)
def move_host_mode():
hm = '/opt/opensvc/var/host_mode'
cf = '/opt/opensvc/etc/node.conf'
if not os.path.exists(hm):
return
try:
fp = open(hm, 'r')
mode = fp.read().split()[0]
fp.close()
except:
print 'failed to read old host_mode. renamed to', hm+'.old'
shutil.move(hm, hm+'.old')
return
cmd = ['/opt/opensvc/bin/nodemgr', 'set', '--param', 'node.host_mode', '--value', mode]
ret = os.system(' '.join(cmd))
if ret != 0:
print 'failed to set host_mode in node.conf'
return
shutil.move(hm, hm+'.old')
def nodeconf_params():
nodeconf = os.path.join(os.sep, 'opt', 'opensvc', 'etc', 'node.conf')
dotnodeconf = os.path.join(os.sep, 'opt', 'opensvc', 'etc', '.node.conf')
# reset etc/.node.conf (autogenerated)
if os.path.exists(dotnodeconf):
os.unlink(dotnodeconf)
if not os.path.exists(nodeconf):
return
import ConfigParser
import copy
config = ConfigParser.RawConfigParser()
config.read(nodeconf)
changed = False
# no DEFAULT in etc/node.conf
for o in copy.copy(config.defaults()):
config.remove_option('DEFAULT', o)
changed = True
# sync section goes to etc/.node.conf
if config.has_section('sync'):
config.remove_section('sync')
changed = True
for s in config.sections():
for o in config.options(s):
if o in ['sync_interval', 'push_interval', 'comp_check_interval']:
v = config.getint(s, o)
config.remove_option(s, o)
config.set(s, 'interval', v)
changed = True
if o in ['sync_days', 'push_days', 'comp_check_days']:
v = config.get(s, o)
config.remove_option(s, o)
config.set(s, 'days', v)
changed = True
if o in ['sync_period', 'push_period', 'comp_check_period']:
v = config.get(s, o)
config.remove_option(s, o)
config.set(s, 'period', v)
changed = True
if changed:
try:
fp = open(nodeconf, 'w')
config.write(fp)
fp.close()
except:
print >>sys.stderr, "failed to write new %s"%nodeconf
def save_exc():
import traceback
try:
import tempfile
import datetime
pathtmp = os.path.join(os.sep, 'opt', 'opensvc', 'tmp')
now = str(datetime.datetime.now()).replace(' ', '-')
f = tempfile.NamedTemporaryFile(dir=pathtmp, prefix='exc-'+now+'-')
f.close()
f = open(f.name, 'w')
traceback.print_exc(file=f)
print >>sys.stderr, "unexpected error. stack saved in %s"%f.name
f.close()
except:
print >>sys.stderr, "unexpected error"
traceback.print_exc()
try:
install_pythonlink()
move_usr_to_opt()
missing_dirs()
convert_svclinks()
install_cron()
install_rc()
gen_keys()
install_profile()
install_user()
install_bash_completion()
move_host_mode()
nodeconf_params()
except:
save_exc()
sys.exit(1)
070701000877eb000041ed0000000000000000000000024ed27b0400000000000000b600010002ffffffffffffffff0000001900000000root/opt/opensvc/bin/pkg 070701000877ef000081ed0000000000000000000000014ed26a22000012f3000000b600010002ffffffffffffffff0000002200000000root/opt/opensvc/bin/pkg/make_pkg #!/bin/ksh -p
PATH_SCRIPT="$(cd $(/usr/bin/dirname $(type -p -- $0 || echo $0));pwd)"
. $PATH_SCRIPT/make.lib
NAWK=nawk;
PKGNAME=opensvc
ARCH=${ARCH:-all}
BASE=/opt/opensvc
IPSREV=$(echo $RELEASE|sed s/\.//)
P=${PKGNAME}-$VERSION-$RELEASE.SunOS.pkg
IPSP=${PKGNAME}@$(uname -r),$(uname -r)-$VERSION.$IPSREV
#IPSP=pkgname@osrev,osrev,version[:timestampiso8601]
REPODIR=$(cd $(dirname $0);pwd)
export REPODIR
PATH=$PWD:$PATH:/opt/sfw/bin
TMPARCHIVE=/var/tmp/tmparchive$$
TMPROOT=$TMPARCHIVE
LANG=C
export LANG
function date_to_release {
date -d "$*" +%y%m%d.%H%M
}
HEAD=$(git log -1 --pretty=format:%aD || exit 1)
function my_log {
echo $@
}
function question {
# usage: question default_value Comment
typeset DEFAULT=$1
typeset READ
shift
read READ?"$* [${SGRAS}$DEFAULT${EGRAS}]:"
echo ${READ:-$DEFAULT}
}
function create_pkg {
typeset SGRAS="[1m"
typeset EGRAS="[0m"
typeset POSTINSTALL=""
typeset PREINSTALL=""
typeset PRE_REMOVE=""
typeset POST_REMOVE=""
while getopts hp:P:r:R: ARGS
do
case $ARGS in
h) usage
return 1
;;
p) PREINSTALL="$OPTARG"
;;
P) POSTINSTALL="$OPTARG"
;;
r) PRE_REMOVE="$OPTARG"
;;
R) POST_REMOVE="$OPTARG"
;;
?) usage
;;
esac
done
shift `expr $OPTIND - 1`
set -- $*
[ $# -lt 2 ] && usage
PROTOTYPE=/tmp/prototype.$$
PKGINFO=/tmp/pkginfo.$$
PKG_FILE_NAME=$1
shift
FILES=$*
if [ "$FILES" = "" ] ; then
my_log "no file names..."
usage
fi
[ -f $PROTOTYPE ] && my_log "deleting $PROTOTYPE" && rm $PROTOTYPE
PKG=`question $PKG_FILE_NAME "The name you have chosen for the pkg directory"`
NAME=`question $PKG "The program name"`
ARCH=`question sparc "The operating systeme version"`
VERSION=`question "1" "The version number for your program"`
CATEGORY=`question application "The program is an application"`
VENDOR=`question "$LOGNAME@$(uname -n)" "whoever wrote the software"`
EMAIL=`question "$VENDOR" "An email contact"`
PSTAMP=`question "$VENDOR" "The person who did the port perhaps"`
RULES=`question "$FILES=$FILES" "rules for source->dest ex: /usrlocalbin=/usr/local/bin /optlocal=/opt/local "`
CLASSES=`question "none" "Classe"`
my_log "creating prototype in $PROTOTYPE"
> $PROTOTYPE
[ "$PKGINFO" != "" ] && echo "i pkginfo=$PKGINFO" >> $PROTOTYPE
[ "$POSTINSTALL" != "" ] && echo "i postinstall=$POSTINSTALL" >> $PROTOTYPE
[ "$PREINSTALL" != "" ] && echo "i preinstall=$PREINSTALL" >> $PROTOTYPE
[ "$PRE_REMOVE" != "" ] && echo "i preremove=$PRE_REMOVE" >> $PROTOTYPE
[ "$POST_REMOVE" != "" ] && echo "i postremove=$POST_REMOVE" >> $PROTOTYPE
[ ! -s $PROTOTYPE ] && my_log "warning $PROTOTYPE size null" && return 1
pkgproto $RULES >> $PROTOTYPE
my_log "creating pkginfo file : $PKGINFO"
echo "PKG=$PKG\nNAME=$NAME\nARCH=$ARCH\nVERSION=$VERSION\nCATEGORY=$CATEGORY" > $PKGINFO
echo "VENDOR=$VENDOR\nEMAIL=$EMAIL\nPSTAMP=$PSTAMP\nCLASSES=$CLASSES" >> $PKGINFO
my_log "running pkgmk to create /var/spool/pkg/$PKG : pkgmk -o -f $PROTOTYPE"
pkgmk -o -f $PROTOTYPE
my_log "running pkgtrans to create /tmp/$PKG_FILE_NAME : pkgtrans -s /var/spool/pkg /tmp/$PKG_FILE_NAME $PKG"
pkgtrans -s /var/spool/pkg /tmp/$PKG_FILE_NAME $PKG
STATUS=$?
if [ $STATUS -eq 0 ] ; then
echo "Cleaning temp files: $PROTOTYPE $PKGINFO"
rm $PKGINFO $PROTOTYPE
echo
echo "Package $PKG created successfully"
pkginfo -d /tmp/$PKG_FILE_NAME -l
else
echo
echo "Warning some errors in create_pkg"
fi
return $STATUS
}
if [ -d $TMPARCHIVE ] ; then
echo "Error $TMPARCHIVE already exists"
echo "It should be removed first"
exit 1
fi
echo "----- git archive current to $TMPARCHIVE ..."
mkdir $TMPARCHIVE
cd $BASE && git archive --format=tar HEAD | (
cd $TMPARCHIVE && tar xf - \
&& rm $TMPARCHIVE/.gitignore \
&& chown -R root:root $TMPARCHIVE \
&& chmod -R og-w $TMPARCHIVE
)
cd $REPODIR
echo "version = \"$VERSION-$RELEASE\"" > $TMPARCHIVE/lib/version.py
cat > $REPODIR/postinstall < /dev/null <