· KLDP.org · KLDP.net · KLDP Wiki · KLDP BBS ·
Asterisk Inst/Asterisk Now

AsteriskInst/AsteriskNow


* bootloader 을 mbr 에 자동설치함.
  • 작업이 필요함.

* gnome 환경만들기
  • disk repository 만들기
  • /etc/yum.repos.d/CentOS-Media.repo
[c5-media]
name=CentOS-$releasever - Media
baseurl=file:///mnt/sda7/CentOS5.3/CentOS/
gpgcheck=0
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
  • yum --disablerepo=\* --enablerepo=c5-media -y groupinstall "X Window System"
  • yum --disablerepo=\* --enablerepo=c5-media -y groupinstall "GNOME Desktop Environment"
  • yum --disablerepo=\* --enablerepo=c5-media -y groupinstall "Korean Support"
  • edit inittab
  • yum --disablerepo=\* --enablerepo=c5-media install firefox

* Source 만들기
  • rpmbuild -bp --target i386 freepbx.spec
  • rpmbuild -bp --target i386 asterisk14.spec
[root@localhost SPECS]# rpmbuild -bp --target i386 asterisk14.spec 
Building target platforms: i386
Building for target i386
error: Failed build dependencies:
        ncurses-devel is needed by asterisk14-1.4.24-2_centos5.i386
        alsa-lib-devel is needed by asterisk14-1.4.24-2_centos5.i386
        lm_sensors-devel is needed by asterisk14-1.4.24-2_centos5.i386
        net-snmp-devel is needed by asterisk14-1.4.24-2_centos5.i386
        postgresql-devel is needed by asterisk14-1.4.24-2_centos5.i386
        freetds-devel is needed by asterisk14-1.4.24-2_centos5.i386
        libpri-devel is needed by asterisk14-1.4.24-2_centos5.i386
        libtonezone-devel is needed by asterisk14-1.4.24-2_centos5.i386
        dahdi-linux-devel is needed by asterisk14-1.4.24-2_centos5.i386
        mISDNuser-devel is needed by asterisk14-1.4.24-2_centos5.i386
        mISDN-devel is needed by asterisk14-1.4.24-2_centos5.i386
        curl-devel is needed by asterisk14-1.4.24-2_centos5.i386
        libvorbis-devel is needed by asterisk14-1.4.24-2_centos5.i386
        libogg-devel is needed by asterisk14-1.4.24-2_centos5.i386
        speex-devel is needed by asterisk14-1.4.24-2_centos5.i386
        unixODBC-devel is needed by asterisk14-1.4.24-2_centos5.i386
        libc-client-devel is needed by asterisk14-1.4.24-2_centos5.i386

* http://packages.asterisk.org/centos/5/current/i386/RPMS/
  • rpm -ivh dahdi-linux-devel-2.1.0.4-1_centos5.i386.rpm
  • rpm -ivh libpri-devel-1.4.9-1_centos5.i386.rpm
  • rpm -ivh libtonezone-devel-2.1.0.2-2_centos5.i386.rpm
  • rpm -ivh mISDN-1.1.7.2-2_centos5.i386.rpm
  • rpm -ivh mISDN-devel-1.1.7.2-2_centos5.i386.rpm
  • rpm -ivh mISDNuser-1.1.7.2-1_centos5.i386.rpm
  • rpm -ivh mISDNuser-devel-1.1.7.2-1_centos5.i386.rpm

