diff --git a/patches/openssh/jinx-working-patch.patch b/patches/openssh/jinx-working-patch.patch new file mode 100644 index 00000000..6901b9fc --- /dev/null +++ b/patches/openssh/jinx-working-patch.patch @@ -0,0 +1,15 @@ +diff --git openssh-clean/configure.ac openssh-workdir/configure.ac +index 82e8bb7..84d2753 100644 +--- openssh-clean/configure.ac ++++ openssh-workdir/configure.ac +@@ -719,6 +719,10 @@ case "$host" in + AC_DEFINE([DISABLE_UTMP], [1], [Define if you don't want to use utmp]) + AC_DEFINE([DISABLE_WTMP], [1], [Define if you don't want to use wtmp]) + ;; ++*-*-astral*) ++ AC_DEFINE([NO_UID_RESTORATION_TEST], [1], ++ [Define to disable UID restoration test]) ++ ;; + *-*-cygwin*) + LIBS="$LIBS /usr/lib/textreadmode.o" + AC_DEFINE([HAVE_CYGWIN], [1], [Define if you are on Cygwin]) diff --git a/recipes/libxcrypt b/recipes/libxcrypt new file mode 100644 index 00000000..e139395e --- /dev/null +++ b/recipes/libxcrypt @@ -0,0 +1,15 @@ +name=libxcrypt +revision=1 +from_source=libxcrypt +imagedeps="python-passlib gcc" +hostdeps="xgcc xbinutils pkgconfig libtool" +deps="mlibc libgpg-error" + +build() { + ${source_dir}/configure --prefix=${prefix} --host=x86_64-astral --enable-obsolete-api=yes --disable-xcrypt-compat-files + make -j${parallelism} +} + +package() { + make install DESTDIR=${dest_dir} +} diff --git a/recipes/openssh b/recipes/openssh new file mode 100644 index 00000000..14c454c8 --- /dev/null +++ b/recipes/openssh @@ -0,0 +1,17 @@ +name=openssh +revision=1 +from_source=openssh +imagedeps="gcc" +hostdeps="xgcc xbinutils" +deps="mlibc zlib openssl libxcrypt" + +build() { + ${source_dir}/configure --prefix=${prefix} --host=x86_64-astral --sysconfdir=/etc/ssh --with-privsep-path=/var/lib/sshd --with-default-path=${prefix}/bin --with-superuser-path=${prefix}/sbin:${prefix}/bin --with-pid-dir=/run + make -j ${parallelism} +} + +package() { + install -v -m700 -d ${dest_dir}/var/lib/sshd + install -v -d ${dest_dir}/run + make install DESTDIR=${dest_dir} +} diff --git a/recipes/xauth b/recipes/xauth new file mode 100644 index 00000000..9952ee20 --- /dev/null +++ b/recipes/xauth @@ -0,0 +1,15 @@ +name=xauth +revision=1 +from_source=xauth +imagedeps="base-devel" +hostdeps="xgcc xbinutils pkgconfig xorgproto" +deps="mlibc libx11 libxaw libxext libxmu" + +build() { + ${source_dir}/configure --prefix=${prefix} --host=x86_64-astral + make -j${parallelism} +} + +package() { + make DESTDIR=${dest_dir} install +} diff --git a/source-recipes/libxcrypt b/source-recipes/libxcrypt new file mode 100644 index 00000000..22636f4c --- /dev/null +++ b/source-recipes/libxcrypt @@ -0,0 +1,9 @@ +name=libxcrypt +version=4.4.36 +source_method=tarball +tarball_url="https://github.com/besser82/libxcrypt/releases/download/v${version}/libxcrypt-${version}.tar.xz" +tarball_sha512="468560e6f90877540d22e32c867cbcf3786983a6fdae6ef86454f4b7f2bbaae1b6589d1af75cda73078fa8f6e91b1a32f8353f26d433246eef7be3e96d4ae1c7" +hostdeps="libtool automake autoconf pkgconfig" +regenerate() { + autoreconf -fvi +} diff --git a/source-recipes/openssh b/source-recipes/openssh new file mode 100644 index 00000000..b2fa1655 --- /dev/null +++ b/source-recipes/openssh @@ -0,0 +1,10 @@ +name=openssh +version=9.7p1 +source_method=tarball +tarball_url="https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-${version}.tar.gz" +tarball_sha512="0cafc17d22851605a4a5495a1d82c2b3fbbe6643760aad226dbf2a25b5f49d4375c3172833706ea3cb6c05d5d02a40feb9a7e790eae5c4570dd344a43e94ca55" +hostdeps="autoconf automake pkgconfig libtool" +regenerate() { + autoreconf -fvi + cp -v $(find /usr/local/share/automake* -name config.sub) . +} diff --git a/source-recipes/xauth b/source-recipes/xauth new file mode 100644 index 00000000..95fd9147 --- /dev/null +++ b/source-recipes/xauth @@ -0,0 +1,9 @@ +name=xauth +version=1.1.3 +source_method=tarball +tarball_url="https://www.x.org/releases/individual/app/xauth-${version}.tar.xz" +tarball_sha512="536434f6c607673c00b9658ea591bf32419cc151d138f991ea38167220563519a6a84a5504003da15820f2a7ed50ea2449c6ce9c991d1446ee9a7305c647d694" +hostdeps="automake" +regenerate() { + cp -v $(find /usr/local/share/automake* -name config.sub) . +}