]> git.pld-linux.org Git - packages/dhcp-forwarder.git/blame - dhcp-forwarder.spec
- tabs in preamble
[packages/dhcp-forwarder.git] / dhcp-forwarder.spec
CommitLineData
8aa4ca5a 1# TODO: nobody cannot own any files
6fb9d389 2Summary: DHCP relay agent
11d20443 3Summary(pl.UTF-8): Serwer pośredniczący dla żądań DHCP
6fb9d389 4Name: dhcp-forwarder
71854a49 5Version: 0.7
8aa4ca5a 6Release: 0.1
6fb9d389
SZ
7License: GPL
8Group: Networking/Daemons
9Source0: http://www.tu-chemnitz.de/~ensc/dhcp-fwd/files/%{name}-%{version}.tar.bz2
71854a49 10# Source0-md5: e7f876e615ebc3f96418f6477b4451e2
6fb9d389 11Source1: %{name}.sysconfig
6fb9d389 12Source2: %{name}.init
6fb9d389 13Source3: %{name}.config
6fb9d389 14URL: http://www.tu-chemnitz.de/~ensc/dhcp-fwd/
28ce1434 15Requires: rc-scripts
7f9a6554 16Requires(post,preun): /sbin/chkconfig
6fb9d389
SZ
17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19%description
8aa4ca5a
JB
20dhcp-forwarder is a DHCP relay agent which forwards DHCP messages
21between subnets with different sublayer broadcast domains. It runs as
22non-root in a chroot-jail.
6fb9d389 23
0e4b5789
JR
24%description -l pl.UTF-8
25dhcp-forwarder jest serwerem pośredniczącym DHCP który przekazuje
26komunikaty DHCP pomiędzy podsieciami w różnych domenach
27rozgłoszeniowych. Działa ze zwykłego użytkownika (nie-roota) wewnątrz
28chrootowanego środowiska.
6fb9d389
SZ
29
30%prep
31%setup -q
32
33%build
6fb9d389
SZ
34%configure
35%{__make}
36
37%install
38rm -rf $RPM_BUILD_ROOT
8aa4ca5a 39install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,sysconfig},/var/lib/dhcp-fwd}
6fb9d389
SZ
40
41%{__make} install \
42 DESTDIR=$RPM_BUILD_ROOT
43
44install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/dhcp-forwarder
45install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/dhcp-forwarder
28ce1434 46install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/dhcp-fwd.conf
6fb9d389
SZ
47
48%clean
49rm -rf $RPM_BUILD_ROOT
50
51%post
52/sbin/chkconfig --add dhcp-forwarder
53if [ -f /var/lock/subsys/dhcp-forwarder ]; then
54 /etc/rc.d/init.d/dhcp-forwarder restart 1>&2
55else
56 echo "Type \"/etc/rc.d/init.d/dhcp-forwarder start\" to start DHCP forwarder." 1>&2
57fi
58
59%preun
60if [ "$1" = "0" ]; then
61 if [ -f /var/lock/subsys/dhcp-forwarder ]; then
62 /etc/rc.d/init.d/dhcp-forwarder stop 1>&2
63 fi
64 /sbin/chkconfig --del dhcp-forwarder
65fi
66
67%files
68%defattr(644,root,root,755)
69%doc README NEWS AUTHORS
70%attr(755,root,root) %{_sbindir}/*
71%{_mandir}/man1/*
28ce1434 72%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dhcp-fwd.conf
211fd1d1 73%attr(754,root,root) /etc/rc.d/init.d/dhcp-forwarder
28ce1434 74%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/dhcp-forwarder
8aa4ca5a 75# XXX: fix ownership
28ce1434 76%dir %attr(750,nobody,root) /var/lib/dhcp-fwd # FIXME nobody user/group can't own files! -adapter.awk
This page took 0.139595 seconds and 4 git commands to generate.