GrabDuck

How to Compile Packages on Chrooted Debian – HQT

:

Compiling packages on debian it's quite easy and it's done in 4 stages: download source code, configure, make, install (optionally you can apply patches)

A - For Arm routers, setup Debian from here

B - For Mipsel routers, setup Debian from here

Compile Transmission Torrent Download Manager

1 - Enter chrooted debian with:

debian enter

2 - Update Debian

apt-get update
apt-get upgrade

3 - Install necessary packages

apt-get install ca-certificates libcurl4-openssl-dev libssl-dev pkg-config build-essential checkinstall intltool libevent-dev

3a - Fix checkinstall

sed -i 's/TRANSLATE=1/TRANSLATE=0/g' "/etc/checkinstallrc"

- Download libevent v2.0.22 source code and compile

cd /var/tmp
wget wget https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz
tar xf libevent-2.0.22-stable.tar.gz
cd libevent-2.0.22-stable
./configure
make -j 2

5 - Run checkinstall, press enter, enter, type 2 and name it libevent, type 3 and give it version 2.0.22, now press enter again

checkinstall

The libevent package has been installed and saved to /var/tmp/libevent-2.0.22-stable/libevent_2.0.22-1_armel.deb, you can store it in another place for future use or share it with someone else.

 

6 - Download transmission v2.92 source code and compile

cd /var/tmp
wget https://download.transmissionbt.com/files/transmission-2.92.tar.xz
tar xvf transmission-2.92.tar.xz
cd transmission-2.92
./configure --enable-lightweight
make -j 2

7 - Run checkinstall and press enter 3 times

checkinstall

The transmission package has been installed and saved to /var/tmp/transmission-2.92/transmission_2.92-1_armel.deb, you can store it in another place for future use or share it with someone else.

 

If you need a startup script and an optimized settings file, get point 7 & 9 from here


Compile Minidlna Upnp Media Server

1 - Enter chrooted debian with:

debian enter

2 - Update Debian

apt-get update
apt-get upgrade

3 - Install necessary packages

apt-get install autopoint autoconf checkinstall gettext libavutil-dev libexif-dev libavcodec-dev libpng12-dev\
libid3tag0-dev libFLAC-dev libvorbis-dev libsqlite3-dev libavformat-dev libffmpegthumbnailer-dev libjpeg-dev

3a - Fix checkinstall

sed -i 's/TRANSLATE=1/TRANSLATE=0/g' "/etc/checkinstallrc"

- Download minidlna v1.1.5 source code and compile

cd /var/tmp
wget -c -O minidlna-1.1.5.tar.gz https://sourceforge.net/projects/minidlna/files/minidlna/1.1.5/minidlna-1.1.5.tar.gz
tar xvf minidlna-1.1.5.tar.gz
cd minidlna-1.1.5
./autogen.sh
./configure
make -j 2

5 - Run checkinstall and press enter 3 times

checkinstall

The minidlna package has been installed and saved to /var/tmp/minidlna-1.1.5/minidlna_1.1.5-1_armel.deb, you can store it in another place for future use or share it with someone else.

 

If you need startup script and configuration file, use point 6 & 7 from here
Enjoy...