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

  ViewVC Help
Powered by ViewVC 1.1.28