Sophie

Sophie

distrib > Mandriva > 2010.1 > i586 > media > main-testing-src > by-pkgid > 9fc8750aeddb24919ce826adb850914d > files > 51

webmin-1.590-1.1mdv2010.1.src.rpm

# zero out some useless deps.
# (tv) we'd better had a link in minicom & package Encode::HanConvert:
%define _requires_exceptions HanConvert\\|runscript

# don't spend time with this either
%define _enable_debug_packages	%{nil}
%define debug_package		%{nil}

%define i18n_date 20080131
%define with_i18n_tarball 1
%define with_i18n_patch 1

%if %mandriva_branch == Cooker
# Cooker
%define release %mkrel 1
%else
# Old distros
%define subrel 1
%define release %mkrel 1
%endif

Summary:	An SSL web-based administration interface for Unix systems
Name:		webmin
Version:	1.590
Release:	%{release}
License:	BSD
Group:		System/Configuration/Other
URL:		http://www.webmin.com/webmin/
Source0:	http://heanet.dl.sourceforge.net/project/webadmin/%{name}/%{version}/%{name}-%{version}.tar.gz
Source2:	other.modules.tar.bz2
Source30:	webmin-mandriva-theme.tar.bz2
# some images were missing
Source33:	advanced.png
Source34:	descs.png
Source4:	webmin-postinstallscript.sh
Source5:	webmin
Source6:	webmin.initscript
Source9:	http://www.openit.it/index.php/openit_en/content/download/2474/10171/file/openvpn-2.0.wbm.gz
Source10:	webmin.pam
Source11:	webmin-16.png
Source12:	webmin-32.png
Source13:	webmin-48.png
# uses include instead of pam_stack
Source14:	webmin.pam-new
Source15:	webmin.logrotate
# (gc) have the updates; this needs to change for each version and/or release, see
#      http://www.webmin.com/webmin/updates.html
# Other Themes
Source51:	http://www.gehrigal.net/download/webmin_theme/webmin-theme_gehrigal_0.41.wbt
# the configurator for this theme
Source52:	http://www.gehrigal.net/download/webmin_themeconfig/webmin_gehrigal-themeconfigurator_0.21a.wbm
#  Webmin Module Usermonitor
Source53:	http://www.gehrigal.net/download/webmin_usermonitor/webmin-module_usermonitor_0.12a.wbm
# Other modules
Source54:	http://gaia.anet.fr/webmin/openldap/openldap-0_6.wbm
Source541:	http://gaia.anet.fr/webmin/openldap/openldap2-0_1.wbm
Source55:	http://www.bvan.f2s.com/ldap_groups_LDAPapi.wbm
Source56:	http://www.bvan.f2s.com/ldap_browser_LDAPapi.wbm
Source57:	http://prdownloads.sourceforge.net/netatalk/netatalk.wbm
Source99:	webmin-scripts-i18n.tar.bz2
Source100:	webmin-i18n-%{i18n_date}.tar.bz2
Source101:	awstats-1.9.wbm
Source102:	dgwebmin-0.7.1.wbm
Patch0:		webmin-fix-configs.diff
Patch1:		webmin-1.100-remove-atboot-problem
Patch5:		webmin-fix-newmods.patch
Patch7:		webmin-0.85-never-fail-detect-os.patch
Patch8:		webmin-0.85-enable-changed-theme-at-installation.patch
Patch9:		webmin-1.550-fix-status-in-init.patch
Patch10:	webmin-1.510-fix-os-list.patch

