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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 330938 - (show annotations) (download)
Fri Dec 14 15:27:43 2012 UTC (11 years, 4 months ago) by luigiwalser
File size: 7250 byte(s)
remove pptp-server module
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 Source16: webmin-grub-config
33 Source17: webmin-sshd-config
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.610-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.610-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 Patch41: webmin-1.610-urpmi.patch
56 Patch42: webmin-1.610-service-names.patch
57 Patch43: webmin-1.610-syslog.patch
58 Requires(pre): rpm-helper
59 Requires: perl
60 Requires: perl-CGI
61 Requires: lsof
62 Requires(pre): sed chkconfig findutils coreutils initscripts grep perl-Net_SSLeay perl-Authen-PAM
63 Provides: %{name}-%{version}
64 BuildArch: noarch
65
66 %description
67 A web-based administration interface for Unix systems. Using Webmin you can
68 configure DNS, Samba, NFS, local/remote filesystems, Apache, Sendmail/Postfix,
69 and more using your web browser.
70
71 After installation, enter the URL https://localhost:10000/ into your browser
72 and login as root with your root password. Please consider logging in and
73 modify your password for security issue.
74
75 PLEASE NOTE THAT THIS VERSION NOW USES SECURE WEB TRANSACTIONS: YOU HAVE TO
76 LOGIN TO "https://localhost:10000/" AND NOT "http://localhost:10000/".
77
78 %prep
79
80 %setup -q -a2
81
82 for module in cfengine inetd jabber netsaint pptp-server sentry webalizer wuftpd; do
83 rm -fr %{name}-%{version}/$module
84 done
85
86 %setup -q -D -T -c -a 9 -n %{name}-%{version}
87 %patch1 -p0
88 %patch5 -p0
89 %patch7 -p1
90 %patch8 -p1
91 %patch10 -p1
92
93 %patch19 -p0
94 %patch21 -p0
95 %patch23 -p1
96 %patch26 -p1
97 %patch29 -p1
98 %patch32 -p0
99 %patch33 -p1
100 %patch35 -p1
101 %patch37 -p1
102 %patch38 -p1
103 %patch39 -p1
104 %patch40 -p1
105 %patch41 -p0
106 %patch42 -p0
107 %patch43 -p0
108
109 find bind8 -type f -maxdepth 1 | xargs perl -pi -e 's|/var/run/named\.pid|/var/run/named/named.pid|'
110
111 # daouda: added mageia-linux to known OS
112 cp config-mandrake-linux config-mageia
113
114 perl -pi -e 's|mandrake-linux|mageia mandrake-linux| if $_ =~ /^os_support.*mandrake-linux/ && $_ !~ /mageia/' */module.info
115 perl -pi -e 's|mageia|mageia{-r "/etc/named.boot"}| if $_ =~ /^os_support.*mageia/' dnsadmin/module.info
116 #'
117 perl -pi -e 's|/etc/smb\.conf|/etc/samba/smb\.conf|' samba/config-mandrake-linux
118
119 (find . -name '*.cgi' ; find . -name '*.pl') | perl perlpath.pl /usr/bin/perl -
120 rm -f mount/freebsd-mounts-*
121 rm -f mount/openbsd-mounts-*
122
123 find -name ".xvpics" -o -name ".*.swp" | xargs rm -rf
124
125 cp %{SOURCE16} grub/config-mandrake-linux
126 cp %{SOURCE17} sshd/config-mandrake-linux
127
128 %build
129
130 # nothing to do here...
131
132 %install
133 rm -rf %{buildroot}
134
135 # IMPORTANT: there is no %{_datadir} and so on, since the directories are decided by the post install script.
136 mkdir -p %{buildroot}/usr/share/webmin
137 mkdir -p %{buildroot}/%{_initrddir}
138 mkdir -p %{buildroot}/usr/bin
139
140 find -type f -print0 | xargs -0 chmod a+r
141 find -type d -print0 | xargs -0 chmod a+rx
142
143 cp -a * %{buildroot}/usr/share/webmin
144 install -m755 %{SOURCE6} %{buildroot}/%{_initrddir}/webmin
145 install -m755 %{SOURCE4} %{buildroot}/usr/share/webmin/postinstall.sh
146 install -m755 %{SOURCE5} %{buildroot}/usr/bin
147
148 mkdir -p %{buildroot}/%{_sysconfdir}/pam.d
149
150 install -m755 %{SOURCE14} %{buildroot}/%{_sysconfdir}/pam.d/webmin
151
152 rm -rf %{buildroot}/usr/share/webmin/*/{CVS,*/CVS}
153 rm -f `find %{buildroot} -type f -name .cvsignore`
154
155 # (gc) remove zero-length files (to check sometimes if they are still zero-length'ed)
156 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
157 if [ -f $i ]; then rm -f %{buildroot}$i; fi
158 done
159
160 echo "rpm" > %{buildroot}/usr/share/webmin/install-type
161
162 # (sb) remove development file
163 rm -f %{buildroot}/usr/share/webmin/mount/macos-mounts.c
164
165 echo 'blue-theme' > %{buildroot}%{_datadir}/webmin/defaulttheme
166
167
168 # Install icons
169 install -d -m 0755 %{buildroot}%{_liconsdir}
170 install -d -m 0755 %{buildroot}%{_miconsdir}
171 install -m 0644 %{SOURCE11} %{buildroot}%{_miconsdir}/webmin.png
172 install -m 0644 %{SOURCE12} %{buildroot}%{_iconsdir}/webmin.png
173 install -m 0644 %{SOURCE11} %{buildroot}%{_liconsdir}/webmin.png
174
175 # Menu entry
176
177 # XDG menu
178 install -d %{buildroot}%{_datadir}/applications
179 cat > %{buildroot}%{_datadir}/applications/mageia-%{name}.desktop << EOF
180 [Desktop Entry]
181 Name=%{name}
182 Comment=%{summary}
183 Exec=%{_bindir}/www-browser https://localhost:10000/
184 Icon=%{name}
185 Terminal=false
186 Type=Application
187 Categories=X-Mageia-System-Configuration-Other;Settings;
188 EOF
189
190 rm -fr %{buildroot}/usr/share/webmin/acl/Authen-SolarisRBAC-0.1
191
192 #logrotate
193 install -d %{buildroot}%{_sysconfdir}/logrotate.d
194 install -m 0644 %{SOURCE15} %{buildroot}%{_sysconfdir}/logrotate.d/webmin
195
196 %post
197 if [ "$1" != 0 ]; then
198 service webmin status >/dev/null 2>/dev/null && need_restart=1
199 service webmin stop >/dev/null 2>/dev/null || :
200 else
201 [[ -e /etc/cron.allow ]] && if [ "x`grep root /etc/cron.allow`" == "x" ] ; then
202 echo root >> /etc/cron.allow
203 fi
204 fi
205 /usr/share/webmin/postinstall.sh
206 [[ -n $need_restart ]] && service webmin start >/dev/null 2>/dev/null || :
207
208 %preun
209 %_preun_service webmin
210
211 %postun
212 if [ "$1" = 0 ]; then
213 rm -rf /etc/webmin /var/webmin /var/lib/webmin /var/run/webmin /var/log/webmin
214 fi
215
216 %clean
217 rm -rf %{buildroot}
218
219 %files
220 %defattr(-, root, root, 0755)
221 %doc README LICENCE
222 %{_initrddir}/webmin
223 %config(noreplace) %{_sysconfdir}/pam.d/webmin
224 %config(noreplace) %{_sysconfdir}/logrotate.d/webmin
225 /usr/share/webmin
226 /usr/bin/%{name}
227 %{_iconsdir}/%{name}.png
228 %{_liconsdir}/%{name}.png
229 %{_miconsdir}/%{name}.png
230 %{_datadir}/applications/*.desktop

  ViewVC Help
Powered by ViewVC 1.1.30