* yum
  • yum --disablerepo=\* --enablerepo=c5-media install ncurses-devel
  • yum --disablerepo=\* --enablerepo=c5-media install alsa-lib-devel
  • yum --disablerepo=\* --enablerepo=c5-media install lm_sensors-devel
  • yum --disablerepo=\* --enablerepo=c5-media install net-snmp-devel | tee ~/net-snmp-devel
  • yum --disablerepo=\* --enablerepo=c5-media install postgresql-devel
  • yum --disablerepo=\* --enablerepo=c5-media install freetds-devel | tee ~/freetds-devel
  • yum --disablerepo=\* --enablerepo=c5-media install curl-devel | tee ~/curl-devel
  • yum --disablerepo=\* --enablerepo=c5-media install libvorbis-devel
  • yum --disablerepo=\* --enablerepo=c5-media install libogg-devel
  • yum --disablerepo=\* --enablerepo=c5-media install speex-devel
  • yum --disablerepo=\* --enablerepo=c5-media install unixODBC-devel
  • yum --disablerepo=\* --enablerepo=c5-media install libc-client-devel

* yum --disablerepo=\* --enablerepo=c5-media install net-snmp-devel
  • rpm -ivh --force nss-3.12.2.0-2.el5.centos.i386.rpm
  • yum --disablerepo=\* --enablerepo=c5-media install net-snmp-devel
  • rpm -ivh --force nss-3.12.2.0-4.el5.centos.i386.rpm
[root@localhost SPECS]# rpm -qa | grep nss
nss-3.12.2.0-4.el5.centos
* yum --disablerepo=\* --enablerepo=c5-media install curl-devel
  • rpm -ivh --force curl-7.15.5-2.el5.i386.rpm
  • yum --disablerepo=\* --enablerepo=c5-media install curl-devel
  • rpm -ivh --force curl-7.15.5-2.1.el5_3.4.i386.rpm
[root@localhost SPECS]# rpm -qa | grep curl
curl-7.15.5-2.1.el5_3.4

* yum --disablerepo=\* --enablerepo=c5-media install freetds-devel * rpmbuild -bp --target i386 asterisk14.spec

rpmbuild

* build
  • rpmbuild -bc --short-circuit freepbx.spec
  • rpmbuild -bc --short-circuit asterisk14.spec

* all
  • rpmbuild -ba freepbx.spec
  • rpmbuild -ba asterisk14.spec

RPM build errors:
    File not found: /var/tmp/asterisk14-1.4.24-root/usr/lib/asterisk/modules/codec_speex.so
    File not found: /var/tmp/asterisk14-1.4.24-root/usr/lib/asterisk/modules/cdr_odbc.so
    File not found: /var/tmp/asterisk14-1.4.24-root/usr/lib/asterisk/modules/func_odbc.so
    File not found: /var/tmp/asterisk14-1.4.24-root/usr/lib/asterisk/modules/res_config_odbc.so
    File not found: /var/tmp/asterisk14-1.4.24-root/usr/lib/asterisk/modules/res_odbc.so
    File not found: /var/tmp/asterisk14-1.4.24-root/usr/lib/asterisk/modules/app_voicemail_odbcstorage.so

* rpmbuild -bi asterisk14.spec
  • 위와 같은 결과임.

[root@localhost lib]# rpm -qa | grep speex
speex-devel-1.0.5-4.el5_1.1
speex-1.0.5-4.el5_1.1

[root@localhost asterisk14-1.4.24]# cd /usr/lib
[root@localhost lib]# ls | grep speex
libspeex.a
libspeex.so
libspeex.so.1
libspeex.so.1.3.0

* /usr/lib/asterisk/modules 밑에 codec_speex.so 가 없음.

* subpackage
  • core, alsa, snmp, pgsql, tds, dahdi, misdn, configs,
  • curl, devel, doc, ogg, speex, odbc, voicemail,
  • voicemail-odbcstorage, voicemail-imapstorage

* asteriskNOW 에서 제공하는 subpackage
  • alsa, configs, core, curl, dahdi, devel, doc, misdn,
  • odbc, ogg, pgsql, snmp, tds, voicemail,
  • voicemail-odbcstorage, voicemail-imapstorage

* rpmbuild --without speex -ba asterisk14.spec
    # Conditional tests for desired features.
    #
    # Read: true if _with_ssl is defined, false if not defined.
    %if %{?_with_ssl:1}%{!?_with_ssl:0}
    ...
    %endif