Patch13:	webmin-openldap.patch
Patch15:	webmin-fix-netatalk-paths.patch
Patch17:	webmin-1.220-remove-mandrakestuff-from-init.patch
Patch19:	webmin-0.92-add-default-configs-logviewer-fp2k.patch
Patch21:	webmin-0.950-add-netsaint-mandrake-config.patch
Patch23:	webmin-1.020-ssl-location.patch
Patch24:	webmin-1.020-suppress-missing-netatalk-interfaces.patch
Patch26:	webmin-1.060-mysql-fix-installing-missing-packages.patch
Patch29:	webmin-1.100-let-localauth-config.patch
Patch32:	webmin-1.310-usermin-fix-installing-missing-package.diff
Patch33:	webmin-1.130-postgresql-fix-installing-missing-packages.patch
Patch35:	webmin-1.220-usermin-fix-index.patch
Patch36:	webmin-1.350-mandriva_theme.diff
Patch37:	webmin-temp-permission-fix.diff
Patch38:	webmin-ssldir-cosmetic.diff
Patch39:	webmin-fix-bandwith.diff
Patch40:	webmin-fix-sarg.diff
Requires(pre): rpm-helper
Requires:	perl
Requires:	perl-CGI
Requires:	lsof
Requires(pre): sed chkconfig findutils coreutils initscripts grep perl-Net_SSLeay perl-Authen-PAM
Provides:	%{name}-%{version}
Provides:	%{name}-theme-mandriva
Obsoletes:	%{name}-theme-mandriva
BuildArch:	noarch
Buildroot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot

%description
A web-based administration interface for Unix systems. Using Webmin you can
configure DNS, Samba, NFS, local/remote filesystems, Apache, Sendmail/Postfix,
and more using your web browser.

After installation, enter the URL https://localhost:10000/ into your browser
and login as root with your root password. Please consider logging in and
modify your password for security issue.

PLEASE NOTE THAT THIS VERSION NOW USES SECURE WEB TRANSACTIONS: YOU HAVE TO
LOGIN TO "https://localhost:10000/" AND NOT "http://localhost:10000/".

%prep

%setup -q -a2 -a30 -a51 -a52 -a53 -a55 -a56
# Unknow extension, rpm won't unpack it.
tar xf %{SOURCE54}
tar xf %{SOURCE541}
tar xf %{SOURCE57}
tar xf %{SOURCE101}
tar xf %{SOURCE102}

install -m 0644 %{SOURCE33} mandriva/webmin/images
install -m 0644 %{SOURCE34} mandriva/webmin/images
rm -fr %{name}-%{version}/dhcpd
rm -fr %{name}-%{version}/useradmin

%setup -q -D -T -c -a 9 -n %{name}-%{version}
#%if %{mdkversion} < 20101
#%patch0 -p0
#%endif
#%patch1 -p0
#%patch5 -p0
#%patch7 -p1
#%patch8 -p1
#%patch9 -p0
#%patch10 -p1

#%patch13 -p0
#%patch15 -p0
#%patch17 -p1
#%patch19 -p0
#%patch21 -p0
#%patch23 -p1
#%patch24 -p1
#%patch26 -p1
#%patch29 -p1
#%patch32 -p0
#%patch33 -p1
#%patch35 -p1
#%patch36 -p0
#%patch37 -p1
#%patch38 -p1
#%patch39 -p1
#%patch40 -p1
# use MD5 by default

for i in */config-mandrake-linux-8.2; do n=`echo $i | perl -pe 's/...$/9.0/'`; [ -e $n ] || cp $i $n; done
for i in */config-mandrake-linux-9.0; do n=`echo $i | perl -pe 's/...$/9.1/'`; [ -e $n ] || cp $i $n; done
for i in */config-mandrake-linux-9.1; do n=`echo $i | perl -pe 's/...$/9.2/'`; [ -e $n ] || cp $i $n; done
for i in */config-mandrake-linux-9.2; do n=`echo $i | perl -pe 's/...$/10.0/'`; [ -e $n ] || cp $i $n; done
for i in */config-mandrake-linux-10.0; do n=`echo $i | perl -pe 's/....$/10.1/'`; [ -e $n ] || cp $i $n; done
for i in */config-mandrake-linux-10.1; do n=`echo $i | perl -pe 's/....$/10.2/'`; [ -e $n ] || cp $i $n; done
for i in */config-mandrake-linux-10.2; do n=`echo $i | perl -pe 's/....$/2006.0/'`; [ -e $n ] || cp $i $n; done
find bind8 -type f -maxdepth 1 | xargs perl -pi -e 's|/var/run/named\.pid|/var/run/named/named.pid|'

