New package: ngetty-1.1
This commit is contained in:
parent
c928068062
commit
2374cee92e
3 changed files with 45 additions and 0 deletions
5
srcpkgs/ngetty/files/Conf
Normal file
5
srcpkgs/ngetty/files/Conf
Normal file
|
@ -0,0 +1,5 @@
|
|||
# options format:
|
||||
# [ttyX]=option[=value]
|
||||
#=debug
|
||||
=environ=,TERM=linux
|
||||
tty1=noclear-first=/run/.ngetty-noclear-tty1
|
3
srcpkgs/ngetty/files/ngetty/run
Executable file
3
srcpkgs/ngetty/files/ngetty/run
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
export TERM=linux
|
||||
exec ngetty tty1 tty2 tty3 tty4 tty5 tty6
|
37
srcpkgs/ngetty/template
Normal file
37
srcpkgs/ngetty/template
Normal file
|
@ -0,0 +1,37 @@
|
|||
# Template file for 'ngetty'
|
||||
pkgname=ngetty
|
||||
version=1.1
|
||||
revision=1
|
||||
short_desc="Daemon for virtual console terminals"
|
||||
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
|
||||
license="GPL-2"
|
||||
homepage="http://riemann.fmi.uni-sofia.bg/ngetty/"
|
||||
distfiles="http://riemann.fmi.uni-sofia.bg/ngetty/${pkgname}-${version}.tar.gz"
|
||||
checksum=15a0649b552aa47eeb80c7cc57ec6f562a89e271b14386838fbdb90244c546b0
|
||||
|
||||
build_options="static"
|
||||
|
||||
do_build() {
|
||||
make CC="${BUILD_CC}" CFLAGS="${BUILD_CFLAGS}" LDFLAGS="${BUILD_LDFLAGS}" opts_defs.h
|
||||
cp opts_defs.h opts_defs.h.save
|
||||
cp opts__defs.h opts__defs.h.save
|
||||
make clean
|
||||
cp opts_defs.h.save opts_defs.h
|
||||
cp opts__defs.h.save opts__defs.h
|
||||
sed -i 's/opts_defs.h: opts_make/opts_defs.h:/' Makefile
|
||||
|
||||
cp ${FILESDIR}/Conf .
|
||||
|
||||
if [ "$build_option_static" ]; then
|
||||
LDFLAGS+=" -static"
|
||||
fi
|
||||
|
||||
make CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" STR=:
|
||||
}
|
||||
|
||||
do_install() {
|
||||
make install sbin_prefix=${DESTDIR}/usr/bin DESTDIR=${DESTDIR}
|
||||
vsconf sample.Conf
|
||||
rm ${DESTDIR}/etc/ngetty/sample.Conf
|
||||
vsv ngetty
|
||||
}
|
Loading…
Reference in a new issue