2015-02-08 18:39:08 +00:00
|
|
|
# Template file for 'ngetty'
|
|
|
|
pkgname=ngetty
|
|
|
|
version=1.1
|
2015-02-10 08:08:46 +00:00
|
|
|
revision=4
|
2015-02-08 18:39:08 +00:00
|
|
|
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"
|
2015-02-10 08:05:36 +00:00
|
|
|
conf_files="/etc/ngetty/Conf"
|
2015-02-08 18:39:08 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2015-02-08 18:44:13 +00:00
|
|
|
sed -i '/NGETTY_HELPER/s/sbin/bin/' lib.h
|
|
|
|
|
2015-02-08 18:39:08 +00:00
|
|
|
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
|
|
|
|
}
|