File: ngetty-1.0.spec

package info (click to toggle)
ngetty 1.0-1
  • links: PTS
  • area: main
  • in suites: squeeze, wheezy
  • size: 304 kB
  • ctags: 207
  • sloc: ansic: 1,503; makefile: 236; sh: 109; asm: 100
file content (55 lines) | stat: -rw-r--r-- 1,356 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
Summary: getty replacement - one single daemon for all consoles
Name: ngetty
Version: 1.0
Release: 1
Group: System Environment/Daemons
Packager: Blair Lowe <comedownhere@compeng.net>
Source: http://riemann.fmi.uni-sofia.bg/ngetty/ngetty-%{version}.tar.gz
URL: http://riemann.fmi.uni-sofia.bg/ngetty/
License: GPL
Prefix: /
BuildRoot: %{_tmppath}/%{name}-%{version}-root

%description

Ngetty is a daemon that starts login sessions on virtual console
terminals, on demand.  It is a good replacement for all those getty
processes started from init that, most of the time, are only taking up
memory.  When compiled statically with dietlibc, the ngetty binary
size is only about 2k and uses considerably less memory than a getty.

You have to edit /etc/inittab to make ngetty default.  See the
manual page or the examples on ngetty home page.

%prep

%setup -q

%build
make CC='diet -Os gcc -W' prefix=${RPM_BUILD_ROOT}

%install
make install install_other prefix=${RPM_BUILD_ROOT}

%clean
rm -rf ${RPM_BUILD_ROOT}

%post
( cd /etc/ngetty && test -x setup && ./setup ) || true

%postun

%files
%defattr(-,root,root)
/sbin
/usr
/etc
%doc README

%changelog
* Thu Apr 10 2008 Nikola Vladov <v20-ngrpm@riemann.fmi.uni-sofia.bg>
- remove /usr prefix
- add option for dietlibc

* Fri Mar 12 2008 Blair Lowe <comedownhere@compeng.net>
- Create rpm for Nikola Vladov