mirror of
https://github.com/pygos/build.git
synced 2024-11-25 04:20:41 +01:00
David Oberhollenzer
26a9b8002f
- move the skeleton setup stuff out of the rootfs package into a sperate package called "basefiles" - remove manual unpacking from rootfs, we already have all the dependencies installed in the toolchain sysroot. Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
27 lines
662 B
Text
27 lines
662 B
Text
build() {
|
|
return
|
|
}
|
|
|
|
deploy() {
|
|
cp $SCRIPTDIR/pkg/$PKGNAME/*.{files,desc} "$PKGDEPLOYDIR"
|
|
cp -r "$SCRIPTDIR/pkg/$PKGNAME/etc" "$PKGDEPLOYDIR"
|
|
cp -r "$SCRIPTDIR/pkg/$PKGNAME/lib" "$PKGDEPLOYDIR"
|
|
|
|
# version info
|
|
local fname=$(echo "${OS_NAME}-release" | tr '[:upper:]' '[:lower:]')
|
|
echo "$OS_RELEASE" > "$PKGDEPLOYDIR/etc/$fname"
|
|
echo "file etc/$fname 0644 0 0" >> "$PKGDEPLOYDIR/${PKGNAME}.files"
|
|
|
|
# local config files
|
|
fname=$(file_path_override "resolv.conf")
|
|
|
|
if [ ! -z "$fname" ]; then
|
|
cp "$fname" "$PKGDEPLOYDIR/etc/resolv.conf"
|
|
echo "file etc/resolv.conf 0644 0 0" \
|
|
>> "$PKGDEPLOYDIR/${PKGNAME}.files"
|
|
fi
|
|
}
|
|
|
|
check_update() {
|
|
return
|
|
}
|