ports: xauth, openssh, libxcrypt

This commit is contained in:
Matheus
2024-06-04 22:43:41 -03:00
parent 99bf535a99
commit 7012f73283
7 changed files with 90 additions and 0 deletions
+15
View File
@@ -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])
+15
View File
@@ -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}
}
+17
View File
@@ -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}
}
+15
View File
@@ -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
}
+9
View File
@@ -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
}
+10
View File
@@ -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) .
}
+9
View File
@@ -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) .
}