]> git.pld-linux.org Git - packages/arpd.git/blob - arpd.spec
This is initial version of arp daemon
[packages/arpd.git] / arpd.spec
1 Summary:        User-space arp daemon
2 Summary(pl):    Demon arpd
3 Name:           arpd
4 Version:        1.0.2
5 Release:        1
6 License:        GPL
7 Group:          Applications/Networking
8 Group(pl):      Aplikacje/Sieciowe
9 Group(de):      Applikationen/Netzwerkwesen
10 Source0:        %{name}-%{version}.tar.gz
11 Source1:        %{name}-init
12 Patch0:         %{name}-%{version}.debian-patch
13 Patch1:         %{name}-%{version}.pld-patch
14 Prereq:         /sbin/chkconfig
15 Prereq:         rc-scripts >= 0.2.0
16 Prereq:         fileutils
17 #BuildRequires: 
18 BuildRoot:      %{tmpdir}/%{name}-%{version}.orig
19
20 %description
21 User-space arp daemon.
22 It requires kernel arpd support which isn't supported by standard 
23 PLD kernel. It shouldn't be run without that!!
24
25 %description -l pl
26 Demon arpd.
27 Standardowe j±dro ma organiczon± wielko¶æ tablicy arp do 255. Ten demon
28 likwiduje t± niedogodno¶æ wystêpuj±c± w du¿ych sieciach
29
30 Uwaga: wymaga arpd support, którego nie ma w standardowym j±drze PLD!!
31 Nie powinien byæ startowany bez tego!!
32
33 %prep
34 %setup  -q -n %{name}-%{version}.orig
35 %patch0 -p1
36 %patch1 -p1
37
38 %build
39
40 %{__make}
41
42 %install -n -n %{name}-%{version}
43 rm -rf $RPM_BUILD_ROOT
44
45 install -d $RPM_BUILD_ROOT/{usr/sbin,etc/rc.d/init.d}
46 install arpd $RPM_BUILD_ROOT/usr/sbin/arpd
47 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/arpd
48
49 gzip -9nf CHANGES Copyright debian/*
50
51 %post
52 /sbin/chkconfig --add arpd
53 if [ ! -f /dev/arpd ]; then
54         mknod /dev/arpd c 36 8 
55 fi
56 echo "Warning!!"
57 echo "You need arpd kernel support which isn't provided by standard PLD-kernel!!"
58 if [ -f /var/lock/subsys/arpd ]; then
59         /etc/rc.d/init.d/arpd restart 1>&2
60 else
61         echo "Run \"/etc/rc.d/init.d/arpd start\" to start arpd daemon."
62 fi
63
64
65 %preun
66 /sbin/chkconfig --del arpd
67 if [ "$1" = "0" ]; then
68         if [ -f /var/lock/subsys/arpd ]; then
69                 /etc/rc.d/init.d/arpd stop 1>&2
70         fi
71         /sbin/chkconfig --del arpd
72 fi
73
74
75 %clean
76 rm -rf $RPM_BUILD_ROOT
77
78 %files
79 %defattr(644,root,root,755)
80 %doc *.gz
81 %doc README.html debian/*
82 %attr(754,root,root) /usr/sbin/arpd
83 %attr(754,root,root) /etc/rc.d/init.d/arpd
This page took 0.095333 seconds and 3 git commands to generate.