]> git.pld-linux.org Git - packages/dante.git/blob - dante.spec
74cb8e1fa4674dc414a10392d69a8e56fbb419fa
[packages/dante.git] / dante.spec
1 Summary:        A free Socks v4/v5 client implementation
2 Name:           dante
3 Version:        1.1.9
4 Release:        1
5 License:        BSD-type
6 Group:          Networking/Daemons
7 Group(de):      Netzwerkwesen/Server
8 Group(pl):      Sieciowe/Serwery
9 Source0:        ftp://ftp.inet.no/pub/socks/%{name}-%{version}.tar.gz
10 Source1:        sockd.init
11 URL:            http://www.inet.no/dante/
12 BuildRequires:  libwrap-devel
13 Buildroot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
15 %description
16 Dante is a free implementation of the proxy protocols socks version 4,
17 socks version 5 (rfc1928) and msproxy. It can be used as a firewall
18 between networks. It is being developed by Inferno Nettverk A/S, a
19 Norwegian consulting company. Commercial support is available.
20
21 This package contains the dynamic libraries required to "socksify"
22 existing applications to become socks clients.
23
24 %package server
25 Summary:        A free Socks v4/v5 server implementation
26 Group:          Networking/Daemons
27 Group(de):      Netzwerkwesen/Server
28 Group(pl):      Sieciowe/Serwery
29 Requires:       %{name} = %{version}
30
31 %description server
32 This package contains the socks proxy daemon and its documentation.
33 The sockd is the server part of the Dante socks proxy package and
34 allows socks clients to connect through it to the network.
35
36 %package devel
37 Summary:        development libraries for socks
38 Group:          Networking/Daemons
39 Group(de):      Netzwerkwesen/Server
40 Group(pl):      Sieciowe/Serwery
41 Requires:       %{name} = %{version}
42
43 %description devel
44 Additional libraries required to compile programs that use socks.
45
46 %package static
47 Summary:        static libraries for socks
48 Group:          Networking/Daemons
49 Group(de):      Netzwerkwesen/Server
50 Group(pl):      Sieciowe/Serwery
51 Requires:       %{name}-devel = %{version}
52
53 %description static
54 Static libraries for socks.
55
56 %prep
57 %setup -q
58
59 %build
60 %configure
61 %{__make}
62
63 %install
64 rm -rf $RPM_BUILD_ROOT
65 %{__install} -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/rc.d/init.d}
66
67 %{__make} install DESTDIR=$RPM_BUILD_ROOT
68
69 %{__install} example/sock{s,d}.conf ${RPM_BUILD_ROOT}%{_sysconfdir}
70
71 %{__install} %{SOURCE1} ${RPM_BUILD_ROOT}/etc/rc.d/init.d/sockd
72
73 gzip -9nf BUGS CREDITS LICENSE NEWS README SUPPORT TODO
74
75 %clean
76 rm -rf $RPM_BUILD_ROOT
77
78 %post   -p /sbin/ldconfig
79 %postun -p /sbin/ldconfig
80
81 %post server
82 /sbin/chkconfig --add sockd
83
84 %postun server
85 if [ $1 = 0 ]; then
86         /sbin/chkconfig --del sockd
87 fi
88
89 %files
90 %defattr(644,root,root,755)
91 %doc *.gz
92 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/socks.conf
93 %attr(755,root,root) %{_libdir}/lib*.so.*.*
94 %attr(755,root,root) %{_bindir}/socksify
95 %{_mandir}/man5/socks.conf.5*
96
97 %files server
98 %defattr(644,root,root,755)
99 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/sockd.conf
100 %attr(754,root,root) /etc/rc.d/init.d/sockd
101 %attr(755,root,root) %{_sbindir}/sockd
102 %{_mandir}/man8/sockd.8*
103 %{_mandir}/man5/sockd.conf.5*
104
105 %files devel
106 %defattr(644,root,root,755)
107 %attr(755,root,root) %{_libdir}/lib*.so
108 %attr(755,root,root) %{_libdir}/lib*.la
109 %{_includedir}/*
110
111 %files static
112 %defattr(644,root,root,755)
113 %{_libdir}/lib*.a
This page took 0.049092 seconds and 3 git commands to generate.