simple-solaris-howto.txt
来自「opennms得相关源码 请大家看看」· 文本 代码 · 共 68 行
TXT
68 行
to make packages on solaris:1. install everything into a destroot somewhere (for example, with postgresql, I did "make install DESTDIR=/tmp/pgsql") I use the command: ./build.sh -Dproduct.release=1 -Dproduct.snapshot=false -Dinstall.prefix=/tmp/opennms/ -Dinstall.dir=/usr/local/opennms -Dbuild.rrdtool.include.dir=/usr/local/rrdtool/include/ -Dbuild.postgresql.include.dir=/usr/local/pgsql/include/server -Dbuild.rrdtool.lib.dir=/usr/local/rrdtool/lib/ -Dbuild.rrdtool.bin=/usr/local/rrdtool/bin/rrdtool install1a: Run:./build.sh docs2a: Run:cp -pr work/docs /tmp/opennms/usr/local/opennms/2b. go into your directory and walk down to /usr/local (install things in /usr/local just to fit with sunfreeware)3. in the opennms package, don't forget to make jar symlinks for tomcat *before* you run the prototype generator cd /tmp/opennms/usr/local/ mkdir -p tomcat/server/lib cd tomcat/server/lib ln -s ../../../opennms/lib/castor*.jar . ln -s ../../../opennms/lib/log4j*.jar . ln -s ../../../opennms/lib/opennms_*.jar . cd ../.. mkdir webapps cd webapps cp ../../opennms/webapps/opennms.xml . cd ../..4. put the packaging files from the package dir here in that directory (so, for opennms you'd copy the pkginfo and postinstall scripts to /tmp/opennms/usr/local/ and then make /tmp/opennms/usr/local/etc and put the profile in there)4a. Edit the pkginfo file.5. generate the file list from /usr/local/ # cd /tmp/opennms/usr/local # find . -print | pkgproto > prototype6. add the following line to the prototype file: i pkginfo=./pkginfo i postinstall=./postinstall7. Edit the prototype file, go to the bottom and remove the references to postinstall, pkginfo and prototype.8. fix permissions -- it's best to change your username stuff to "bin bin" # perl -pi -e 's,root other,bin bin,' prototype9. put the package into the system package archive # pkgmk -r `pwd`10. generate a package file from the system archive # cd /var/spool/pkg # pkgtrans -s `pwd` /tmp/opennms-1.0.3-sol8-sparc-local
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?