# daouda: added mandriva-linux to known OS
cp config-mandrake-linux config-mandriva-linux

# force theme to blue
pushd theme_gehrigal/skins
  ./change_skin.pl s blueedition.skininfo
popd

perl -pi -e 's|redhat-linux(?! mandriva-linux)|redhat-linux mandriva-linux| if $_ =~ /^os_support.*redhat-linux/ && $_ !~ /mandriva-linux/' */module.info
#'
perl -pi -e 's|/etc/smb\.conf|/etc/samba/smb\.conf|' samba/config-mandrake-linux

(find . -name '*.cgi' ; find . -name '*.pl') | perl perlpath.pl /usr/bin/perl -
rm -f mount/freebsd-mounts-*
rm -f mount/openbsd-mounts-*

find -name ".xvpics" -o -name ".*.swp" | xargs rm -rf

# i18n
#%if %{with_i18n_tarball}
#tar -jxf %{_sourcedir}/webmin-i18n-%{i18n_date}.tar.bz2
#tar -jxf %{SOURCE100}
#%endif

%build

# nothing to do here...

%install
rm -rf %{buildroot}

# IMPORTANT: there is no %{_datadir} and so on, since the directories are decided by the post install script.
mkdir -p %{buildroot}/usr/share/webmin
mkdir -p %{buildroot}/%{_initrddir}
mkdir -p %{buildroot}/usr/bin

find -type f -print0 | xargs -0 chmod a+r
find -type d -print0 | xargs -0 chmod a+rx

# (gc) remove ldap module, we don't have perl modules to make it work
rm -rf ldap

cp -a * %{buildroot}/usr/share/webmin
install -m755 %{SOURCE6} %{buildroot}/%{_initrddir}/webmin
install -m755 %{SOURCE4} %{buildroot}/usr/share/webmin/postinstall.sh
install -m755 %{SOURCE5} %{buildroot}/usr/bin

mkdir -p %{buildroot}/%{_sysconfdir}/pam.d

%if %{mdkversion} < 200610 
install -m755 %{SOURCE10} %{buildroot}/%{_sysconfdir}/pam.d/webmin
%else
install -m755 %{SOURCE14} %{buildroot}/%{_sysconfdir}/pam.d/webmin
%endif

rm -rf %{buildroot}/usr/share/webmin/*/{CVS,*/CVS}
rm -f `find %{buildroot} -type f -name .cvsignore`

# (gc) remove zero-length files (to check sometimes if they are still zero-length'ed)
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
    if [ -f $i ]; then rm -f %{buildroot}$i; fi
done

echo "rpm" > %{buildroot}/usr/share/webmin/install-type

# (sb) remove development file
rm -f %{buildroot}/usr/share/webmin/mount/macos-mounts.c

%if %{mdkversion} < 20101
# (deush) mandriva is the default theme
echo 'mandriva' > %{buildroot}%{_datadir}/webmin/defaulttheme
%else
echo 'blue-theme' > %{buildroot}%{_datadir}/webmin/defaulttheme
%endif

# (oe) remove invalid file that breaks webmin
rm -f %{buildroot}%{_datadir}/webmin/mandriva/config.cgi

# Install icons
install -d -m 0755 %{buildroot}%{_liconsdir}
install -d -m 0755 %{buildroot}%{_miconsdir}
install -m 0644 %{SOURCE11} %{buildroot}%{_miconsdir}/webmin.png
install -m 0644 %{SOURCE12} %{buildroot}%{_iconsdir}/webmin.png
install -m 0644 %{SOURCE11} %{buildroot}%{_liconsdir}/webmin.png

# Menu entry

# XDG menu
install -d %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=%{name}
Comment=%{summary}
Exec=%{_bindir}/www-browser https://localhost:10000/
Icon=%{name}
Terminal=false
Type=Application
Categories=X-MandrivaLinux-System-Configuration-Other;Settings;
EOF

