1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-11-16 00:17:11 +01:00
build/pkg/basefiles/build

28 lines
662 B
Text
Raw Normal View History

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
}