I am a new user of Arch Linux and Alarm PI (only 2 weeks since first installed both)
I wanted to build and install Flightaware's dump1090-fa using source code available at Github
http://github.com/flightaware/dump1090
To do this, I wrote PKGBUILD and foo.install
When I tried it on Arch Linux x86_64, it built & installed dump1090-fa,
but when I tried it on AlarmPi, it failed.
What should I do?
NOTE: I have installed AlarmPi exactly as instructed on this page:
https://archlinuxarm.org/platforms/armv ... berry-pi-2
$this->bbcode_second_pass_code('', '
[alarm@alarmpi dump1090-fa-arch]$ makepkg -si
==> ERROR: Cannot find the strip binary required for object file stripping.
')
MY FILE PKGBUILD:
$this->bbcode_second_pass_code('', '
#Creater: abcd567
#Maintener: abcd567
pkgname=dump1090-fa
pkgver=latest
pkgrel=1
arch=('x86_64' 'armh6' 'armh7' 'armv6h' 'armv7h')
license=('GPL')
depends=('rtl-sdr' 'lighttpd' 'bladerf')
makedepends=(git)
conflicts=('dump1090'
'dump1090-mutability'
'dump1090-mutability-git'
'dump1090-fa-git'
'dump1090-git'
'dump1090_mr-git')
source=('dump1090::git+git://github.com/flightaware/dump1090')
md5sums=('SKIP')
install="foo.install"
build() {
cd ${srcdir}/dump1090
make
}
package() {
mkdir -p ${pkgdir}/usr/bin
cp ${srcdir}/dump1090/dump1090 ${pkgdir}/usr/bin/dump1090-fa
mkdir -p ${pkgdir}/usr/share/dump1090-fa/html
cp -r ${srcdir}/dump1090/public_html/* ${pkgdir}/usr/share/dump1090-fa/html/
mkdir -p ${pkgdir}/etc/default
cp ${srcdir}/dump1090/debian/dump1090-fa.default ${pkgdir}/etc/default/dump1090-fa
mkdir -p ${pkgdir}/usr/lib/systemd/system
cp ${srcdir}/dump1090/debian/dump1090-fa.service ${pkgdir}/usr/lib/systemd/system/dump1090-fa.service
cp -r ${srcdir}/dump1090/debian/lighttpd ${pkgdir}/lighttpd
}
')
MY FILE foo.install:
$this->bbcode_second_pass_code('', '
post_install () {
## ENABLE DUMP1090-FA SERVICE
systemctl enable dump1090-fa.service
useradd --system dump1090
## DUMP1090-FA INTEGRATION TO LIGHTTPD
mkdir -p /etc/lighttpd/conf.d
cp -r ${pkgdir}/lighttpd/* /etc/lighttpd/conf.d/
chmod 777 /etc/lighttpd/lighttpd.conf
echo "" >> /etc/lighttpd/lighttpd.conf
echo "server.modules += ( \"mod_alias\" )" >> /etc/lighttpd/lighttpd.conf
echo "include \"/etc/lighttpd/conf.d/*\"" >> /etc/lighttpd/lighttpd.conf
chmod 644 /etc/lighttpd/lighttpd.conf
systemctl enable lighttpd.service
## RESTART LIGHTTPD & DUMP1090-FA
systemctl restart lighttpd
systemctl restart dump1090-fa
echo ""
echo ""
echo "============================================"
echo " T H I N G - TO - DO "
echo "============================================"
echo ""
echo "IMPORTANT: REBOOT COMPUTER/RPi"
echo ""
echo "OTHERWISE DUMP1090-FA WILL FAIL TO START"
echo "AND A ROTATING WHEEL WILL APPEAR ON THE MAP, OR MAP WILL NOT SHOW"
echo ""
echo "To make SkyView Map show range rings, do following"
echo "(1) Open file for editing"
echo "sudo nano /etc/default/dump1090-fa "
echo ""
echo "(2) Go to following line"
echo "RECEIVER_OPTIONS=\"--device-index 0 --gain -10 --ppm 0 --net-bo-port 30005\""
echo "In above line, add your latitude and longitude, so the line becomes like below:"
echo "RECEIVER_OPTIONS=\"--device-index 0 --gain -10 --lat xx.xxxx --lon yy.yyyy --ppm 0 --net-bo-port 30005\""
echo "NOTE: Repalce xx.xxxx and yy.yyyy by your actual latitude and Longitude"
echo ""
echo "(3) Restart dump1090-fa "
echo "sudo systemctl restart dump1090-fa "
echo "(4) Clear browser cache and reload browser"
echo ""
echo ""
}
')