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

  ViewVC Help
Powered by ViewVC 1.1.30