1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-11-22 11:09:46 +01:00

Fix alix build

Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
This commit is contained in:
David Oberhollenzer 2019-02-27 21:36:51 +01:00
parent d7ae731c13
commit bf23f1bdc7
8 changed files with 52 additions and 37 deletions

View file

@ -78,13 +78,13 @@ deploy() {
echo "dir lib/modules 0755 0 0" >> "$DEPLOY/$PKGNAME.files" echo "dir lib/modules 0755 0 0" >> "$DEPLOY/$PKGNAME.files"
find -H "$DEPLOY/lib" -type d -printf "dir %p 0%m 0 0\\n" |\ find -H "$DEPLOY/lib" -type d -printf "dir %p 0%m 0 0\\n" |\
tail -n +2 | sed "s#^$DEPLOY/##g" >> "$DEPLOY/$PKGNAME.files" tail -n +2 | sed "s#$DEPLOY/##g" >> "$DEPLOY/$PKGNAME.files"
find -H "$DEPLOY/lib" -type l -printf "slink %p 0%m 0 0 %l\\n" |\ find -H "$DEPLOY/lib" -type l -printf "slink %p 0%m 0 0 %l\\n" |\
sed "s#^$DEPLOY/##g" >> "$DEPLOY/$PKGNAME.files" sed "s#$DEPLOY/##g" >> "$DEPLOY/$PKGNAME.files"
find -H "$DEPLOY/lib" -type f -printf "file %p 0%m 0 0\\n" |\ find -H "$DEPLOY/lib" -type f -printf "file %p 0%m 0 0\\n" |\
sed "s#^$DEPLOY/##g" >> "$DEPLOY/$PKGNAME.files" sed "s#$DEPLOY/##g" >> "$DEPLOY/$PKGNAME.files"
;; ;;
esac esac
done done

View file

@ -86,13 +86,13 @@ deploy() {
echo "dir srv/www 0755 0 0" >> "$DEPLOY/nginx.files" echo "dir srv/www 0755 0 0" >> "$DEPLOY/nginx.files"
find -H "$DEPLOY/srv/www" -type d -printf "dir %p 0%m 0 0\\n" |\ find -H "$DEPLOY/srv/www" -type d -printf "dir %p 0%m 0 0\\n" |\
tail -n +2 | sed "s#^$DEPLOY/##g" >> "$DEPLOY/nginx.files" tail -n +2 | sed "s#$DEPLOY/##g" >> "$DEPLOY/nginx.files"
find -H "$DEPLOY/srv/www" -type l -printf "slink %p 0%m 0 0 %l\\n" |\ find -H "$DEPLOY/srv/www" -type l -printf "slink %p 0%m 0 0 %l\\n" |\
sed "s#^$DEPLOY/##g" >> "$DEPLOY/nginx.files" sed "s#$DEPLOY/##g" >> "$DEPLOY/nginx.files"
find -H "$DEPLOY/srv/www" -type f -printf "file %p 0%m 0 0\\n" |\ find -H "$DEPLOY/srv/www" -type f -printf "file %p 0%m 0 0\\n" |\
sed "s#^$DEPLOY/##g" >> "$DEPLOY/nginx.files" sed "s#$DEPLOY/##g" >> "$DEPLOY/nginx.files"
fi fi
cat_file_override "nginx.conf" > "$DEPLOY/etc/nginx/nginx.conf" cat_file_override "nginx.conf" > "$DEPLOY/etc/nginx/nginx.conf"

View file

@ -4,7 +4,7 @@ build() {
local SOURCE="$1" local SOURCE="$1"
local DEPLOY="$2" local DEPLOY="$2"
pkg install -om -r "$PKGDEPLOYDIR/$OS_RELEASE" -R "$REPODIR" $DEPENDS pkg install -om -r "$PKGBUILDDIR/$OS_RELEASE" -R "$REPODIR" $DEPENDS
# copy additional files from this package, subsitute filenames # copy additional files from this package, subsitute filenames
local linux_image="$OS_RELEASE/vmlinuz" local linux_image="$OS_RELEASE/vmlinuz"
@ -26,6 +26,11 @@ deploy() {
local DEPLOY="$2" local DEPLOY="$2"
tar czf "$DEPLOY/$PKGNAME.tar.gz" * tar czf "$DEPLOY/$PKGNAME.tar.gz" *
touch "$2/$PKGNAME.files"
cat > "$2/$PKGNAME.desc" <<_EOF
name $PKGNAME
_EOF
} }
check_update() { check_update() {

View file

@ -52,4 +52,40 @@ deploy() {
mv ${TCDIR}/${TARGET}/{include,lib} "$DEPLOY" mv ${TCDIR}/${TARGET}/{include,lib} "$DEPLOY"
rm ${DEPLOY}/lib/*.la rm ${DEPLOY}/lib/*.la
cp $SCRIPTDIR/pkg/$PKGNAME/*.{files,desc} "$DEPLOY" cp $SCRIPTDIR/pkg/$PKGNAME/*.{files,desc} "$DEPLOY"
cat >> "$DEPLOY/libgcc-dev.files" <<_EOF
dir include/c++/8.2.0/$TARGET 0775 0 0
dir include/c++/8.2.0/$TARGET/bits 0775 0 0
dir include/c++/8.2.0/$TARGET/ext 0775 0 0
file include/c++/8.2.0/$TARGET/bits/stdtr1c++.h 0644 0 0
file include/c++/8.2.0/$TARGET/bits/gthr-single.h 0644 0 0
file include/c++/8.2.0/$TARGET/bits/ctype_inline.h 0644 0 0
file include/c++/8.2.0/$TARGET/bits/gthr-posix.h 0644 0 0
file include/c++/8.2.0/$TARGET/bits/ctype_base.h 0644 0 0
file include/c++/8.2.0/$TARGET/bits/c++io.h 0644 0 0
file include/c++/8.2.0/$TARGET/bits/gthr.h 0644 0 0
file include/c++/8.2.0/$TARGET/bits/c++locale.h 0644 0 0
file include/c++/8.2.0/$TARGET/bits/cpu_defines.h 0644 0 0
file include/c++/8.2.0/$TARGET/bits/c++config.h 0644 0 0
file include/c++/8.2.0/$TARGET/bits/atomic_word.h 0644 0 0
file include/c++/8.2.0/$TARGET/bits/os_defines.h 0644 0 0
file include/c++/8.2.0/$TARGET/bits/time_members.h 0644 0 0
file include/c++/8.2.0/$TARGET/bits/basic_file.h 0644 0 0
file include/c++/8.2.0/$TARGET/bits/gthr-default.h 0644 0 0
file include/c++/8.2.0/$TARGET/bits/cxxabi_tweaks.h 0644 0 0
file include/c++/8.2.0/$TARGET/bits/opt_random.h 0644 0 0
file include/c++/8.2.0/$TARGET/bits/extc++.h 0644 0 0
file include/c++/8.2.0/$TARGET/bits/stdc++.h 0644 0 0
file include/c++/8.2.0/$TARGET/bits/c++allocator.h 0644 0 0
file include/c++/8.2.0/$TARGET/bits/error_constants.h 0644 0 0
file include/c++/8.2.0/$TARGET/bits/messages_members.h 0644 0 0
file include/c++/8.2.0/$TARGET/ext/opt_random.h 0644 0 0
_EOF
if [ -f "$DEPLOY/lib/libmpx.a" ]; then
cat >> "$DEPLOY/libgcc-dev.files" <<_EOF
file lib/libmpx.a 0644 0 0
file lib/libmpxwrappers.a 0644 0 0
_EOF
fi
} }

View file

@ -32,9 +32,6 @@ dir include/c++/8.2.0/ext/pb_ds/detail/ov_tree_map_ 0775 0 0
dir include/c++/8.2.0/ext/pb_ds/detail/binomial_heap_ 0775 0 0 dir include/c++/8.2.0/ext/pb_ds/detail/binomial_heap_ 0775 0 0
dir include/c++/8.2.0/ext/pb_ds/detail/branch_policy 0775 0 0 dir include/c++/8.2.0/ext/pb_ds/detail/branch_policy 0775 0 0
dir include/c++/8.2.0/tr1 0775 0 0 dir include/c++/8.2.0/tr1 0775 0 0
dir include/c++/8.2.0/x86_64-linux-musl 0775 0 0
dir include/c++/8.2.0/x86_64-linux-musl/bits 0775 0 0
dir include/c++/8.2.0/x86_64-linux-musl/ext 0775 0 0
dir include/c++/8.2.0/parallel 0775 0 0 dir include/c++/8.2.0/parallel 0775 0 0
dir include/c++/8.2.0/backward 0775 0 0 dir include/c++/8.2.0/backward 0775 0 0
dir include/c++/8.2.0/decimal 0775 0 0 dir include/c++/8.2.0/decimal 0775 0 0
@ -638,29 +635,6 @@ file include/c++/8.2.0/deque 0644 0 0
file include/c++/8.2.0/array 0644 0 0 file include/c++/8.2.0/array 0644 0 0
file include/c++/8.2.0/iostream 0644 0 0 file include/c++/8.2.0/iostream 0644 0 0
file include/c++/8.2.0/unordered_map 0644 0 0 file include/c++/8.2.0/unordered_map 0644 0 0
file include/c++/8.2.0/x86_64-linux-musl/bits/stdtr1c++.h 0644 0 0
file include/c++/8.2.0/x86_64-linux-musl/bits/gthr-single.h 0644 0 0
file include/c++/8.2.0/x86_64-linux-musl/bits/ctype_inline.h 0644 0 0
file include/c++/8.2.0/x86_64-linux-musl/bits/gthr-posix.h 0644 0 0
file include/c++/8.2.0/x86_64-linux-musl/bits/ctype_base.h 0644 0 0
file include/c++/8.2.0/x86_64-linux-musl/bits/c++io.h 0644 0 0
file include/c++/8.2.0/x86_64-linux-musl/bits/gthr.h 0644 0 0
file include/c++/8.2.0/x86_64-linux-musl/bits/c++locale.h 0644 0 0
file include/c++/8.2.0/x86_64-linux-musl/bits/cpu_defines.h 0644 0 0
file include/c++/8.2.0/x86_64-linux-musl/bits/c++config.h 0644 0 0
file include/c++/8.2.0/x86_64-linux-musl/bits/atomic_word.h 0644 0 0
file include/c++/8.2.0/x86_64-linux-musl/bits/os_defines.h 0644 0 0
file include/c++/8.2.0/x86_64-linux-musl/bits/time_members.h 0644 0 0
file include/c++/8.2.0/x86_64-linux-musl/bits/basic_file.h 0644 0 0
file include/c++/8.2.0/x86_64-linux-musl/bits/gthr-default.h 0644 0 0
file include/c++/8.2.0/x86_64-linux-musl/bits/cxxabi_tweaks.h 0644 0 0
file include/c++/8.2.0/x86_64-linux-musl/bits/opt_random.h 0644 0 0
file include/c++/8.2.0/x86_64-linux-musl/bits/extc++.h 0644 0 0
file include/c++/8.2.0/x86_64-linux-musl/bits/stdc++.h 0644 0 0
file include/c++/8.2.0/x86_64-linux-musl/bits/c++allocator.h 0644 0 0
file include/c++/8.2.0/x86_64-linux-musl/bits/error_constants.h 0644 0 0
file include/c++/8.2.0/x86_64-linux-musl/bits/messages_members.h 0644 0 0
file include/c++/8.2.0/x86_64-linux-musl/ext/opt_random.h 0644 0 0
file include/c++/8.2.0/new 0644 0 0 file include/c++/8.2.0/new 0644 0 0
file include/c++/8.2.0/functional 0644 0 0 file include/c++/8.2.0/functional 0644 0 0
file include/c++/8.2.0/cstdint 0644 0 0 file include/c++/8.2.0/cstdint 0644 0 0
@ -797,8 +771,6 @@ dir lib 0755 0 0
file lib/libatomic.a 0644 0 0 file lib/libatomic.a 0644 0 0
file lib/libgomp.a 0644 0 0 file lib/libgomp.a 0644 0 0
file lib/libitm.a 0644 0 0 file lib/libitm.a 0644 0 0
file lib/libmpx.a 0644 0 0
file lib/libmpxwrappers.a 0644 0 0
file lib/libstdc++.a 0644 0 0 file lib/libstdc++.a 0644 0 0
file lib/libstdc++fs.a 0644 0 0 file lib/libstdc++fs.a 0644 0 0
file lib/libsupc++.a 0644 0 0 file lib/libsupc++.a 0644 0 0

View file

@ -3,4 +3,4 @@ dir lib 0755 0 0
dir lib/pkgconfig 0755 0 0 dir lib/pkgconfig 0755 0 0
file include/unbound.h 0664 0 0 file include/unbound.h 0664 0 0
file lib/pkgconfig/libunbound.pc 0644 0 0 file lib/pkgconfig/libunbound.pc 0644 0 0
slink lib/libunbound.so m 777 0 0 libunbound.so.8.0.3 slink lib/libunbound.so 0777 0 0 libunbound.so.8.0.3

View file

@ -1,6 +1,6 @@
dir lib 0755 0 0 dir lib 0755 0 0
file lib/libunbound.so.8.0.3 0755 0 0 file lib/libunbound.so.8.0.3 0755 0 0
slink lib/libunbound.so.8 m 777 0 0 libunbound.so.8.0.3 slink lib/libunbound.so.8 0777 0 0 libunbound.so.8.0.3
dir etc 0755 0 0 dir etc 0755 0 0
dir etc/unbound 0755 52 52 dir etc/unbound 0755 52 52
file etc/unbound/unbound.conf 0644 52 52 file etc/unbound/unbound.conf 0644 52 52

View file

@ -1,3 +1,5 @@
dir lib 0755 0 0
dir bin 0755 0 0
file lib/liblzma.so.5.2.4 0755 0 0 file lib/liblzma.so.5.2.4 0755 0 0
slink lib/liblzma.so.5 0777 0 0 liblzma.so.5.2.4 slink lib/liblzma.so.5 0777 0 0 liblzma.so.5.2.4
file bin/xzdec 0755 0 0 file bin/xzdec 0755 0 0