== 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
* http://centos.mirror.cdnetworks.com/5.3/extras/i386/RPMS/
* yum --disablerepo=\* --enablerepo=extras 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
}}}
* http://rpm.org/max-rpm/s1-rpm-rw-build-initial-build-with-rpm.html
== queue ==
* mysql
* http://www.voip-info.org/wiki/view/Asterisk+queue_log+on+MySQL
* http://www.mail-archive.com/asterisk-users@lists.digium.com/msg212441.html
* http://forums.digium.com/viewtopic.php?t=4073
* http://www.plack.net/index.php/2007/01/07/asterisk_modification_for_queue_logging
* 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
{{{
...
SVNParentPath /var/www/svn
...
AuthName "Authorization Realm"
AuthUserFile /svn-auth-conf
....
Forbidden
You don't have permission to access /repos on this server.
}}}
{{{
...
SVNPath /var/www/svn/repos
....
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
* cd /var
* mkdir svn
* svnadmin create /var/svn/newrepos
* svn import /usr/src/redhat/BUILD/asterisk14-1.4.24 file:///var/svn/newrepos/asterisk14-1.4.24 -m "Initial import"
* svn checkout file:///var/svn/newrepos/asterisk14-1.4.24/
* cd asterisk14-1.4.24/
* edit Makefile, main/logger.c
* svn commit -m "for mysql"
* cd main
* create logger-mysql.c
* svn add logger-mysql.c
* svn commit -m "add main/logger-mysql.c"
* svn diff -r 1:3 > mysql.patch
* client
* http://sea-mew.jp/nox/modules/rpms/ls/el5/noarch/nautilussvn-0.12-3.beta1.2.noarch.rpm
{{{
[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 [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
* http://code.google.com/p/nautilussvn/wiki/v012_Installation
* http://groups.google.com/group/nautilussvn/browse_thread/thread/225917616f967efc
* 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 ÀÌ »ý±âÁö ¾ÊÀ½.