diff --git a/createimg.sh b/createimg.sh index 55d1e04..eddf351 100644 --- a/createimg.sh +++ b/createimg.sh @@ -19,11 +19,11 @@ ls -al iglunix.img -h dd if=/dev/zero bs=1 count=0 seek=1G of=iglunix.img ls -al iglunix.img -h -echo "o -n +echo "n p 1 ${PARTITION_START} + w " | fdisk iglunix.img @@ -40,9 +40,14 @@ rm -rf ${ROOT} mkdir -p ${ROOT} mount ${LOOPBACK} ${ROOT} -packages=(musl mksh bmake gmake libressl cmake curl rsync flex byacc om4 zlib samurai libffi python ca-certificates zlib expat gettext-tiny git kati netbsd-curses kakoune iglunix rust toybox busybox less file pci-ids e2fsprogs linux-pam kbd) +packages=(musl mksh bmake gmake libressl cmake curl rsync flex byacc om4 zlib samurai libffi python ca-certificates zlib expat gettext-tiny git kati netbsd-curses kakoune iglunix rust toybox busybox less file pci-ids e2fsprogs util-linux linux-pam kbd) cp_packages ${ROOT} +echo "Copying misc files to ${ROOT}" +mkdir ${ROOT}/etc/ +cp ./pkgs/tiny-linux-bootloader/fstab ${ROOT}/etc/fstab +cp /etc/hostname ${ROOT}/hostname + echo "Using the host keymap" cp /etc/vconsole.conf ${ROOT}/etc/vconsole.conf diff --git a/pkgs/libpsl/build.sh b/pkgs/libpsl/build.sh new file mode 100644 index 0000000..2986f0d --- /dev/null +++ b/pkgs/libpsl/build.sh @@ -0,0 +1,30 @@ +pkgname=libpsl +pkgver=0.21.1 + +fetch() { + curl -L "https://github.com/rockdaboot/libpsl/releases/download/0.21.1/libpsl-0.21.1.tar.gz" -o $pkgname-$pkgver.tar.xz + tar -xf $pkgname-$pkgver.tar.xz + mkdir $pkgname-$pkgver/build +} + +build() { + cd $pkgname-$pkgver + cd build + meson .. \ + --buildtype=release \ + --prefix=/usr \ + --libexecdir=lib + samu +} + +package() { + cd $pkgname-$pkgver + cd build + DESTDIR=$pkgdir samu install +} + +license() { + cd $pkgname-$pkgver + cat LICENSE +# cat COPYING +} diff --git a/pkgs/linux/build.sh b/pkgs/linux/build.sh index d323fa5..415115b 100644 --- a/pkgs/linux/build.sh +++ b/pkgs/linux/build.sh @@ -4,7 +4,7 @@ pkgrel=1 ext="dev" fetch() { - curl "https://github.com/kisslinux/website/blob/master/site/dist/kernel-no-perl.patch" -o kernel-no-perl.patch + curl "https://raw.githubusercontent.com/kisslinux/website/master/site/dist/kernel-no-perl.patch" -o kernel-no-perl.patch curl "https://cdn.kernel.org/pub/linux/kernel/v5.x/$pkgname-$pkgver.tar.xz" -o $pkgname-$pkgver.tar.xz tar -xf $pkgname-$pkgver.tar.xz cd $pkgname-$pkgver diff --git a/pkgs/sqlite/build.sh b/pkgs/sqlite/build.sh new file mode 100644 index 0000000..c639853 --- /dev/null +++ b/pkgs/sqlite/build.sh @@ -0,0 +1,29 @@ +pkgname=sqlite +pkgver=3350100 + +fetch() { + curl "https://sqlite.org/2021/sqlite-autoconf-3350100.tar.gz" -o $pkgname-$pkgver.tar.xz + tar -xf $pkgname-$pkgver.tar.xz + mv $pkgname-autoconf-$pkgver $pkgname-$pkgver +} + +build() { + cd $pkgname-$pkgver + ./configure \ + --prefix=/usr \ + --build=x86_64-unknown-linux-musl \ + --host=x86_64-unknown-linux-musl + + make +} + +package() { + cd $pkgname-$pkgver + make install DESTDIR=$pkgdir +} + +license() { + cd $pkgname-$pkgver + cat LICENSE +# cat COPYING +} diff --git a/pkgs/tiny-linux-bootloader/fstab b/pkgs/tiny-linux-bootloader/fstab new file mode 100644 index 0000000..939a6db --- /dev/null +++ b/pkgs/tiny-linux-bootloader/fstab @@ -0,0 +1,5 @@ +# information about the filesystems. +# See fstab(5) for details. + +# +/dev/sda1 / ext4 rw,relatime 0 1 diff --git a/pkgs/util-linux/build.sh b/pkgs/util-linux/build.sh new file mode 100644 index 0000000..a5b9ce6 --- /dev/null +++ b/pkgs/util-linux/build.sh @@ -0,0 +1,37 @@ +pkgver=2.36.2 +pkgname=util-linux +pkgrel=1 + +fetch() { + curl "https://mirrors.edge.kernel.org/pub/linux/utils/$pkgname/v2.36/$pkgname-$pkgver.tar.xz" -o $pkgname-$pkgver.tar.xz + tar -xf $pkgname-$pkgver.tar.xz + cd $pkgname-$pkgver +} + +build() { + cd $pkgname-$pkgver + ./configure \ + --prefix=/usr \ + --build=x86_64-unknown-linux-musl \ + --host=x86_64-unknown-linux-musl \ + --disable-all-programs \ + --enable-libsmartcols \ + --enable-libuuid \ + --enable-libfdisk \ + --enable-fdisks + + + make LDFLAGS="-lterminfo" + +} + +package() { + cd $pkgname-$pkgver + make install DESTDIR=$pkgdir +} + + +license() { + cd $pkgname-$pkgver + cat COPYING +}