rm -fr %{buildroot}/usr/share/webmin/acl/Authen-SolarisRBAC-0.1

#logrotate
install -d %{buildroot}%{_sysconfdir}/logrotate.d
install -m 0644 %{SOURCE15} %{buildroot}%{_sysconfdir}/logrotate.d/webmin

%post
%if %mdkversion > 200900
%_create_ssl_certificate -b miniserv
%else
# fix SSL cert location
mkdir -p %{buildroot}%{_sysconfdir}/ssl/webmin
mv -f %{buildroot}%{_datadir}/webmin/miniserv.pem \
  %{buildroot}%{_sysconfdir}/ssl/webmin
%endif
if [ "$1" != 0 ]; then
    service webmin status >/dev/null 2>/dev/null && need_restart=1
    service webmin stop >/dev/null 2>/dev/null || :
else
    [[ -e /etc/cron.allow ]] && if [ "x`grep root /etc/cron.allow`" == "x" ] ; then
	echo root >> /etc/cron.allow
    fi
fi
/usr/share/webmin/postinstall.sh
%_post_service webmin
[[ -n $need_restart ]] && service webmin start >/dev/null 2>/dev/null || :
%if %mdkversion < 200900
%update_menus
%endif

%preun
%_preun_service webmin

%postun
if [ "$1" = 0 ]; then
    rm -rf /etc/webmin /var/webmin /var/lib/webmin /var/run/webmin /var/log/webmin
fi
%if %mdkversion < 200900
%clean_menus
%endif

