Building Debian (.deb package) APE-server from GIT on Ubuntu Maverick 10.10
Init build structure
<a href="mailto:jochen@DESKTOP">jochen@DESKTOP</a>-JOCHEN /tmp $ sudo aptitude install libmysqlclient-dev debhelper
<a href="mailto:jochen@DESKTOP">jochen@DESKTOP</a>-JOCHEN /tmp $ mkdir git_ape
<a href="mailto:jochen@DESKTOP">jochen@DESKTOP</a>-JOCHEN /tmp $ cd git_ape/
<a href="mailto:jochen@DESKTOP">jochen@DESKTOP</a>-JOCHEN /tmp/git_ape $ mkdir orig
<a href="mailto:jochen@DESKTOP">jochen@DESKTOP</a>-JOCHEN /tmp/git_ape $ mkdir deb
<a href="mailto:jochen@DESKTOP">jochen@DESKTOP</a>-JOCHEN /tmp/git_ape $ cd deb/
<a href="mailto:jochen@DESKTOP">jochen@DESKTOP</a>-JOCHEN /tmp/git_ape/deb $ git clone git://github.com/sanchi/APE_Server.git
Initialized empty Git repository in /tmp/git_ape/deb/APE_Server/.git/
remote: Counting objects: 10645, done.
remote: Compressing objects: 100% (4041/4041), done.
remote: Total 10645 (delta 6445), reused 10191 (delta 6269)
Receiving objects: 100% (10645/10645), 21.40 MiB | 3.14 MiB/s, done.
Resolving deltas: 100% (6445/6445), done.
<a href="mailto:jochen@DESKTOP">jochen@DESKTOP</a>-JOCHEN /tmp/git_ape/deb $ cd ../orig/
<a href="mailto:jochen@DESKTOP">jochen@DESKTOP</a>-JOCHEN /tmp/git_ape/orig $ git clone git://github.com/APE-Project/APE_Server.git
Initialized empty Git repository in /tmp/git_ape/orig/APE_Server/.git/
remote: Counting objects: 15624, done.
remote: Compressing objects: 100% (5222/5222), done.
remote: Total 15624 (delta 10010), reused 15472 (delta 9900)
Receiving objects: 100% (15624/15624), 24.38 MiB | 181 KiB/s, done.
Resolving deltas: 100% (10010/10010), done.
<a href="mailto:jochen@DESKTOP">jochen@DESKTOP</a>-JOCHEN /tmp/git_ape/orig $ cp -R ../deb/APE_Server/pkg/ APE_Server/
<a href="mailto:jochen@DESKTOP">jochen@DESKTOP</a>-JOCHEN /tmp/git_ape/orig $ cd APE_Server/
<a href="mailto:jochen@DESKTOP">jochen@DESKTOP</a>-JOCHEN /tmp/git_ape/orig/APE_Server $ ls -al
total 80
drwxr-xr-x 10 jochen jochen 4096 2011-02-08 12:13 .
drwxr-xr-x 3 jochen jochen 4096 2011-02-08 12:12 ..
-rwxr-xr-x 1 jochen jochen 166 2011-02-08 12:12 AUTHORS
drwxr-xr-x 2 jochen jochen 4096 2011-02-08 12:12 bin
-rwxr-xr-x 1 jochen jochen 817 2011-02-08 12:12 build.sh
-rwxr-xr-x 1 jochen jochen 18009 2011-02-08 12:12 COPYING
drwxr-xr-x 4 jochen jochen 4096 2011-02-08 12:12 deps
drwxr-xr-x 2 jochen jochen 4096 2011-02-08 12:12 doc
drwxr-xr-x 8 jochen jochen 4096 2011-02-08 12:12 .git
-rw-r--r-- 1 jochen jochen 694 2011-02-08 12:12 .gitignore
-rw-r--r-- 1 jochen jochen 802 2011-02-08 12:12 Makefile
drwxr-xr-x 5 jochen jochen 4096 2011-02-08 12:12 modules
drwxr-xr-x 3 jochen jochen 4096 2011-02-08 12:13 pkg
-rwxr-xr-x 1 jochen jochen 28 2011-02-08 12:12 README
drwxr-xr-x 6 jochen jochen 4096 2011-02-08 12:12 scripts
drwxr-xr-x 2 jochen jochen 4096 2011-02-08 12:12 src
Modify some settings
/bin/ape.conf
10c10
< daemon = no
---
> daemon = yes
31,32c31,32
< modules = ../modules/lib/
< modules_conf = ../modules/conf/
---
> modules = ../../usr/lib/ape/
> modules_conf = ../../etc/ape/modules/
/modules/conf/javascript.conf
1c1
< scripts_path = ../scripts/
---
> scripts_path = /usr/lib/ape/scripts/
Build mysac
<a href="mailto:jochen@DESKTOP">jochen@DESKTOP</a>-JOCHEN /tmp/git_ape/orig/APE_Server $ cd modules/deps/mysac/
<a href="mailto:jochen@DESKTOP">jochen@DESKTOP</a>-JOCHEN /tmp/git_ape/orig/APE_Server/modules/deps/mysac $ make
make lib
make[1]: Entering directory `/tmp/git_ape/orig/APE_Server/modules/deps/mysac'
cc -DBUILDVER=0.4b -I/usr/include/mysql -O0 -g -Wall -fPIC -c -o mysac.o mysac.c
cc -DBUILDVER=0.4b -I/usr/include/mysql -O0 -g -Wall -fPIC -c -o mysac_net.o mysac_net.c
cc -DBUILDVER=0.4b -I/usr/include/mysql -O0 -g -Wall -fPIC -c -o mysac_decode_field.o mysac_decode_field.c
cc -DBUILDVER=0.4b -I/usr/include/mysql -O0 -g -Wall -fPIC -c -o mysac_decode_row.o mysac_decode_row.c
mysac_decode_row.c: In function ‘mysac_decode_string_row’:
mysac_decode_row.c:277: warning: unused variable ‘error’
mysac_decode_row.c:276: warning: unused variable ‘mem’
cc -DBUILDVER=0.4b -I/usr/include/mysql -O0 -g -Wall -fPIC -c -o mysac_encode_values.o mysac_encode_values.c
cc -DBUILDVER=0.4b -I/usr/include/mysql -O0 -g -Wall -fPIC -c -o mysac_errors.o mysac_errors.c
ar -rcv libmysac.a mysac.o mysac_net.o mysac_decode_field.o mysac_decode_row.o mysac_encode_values.o mysac_errors.o
a - mysac.o
a - mysac_net.o
a - mysac_decode_field.o
a - mysac_decode_row.o
a - mysac_encode_values.o
a - mysac_errors.o
make[1]: Leaving directory `/tmp/git_ape/orig/APE_Server/modules/deps/mysac'
Build APE server
<a href="mailto:jochen@DESKTOP">jochen@DESKTOP</a>-JOCHEN /tmp/git_ape/orig/APE_Server $ ./build.sh
Build Debian package
<a href="mailto:jochen@DESKTOP">jochen@DESKTOP</a>-JOCHEN /tmp/git_ape/orig/APE_Server $ ln -s pkg/debian .
<a href="mailto:jochen@DESKTOP">jochen@DESKTOP</a>-JOCHEN /tmp/git_ape/orig/APE_Server $ dpkg-buildpackage -rfakeroot -us -uc
<a href="mailto:jochen@DESKTOP">jochen@DESKTOP</a>-JOCHEN /tmp/git_ape/orig/APE_Server $ ls -al ../
total 33076
drwxr-xr-x 3 jochen jochen 4096 2011-02-08 12:33 .
drwxr-xr-x 4 jochen jochen 4096 2011-02-08 12:09 ..
-rw-r--r-- 1 jochen jochen 488 2011-02-08 12:31 aped_1.0-54-g2a021e2.dsc
-rw-r--r-- 1 jochen jochen 1222 2011-02-08 12:33 aped_1.0-54-g2a021e2_i386.changes
-rw-r--r-- 1 jochen jochen 3097124 2011-02-08 12:33 aped_1.0-54-g2a021e2_i386.deb
-rw-r--r-- 1 jochen jochen 30704934 2011-02-08 12:31 aped_1.0-54-g2a021e2.tar.gz
drwxr-xr-x 10 jochen jochen 4096 2011-02-08 12:32 APE_Server
Add new comment