* rpmbuild --without speex --without odbc --without voicemail_odbcstorage -ba asterisk14.spec
Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/asterisk14-1.4.24-root
error: Installed (but unpackaged) file(s) found:
   /usr/lib/asterisk/modules/app_directory_odbcstorage.so


RPM build errors:
    Installed (but unpackaged) file(s) found:
   /usr/lib/asterisk/modules/app_directory_odbcstorage.so

  • 처음에 without option 을 사용하면 이 부분은 필요없음.
  • spec file 의 %files core 에 app_directory_odbcstorage.so 를 추가함.
[root@localhost i386]# pwd
/usr/src/redhat/RPMS/i386
[root@localhost i386]# ls
asterisk14-1.4.24-2_centos5.i386.rpm
asterisk14-alsa-1.4.24-2_centos5.i386.rpm
asterisk14-configs-1.4.24-2_centos5.i386.rpm
asterisk14-core-1.4.24-2_centos5.i386.rpm
asterisk14-curl-1.4.24-2_centos5.i386.rpm
asterisk14-dahdi-1.4.24-2_centos5.i386.rpm
asterisk14-debuginfo-1.4.24-2_centos5.i386.rpm
asterisk14-devel-1.4.24-2_centos5.i386.rpm
asterisk14-doc-1.4.24-2_centos5.i386.rpm
asterisk14-misdn-1.4.24-2_centos5.i386.rpm
asterisk14-ogg-1.4.24-2_centos5.i386.rpm
asterisk14-pgsql-1.4.24-2_centos5.i386.rpm
asterisk14-snmp-1.4.24-2_centos5.i386.rpm
asterisk14-tds-1.4.24-2_centos5.i386.rpm
asterisk14-voicemail-1.4.24-2_centos5.i386.rpm
asterisk14-voicemail-imapstorage-1.4.24-2_centos5.i386.rpm

[root@localhost SRPMS]# ls
asterisk14-1.4.24-2_centos5.src.rpm


queue

* mysql * rpmbuild
  • change Makefile, main/logger.c
  • add main/logger-mysql.c
  • make mysql.patch
  • add mysql.patch to /usr/src/redhat/SOURCES/
  • change asterisk14.spec
Patch4: voicemail-splitopts-imapstorage.patch
Patch5: mysql.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-root

%patch2 -p0
%patch5 -p0
  • rpmbuild --without speex --without odbc --without voicemail_odbcstorage -ba asterisk14.spec
