Subversion์ ์ค์ฌ์ SVN์ด๋ผ๊ณ ๋ ํ๋ค.
์ฌ๋ฌ ์ฌ๋๋ค๊ณผ ํ๋ก์ ํธ๋ฅผ ์งํํ ๋ ๋ฒ์ ํน์ ์์ค๋ฅผ ๊ณต์ ํ ์ ์๋ ํ์๊ด๋ฆฌ ํ๋ก๊ทธ๋จ์ด๋ค.
ํ์๊ด๋ฆฌ ํ๋ก๊ทธ๋จ์ผ๋ก SVN๋ณด๋ค๋ Git์ ๋ง์ด ์ฌ์ฉํ์ง๋ง, SVN๋ ์์ง ๋ง์ด ์ฌ์ฉํ๋ค.
์ ์์ ๋ถ ํ๋ ์์ํฌ์์ ๊ฐ๋ฐํ๊ฒฝ ์์ค๊ด๋ฆฌ ํ๋ก๊ทธ๋จ์ผ๋ก SVN์ ์ฌ์ฉํ๋๋ก ๋์ด์๋ค.
ํ์๋ 1.7.14๋ฒ์ ์ผ๋ก ์ปดํ์ผ ์ค์น๋ฅผ ํ ๊ฒ์ด๋ค.
archive download site
ํ์ํ ๋ฒ์ ์ ๋งํฌ์ฃผ์๋ฅผ ๋ณต์ฌํ๋ค.
wget ๋ฐฉ์์ผ๋ก ๋ฐ์์ฃผ๊ณ ํ์ด์ค๋ค.
1 2 3 4 5 | [jamong@localhost ~]$ cd dev_util/ [jamong@localhost dev_util]$ mkdir svn [jamong@localhost ~]$ cd svn/ [jamong@localhost svn]$ wget https://archive.apache.org/dist/subversion/subversion-1.7.14.tar.gz [jamong@localhost svn]$ tar xvfz subversion-1.7.14.tar.gz | cs |
์ปดํ์ผ ์ค์น๋ฅผ ์ํด ํ์ํ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ค์ ์ค์นํด์ค๋ค.
arp, apr-util ๋ฒ์ ํธ๋ฆฌ http://archive.apache.org/dist/apr/
wget์ผ๋ก ๋ฐ์์ฃผ๊ณ ํ์ด์ค๋ค.
1 2 3 4 | [jamong@localhost svn]$ wget http://archive.apache.org/dist/apr/apr-1.5.2.tar.gz [jamong@localhost svn]$ tar xvfz apr-1.5.2.tar.gz [jamong@localhost svn]$ wget http://archive.apache.org/dist/apr/apr-util-1.5.4.tar.gz [jamong@localhost svn]$ tar xvfz apr-util-1.5.4.tar.gz |
apr ์ปดํ์ผ ์ค์น
1 2 3 4 5 | [jamong@localhost svn]$ cd apr-1.5.2/ [jamong@localhost apr-1.5.2]$ ./configure --prefix=/home/jamong/dev_util/svn/apr [jamong@localhost apr-1.5.2]$ make [jamong@localhost apr-1.5.2]$ make install [jamong@localhost apr-1.5.2]$ make clean |
apr-util ์ปดํ์ผ ์ค์น
1 2 3 4 5 6 | [jamong@localhost apr-1.5.2]$ cd /home/jamong/dev_util/svn/apr-util-1.5.4 [jamong@localhost apr-util-1.5.4]$ ./configure --prefix=/home/jamong/dev_util/svn/apr-util\ > --with-apr=/home/jamong/dev_util/svn/apr [jamong@localhost apr-util-1.5.4]$ make [jamong@localhost apr-util-1.5.4]$ make install [jamong@localhost apr-util-1.5.4]$ make clean |
sqlite ์ค์น ๋ฐ ์ค์
https://www.sqlite.org/download.html
wget์ผ๋ก ์ค์นํ๊ณ ํ์ด์ค๊ณ sqlite3.c ํ์ผ์ SVN ์์ค ์ค์น ํด๋์ ํด๋๋ฅผ ๋ง๋ค์ด์ฃผ๊ณ ๋ฃ์ด์ค๋ค.
1 2 3 4 5 6 | [jamong@localhost svn]$ wget https://www.sqlite.org/2018/sqlite-autoconf-3240000.tar.gz [jamong@localhost svn]$ tar xvfz sqlite-autoconf-3240000.tar.gz [jamong@localhost svn]$ cd subversion-1.7.14/ [jamong@localhost subversion-1.7.14]$ mkdir sqlite-amalgamation/ [jamong@localhost subversion-1.7.14]$ cd /home/jamong/dev_util/svn/sqlite-autoconf-3240000 [jamong@localhost sqlite-autoconf-3240000]$ cp sqlite3.c /home/jamong/dev_util/svn/subversion-1.7.14/sqlite-amalgamation/ | cs |
์ด์ SVN ์ปดํ์ผ ์ค์น๋ฅผ ํ๋ค.
1 2 3 4 5 6 7 8 | [jamong@localhost sqlite-autoconf-3240000]$ cd /home/jamong/dev_util/svn/subversion-1.7.14 [jamong@localhost subversion-1.7.14]$ ./configure --prefix=/home/jamong/dev_util/svn\ > --with-apr=/home/jamong/dev_util/svn/apr\ > --with-apr-util=/home/jamong/dev_util/svn/apr-util\ > --without-berkeley-db [jamong@localhost subversion-1.7.14]$ make [jamong@localhost subversion-1.7.14]$ make install [jamong@localhost subversion-1.7.14]$ make clean |
svn ์ ์ฅ์๋ฅผ ๋ง๋ค์ด์ค๋ค.
1 2 3 4 | [jamong@localhost ~]$ cd /home/jamong/dev_util/svn/ [jamong@localhost svn]$ mkdir repository [jamong@localhost svn]$ cd bin/ [jamong@localhost bin]$ ./svnadmin create --fs-type fsfs /home/jamong/dev_util/svn/repository/ | cs |
svn ์ ์ ๋ฐ ๋น๋ฐ๋ฒํธ ๋ฑ๋กํด์ค๋ค
1 2 3 | [jamong@localhost bin]$ cd .. [jamong@localhost svn]$ cd repository/conf [jamong@localhost conf]$ vi passwd | cs |
์ฃผ์์ ํ์ด์ฃผ๊ณ ์ํ๋ ์ ์ ๋ช ๊ณผ ๋น๋ฐ๋ฒํธ๋ฅผ ์ค์ ํด์ค๋ค.
1 2 | [users] jamong = ๋น๋ฐ๋ฒํธ | cs |
svnserve.conf ์ค์
1 | [jamong@localhost conf]$ vi svnserve.conf |
์๋์๊ฐ์ด ์ค์
1 2 3 4 5 | [general] anon-access = none auth-access = write password-db = passwd authz-db = authz | cs |
๊ถํ์ค์
1 | [jamong@localhost conf]$ vi authz | cs |
์๋์๊ฐ์ด ์ค์ ํ๋ค.
1 2 3 4 5 | [groups] allusers = jamong [/] @allusers = rw | cs |
group์ ๊ณ์ ์ ์ถ๊ฐํด์ฃผ๊ณ , group์ ์ฝ๊ธฐ์ ์ฐ๊ธฐ ๊ถํ์ ๋ถ์ฌํด์ค๋ค.
๋ง์ง๋ง์ผ๋ก ๋ฐฉํ๋ฒฝํฌํธ๋ฅผ ๊ฐ๋ฐฉํด์ค๋ค.
svn์ default ํฌํธ๋ 3690์ด๋ค.
1 2 3 4 | [jamong@localhost conf]$ sudo firewall-cmd --zone=public --add-port=3690/tcp --permanent [jamong@localhost conf]$ sudo firewall-cmd --reload [jamong@localhost conf]$ sudo firewall-cmd --list-ports 22/tcp 3306/tcp 8080/tcp 80/tcp 9090/tcp 3690/tcp |
svn์คํ์ ํ๋ค.
1 | [jamong@localhost ~]$ svnserve -d -r /home/jamong/dev_util/svn | cs |
svn์ด ์ ๋๋ก ์ค์น ๋์๋์ง ๋ฒ์ ์ ํ์ธํด์ค๋ค.
1 2 3 4 5 6 7 8 | [jamong@localhost conf]$ svn --version svn, ๋ฒ์ ผ 1.7.14 (r1542130) Apr 11 2018, 02:40:28์ ์ปดํ์ผ ๋จ Copyright (C) 2013 The Apache Software Foundation. This software consists of contributions made by many people; see the NOTICE file for more information. Subversion is open source software, see http://subversion.apache.org/ | cs |
๋ค์ ๊ธ์์๋ svn์ ํตํด์ ํ์๊ด๋ฆฌ๊ฐ ๋๋์ง eclipse๋ฅผ ์ด์ฉํ์ฌ ํ์ธํ ๊ฒ์ด๋ค.
๋๊ธ