1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-06-26 13:00:13 +02:00
build/pkg/basefiles/build
David Oberhollenzer 26a9b8002f Cleanup rootfs package
- 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>
2019-03-07 20:12:19 +01:00

28 lines
662 B
Plaintext

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
}