info:apache.spec -devel

Wojciech Slusarczyk wojtek w SHADOW.EU.ORG
Sob, 29 Sie 1998, 12:07:40 CEST


Hej,

Zrobilem indianina... wiem, wiem, powcie że stary, dziurawy itp. ale
najważniejsze jest to że pracuje po ipv6 :

Summary: Leading World Wide Web server
Summary(pl): Serwer WWW (World Wide Web)
Name: apache
%define version 1.3a1
Version: %{version}
Release: 1d
Group: Networking/Daemons
Source: ftp://ftp.inner.net/pub/ipv6/%{name}_%{version}+ipv6-2.tar.gz
Source1: index.html
Source2: poweredby.gif
Source3: httpd
Source4: apache.log
Patch0: apache.patch
Copyright: Freely distributable & usable
Buildroot: /tmp/{name}-%{version}-%{release}
Requires: /etc/mime.types, inet6-apps >= 0.33
Prereq: /sbin/chkconfig, /bin/mktemp
Summary(de): Leading World Wide Web-Server
Summary(fr): Serveur Web leader du marché
Summary(tr): Lider WWW tarayýcý

%description
Apache is a full featured web server that is freely available, and also
happens to be the most widely used. Now with IPv6 support...;)

%description -l de
Apache ist ein voll funktionsfähiger Web-Server, der kostenlos
erhältlich und weit verbreitet ist.

%description -l fr
Apache est un serveur Web complet, disponible librement, et se trouve
ętre
aussi le plus utilisé ŕ travers le monde.

%description -l pl
Apache jest doskonałym serwerem WWW (World Wide Web). Instalując ten
pakiet bęziesz mógł prezentować własne strony WWW w sieci internet i
6Bone. Apache stwarza również możliwość konfigurowania serwerów
wirtualnych. Ta wersja Apache ma wspomaganie dla protokołu IPv6.

%description -l tr
Apache serbest dađýtýlan ve çok kullanýlan yetenekli bir web
sunucusudur.

%prep
%setup -q -n apache_%{version}
%patch0 -p1

%build
cd src
./Configure
make RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
make EXTRA_LIBS=-lcrypt -C ../support htpasswd

%install
rm -rf $RPM_BUILD_ROOT
for I in /usr/sbin /etc/httpd/conf /home/httpd/html /home/httpd/icons \
        /home/httpd/cgi-bin /usr/man/man1 /usr/man/man8 /usr/man/man1 \
        /var/log/httpd /etc/logrotate.d; do
        mkdir -p $RPM_BUILD_ROOT/$I
done

install -s -m755 src/httpd  support/htpasswd \
        $RPM_BUILD_ROOT/usr/sbin
strip $RPM_BUILD_ROOT/usr/sbin/htpasswd
strip $RPM_BUILD_ROOT/usr/sbin/httpd

install -m755 support/dbmmanage.new $RPM_BUILD_ROOT/usr/sbin/dbmmanage

for I in httpd access srm; do
        install -m644 conf/$I.conf-dist
$RPM_BUILD_ROOT/etc/httpd/conf/$I.conf
done
install -m644 conf/magic $RPM_BUILD_ROOT/etc/httpd/conf
install -m644 conf/mime.types $RPM_BUILD_ROOT/etc/httpd/conf


install -m644 support/httpd.8 $RPM_BUILD_ROOT/usr/man/man8/httpd.8
install -m644 support/htpasswd.1 $RPM_BUILD_ROOT/usr/man/man1/htpasswd.1