%clean
rm -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc README LICENCE
%{_initrddir}/webmin
%config(noreplace) %{_sysconfdir}/pam.d/webmin
%config(noreplace) %{_sysconfdir}/logrotate.d/webmin
/usr/share/webmin
/usr/bin/%{name}
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_datadir}/applications/*.desktop


%changelog
* Thu Jul 19 2012 Lonyai Gergely <aleph@mandriva.org> 1.590-1
+ Revision: 810266
- 1.590

* Thu Jan 26 2012 Lonyai Gergely <aleph@mandriva.org> 1.580-1
+ Revision: 769019
- 1.580

* Sat Dec 24 2011 Lonyai Gergely <aleph@mandriva.org> 1.570-3
+ Revision: 745006
+ rebuild (emptylog)

* Fri Oct 07 2011 Sergey Zhemoitel <serg@mandriva.org> 1.570-2.1
+ Revision: 703393
- add new plugins awstats dansguardian

* Thu Oct 06 2011 Sergey Zhemoitel <serg@mandriva.org> 1.570-2
+ Revision: 703231
- imported package webmin

* Thu Aug 18 2011 Lonyai Gergely <aleph@mandriva.org> 1.560-2
+ Revision: 695142
- release; rediff: atboot.patch; recreate: init-status-fix.patch to new init module

  + Sergey Zhemoitel <serg@mandriva.org>
    - new release 1.560
    - new release

* Mon Jun 13 2011 Oden Eriksson <oeriksson@mandriva.com> 1.550-2
+ Revision: 684493
- make it work on cs4 too

* Mon May 09 2011 Funda Wang <fwang@mandriva.org> 1.550-1
+ Revision: 672795
- rediff patch9

  + Oden Eriksson <oeriksson@mandriva.com>
    - mass rebuild

  + Sergey Zhemoitel <serg@mandriva.org>
    - new version 1.540

* Fri Dec 03 2010 Lonyai Gergely <aleph@mandriva.org> 1.530-1mdv2011.0
+ Revision: 606482
- 1.530

* Sat Sep 25 2010 Lonyai Gergely <aleph@mandriva.org> 1.520-1mdv2011.0
+ Revision: 581003
- 1.520
- #59961 - webmin fail on detect correct MES version

* Sat Apr 17 2010 Lonyai Gergely <aleph@mandriva.org> 1.510-4mdv2010.1
+ Revision: 535785
- Uncomment webmin-1.220-remove-mandrakestuff-from-init.patch
  Add webmin-1.510-fix-status-in-init.patch (send upstream)
  	Resolved a bug anno jura: #14411 - Webmin unable to display " Started now? " status & widgets

* Fri Apr 16 2010 Lonyai Gergely <aleph@mandriva.org> 1.510-3mdv2010.1
+ Revision: 535667
- Test/commented: webmin-1.220-remove-mandrakestuff-from-init.patch

* Tue Apr 06 2010 Lonyai Gergely <aleph@mandriva.org> 1.510-2mdv2010.1
+ Revision: 532114
- Change the theme to default in Cooker

* Sun Apr 04 2010 Funda Wang <fwang@mandriva.org> 1.510-1mdv2010.1
+ Revision: 531319
- New version 1.5.000
- drop merged patches

* Thu Jan 28 2010 Oden Eriksson <oeriksson@mandriva.com> 1.500-3mdv2010.1
+ Revision: 497687
- don't barf on uninstall if not running
- fix a stupid typo...

* Thu Jan 28 2010 Oden Eriksson <oeriksson@mandriva.com> 1.500-2mdv2010.1
+ Revision: 497580
- make it backportable to at least 2008.0

* Wed Dec 09 2009 Funda Wang <fwang@mandriva.org> 1.500-1mdv2010.1
+ Revision: 475292
- new version 1.500

* Thu Oct 15 2009 Lonyai Gergely <aleph@mandriva.org> 1.490-5mdv2010.0
+ Revision: 457661
- fix #53081 - Installation of WebMin empty tmp folder and change its permission. (step 4)
  fix #53249 - Sarg configuration module of webmin does no work
  fix #50233 - Invalid passwords generated when created or modified with webmin.
  fix #50635 - bandwidth monitoring doesn't work

* Thu Oct 08 2009 Lonyai Gergely <aleph@mandriva.org> 1.490-4mdv2010.0
+ Revision: 456120
- fix #53081 - Installation of WebMin empty tmp folder and change its permission. (3)
  fix #53077 - Webmin fail to detect Mandriva 2010.0 and use wrong folder (3)

* Tue Oct 06 2009 Lonyai Gergely <aleph@mandriva.org> 1.490-3mdv2010.0
+ Revision: 454845
- fix #54330 - Webmin login fails, Secure Connection Failed
  fix #54195 - Webmin create miniserv.pem in a wrong place
  fix #53081 - Installation of WebMin empty tmp folder and change its permission. (2)
  fix #53077 - Webmin fail to detect Mandriva 2010.0 and use wrong folder (2)

* Wed Sep 30 2009 Lonyai Gergely <aleph@mandriva.org> 1.490-1mdv2010.0
+ Revision: 451502
- fix #53879 (initscript of Webmin is not LSB-compliant)
- fix #53077 (Webmin fail to detect Mandriva 2010.0)
- fix #41347 (If /etc/cron.allow exists, root must be found in it if you want to add/modify root's cron jobs with Webmin)
- update to 1.490
  fix #15369 (miniserv.log is not rotated on a regular basis)

* Thu Apr 09 2009 Eugeni Dodonov <eugeni@mandriva.com> 1.441-2mdv2009.1
+ Revision: 365481
- Updated webmin to use MD5 for user passwords by default.
  Rediffed patches.

* Fri Oct 31 2008 Oden Eriksson <oeriksson@mandriva.com> 1.441-1mdv2009.1
+ Revision: 298897
- 1.441

* Thu Aug 07 2008 Thierry Vignaud <tv@mandriva.org> 1.420-2mdv2009.0
+ Revision: 265776
- rebuild early 2009.0 package (before pixel changes)

  + Pixel <pixel@mandriva.com>
    - rpm filetriggers deprecates update_menus/update_scrollkeeper/update_mime_database/update_icon_cache/update_desktop_database/post_install_gconf_schemas
    - %update_menus must be in %%post, not %%preun (!)

* Wed May 28 2008 Funda Wang <fwang@mandriva.org> 1.420-1mdv2009.0
+ Revision: 212495
- New version 1.420

* Mon Mar 31 2008 Tiago Salem <salem@mandriva.com.br> 1.410-1mdv2008.1
+ Revision: 191222
- Update to 1.410 version. Requested in #39117

* Thu Mar 20 2008 Tiago Salem <salem@mandriva.com.br> 1.400-1mdv2008.1
+ Revision: 189183
- Update to 1.400 version. Requested in #39117

* Wed Mar 19 2008 Tiago Salem <salem@mandriva.com.br> 1.390-5mdv2008.1
+ Revision: 188949
- add fix for broken login (#27438)
- bump release

* Fri Feb 15 2008 Thierry Vignaud <tv@mandriva.org> 1.390-4mdv2008.1
+ Revision: 168797
- fix arch-independent-package-contains-binary-or-object & manpage-not-bzipped
- remove now uneeded hack that disabled auto-requires

* Thu Jan 31 2008 Marcelo Ricardo Leitner <mrl@mandriva.com> 1.390-3mdv2008.1
+ Revision: 160869
- 3mdv
- Remove useless command at %%postun
- Do not remove all configs on upgrades. It's plain wrong!
- Do not handle /etc/issue if it's not there: it's not our reponsability.
- Do not replace setup.sh logs, rather append them with proper delims.
- Cleanup

* Thu Jan 31 2008 Marcelo Ricardo Leitner <mrl@mandriva.com> 1.390-2mdv2008.1
+ Revision: 160858
- Updated i18n stuff.

  + Thierry Vignaud <tv@mandriva.org>
    - drop old menu

* Sun Dec 23 2007 Funda Wang <fwang@mandriva.org> 1.390-1mdv2008.1
+ Revision: 137323
- New version 1.390

  + Olivier Blin <blino@mandriva.org>
    - restore BuildRoot

  + Thierry Vignaud <tv@mandriva.org>
    - kill re-definition of %%buildroot on Pixel's request

* Fri Nov 09 2007 Oden Eriksson <oeriksson@mandriva.com> 1.380-1mdv2008.1
+ Revision: 107023
- 1.380
- rediffed P34

* Wed Oct 10 2007 Oden Eriksson <oeriksson@mandriva.com> 1.370-1mdv2008.1
+ Revision: 96834
- 1.370
- rediffed P0
- drop the quotes in the Exec= line (blino)

* Thu Aug 23 2007 Thierry Vignaud <tv@mandriva.org> 1.360-2mdv2008.0
+ Revision: 69707
- fileutils, sh-utils & textutils have been obsoleted by coreutils a long time ago

* Tue Aug 07 2007 Oden Eriksson <oeriksson@mandriva.com> 1.360-1mdv2008.0
+ Revision: 59766
- 1.360
- don't use older plugins, nuke S20,S21

* Sun Jul 08 2007 Oden Eriksson <oeriksson@mandriva.com> 1.350-3mdv2008.0
+ Revision: 49775
- added P36 by Loic Vaillant to handle icons better

* Tue Jun 12 2007 Oden Eriksson <oeriksson@mandriva.com> 1.350-2mdv2008.0
+ Revision: 38194
- remove the borked mandriva/config.cgi file
- remove the desktop-file-utils dep
- remove the "/usr/share/webmin/mandriva/config.cgi" because it is broken and not needed

* Mon Jun 11 2007 Marcelo Ricardo Leitner <mrl@mandriva.com> 1.350-1mdv2008.0
+ Revision: 38045
- New upstream: 1.350
- Updated i18n packs.
- Updated support-mandriva patch due to new upstream.
- Merged back mandriva-theme and mandriva-theme-images tarballs.
- Patched mandriva-theme so that it falls back to .gif icons if the .png
  version is missing.

* Tue May 29 2007 Andreas Hasenack <andreas@mandriva.com> 1.320-2mdv2008.0
+ Revision: 32648
- fixed pam config
- the initscript is not a configuration file