1 # Contributor: Giorgio Lando <patroclo7@gmail.com>
2 # Contributor: bender02 at gmx dot com
6 pkgdesc="Daemon that starts login sessions on virtual console terminals, on demand"
7 url="http://riemann.fmi.uni-sofia.bg/ngetty/"
10 makedepends=(dietlibc)
11 backup=(etc/conf.d/ngetty)
12 source=(http://riemann.fmi.uni-sofia.bg/ngetty/$pkgname-$pkgver.tar.gz
15 md5sums=('9248a9a41d3807669e03561102fb9af7'
16 '41b7668e51feb1dc13afb6e92e1a1016'
17 '7f5e423ebad0fd46f923418a4e1d38c8')
20 cd $srcdir/$pkgname-$pkgver
21 make CC='/opt/diet/bin/diet -Os gcc -W' all || return 1
22 sed -i 's/-g utmp/-g root/' Makefile || return 1
23 make DESTDIR=$pkgdir install install_other || return 1
24 chmod 700 $pkgdir/etc/ngetty || return 1
25 rm $pkgdir/etc/ngetty/Conf || return 1
26 install -m755 -o root -g root -D $srcdir/ngetty.rcd $pkgdir/etc/rc.d/ngetty || return 1
27 install -m644 -o root -g root -D $srcdir/ngetty.confd $pkgdir/etc/conf.d/ngetty || return 1