标签:环境 -- too aries 例子 databases arc graphic 文件
fpm工具安装#centos6 由于自带yum源中的ruby版本太低,需要如下安装:
yum -y install rpm-build
yum update nss
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
curl -sSL https://get.rvm.io | bash -s stable
source /etc/profile.d/rvm.sh
rvm install 1.9.3
gem install fpm
rvm use 1.9.3 --default #选择ruby版本
#安装ruby:
yum -y install ruby rubygems ruby-devel rpm-build
gem install fpm
[参考这个文件 /usr/share/doc/rpm-x.x.x/GROUPS ]
Amusements/Games [娱乐/游戏]
Amusements/Graphics [娱乐/图形]
Applications/Archiving [应用/文档]
Applications/Communications [应用/通讯]
Applications/Databases [应用/数据库]
Applications/Editors [应用/编辑器]
Applications/Emulators [应用/仿真器]
Applications/Engineering [应用/工程]
Applications/File [应用/文件]
Applications/Internet [应用/因特网]
Applications/Multimedia [应用/多媒体]
Applications/Productivity [应用/产品]
Applications/Publishing [应用/印刷]
Applications/System [应用/系统]
Applications/Text [应用/文本]
Development/Debuggers [开发/调试器]
Development/Languages [开发/语言]
Development/Libraries [开发/函数库]
Development/System [开发/系统]
Development/Tools [开发/工具]
Documentation [文档]
System Environment/Base [系统环境/基础]
System Environment/Daemons [系统环境/守护]
System Environment/Kernel [系统环境/内核]
System Environment/Libraries [系统环境/函数库]
System Environment/Shells [系统环境/接口]
User Interface/Desktops [用户界面/桌面]
User Interface/X [用户界面/X窗口]
User Interface/X Hardware Support [用户界面/X硬件支持]
fpm -f -s dir -t rpm -n moxopenssl --epoch 0 -v 1.0.1g --iteration 1.el6 -C /rpms/openssl/ -d ‘gcc zlib zlib-devel make‘ -p /root --verbose --category ‘Applications/System‘ --description ‘openssl‘ --url ‘openssl.org‘ --license ‘BSD‘ -m ‘vaedit‘ --no-rpm-sign --after-install /rpms/openssl/after_install_openssl.sh --after-remove /rpms/openssl/after_remove_openssl.sh
fpm -f -s dir -t rpm -n moxlibiconv --epoch 0 -v 1.14 --iteration 1.el6 -C /rpms/libiconv/ -d ‘gcc libtool make‘ -p /root --verbose --category ‘Development/Libraries‘ --description ‘libiconv‘ --url ‘libiconv.org‘ --license ‘BSD‘ -m ‘vaedit‘ --no-rpm-sign
fpm -f -s dir -t rpm -n moxcmake --epoch 0 -v 2.8.8 --iteration 1.el6 -C /rpms/cmake/ -d ‘gcc make‘ -p /root --verbose --category ‘Development/Tools‘ --description ‘cmake‘ --url ‘cmake.org‘ --license ‘BSD‘ -m ‘vaedit‘ --no-rpm-sign
fpm -f -s dir -t rpm -n moxnginx --epoch 0 -v 1.4.4 --iteration 1.el6 -C /rpms/nginx/ -d ‘gcc pcre pcre-devel openssl openssl-devel httpd-devel make‘ -p /root --verbose --category ‘Applications/System‘ --description ‘nginx‘ --url ‘nginx.org‘ --license ‘BSD‘ -m ‘vaedit‘ --no-rpm-sign --after-install /rpms/script/after_install_nginx.sh --after-remove /rpms/script/after_remove_nginx.sh --before-install /rpms/script/before_install_nginx.sh
fpm -f -s dir -t rpm -n moxjava --epoch 0 -v 1.7 --iteration 1.el6 -C /rpms/java/ -d ‘gcc‘ -p /root --verbose --category ‘Applications/System‘ --description ‘java‘ --url ‘java.org‘ --license ‘BSD‘ -m ‘vaedit‘ --no-rpm-sign --after-install /rpms/java/after_install_java.sh --after-remove /rpms/java/after_remove_java.sh
fpm -f -s dir -t rpm -n moxzabbix --epoch 0 -v 3.0.15 --iteration 1.el6 -C /rpms/zabbix/ -d ‘gcc make‘ -p /root --verbose --category ‘Applications/System‘ --description ‘zabbix‘ --url ‘https://www.zabbix.com‘ --license ‘BSD‘ -m ‘vaedit‘ --no-rpm-sign --after-remove /rpms/script/after_remove_zabbix.sh
fpm -f -s dir -t rpm -n moxmysql --epoch 0 -v 5.6.39 --iteration 1.el6 -C /rpms/mysql56/ -d ‘gcc make ncurses ncurses-devel autoconf bison bison-devel perl perl-DBI perl-DBD-MySQL libtool zlib-devel‘ -p /root --verbose --category ‘Applications/Databases‘ --description ‘mysql‘ --url ‘mysql.org‘ --license ‘BSD‘ -m ‘vaedit‘ --no-rpm-sign --after-install /rpms/script/after_install_mysql.sh --after-remove /rpms/script/after_remove_mysql.sh --before-install /rpms/script/before_install_mysql.sh
fpm -f -s dir -t rpm -n moxmysql --epoch 0 -v 5.5.25 --iteration 1.el6 -C /rpms/mysql/ -d ‘gcc molongcmake make ncurses ncurses-devel autoconf bison bison-devel perl perl-DBI perl-DBD-MySQL libtool zlib-devel‘ -p /root --verbose --category ‘Applications/Databases‘ --description ‘mysql‘ --url ‘mysql.org‘ --license ‘BSD‘ -m ‘vaedit‘ --no-rpm-sign --after-install /rpms/script/after_install_mysql.sh --after-remove /rpms/script/after_remove_mysql.sh --before-install /rpms/script/before_install_mysql.sh
#打包python模块需要安装以下依赖
yum install python-devel python-setuptools -y
fpm -s python -t rpm --before-install=/root/before_install_pyiptables.sh setup.py
fpm -f -s python -t rpm -p /root/ setup.py
#经过测试发现打包的模块包安装后有问题,或者安装无效,有点坑,后用python官方自带的模块打包成功
rpm -qpiR --scripts openssl-1.0.1g-1.el6.x86_64.rpm
make install DESTDIR=/whereto
标签:环境 -- too aries 例子 databases arc graphic 文件
原文地址:https://blog.51cto.com/vaedit/2519340