@@ -12,7 +12,13 @@ iptables=iptables-1.8.3
1212samba =samba-3.6.25
1313rsync =rsync-3.1.3
1414
15- common_configure =./configure --disable-ipv6 --localstatedir=/var/run --sharedstatedir=/var --host=arm-linux-gnueabi CC=arm-buildroot-linux-musleabihf-gcc --prefix=/mnt/secure --enable-static --disable-shared LDFLAGS="--static -Wl,-gc-sections" CFLAGS="-D__mempcpy=mempcpy -ffunction-sections -fdata-sections" --prefix=/mnt/secure --sbindir=/mnt/secure/bin --datarootdir=/mnt/secure
15+ # TODO
16+ lftp =lftp-4.8.4
17+ powertop =powertop-v2.10
18+ htop =htop-2.2.0
19+
20+ common_configure =./configure --disable-ipv6 --localstatedir=/var/run --sharedstatedir=/var --host=arm-linux-gnueabi CC=$(cc ) --prefix=/mnt/secure --enable-static --disable-shared LDFLAGS="--static -Wl,-gc-sections" CFLAGS="-D__mempcpy=mempcpy -ffunction-sections -fdata-sections" --prefix=/mnt/secure --sbindir=/mnt/secure/bin --datarootdir=/mnt/secure
21+ common_configure5 =./configure --disable-ipv6 --localstatedir=/var/run --sharedstatedir=/var --host=arm-linux-gnueabi CC=$(cc5 ) --prefix=/mnt/secure --enable-static --disable-shared --prefix=/mnt/secure --sbindir=/mnt/secure/bin --datarootdir=/mnt/secure --disable-unicode
1622
1723SSH_CONFIG_OPTIONS =--disable-pam --disable-syslog --disable-shadow --disable-lastlog --disable-utmp --disable-utmpx --disable-wtmp --disable-wtmpx --disable-loginfunc --disable-pututline --disable-pututxline --disable-zlib
1824
@@ -108,7 +114,7 @@ Services.app: FORCE svc
108114svc : $(svcbins )
109115 echo Cross-compiled service binaries
110116
111- # Retrieve source codes
117+ # Retrieve source codes for binaries we compile statically with musl (smaller / more portable)
112118$(proftpd ) :
113119 wget -c ftp://ftp.proftpd.org/distrib/source/$(proftpd ) .tar.gz
114120 tar -xvzf $(proftpd ) .tar.gz
@@ -123,6 +129,17 @@ $(rsync):
123129 wget -c https://download.samba.org/pub/rsync/$(rsync ) .tar.gz
124130 tar -xvzf $(rsync ) .tar.gz
125131
132+ # These depend on cc5 sdk, as they need ncurses or openssl (static musl would become too big)
133+ $(htop ) :
134+ wget -c https://hisham.hm/htop/releases/2.2.0/$(htop ) .tar.gz
135+ tar -xvzf $(htop ) .tar.gz
136+ $(powertop ) :
137+ wget -c https://01.org/sites/default/files/downloads/$(powertop ) .tar.gz
138+ tar -xvzf $(powrtop ) .tar.gz
139+ $(lftp ) :
140+ wget -c http://lftp.yar.ru/ftp/$(lftp ) .tar.gz
141+ tar -xvzf $(lftp ) .tar.gz
142+
126143# each of svcbin
127144svc/bin/iptables : $(iptables )
128145 (cd $( iptables) && $( common_configure) --disable-devel --disable-nftables --with-xt-lock-name=/var/run/xtables.lock)
@@ -152,6 +169,10 @@ svc/bin/rsync: $(rsync)
152169
153170svc/bin/ntlmhash : ntlmhash.c
154171 $(cc ) -static -s $< -o $@
172+
173+ svc/bin/htop : $(htop )
174+ (cd $( htop) && $( common_configure5) )
175+ make -C $(htop )
155176FORCE :
156177
157178
0 commit comments