| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- ##
- ## webmin.spec -- OpenPKG RPM Specification
- ## Copyright (c) 2000-2004 The OpenPKG Project <http://www.openpkg.org/>
- ## Copyright (c) 2000-2004 Ralf S. Engelschall <rse@engelschall.com>
- ## Copyright (c) 2000-2004 Cable & Wireless <http://www.cw.com/>
- ##
- ## Permission to use, copy, modify, and distribute this software for
- ## any purpose with or without fee is hereby granted, provided that
- ## the above copyright notice and this permission notice appear in all
- ## copies.
- ##
- ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
- ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- ## SUCH DAMAGE.
- ##
- # package information
- Name: webmin
- Summary: Web Interface for Unix System Administration
- URL: http://www.webmin.com/
- Vendor: Jamie Cameron
- Packager: The OpenPKG Project
- Distribution: OpenPKG
- Class: EVAL
- Group: Web
- License: BSD-style
- Version: 1.150
- Release: 20040728
- # list of sources
- Source0: http://osdn.dl.sourceforge.net/sourceforge/webadmin/webmin-%{version}.tar.gz
- # build information
- Prefix: %{l_prefix}
- BuildRoot: %{l_buildroot}
- BuildPreReq: OpenPKG, openpkg >= 20040130, perl
- PreReq: OpenPKG, openpkg >= 20040130, perl
- AutoReq: no
- AutoReqProv: no
- %description
- Webmin is a web-based interface for system administration for Unix.
- Using any browser that supports tables and forms (and Java for the
- File Manager module), you can manipulate user accounts, Apache, DNS,
- file sharing and so on. Webmin consists of a simple web server, and
- several of CGI programs which directly update system files. The web
- server and all CGI programs are written in Perl using standard modules.
- %track
- prog webmin = {
- version = %{version}
- url = ftp://ftp.webmin.org/pub/webmin/
- regex = webmin-(__VER__)\.tar\.gz
- }
- %prep
- %setup -q
- %{l_shtool} subst \
- -e 's;^[^a-zA-Z0-9]*chown.*$;true;g' \
- -e 's;^[^a-zA-Z0-9]*chgrp.*$;true;g' \
- -e 's;^[^a-zA-Z0-9]*chmod.*$;true;g' \
- -e 's;^.*\(\$perl \-e.*\$port\);# Do not check the server port: \1;g' \
- -e 's/\(.*\)echo "ERROR: The Webmin install script must be run as root.*/\1true; fi; if false; then/g' \
- setup.sh
- for badfname in `find . -name '*\\**' -print | %{l_shtool} subst -e 's;\\*;\\\\\*;g;'`
- do
- gudfname=`echo ${badfname} | %{l_shtool} subst -e 's;\\\\\*;=;'`
- eval mv ${badfname} ${gudfname}
- done
- %build
- %install
- rm -rf $RPM_BUILD_ROOT
- %{l_shtool} mkdir -f -p -m 755 \
- $RPM_BUILD_ROOT%{l_prefix}/lib/webmin \
- $RPM_BUILD_ROOT%{l_prefix}/etc/webmin \
- $RPM_BUILD_ROOT%{l_prefix}/var/webmin
- install_dir=$RPM_BUILD_ROOT%{l_prefix}/lib/webmin
- config_dir=$RPM_BUILD_ROOT%{l_prefix}/etc/webmin
- var_dir=$RPM_BUILD_ROOT%{l_prefix}/var/webmin
- upgrading=0
- perl=%{l_prefix}/bin/perl
- port=8080
- login='admin'
- password='admin'
- password2='admin'
- ssl=1
- atboot=0
- nostart=1
- nochown=1
- export config_dir var_dir upgrading perl port login \
- password password2 ssl atboot nostart nochown
- ./setup.sh $install_dir 2>&1 >/dev/null
- %{l_shtool} subst \
- -e 's;$RPM_BUILD_ROOT;;g' \
- $RPM_BUILD_ROOT%{l_prefix}/etc/webmin/* \
- >/dev/null 2>&1
- %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
- %files -f files
- %clean
- rm -rf $RPM_BUILD_ROOT
|