/[packages]/updates/1/webmin/current/SPECS/webmin.spec
ViewVC logotype

Contents of /updates/1/webmin/current/SPECS/webmin.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 329976 - (show annotations) (download)
Wed Dec 12 21:21:22 2012 UTC (11 years, 4 months ago) by luigiwalser
File size: 6825 byte(s)
- 1.610 (fixes several security issues)
- rediff patches 1 and 33

1 # zero out some useless deps.
2 # (tv) we'd better had a link in minicom & package Encode::HanConvert:
3 %define _requires_exceptions HanConvert\\|runscript
4
5 # don't spend time with this either
6 %define _enable_debug_packages %{nil}
7 %define debug_package %{nil}
8
9 Summary: An SSL web-based administration interface for Unix systems
10 Name: webmin
11 Version: 1.610
12 Release: %mkrel 1
13 License: BSD
14 Group: System/Configuration/Other
15 URL: http://www.webmin.com/webmin/
16 Source0: http://heanet.dl.sourceforge.net/project/webadmin/%{name}/%{version}/%{name}-%{version}.tar.gz
17 Source2: other.modules.tar.bz2
18 # some images were missing
19 Source33: advanced.png
20 Source34: descs.png
21 Source4: webmin-postinstallscript.sh
22 Source5: webmin
23 Source6: webmin.initscript
24 Source9: http://www.openit.it/index.php/openit_en/content/download/2474/10171/file/openvpn-2.0.wbm.gz
25 Source10: webmin.pam
26 Source11: webmin-16.png
27 Source12: webmin-32.png
28 Source13: webmin-48.png
29 # uses include instead of pam_stack
30 Source14: webmin.pam-new
31 Source15: webmin.logrotate
32 # (gc) have the updates; this needs to change for each version and/or release, see
33 # http://www.webmin.com/webmin/updates.html
34 Patch1: webmin-1.610-remove-atboot-problem
35 Patch5: webmin-fix-newmods.patch
36 Patch7: webmin-0.85-never-fail-detect-os.patch
37 Patch8: webmin-0.85-enable-changed-theme-at-installation.patch
38 Patch10: webmin-1.510-fix-os-list.patch
39
40 Patch17: webmin-1.220-remove-mandrakestuff-from-init.patch
41 Patch19: webmin-0.92-add-default-configs-logviewer-fp2k.patch
42 Patch21: webmin-0.950-add-netsaint-mandrake-config.patch
43 Patch23: webmin-1.020-ssl-location.patch
44 Patch26: webmin-1.060-mysql-fix-installing-missing-packages.patch
45 Patch29: webmin-1.100-let-localauth-config.patch
46 Patch32: webmin-1.310-usermin-fix-installing-missing-package.diff
47 Patch33: webmin-1.610-postgresql-fix-installing-missing-packages.patch
48 Patch35: webmin-1.220-usermin-fix-index.patch
49 Patch37: webmin-temp-permission-fix.diff
50 Patch38: webmin-ssldir-cosmetic.diff
51 Patch39: webmin-fix-bandwith.diff
52 Patch40: webmin-fix-sarg.diff
53 Requires(pre): rpm-helper
54 Requires: perl
55 Requires: perl-CGI
56 Requires: lsof
57 Requires(pre): sed chkconfig findutils coreutils initscripts grep perl-Net_SSLeay perl-Authen-PAM
58 Provides: %{name}-%{version}
59 BuildArch: noarch
60
61 %description
62 A web-based administration interface for Unix systems. Using Webmin you can
63 configure DNS, Samba, NFS, local/remote filesystems, Apache, Sendmail/Postfix,
64 and more using your web browser.
65
66 After installation, enter the URL https://localhost:10000/ into your browser
67 and login as root with your root password. Please consider logging in and
68 modify your password for security issue.
69
70 PLEASE NOTE THAT THIS VERSION NOW USES SECURE WEB TRANSACTIONS: YOU HAVE TO
71 LOGIN TO "https://localhost:10000/" AND NOT "http://localhost:10000/".
72
73 %prep
74
75 %setup -q -a2
76
77 rm -fr %{name}-%{version}/dhcpd
78 rm -fr %{name}-%{version}/useradmin
79
80 %setup -q -D -T -c -a 9 -n %{name}-%{version}
81 %patch1 -p0
82 %patch5 -p0
83 %patch7 -p1
84 %patch8 -p1
85 %patch10 -p1
86
87 %patch19 -p0
88 %patch21 -p0
89 %patch23 -p1
90 %patch26 -p1
91 %patch29 -p1
92 %patch32 -p0
93 %patch33 -p1
94 %patch35 -p1
95 %patch37 -p1
96 %patch38 -p1
97 %patch39 -p1
98 %patch40 -p1
99 # use MD5 by default
100
101 find bind8 -type f -maxdepth 1 | xargs perl -pi -e 's|/var/run/named\.pid|/var/run/named/named.pid|'
102
103 # daouda: added mageia-linux to known OS
104 cp config-mandrake-linux config-mageia
105
106 perl -pi -e 's|redhat-linux(?! mageia)|redhat-linux mageia| if $_ =~ /^os_support.*redhat-linux/ && $_ !~ /mageia/' */module.info
107 #'
108 perl -pi -e 's|/etc/smb\.conf|/etc/samba/smb\.conf|' samba/config-mageia
109
110 (find . -name '*.cgi' ; find . -name '*.pl') | perl perlpath.pl /usr/bin/perl -
111 rm -f mount/freebsd-mounts-*
112 rm -f mount/openbsd-mounts-*
113
114 find -name ".xvpics" -o -name ".*.swp" | xargs rm -rf
115
116 %build
117
118 # nothing to do here...
119
120 %install
121 rm -rf %{buildroot}
122
123 # IMPORTANT: there is no %{_datadir} and so on, since the directories are decided by the post install script.
124 mkdir -p %{buildroot}/usr/share/webmin
125 mkdir -p %{buildroot}/%{_initrddir}
126 mkdir -p %{buildroot}/usr/bin
127
128 find -type f -print0 | xargs -0 chmod a+r
129 find -type d -print0 | xargs -0 chmod a+rx
130
131 cp -a * %{buildroot}/usr/share/webmin
132 install -m755 %{SOURCE6} %{buildroot}/%{_initrddir}/webmin
133 install -m755 %{SOURCE4} %{buildroot}/usr/share/webmin/postinstall.sh
134 install -m755 %{SOURCE5} %{buildroot}/usr/bin
135
136 mkdir -p %{buildroot}/%{_sysconfdir}/pam.d
137
138 install -m755 %{SOURCE14} %{buildroot}/%{_sysconfdir}/pam.d/webmin
139
140 rm -rf %{buildroot}/usr/share/webmin/*/{CVS,*/CVS}
141 rm -f `find %{buildroot} -type f -name .cvsignore`
142
143 # (gc) remove zero-length files (to check sometimes if they are still zero-length'ed)
144 for i in /usr/share/webmin/caldera/images/letters/254.gif /usr/share/webmin/i4lctrl-0.6.7/lang/de /usr/share/webmin/caldera/images/letters/255.gif; do
145 if [ -f $i ]; then rm -f %{buildroot}$i; fi
146 done
147
148 echo "rpm" > %{buildroot}/usr/share/webmin/install-type
149
150 # (sb) remove development file
151 rm -f %{buildroot}/usr/share/webmin/mount/macos-mounts.c
152
153 echo 'blue-theme' > %{buildroot}%{_datadir}/webmin/defaulttheme
154
155
156 # Install icons
157 install -d -m 0755 %{buildroot}%{_liconsdir}
158 install -d -m 0755 %{buildroot}%{_miconsdir}
159 install -m 0644 %{SOURCE11} %{buildroot}%{_miconsdir}/webmin.png
160 install -m 0644 %{SOURCE12} %{buildroot}%{_iconsdir}/webmin.png
161 install -m 0644 %{SOURCE11} %{buildroot}%{_liconsdir}/webmin.png
162
163 # Menu entry
164
165 # XDG menu
166 install -d %{buildroot}%{_datadir}/applications
167 cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
168 [Desktop Entry]
169 Name=%{name}
170 Comment=%{summary}
171 Exec=%{_bindir}/www-browser https://localhost:10000/
172 Icon=%{name}
173 Terminal=false
174 Type=Application
175 Categories=X-MandrivaLinux-System-Configuration-Other;Settings;
176 EOF
177
178 rm -fr %{buildroot}/usr/share/webmin/acl/Authen-SolarisRBAC-0.1
179
180 #logrotate
181 install -d %{buildroot}%{_sysconfdir}/logrotate.d
182 install -m 0644 %{SOURCE15} %{buildroot}%{_sysconfdir}/logrotate.d/webmin
183
184 %post
185 if [ "$1" != 0 ]; then
186 service webmin status >/dev/null 2>/dev/null && need_restart=1
187 service webmin stop >/dev/null 2>/dev/null || :
188 else
189 [[ -e /etc/cron.allow ]] && if [ "x`grep root /etc/cron.allow`" == "x" ] ; then
190 echo root >> /etc/cron.allow
191 fi
192 fi
193 /usr/share/webmin/postinstall.sh
194 [[ -n $need_restart ]] && service webmin start >/dev/null 2>/dev/null || :
195
196 %preun
197 %_preun_service webmin
198
199 %postun
200 if [ "$1" = 0 ]; then
201 rm -rf /etc/webmin /var/webmin /var/lib/webmin /var/run/webmin /var/log/webmin
202 fi
203
204 %clean
205 rm -rf %{buildroot}
206
207 %files
208 %defattr(-, root, root, 0755)
209 %doc README LICENCE
210 %{_initrddir}/webmin
211 %config(noreplace) %{_sysconfdir}/pam.d/webmin
212 %config(noreplace) %{_sysconfdir}/logrotate.d/webmin
213 /usr/share/webmin
214 /usr/bin/%{name}
215 %{_iconsdir}/%{name}.png
216 %{_liconsdir}/%{name}.png
217 %{_miconsdir}/%{name}.png
218 %{_datadir}/applications/*.desktop
219
220

  ViewVC Help
Powered by ViewVC 1.1.30