mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-02 07:28:21 +00:00
ports: agetty
This commit is contained in:
@@ -31,3 +31,19 @@ index d1c1840..a860cc9 100644
|
|||||||
])
|
])
|
||||||
|
|
||||||
AC_OUTPUT
|
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
|
||||||
|
|||||||
@@ -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
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user