mirror of
https://github.com/pygos/build.git
synced 2024-11-05 11:37:10 +01:00
b1bdce20a9
Crunch project websites and try to find the latest version for each package without having to do the work manually. Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
77 lines
No EOL
1.6 KiB
Text
Executable file
77 lines
No EOL
1.6 KiB
Text
Executable file
VERSION="0.3"
|
|
SRCDIR="init-${VERSION}"
|
|
TARBALL="${SRCDIR}.tar.xz"
|
|
URL="http://infraroot.at/pygos"
|
|
SHA256SUM="08999aae0865a8a0f26dac0c4bb8a11d3cf1ecfa51955d5fb53865c25a2f12df"
|
|
DEPENDS="toolchain"
|
|
|
|
prepare() {
|
|
return
|
|
}
|
|
|
|
build() {
|
|
local SOURCE="$1"
|
|
local DEPLOY="$2"
|
|
|
|
$SOURCE/configure --prefix="" --host="$TARGET" --sbindir=/bin \
|
|
--libexecdir=/lib/libexec
|
|
|
|
make -j $NUMJOBS
|
|
}
|
|
|
|
deploy() {
|
|
local SOURCE="$1"
|
|
local DEPLOY="$2"
|
|
local svc
|
|
|
|
make DESTDIR="$DEPLOY" install-strip
|
|
|
|
cp -r ${SCRIPTDIR}/pkg/${PKGNAME}/{etc,lib,share} "$DEPLOY"
|
|
|
|
if [ -e "$SCRIPTDIR/board/$BOARD/INIT" ]; then
|
|
source "$SCRIPTDIR/board/$BOARD/INIT"
|
|
fi
|
|
if [ -e "$SCRIPTDIR/product/$PRODUCT/INIT" ]; then
|
|
source "$SCRIPTDIR/product/$PRODUCT/INIT"
|
|
fi
|
|
if [ -e "$SCRIPTDIR/product/$PRODUCT/$BOARD/INIT" ]; then
|
|
source "$SCRIPTDIR/product/$PRODUCT/$BOARD/INIT"
|
|
fi
|
|
|
|
if [ "x$HWCLOCK" == "xyes" ]; then
|
|
ln -s "/share/init/hwclock" "$DEPLOY/etc/init.d/hwclock"
|
|
fi
|
|
|
|
svc=$(file_path_override "ifrename")
|
|
if [ ! -z "$svc" ]; then
|
|
cp "$svc" "$DEPLOY/etc/netcfg/ifrename"
|
|
ln -s "/share/init/ifrename" "$DEPLOY/etc/init.d/ifrename"
|
|
fi
|
|
|
|
svc=$(file_path_override "interfaces")
|
|
if [ ! -z "$svc" ]; then
|
|
for svc in $svc/*; do
|
|
[ -f "$svc" ] || continue
|
|
cp "$svc" "$DEPLOY/etc/netcfg/"
|
|
done
|
|
fi
|
|
|
|
for svc in $GETTY_TTY; do
|
|
ln -s "/share/init/agetty" "$DEPLOY/etc/init.d/agetty@$svc"
|
|
done
|
|
|
|
if [ ! -z "$DHCP_PORTS" ]; then
|
|
ln -s "/share/init/dhcpcdmaster" \
|
|
"$DEPLOY/etc/init.d/dhcpcdmaster"
|
|
fi
|
|
|
|
for svc in $DHCP_PORTS; do
|
|
ln -s "/share/init/dhcpcd" "$DEPLOY/etc/init.d/dhcpcd@$svc"
|
|
done
|
|
|
|
unset -v i GETTY_TTY HWCLOCK DHCP_PORTS
|
|
}
|
|
|
|
check_update() {
|
|
return
|
|
} |