install -m644 icons/* $RPM_BUILD_ROOT/home/httpd/icons
install -m644 htdocs/apache_pb.gif $RPM_BUILD_ROOT/home/httpd/html

mkdir -p $RPM_BUILD_ROOT/home/httpd/html/manual
cp -r htdocs/manual/* $RPM_BUILD_ROOT/home/httpd/html/manual

install -m644 $RPM_SOURCE_DIR/poweredby.gif $RPM_SOURCE_DIR/index.html \

        $RPM_BUILD_ROOT/home/httpd/html

mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
install -m755 $RPM_SOURCE_DIR/httpd
$RPM_BUILD_ROOT/etc/rc.d/init.d/httpd
for I in 0 1 2 6; do
        mkdir -p $RPM_BUILD_ROOT/etc/rc.d/rc$I.d
        ln -s ../init.d/httpd $RPM_BUILD_ROOT/etc/rc.d/rc$I.d/K15httpd
done
for I in 3 5; do
        mkdir -p $RPM_BUILD_ROOT/etc/rc.d/rc$I.d
        ln -s ../init.d/httpd $RPM_BUILD_ROOT/etc/rc.d/rc$I.d/S85httpd
done

install -m644 $RPM_SOURCE_DIR/apache.log
$RPM_BUILD_ROOT/etc/logrotate.d/apache
mkdir -p $RPM_BUILD_ROOT/usr/lib/apache
ln -s /var/log/httpd $RPM_BUILD_ROOT/etc/httpd/logs

cd $RPM_BUILD_DIR/apache_%{version}/support
make CFLAGS="$RPM_OPT_FLAGS" rotatelogs && strip rotatelogs
make CFLAGS="$RPM_OPT_FLAGS" logresolve && strip logresolve
make CFLAGS="$RPM_OPT_FLAGS" httpd_monitor && strip httpd_monitor
install -m711 rotatelogs $RPM_BUILD_ROOT/usr/sbin
install -m711 logresolve $RPM_BUILD_ROOT/usr/sbin
install -m711 httpd_monitor $RPM_BUILD_ROOT/usr/sbin
install -m644 htpasswd.1 $RPM_BUILD_ROOT/usr/man/man1

%clean
rm -rf $RPM_BUILD_ROOT

%post
/sbin/chkconfig --add httpd
[ -f /etc/mime.types ] || exit 0
# safely add .htm to mime types if it is not already there
TEMPTYPES=`/bin/mktemp /tmp/mimetypes.XXXXXX`
[ -z "$TEMPTYPES" ] && {
  echo "could not make temporary file, htm not added to /etc/mime.types"
>&2
  exit 1
}
( grep -v "^text/html"  /etc/mime.types
  types=$(grep "^text/html" /etc/mime.types | cut -f2-)
  echo -en "text/html\t\t\t"
  for val in $types ; do
      if [ "$val" = "htm" ] ; then
          continue
      fi
      echo -n "$val "
  done
  echo "htm"
) > $TEMPTYPES
cat $TEMPTYPES > /etc/mime.types && rm -f $TEMPTYPES

if ! [ -f /proc/net/if_inet6 ]; then
    echo -e "\a Brak wspomagania dla IPv6 - Apache nie będzie działał!"
fi

%preun
if [ $1 = 0 ]; then
   /sbin/chkconfig --del httpd
fi

%files
%defattr(-, root, root)
%attr(0711, root, root) /usr/sbin/rotatelogs
%attr(0711, root, root) /usr/sbin/logresolve
%attr(0711, root, root) /usr/sbin/httpd_monitor
%attr(0711, root, root) /usr/sbin/httpd
%attr(0755, root, root) /usr/sbin/dbmmanage
%attr(0711, root, root) /usr/sbin/htpasswd
/usr/man/man8/httpd.8
/usr/man/man1/htpasswd.1
%config /etc/logrotate.d/apache
%config %verify(not size mtime md5) /etc/httpd/conf/*
%config /etc/rc.d/init.d/httpd
%config(missingok) /etc/rc.d/rc3.d/S85httpd
%config(missingok) /etc/rc.d/rc5.d/S85httpd
%config(missingok) /etc/rc.d/rc0.d/K15httpd
%config(missingok) /etc/rc.d/rc1.d/K15httpd
%config(missingok) /etc/rc.d/rc2.d/K15httpd
%config(missingok) /etc/rc.d/rc6.d/K15httpd
%dir /home/httpd
/home/httpd/icons
%dir /home/httpd/cgi-bin
%dir /home/httpd/html
%config(noreplace) /home/httpd/html/index.html
/home/httpd/html/manual
/home/httpd/html/apache_pb.gif
/home/httpd/html/poweredby.gif
%dir %attr(0700, root, root) /var/log/httpd
#%dir %attr(0700, root, root) /usr/lib/apache
/etc/httpd/logs

%changelog

* Sat Jul 04 1998 Wojtek Slusarczyk <wojtek w shadow.eu.org>
[1.3a1-1d]
- build against glibc-2.1,
- translation modified for pl,
- changed permissions of all binaries to 711,
- added IPv6 support,
- updadet to 1.3a.1,
- moved %changelog at the end of spec,
- build from non root's account.

* Thu May 07 1998 Prospector System <bugs w redhat.com>

- translations modified for de, fr, tr

* Wed May 06 1998 Cristian Gafton <gafton w redhat.com>
- fixed the default config files to be more paranoid about security

* Sat May 02 1998 Cristian Gafton <gafton w redhat.com>
- fixed init script
- added index.htm to the list of acceptable indexes

* Sat May 02 1998 Cristian Gafton <gafton w redhat.com>
- updated to 1.2.6
- added post script to install htm extension for text/html into
  /etc/mime.types

* Wed Apr 22 1998 Michael K. Johnson <johnsonm w redhat.com>
- enhanced sysv init script

* Tue Jan 06 1998 Erik Troan <ewt w redhat.com>
- updated to 1.2.5, which includes many security fixes

* Wed Dec 31 1997 Otto Hammersmith <otto w redhat.com>
- fixed overkill on http.init stop

* Wed Dec 31 1997 Erik Troan <ewt w redhat.com>
- added patch for backslash DOS attach

* Thu Nov 06 1997 Donnie Barnes <djb w redhat.com>
- added htdigest binary to file list

* Mon Nov 03 1997 Donnie Barnes <djb w redhat.com>
- made the default index.html be config(noreplace) so we no longer
  blow away other folks' index.html

* Wed Oct 29 1997 Donnie Barnes <djb w redhat.com>
- added chkconfig support
- added restart|status options to initscript
- renamed httpd.init to httpd

* Tue Oct 07 1997 Elliot Lee <sopwith w redhat.com>
- Redid spec file, patches, etc. from scratch.


--
Wojciech Slusarczyk (091)4494148
Technical University of Szczecin
PGP KeyServer pgpkeys.mit.edu





Więcej informacji o liście dyskusyjnej pld-devel-pl