]> git.pld-linux.org Git - packages/eggdrop.git/blob - eggdrop.spec
- added autobotchk patch
[packages/eggdrop.git] / eggdrop.spec
1 Summary:        Eggdrop is an IRC bot, written in C
2 Summary(pl):    Eggdrop jest botem IRC napisanym w C
3 Summary(pt_BR): Bot de IRC escrito em C
4 Name:           eggdrop
5 Version:        1.6.13
6 Release:        4
7 License:        GPL
8 Group:          Applications/Communications
9 Source0:        ftp://ftp.eggheads.org/pub/eggdrop/source/1.6/%{name}%{version}.tar.gz
10 # PLD docs - information about changes.
11 Source1:        http://pld.mysza.eu.org/sources/%{name}-README.PLD.en
12 Source2:        http://pld.mysza.eu.org/sources/%{name}-README.PLD.pl
13 # In order to unify filenames, following language packs and third-party modules were
14 # repackaged. Some files were renamed, but none modified. Original archives can be
15 # found by looking at http://www.egghelp.org/
16 Source10:       %{name}-language-danish.tar.gz
17 Source11:       %{name}-language-finnish.tar.gz
18 Source12:       %{name}-language-italian.tar.gz
19 Source13:       %{name}-language-norwegian.tar.gz
20 Source14:       %{name}-language-portuguese.tar.gz
21 Source15:       %{name}-language-portuguese_br.tar.gz
22 Source16:       %{name}-language-romanian.tar.gz
23 # Additional modules taken from various places
24 Source20:       %{name}-module-away-1.0.tar.gz
25 Source21:       %{name}-module-botnetop-1.0.1.tar.gz
26 Source22:       %{name}-module-fakebotnet-1.3.tar.gz
27 Source23:       %{name}-module-gseen-1.1.0.tar.gz
28 Source24:       %{name}-module-irctree-1.1.tar.gz
29 Source25:       %{name}-module-megahal-2.5.tar.gz
30 Source26:       %{name}-module-stats-1.3.3dev1.tar.gz
31 Source27:       %{name}-module-idea-1.0.0.tar.gz
32 Source28:       %{name}-module-twofish-1.0.tar.gz
33 Source29:       %{name}-module-rijndael-1.0.tar.gz
34 Patch0:         %{name}-FHS.patch
35 # Unofficial IPv6 patch
36 Patch1:         http://www.egghelp.org/files/patches/%{name}%{version}+ipv6.patch.gz
37 # Adds IPv6 variables to config file
38 Patch2:         %{name}%{version}+ipv6_config.patch
39 # Adds additional docs
40 Patch3:         %{name}-doc_makefile.patch
41 # Multilevel sharing patch - now it is possible to create *secure* multilevel
42 # botnets, each bot will only accept changes to userlist from bot that acts as
43 # hub to him, and rejects changes from leaves
44 Patch4:         %{name}%{version}-multilevel_sharing.patch.gz
45 # Unlinkedby patch - when unlinking bot from botnet, adds nickname of a person
46 # that issues .unlink command to a broadcasted message
47 Patch5:         %{name}%{version}-unlinkedby.patch
48 # Topicprot - protects channel topic from being changed
49 # This pathc was a bit modified to apply to eggdrop1.6.13
50 Patch6:         %{name}%{version}-topicprot.patch
51 # Adds information about additional encryption modules to config file
52 Patch7:         %{name}-config_encryption.patch
53 Patch8:         %{name}-FHS2.patch
54 URL:            http://www.eggheads.org/
55 BuildRequires:  tcl-devel
56 Requires:       tcl
57 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
58
59 %description
60 Eggdrop is an IRC bot, written in C. If you don't know what IRC is,
61 this is probably not whatever you're looking for! Eggdrop, being a
62 bot, sits on a channel and takes protective measures: to keep the
63 channel from being taken over (in the few ways that anything CAN), to
64 recognize banished users or sites and reject them, to recognize
65 privileged users and let them gain ops, etc. Eggdrop also contains
66 many modules and scripts, for example for sending files. Here is the
67 list of new features as opposed to vanilla eggdrop:
68 - Built-in IPv6 support
69 - Additional modules, including:
70   - away
71   - botnetop
72   - fakebotnet
73   - gseen
74   - irctree
75   - megahal
76   - stats
77   - three new encryption modules: idea, twofish, rijndael
78 - Additional language packs:
79   - dannish
80   - finnish
81   - italian
82   - norwegian
83   - portuguese
84   - brazillian portuguese
85   - romanian
86 - Various small patches were applied 
87 For more information, see README.PLD.en file located under 
88 %{_docdir}/%{name}-%{version}
89
90 %description -l pl
91 Eggdrop jest IRCowym botem napisanym w C. Eggdrop, bêd±c botem jest na
92 kanale i zajmuje siê jego ochron±: zabezpieczeniem przed przejêciem,
93 nadawaniem odpowiednich przywilejów zarejestrowanym u¿ytkownikom,
94 pilnowanie tzw. banów itp. Eggdrop poza tymi funkcjami posiada tak¿e
95 wiele dodatków, jak przesy³anie plików czy inne skrypty dla rozrywki.
96 Oto lista nowych mo¿liwo¶ci w odró¿nieniu od 'czystego' eggdropa:
97 - Wbudowane wsparcie dla IPv6
98 - Dodatkowe modu³y, takie jak:
99   - away
100   - botnetop
101   - fakebotnet
102   - gseen
103   - irctree
104   - megahal
105   - stats
106   - trzy nowe modu³y szyfruj±ce: idea, twofish, rijndael
107 - Dodatkowe
108   - duñski
109   - fiñski
110   - w³oski
111   - norweski
112   - portugalski
113   - brazylijska odmiana portugalskiego
114   - rumuñski
115 - Zaaplikowano rózne mniejsze lub wiêksze ³aty 
116 Wiêcej informacji znajdziesz w pliku README.PLD.pl znajduj±cym siê 
117 w katalogu %{_docdir}/%{name}-%{version}
118
119 %description -l pt_BR
120 Eggdrop é um bot de IRC, escrito em linguagem C.
121
122 Eggdrop, sendo um bot, permanece em um canal e toma medidas de
123 proteç?o: evitando que o canal seja tomado (usando as poucas maneiras
124 possíveis), reconhecendo usuários ou sites expulsos e os rejeitando,
125 reconhecendo usuários privilegiados e permitindo que estes recebam OPS
126 etc.
127
128 %prep
129 %setup -q -n %{name}%{version} -a10 -a11 -a12 -a13 -a14 -a15 -a16 -a20 -a21 -a22 -a23 -a24 -a25 -a26 -a27 -a28 -a29
130 %patch0 -p1
131 #%patch1 -p1
132 #%patch2 -p0
133 #%patch3 -p0
134 #%patch4 -p1
135 #%patch5 -p1
136 #%patch6 -p1
137 #%patch7 -p0
138 %patch8 -p1
139
140 %build
141 CFLAGS="%{rpmcflags}"; export CFLAGS
142 # There is no sense in using configure macro, as the eggdrop makes no use
143 # of provided settings, or at least of those given with --*dir options
144 ./configure
145 %{__make} config
146 %{__make}
147
148 %install
149 rm -rf $RPM_BUILD_ROOT
150 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{name}/modules,%{_datadir}/%{name},%{_mandir}/man1,%{_datadir}/%{name}/{help,scripts,language},%{_datadir}/doc/%{name}-%{version}}
151
152 %{__make} DESTDIR="$RPM_BUILD_ROOT" install
153
154 mv $RPM_BUILD_ROOT/%{name}-%{version} $RPM_BUILD_ROOT%{_bindir}/%{name}
155
156 cp %{SOURCE1} $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/README.PLD.en
157 cp %{SOURCE2} $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/README.PLD.pl
158
159 find $RPM_BUILD_ROOT/doc -type f | egrep -v "(\.html$|\.htm$)" | xargs gzip -9nf
160 gzip -9nf $RPM_BUILD_ROOT/README $RPM_BUILD_ROOT/%{name}.conf
161
162 cp $RPM_BUILD_ROOT/doc/man1/%{name}.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/%{name}.1.gz
163 rm -r $RPM_BUILD_ROOT/doc/man1
164
165 cp -a $RPM_BUILD_ROOT/*.gz \
166         $RPM_BUILD_ROOT/doc/* \
167         $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/
168
169 cp -a $RPM_BUILD_ROOT/doc/modules $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
170
171 cp -a $RPM_BUILD_ROOT/text/* \
172         $RPM_BUILD_ROOT/help/ \
173         $RPM_BUILD_ROOT/scripts/ \
174         $RPM_BUILD_ROOT/language/ \
175         $RPM_BUILD_ROOT%{_datadir}/%{name}/
176
177 cp -a $RPM_BUILD_ROOT/modules/* \
178         $RPM_BUILD_ROOT%{_libdir}/%{name}/modules/
179
180 # These are only to make /usr/lib/rpm/check-files happy(ier)
181 # Is this somehow ugly?
182 for i in modules modules-%{version} text help scripts language doc logs eggdrop.conf.gz README.gz; do
183         rm -rf $RPM_BUILD_ROOT/$i
184 done
185
186 %clean
187 rm -rf $RPM_BUILD_ROOT
188
189 %files
190 %defattr(644,root,root,755)
191 %doc %{_datadir}/doc/%{name}-%{version}
192 %attr(755,root,root) %{_bindir}/%{name}
193 %dir %{_libdir}/%{name}
194 %dir %{_libdir}/%{name}/modules
195 %attr(755,root,root) %{_libdir}/%{name}/modules/*.so
196 %{_datadir}/%{name}
197 %{_mandir}/man1/%{name}.1*
This page took 0.047209 seconds and 4 git commands to generate.