ports: agetty

This commit is contained in:
Matheus
2026-04-11 22:07:54 -03:00
parent 07a3124d2b
commit 1e7318e423
2 changed files with 39 additions and 0 deletions
@@ -31,3 +31,19 @@ index d1c1840..a860cc9 100644
])
AC_OUTPUT
diff --git util-linux-clean/term-utils/agetty.c util-linux-workdir/term-utils/agetty.c
index 0dfe52c..60fc168 100644
--- util-linux-clean/term-utils/agetty.c
+++ util-linux-workdir/term-utils/agetty.c
@@ -92,9 +92,9 @@
#endif
/* If USE_SYSLOG is undefined all diagnostics go to /dev/console. */
-#ifdef USE_SYSLOG
+//##ifdef USE_SYSLOG
# include <syslog.h>
-#endif
+//#endif
/*
* Some heuristics to find out what environment we are in: if it is not
+23
View File
@@ -0,0 +1,23 @@
name=agetty
revision=1
from_source=util-linux
imagedeps="build-essential python3 python3-dev"
hostrundeps="automake autoconf xgcc xbinutils libstdc++-v3 pkgconfig libtool"
deps="base"
configure() {
cp -rp ${source_dir}/* .
rm -rf po
build_setsid=yes ./configure --host=x86_64-astral --prefix=${prefix} --disable-all-programs --enable-agetty
}
build() {
x86_64-astral-gcc -o setsid ${source_dir}/sys-utils/setsid.c -I${source_dir}/include -DHAVE_NANOSLEEP -DHAVE_REALLOCARRAY -DHAVE_FSYNC -DPACKAGE_STRING='"foo"'
make -j ${parallelism}
}
package() {
mkdir -p ${dest_dir}/usr/bin
cp setsid ${dest_dir}/usr/bin
make DESTDIR="${dest_dir}" install
}