python-texttable: update to 1.3.1
[void-packages.git] / srcpkgs / ngetty / template
blob6be4cf4ba74393a68848beb793634e4dabb3f7a1
1 # Template file for 'ngetty'
2 pkgname=ngetty
3 version=1.1
4 revision=5
5 short_desc="Daemon for virtual console terminals"
6 maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
7 license="GPL-2"
8 homepage="http://riemann.fmi.uni-sofia.bg/ngetty/"
9 distfiles="${DEBIAN_SITE}/main/n/${pkgname}/${pkgname}_${version}.orig.tar.gz"
10 checksum=15a0649b552aa47eeb80c7cc57ec6f562a89e271b14386838fbdb90244c546b0
12 build_options="static"
13 conf_files="/etc/ngetty/Conf"
15 do_build() {
16         make CC="${BUILD_CC}" CFLAGS="${BUILD_CFLAGS}" LDFLAGS="${BUILD_LDFLAGS}" opts_defs.h
17         cp opts_defs.h opts_defs.h.save
18         cp opts__defs.h opts__defs.h.save
19         make clean
20         cp opts_defs.h.save opts_defs.h
21         cp opts__defs.h.save opts__defs.h
22         sed -i 's/opts_defs.h: opts_make/opts_defs.h:/' Makefile
24         sed -i '/NGETTY_HELPER/s/sbin/bin/' lib.h
26         cp ${FILESDIR}/Conf .
28         if [ "$build_option_static" ]; then
29                 LDFLAGS+=" -static"
30         fi
32         make CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" STR=:
35 do_install() {
36         make install sbin_prefix=${DESTDIR}/usr/bin DESTDIR=${DESTDIR}
37         vsconf sample.Conf
38         rm ${DESTDIR}/etc/ngetty/sample.Conf
39         vsv ngetty