make[1]: Leaving directory `/usr/src/redhat/BUILD/asterisk14-1.4.24/utils'
error: Bad exit status from /var/tmp/rpm-tmp.41075 (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.41075 (%build)

  • rpm -ivh asterisk14-devel-1.4.24-2_centos5.i386.rpm
  • yum --disablerepo=\* --enablerepo=c5-media install mysql-devel

* needed
  • /etc/asterisk/logger.conf
    • asterisk14-1.4.24/configs/logger.conf.sample 변경하면 될 것 같음.
  • make mysql table

* rpmbuild -bp --target i386 asterisk14-addons.spec

subversion


* yum --disablerepo=\* --enablerepo=c5-media install mod_dav_svn
  • /etc/httpd/conf.d 밑에 subversion.conf 가 생성됨.
  • edit subversion.conf

<Location /repos>
   ...
   SVNParentPath /var/www/svn
   ...
      AuthName "Authorization Realm"
      AuthUserFile /svn-auth-conf
   ....
</Location>

Forbidden

You don't have permission to access /repos on this server.

<Location /repos>
   ...
   SVNPath /var/www/svn/repos

   ....
</Location>

Revision 0: /

  • htpasswd -cm /etc/svn-auth-conf root
  • service httpd restart
  • cd /var/www
  • mkdir svn
  • cd svn
  • svnadmin create repos
  • chown -R apache.apache repos
  • service httpd restart

* http://127.0.0.1/repos

* make local file repository * client
[root@localhost Desktop]# rpm -ivh nautilussvn-0.12-3.beta1.2.noarch.rpm 
오류: Failed dependencies:
        nautilus-python is needed by nautilussvn-0.12-3.beta1.2.noarch
        pygobject is needed by nautilussvn-0.12-3.beta1.2.noarch
        pysvn is needed by nautilussvn-0.12-3.beta1.2.noarch
        python-configobj is needed by nautilussvn-0.12-3.beta1.2.noarch

* root@localhost nautilussvn-0.12# python setup.py install
[root@localhost nautilussvn-0.12]# nautilussvn
Traceback (most recent call last):
  File "/usr/bin/nautilussvn", line 27, in ?
    from nautilussvn.lib.helper import launch_ui_window
  File "/usr/lib/python2.4/site-packages/nautilussvn/lib/__init__.py", line 23, in ?
    from nautilussvn.lib.log import Log
  File "/usr/lib/python2.4/site-packages/nautilussvn/lib/log.py", line 48, in ?
    from nautilussvn.lib.settings import SettingsManager, get_home_folder
  File "/usr/lib/python2.4/site-packages/nautilussvn/lib/settings.py", line 32, in ?
    import configobj
ImportError: No module named configobj

* rpm -ivh python-configobj-4.4.0-2.noarch.rpm
[root@localhost nautilussvn-0.12]# nautilussvn
usage: nautilussvn <module> [path1] [path2] ...

Available Modules
------------------
about, add, blame, checkout, cleanup, commit, create, delete, export,
ignore, import, lock, log, merge, properties, relocate, rename,
resolve, revert, settings, switch, unlock, update, updateto

nautilussvn


* install * install process
  • mount /dev/sda7 /mnt/sda7
  • rpm -qa | grep pygtk2
  • rpm -qa | grep subversion
  • rpm -qa | grep subversion-devel
  • yum --disablerepo=\* --enablerepo=c5-media install subversion-devel
  • rpm -qa | grep gcc
  • rpm -qa | grep neon
  • yum --disablerepo=\* --enablerepo=c5-media install neon-devel
  • rpm -qa | grep python-devel
  • yum --disablerepo=\* --enablerepo=c5-media install python-devel
  • yum --disablerepo=\* --enablerepo=c5-media install pygtk2-devel
    • 오류
  • rpm -ivh --force glib2-2.12.3-2.fc6.i386.rpm
  • rpm -ivh --force libpng-1.2.10-7.1.el5_0.1.i386.rpm
  • rpm -ivh --force libpng-devel-1.2.10-7.1.el5_0.1.i386.rpm
  • yum --disablerepo=\* --enablerepo=c5-media install pygtk2-devel
  • yum --disablerepo=\* --enablerepo=c5-media install eel2-devel
  • yum --disablerepo=\* --enablerepo=c5-media install nautilus-devel
  • rpm -ivh python-configobj-4.5.3-1.el5.rf.noarch.rpm
  • rpm -ivh meld-1.1.5-1.el5.rf.noarch.rpm
  • tar xvf nautilus-python-0.5.0.tar.gz
  • cd nautilus-python-0.5.0
  • ./configure
  • make
  • make install
  • tar xvf pysvn-1.7.0.tar.gz
  • cd pysvn-1.7.0
  • cd Source/
  • python setup.py backport
  • python setup.py configure
  • make
  • mkdir /usr/lib/python2.4/site-packages/pysvn
  • cp pysvn/init.py /usr/lib/python2.4/site-packages/pysvn
  • cp pysvn/_pysvn_2_4.so /usr/lib/python2.4/site-packages/pysvn
  • tar xvf nautilussvn_0.12-beta1-2.tar.gz
  • cd nautilussvn-0.12/
  • python setup.py install
  • nautilus -q && nautilus * menu 에 nautilussvn item 이 생기지 않음.




sponsored by andamiro
sponsored by cdnetworks
sponsored by HP

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2009-09-16 01:19:36
Processing time 0.0196 sec