浏览代码

Initial revision

master
当前提交
ed12d92e1f
  1. 9
      00README
  2. 26
      amd/am-utils-6.0.7.patch
  3. 28
      amd/amd.conf
  4. 109
      amd/amd.spec
  5. 26
      amd/rc.amd
  6. 231
      apache/apache.base
  7. 15
      apache/apache.conf
  8. 505
      apache/apache.spec
  9. 41
      apache/apache.vhost
  10. 52
      apache/rc.apache
  11. 13
      autoconf/autoconf-2.13.patch
  12. 106
      autoconf/autoconf.spec
  13. 77
      automake/automake.spec
  14. 20
      bash/bash-2.05.patch.1
  15. 22
      bash/bash-2.05.patch.2
  16. 109
      bash/bash.spec
  17. 58
      bash/profile
  18. 75
      bc/bc.spec
  19. 52
      bind/bind.patch
  20. 205
      bind/bind.spec
  21. 18
      bind/db.127.0.0
  22. 18
      bind/db.localhost
  23. 36
      bind/db.root
  24. 32
      bind/db.root.sh
  25. 60
      bind/named.conf
  26. 40
      bind/rc.bind
  27. 79
      bison/bison.spec
  28. 73
      bzip2/bzip2.spec
  29. 92
      calc/calc.spec
  30. 21
      cpio/cpio-2.4.2.patch
  31. 80
      cpio/cpio.spec
  32. 79
      curl/curl.spec
  33. 83
      db/db.spec
  34. 84
      dhcpd/dhcpd.conf
  35. 112
      dhcpd/dhcpd.spec
  36. 19
      dhcpd/rc.dhcpd
  37. 89
      emacs/emacs.spec
  38. 80
      fetchmail/fetchmail.spec
  39. 83
      flex/flex.spec
  40. 95
      freetype/freetype.spec
  41. 84
      gawk/gawk.spec
  42. 153
      gcc/gcc.spec
  43. 93
      gd/gd.spec
  44. 11
      gnupg/gnupg-1.0.6.patch
  45. 84
      gnupg/gnupg.spec
  46. 75
      grep/grep.spec
  47. 82
      gzip/gzip.spec
  48. 22
      hexer/hexer-0.1.4c.patch
  49. 79
      hexer/hexer.spec
  50. 100
      imagemagick/imagemagick.spec
  51. 92
      infozip/infozip.spec
  52. 87
      rrdtool/rrdtool.spec

9
00README

@ -0,0 +1,9 @@
This is the official OpenPKG source tree.
It contains all source files provided by the OpenPKG project.
It is originally located in the OpenPKG CVS repository.
o ftp://ftp.openpkg.org/SRC/
o http://www.openpkg.org/cvsweb/cvsweb.cgi/openpkg-src/
o :pserver:anonymous@cvs.openpkg.org:/cvs [openpkg-src]

26
amd/am-utils-6.0.7.patch

@ -0,0 +1,26 @@
diff -ru3 am-utils-6.0.7.orig/amq/amq.c am-utils-6.0.7/amq/amq.c
--- am-utils-6.0.7.orig/amq/amq.c Fri Jan 12 23:52:00 2001
+++ am-utils-6.0.7/amq/amq.c Thu Jul 5 10:09:10 2001
@@ -251,7 +251,9 @@
mi->mi_up > 0 ? "up" :
mi->mi_up < 0 ? "starting" : "down");
if (mi->mi_error > 0) {
+#if !defined(__FreeBSD__)
extern int sys_nerr;
+#endif
if (mi->mi_error < sys_nerr)
#ifdef HAVE_STRERROR
printf(" (%s)", strerror(mi->mi_error));
diff -ru3 am-utils-6.0.7.orig/hlfsd/hlfsd.h am-utils-6.0.7/hlfsd/hlfsd.h
--- am-utils-6.0.7.orig/hlfsd/hlfsd.h Fri Jan 12 23:52:03 2001
+++ am-utils-6.0.7/hlfsd/hlfsd.h Thu Jul 5 10:09:37 2001
@@ -147,7 +147,9 @@
extern int cache_interval;
extern int noverify;
extern int serverpid;
+#if !defined(__FreeBSD__)
extern int sys_nerr;
+#endif
extern int untab_index(char *username);
extern am_nfs_fh *root_fhp;
extern am_nfs_fh root;

28
amd/amd.conf

@ -0,0 +1,28 @@
##
## amd.conf -- Automount Daemon Global Configuration
##
[ global ]
auto_dir = /.am
pid_file = @l_prefix@/var/amd/amd.pid
log_file = @l_prefix@/var/amd/amd.log
search_path = @l_prefix@/etc/amd/:/etc/amdmaps
normalize_hostnames = yes
print_pid = no
restart_mounts = no
unmount_on_exit = no
cache_duration = 300
print_version = yes
nfs_retry_interval = 8
nfs_retransmit_counter = 11
dismount_interval = 120
log_options = fatal,error,user,warn,info,map,stats,all
plock = no
map_options = cache:=all
selectors_on_default = yes
show_statfs_entries = yes
fully_qualified_hosts = no
#[ /v ]
#map_name = amd.map.v

109
amd/amd.spec

@ -0,0 +1,109 @@
##
## amd.spec -- OpenPKG RPM Specification
## Copyright (c) 2000-2001 Cable & Wireless Deutschland GmbH
## Copyright (c) 2000-2001 Ralf S. Engelschall <rse@engelschall.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: amd
Summary: Auto-Mounting Daemon
Group: System
URL: http://www.am-utils.org/
Vendor: UCB
Packager: rse@openpkg.org
Distribution: OpenPKG
License: BSD
Version: 6.0.7
Release: 4
# list of sources
Source0: ftp://ftp.am-utils.org/pub/am-utils/am-utils-%{version}.tar.gz
Source1: amd.conf
Source2: rc.amd
Patch0: am-utils-%{version}.patch
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 0.9-30, flex
PreReq: OpenPKG, openpkg >= 0.9-30
AutoReq: no
AutoReqProv: no
%description
An automounting daemon maintains a cache of mounted filesystems.
Filesystems are mounted on demand when they are first referenced,
and unmounted after a period of inactivity. Amd may be used as a
replacement for Sun's original automounter. The choice of which
filesystem to mount can be controlled dynamically with selectors.
Selectors allow decisions of the form "hostname is this," or
"architecture is not that." Selectors may be combined arbitrarily.
Amd also supports a variety of filesystem types, including NFS,
UFS and the novel program filesystem. The combination of selectors
and multiple filesystem types allows identical configuration
files to be used on all machines thus reducing the administrative
overhead. Amd ensures that it will not hang if a remote server goes
down. Moreover, Amd can determine when a remote server has become
inaccessible and then mount replacement filesystems as and when they
become available.
%prep
%setup -q -n am-utils-%{version}
%patch -p1
%build
PATH="%{l_prefix}/bin:$PATH"; export PATH
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \
./configure \
--prefix=%{l_prefix} \
--sysconfdir=%{l_prefix}/etc/amd \
--disable-debug \
--disable-shared
%{l_make} %{l_mflags}
%install
rm -rf $RPM_BUILD_ROOT
%{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir
rm -f $RPM_BUILD_ROOT%{l_prefix}/sbin/automount2amd
rm -f $RPM_BUILD_ROOT%{l_prefix}/sbin/amd2sun
rm -f $RPM_BUILD_ROOT%{l_prefix}/sbin/amd2ldif
rm -f $RPM_BUILD_ROOT%{l_prefix}/man8/automount2amd.8
rm -f $RPM_BUILD_ROOT%{l_prefix}/etc/amd/*
rm -rf $RPM_BUILD_ROOT%{l_prefix}/lib
%{l_shtool} install -c -m 644 -e "s;@l_prefix@;%{l_prefix};g" \
%{SOURCE amd.conf} $RPM_BUILD_ROOT%{l_prefix}/etc/amd/
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/etc/rc.d
%{l_shtool} install -c -m 755 -e "s;@l_prefix@;%{l_prefix};g" \
%{SOURCE rc.amd} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/var/amd
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
%{l_files_std} \
'%config %{l_prefix}/etc/amd/amd.conf'
%files -f files
%clean
rm -rf $RPM_BUILD_ROOT

26
amd/rc.amd

@ -0,0 +1,26 @@
#!@l_prefix@/lib/rpm/bash @l_prefix@/etc/rc
##
## rc.amd -- Run-Commands for AMD
##
%config
amd_enable="yes"
%start -p 200 -u root
test ".$amd_enable" != ".yes" && exit 0
@l_prefix@/sbin/amd -F @l_prefix@/etc/amd/amd.conf >/dev/null 2>&1
%stop -p 200 -u root
test ".$amd_enable" != ".yes" && exit 0
kill -TERM `cat @l_prefix@/var/amd/amd.pid`
%restart -u root
test ".$amd_enable" != ".yes" && exit 0
kill -TERM `cat @l_prefix@/var/amd/amd.pid`
sleep 2
@l_prefix@/sbin/amd -F @l_prefix@/etc/amd/amd.conf >/dev/null 2>&1
%reload -u root
test ".$amd_enable" != ".yes" && exit 0
kill -HUP `cat @l_prefix@/var/amd/amd.pid`

231
apache/apache.base

@ -0,0 +1,231 @@
##
## apache.base -- Apache Base/Default Configuration
## ______________________________________________________
##
## PLEASE DO NOT EDIT THIS FILE!! ADJUST CONFIGURATION BY
## OVERRIDING DIRECTIVES IN "apache.conf" INSTEAD, PLEASE!
## ______________________________________________________
##
# global server
ServerType standalone
ServerRoot @l_prefix@
ServerAdmin root@@l_hostname@.@l_domainname@
ServerName @l_hostname@.@l_domainname@
ServerTokens Prod
User @l_npusr@
Group @l_npgrp@
Port 80
# runtime files
PidFile @l_prefix@/var/apache/run/apache.pid
ScoreBoardFile @l_prefix@/var/apache/run/apache.sb
# server behaviour
Timeout 300
KeepAlive on
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MinSpareServers 5
MaxSpareServers 10
StartServers 5
MaxClients 150
MaxRequestsPerChild 0
HostnameLookups off
UseCanonicalName on
# access logging
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
CustomLog @l_prefix@/var/apache/log/access.log common
# error logging
LogLevel warn
ErrorLog @l_prefix@/var/apache/log/error.log
ServerSignature on
# secure root directory
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
# configure global document root
DocumentRoot @l_prefix@/share/apache/htdocs
<IfModule mod_alias.c>
Alias /apache-htdocs @l_prefix@/share/apache/htdocs
</IfModule>
<Directory "@l_prefix@/share/apache/htdocs">
Options Indexes FollowSymLinks MultiViews
AllowOverride none
Order allow,deny
Allow from all
</Directory>
# default directories and files
<IfModule mod_userdir.c>
UserDir public_html
</IfModule>
<IfModule mod_dir.c>
DirectoryIndex index.html
</IfModule>
# local configuration files
AccessFileName .htaccess
<Files ~ "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</Files>
# global Icons and CGI directory
<IfModule mod_alias.c>
Alias /apache-icons @l_prefix@/share/apache/icons
<Directory "@l_prefix@/share/apache/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
ScriptAlias /openpkg-cgi "@l_prefix@/cgi"
<Directory "@l_prefix@/cgi">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
</IfModule>
# automatic CGI recognition by extension
<IfModule mod_cgi.c>
AddHandler cgi-script .cgi
</IfModule>
# automatic directory indexing
<IfModule mod_autoindex.c>
IndexOptions FancyIndexing
ReadmeName README
HeaderName HEADER
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
DefaultIcon /apache-icons/unknown.gif
AddIcon /apache-icons/back.gif ..
AddIcon /apache-icons/folder.gif ^^DIRECTORY^^
AddIcon /apache-icons/blank.gif ^^BLANKICON^^
AddIcon /apache-icons/hand.right.gif README
AddIcon /apache-icons/binary.gif .bin .exe
AddIcon /apache-icons/binhex.gif .hqx
AddIcon /apache-icons/tar.gif .tar
AddIcon /apache-icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /apache-icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /apache-icons/a.gif .ps .ai .eps
AddIcon /apache-icons/layout.gif .html .shtml .htm .pdf
AddIcon /apache-icons/text.gif .txt
AddIcon /apache-icons/c.gif .c
AddIcon /apache-icons/p.gif .pl .py
AddIcon /apache-icons/f.gif .for
AddIcon /apache-icons/dvi.gif .dvi
AddIcon /apache-icons/uuencoded.gif .uu
AddIcon /apache-icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /apache-icons/tex.gif .tex
AddIcon /apache-icons/bomb.gif core
AddIconByEncoding (CMP,/apache-icons/compressed.gif) x-compress x-gzip
AddIconByType (TXT,/apache-icons/text.gif) text/*
AddIconByType (IMG,/apache-icons/image2.gif) image/*
AddIconByType (SND,/apache-icons/sound2.gif) audio/*
AddIconByType (VID,/apache-icons/movie.gif) video/*
</IfModule>
# MIME types and content negotiation
DefaultType text/plain
<IfModule mod_mime.c>
TypesConfig @l_prefix@/etc/apache/mime.types
AddType application/x-tar .tgz
AddEncoding x-compress Z
AddEncoding x-gzip gz tgz
AddLanguage da .dk
AddLanguage nl .nl
AddLanguage en .en
AddLanguage et .ee
AddLanguage fr .fr
AddLanguage de .de
AddLanguage el .el
AddLanguage he .he
AddCharset ISO-8859-8 .iso8859-8
AddLanguage it .it
AddLanguage ja .ja
AddCharset ISO-2022-JP .jis
AddLanguage kr .kr
AddCharset ISO-2022-KR .iso-kr
AddLanguage no .no
AddLanguage pl .po
AddCharset ISO-8859-2 .iso-pl
AddLanguage pt .pt
AddLanguage pt-br .pt-br
AddLanguage ltz .lu
AddLanguage ca .ca
AddLanguage es .es
AddLanguage sv .se
AddLanguage cz .cz
AddLanguage ru .ru
AddLanguage tw .tw
AddCharset Big5 .Big5 .big5
AddCharset WINDOWS-1251 .cp-1251
AddCharset CP866 .cp866
AddCharset ISO-8859-5 .iso-ru
AddCharset KOI8-R .koi8-r
AddCharset UCS-2 .ucs2
AddCharset UCS-4 .ucs4
AddCharset UTF-8 .utf8
</IfModule>
<IfModule mod_negotiation.c>
LanguagePriority en da nl et fr de el it ja kr no pl pt pt-br ru ltz ca es sv tw
</IfModule>
<IfModule mod_mime_magic.c>
MIMEMagicFile @l_prefix@/etc/apache/mime.magic
</IfModule>
# browser specifics
<IfModule mod_setenvif.c>
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0
</IfModule>
# IVW access logging
<IfModule mod_zmod.c>
ZModSubPath /cgi-bin/ivw
ZModFormat ZMODS
ZModLog @l_prefix@/var/apache/log/zmod.log
#ZModFileBase @l_prefix@/share/apache/htdocs/ivw/pics
</IfModule>
# SSL/TLS support
<IfModule mod_ssl.c>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
SSLMutex sem
SSLSessionCache shmcb:@l_prefix@/var/apache/run/ssl_scache(512000)
SSLSessionCacheTimeout 300
SSLLog @l_prefix@/var/apache/log/ssl.log
SSLLogLevel warn
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
<Files ~ "\.(cgi|shtml|phtml|php?)$">
SSLOptions +StdEnvVars
</Files>
<Directory "@l_prefix@/cgi">
SSLOptions +StdEnvVars
</Directory>
</IfModule>
# PHP4 support
<IfModule mod_php4.c>
AddType application/x-httpd-php .php
</IfModule>

15
apache/apache.conf

@ -0,0 +1,15 @@
##
## apache.conf -- Apache Custom Configuration
## ______________________________________________________
##
## PLEASE EDIT THIS FILE!! ADJUST YOUR CONFIGURATION BY
## OVERRIDING DIRECTIVES FROM "apache.base" HERE, PLEASE!
## ______________________________________________________
##
# suck in Apache default/base configuration
Include "@l_prefix@/etc/apache/apache.base"
# override/extend with local configuration
#Include "@l_prefix@/etc/apache/apache.vhost"

505
apache/apache.spec

@ -0,0 +1,505 @@
##
## apache.spec -- RPM Specification for Apache
## Copyright (c) 2000-2001 Cable & Wireless Deutschland GmbH
##
## 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.
##
# the additionally used Apache modules
%define mod_ssl yes
%define mod_perl yes
%define mod_php yes
%define mod_dav no
%define mod_layout no
%define mod_macro no
%define mod_auth_pam no
%define mod_gzip yes
%define mod_zmod no
%define mod_fastcgi no
%define mod_throttle no
%define mod_access_referer no
%define mod_roaming no
%define mod_relocate no
# more optional settings
# (requires mod_php set to "yes" above)
%define php_mysql no
%define php_gd yes
# the software versions
%define V_apache 1.3.20
%define V_mod_ssl 2.8.4
%define V_mod_perl 1.26
%define V_mod_php 4.0.6
%define V_mod_dav 1.0.2-1.3.6
%define V_mod_layout 3.0
%define V_mod_macro 1.1.1
%define V_mod_auth_pam 1.0a
%define V_mod_gzip 1.3.19.1a
%define V_mod_zmod 2_3
%define V_mod_fastcgi 2.2.10
%define V_mod_throttle 312
%define V_mod_access_referer 1.0.2
%define V_mod_roaming 1.0.2
%define V_mod_relocate 1.0
# package information
Name: apache
Summary: Apache HTTP Server
Group: Web
URL: http://httpd.apache.org/
Vendor: Apache Software Foundation
Packager: rse@openpkg.org
Distribution: OpenPKG
License: BSD-style
Version: %{V_apache}
Release: 22
# list of sources
Source0: http://httpd.apache.org/dist/httpd/apache_%{V_apache}.tar.gz
# %if "%{mod_ssl}" == "yes"
Source1: http://www.modssl.org/source/mod_ssl-%{V_mod_ssl}-%{V_apache}.tar.gz
# %endif
# %if "%{mod_perl}" == "yes"
Source2: http://perl.apache.org/dist/mod_perl-%{V_mod_perl}.tar.gz
# %endif
# %if "%{mod_php}" == "yes"
Source3: http://www.php.net/distributions/php-%{V_mod_php}.tar.gz
Patch0: ftp://ftp.openpkg.org/DST/php/php-%{V_mod_php}.patch
# %endif
# %if "%{mod_dav}" == "yes"
Source4: http://www.webdav.org/mod_dav/mod_dav-%{V_mod_dav}.tar.gz
# %endif
# %if "%{mod_layout}" == "yes"
Source5: ftp://ftp.tangent.org/pub/apache/mod_layout-%{V_mod_layout}.tar.gz
# %endif
# %if "%{mod_macro}" == "yes"
Source6: http://www.cri.ensmp.fr/~coelho/mod_macro/mod_macro-%{V_mod_macro}.tar.gz
# %endif
# %if "%{mod_auth_pam}" == "yes"
Source7: http://pam.sourceforge.net/mod_auth_pam/mod_auth_pam.tar.gz
# %endif
# %if "%{mod_gzip}" == "yes"
Source8: http://www.remotecommunications.com/apache/mod_gzip/src/%{V_mod_gzip}/mod_gzip.c
# %endif
# %if "%{mod_zmod}" == "yes"
Source9: http://www.ivw.de/???/src.apapi.FIN%{V_mod_zmod}.tar.gz
# %endif
# %if "%{mod_fastcgi}" == "yes"
Source10: http://www.fastcgi.com/dist/mod_fastcgi_%{V_mod_fastcgi}.tar.gz
# %endif
# %if "%{mod_throttle}" == "yes"
Source11: http://www.snert.com/Software/mod_throttle/mod_throttle%{V_mod_throttle}.tgz
# %endif
# %if "%{mod_access_referer}" == "yes"
Source12: http://download.sourceforge.net/accessreferer/mod_access_referer-%{V_mod_access_referer}.tar.gz
# %endif
# %if "%{mod_roaming}" == "yes"
Source13: http://www.klomp.org/mod_roaming/mod_roaming-%{V_mod_roaming}.tar.gz
# %endif
# %if "%{mod_relocate}" == "yes"
Source14: http://www.tangent.org/mod_relocate/mod_relocate-%{V_mod_relocate}.tar.gz
# %endif
Source20: apache.conf
Source21: apache.base
Source22: apache.vhost
Source23: rc.apache
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: openpkg >= 0.9-22
PreReq: openpkg >= 0.9-22
%if "%{mod_ssl}" == "yes"
BuildPreReq: openssl, mm
%endif
%if "%{mod_perl}" == "yes"
BuildPreReq: perl
PreReq: perl
%endif
%if "%{mod_php}" == "yes"
BuildPreReq: make
%if "%{php_mysql}" == "yes"
BuildPreReq: mysql
%endif
%if "%{php_gd}" == "yes"
BuildPreReq: gd
%endif
%endif
AutoReq: no
AutoReqProv: no
%description
The Apache Project is a collaborative software development effort
aimed at creating a robust, commercial-grade, featureful, and
freely-available source code implementation of an HTTP (Web) server.
The project is jointly managed by a group of volunteers located
around the world, using the Internet and the Web to communicate,
plan, and develop the server and its related documentation. These
volunteers are known as the Apache Group. In addition, hundreds
of users have contributed ideas, code, and documentation to the
project.
This Apache %{V_apache} package optionally can include:
- mod_ssl %{V_mod_ssl} for HTTPS support.
- mod_perl %{V_mod_perl} for dynamic Perl scripting.
- mod_php %{V_mod_php} for dynamic PHP scripting.
- mod_dav %{V_mod_dav} for WebDAV support.
- mod_layout %{V_mod_layout} for header/footer support.
- mod_macro %{V_mod_macro} for macro support in config files.
- mod_auth_pam %{V_mod_auth_pam} for PAM-based authentication.
- mod_gzip %{V_mod_gzip} for on-the-fly GZIP-based data compression.
- mod_zmod %{V_mod_zmod} for IVW-compliant logfile writing.
- mod_fastcgi %{V_mod_fastcgi} for FastCGI support.
- mod_access_referer %{V_mod_access_referer} for access control via HTTP Referer.
- mod_roaming %{V_mod_roaming} for Netscape Communicator roaming support.
- mod_relocate %{V_mod_relocate} for external URL redirection with logging.
%prep
%setup0 -q -c
%if "%{mod_ssl}" == "yes"
%setup1 -q -T -D -a 1
%endif
%if "%{mod_perl}" == "yes"
%setup2 -q -T -D -a 2
%endif
%if "%{mod_php}" == "yes"
%setup3 -q -T -D -a 3
%patch0 -p0
%endif
%if "%{mod_dav}" == "yes"
%setup4 -q -T -D -a 4
%endif
%if "%{mod_layout}" == "yes"
%setup5 -q -T -D -a 5
%endif
%if "%{mod_macro}" == "yes"
%setup6 -q -T -D -a 6
%endif
%if "%{mod_auth_pam}" == "yes"
%setup7 -q -T -D -a 7
%endif
%if "%{mod_zmod}" == "yes"
%setup9 -q -T -D -a 9
%endif
%if "%{mod_fastcgi}" == "yes"
%setup10 -q -T -D -a 10
%endif
%if "%{mod_throttle}" == "yes"
%setup11 -q -T -D -a 11
%endif
%if "%{mod_access_referer}" == "yes"
%setup12 -q -T -D -a 12
%endif
%if "%{mod_roaming}" == "yes"
%setup13 -q -T -D -a 13
%endif
%if "%{mod_relocate}" == "yes"
%setup14 -q -T -D -a 14
%endif
%build
PATH="%{l_prefix}/bin:%{l_prefix}/sbin:$PATH"; export PATH
rm -rf $RPM_BUILD_ROOT
%{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}
%if "%{mod_ssl}" == "yes"
( cd mod_ssl-%{V_mod_ssl}-%{V_apache}
./configure \
--with-apache=../apache_%{V_apache} \
--expert
)
%endif
%if "%{mod_php}" == "yes" || "%{mod_dav}" == "yes"
( cd apache_%{V_apache}
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \
./configure \
%if "%{mod_ssl}" == "yes"
--enable-rule=EAPI \
%endif
--target=apache \
--with-layout=GNU \
--prefix=%{l_prefix} \
--sbindir=%{l_prefix}/sbin \
--sysconfdir=%{l_prefix}/etc/apache \
--libexecdir=%{l_prefix}/lib/apache \
--datadir=%{l_prefix}/share/apache \
--localstatedir=%{l_prefix}/var/apache \
--without-confadjust
)
%endif
%if "%{mod_perl}" == "yes"
( cd mod_perl-%{V_mod_perl}
eval `%{l_prefix}/bin/perl -V:archname`
eval `%{l_prefix}/bin/perl -V:version`
%{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/bin
perl=$RPM_BUILD_ROOT%{l_prefix}/bin/perl
echo "#!/bin/sh" >$perl
echo "exec %{l_prefix}/bin/perl \\" >>$perl
echo " -I$RPM_BUILD_ROOT%{l_prefix}/lib/perl5/${version} \\" >>$perl
echo " -I$RPM_BUILD_ROOT%{l_prefix}/lib/perl5/${version}/${archname} \\" >>$perl
echo " -I$RPM_BUILD_ROOT%{l_prefix}/lib/perl5/site_perl \\" >>$perl
echo " -I$RPM_BUILD_ROOT%{l_prefix}/lib/perl5/site_perl/${version} \\" >>$perl
echo " -I$RPM_BUILD_ROOT%{l_prefix}/lib/perl5/site_perl/${version}/${archname} \\" >>$perl
echo " \"\$@\"" >>$perl
chmod a+x $perl
$perl Makefile.PL \
PREFIX=$RPM_BUILD_ROOT%{l_prefix} \
APACHE_SRC=../apache_%{V_apache}/src \
DO_HTTPD=1 \
USE_APACI=1 \
PREP_HTTPD=1 \
EVERYTHING=1 \
PERL_TIE_TABLES=1 \
PERL_DIRECTIVE_HANDLERS=1
%{l_make} %{l_mflags}
%{l_make} %{l_mflags} install
mkdir $RPM_BUILD_ROOT%{l_prefix}/perl5
mv $RPM_BUILD_ROOT%{l_prefix}/lib/* $RPM_BUILD_ROOT%{l_prefix}/perl5/
mv $RPM_BUILD_ROOT%{l_prefix}/perl5 $RPM_BUILD_ROOT%{l_prefix}/lib/
%{l_rpmtool} subst "s;^\\(PERL = \\).*;\\1 $perl;" \
-- ../apache_%{V_apache}/src/modules/perl/mod_perl.config
)
%endif
%if "%{mod_php}" == "yes"
( cd php-%{V_mod_php}
CC="%{l_cc}" \
%if "%{mod_ssl}" == "yes"
CFLAGS="%{l_cflags -O} -I%{l_prefix}/include -DEAPI" \
%else
CFLAGS="%{l_cflags -O} -I%{l_prefix}/include" \
%endif
CPPFLAGS="%{l_cflags -O} -I%{l_prefix}/include" \
LDFLAGS="%{l_cflags -O} -L%{l_prefix}/lib" \
%if "%{php_gd}" == "yes"
LIBS="-lpng -lz" \
%endif
./configure \
--prefix=%{l_prefix} \
--with-apache=../apache_%{V_apache} \
--with-config-file-path=%{l_prefix}/etc/apache \
%if "%{php_mysql}" == "yes"
--with-mysql=%{l_prefix} \
%endif
%if "%{php_gd}" == "yes"
--with-gd=%{l_prefix} \
%endif
--disable-shared \
--enable-track-vars
%{l_make} %{l_mflags}
%{l_rpmtool} subst \
"s;^\\(EXTENSION_DIR = \\)\\(%{l_prefix}\\);\\1$RPM_BUILD_ROOT\\2;" \
"s;^\\(PEAR_INSTALLDIR = \\)\\(%{l_prefix}\\);\\1$RPM_BUILD_ROOT\\2;" \
-- config_vars.mk
%{l_make} %{l_mflags} install \
prefix=$RPM_BUILD_ROOT%{l_prefix}
)
%endif
%if "%{mod_dav}" == "yes"
( cd mod_dav-%{V_mod_dav}
CC="%{l_cc}" \
%if "%{mod_ssl}" == "yes"
CFLAGS="%{l_cflags -O}" \
%else
CFLAGS="%{l_cflags -O} -DEAPI" \
%endif
LDFLAGS="%{l_cflags -O}" \
./configure \
--with-apache=../apache_%{V_apache}
%{l_make} %{l_mflags}
%{l_make} %{l_mflags} install
)
%endif
%if "%{mod_layout}" == "yes"
( cd mod_layout-%{V_mod_layout}
mkdir ../apache_%{V_apache}/src/modules/layout
cp * ../apache_%{V_apache}/src/modules/layout/ 2>/dev/null || true
chmod -R u+w ../apache_%{V_apache}/src/modules/layout
)
%endif
%if "%{mod_macro}" == "yes"
( cd mod_macro-%{V_mod_macro}
cp mod_macro.c ../apache_%{V_apache}/src/modules/extra/
)
%endif
%if "%{mod_auth_pam}" == "yes"
( cd mod_auth_pam-%{V_mod_auth_pam}
cp mod_auth_pam.c ../apache_%{V_apache}/src/modules/extra/
)
%endif
%if "%{mod_gzip}" == "yes"
cp %{SOURCE mod_gzip.c} apache_%{V_apache}/src/modules/extra/
%endif
%if "%{mod_zmod}" == "yes"
( cd src
mkdir ../apache_%{V_apache}/src/modules/zmod
%{l_rpmtool} subst 's;"compat.h";"ap_compat.h";' -- modules/zmod/mod_zmod.c
cp modules/zmod/* ../apache_%{V_apache}/src/modules/zmod/
)
%endif
%if "%{mod_fastcgi}" == "yes"
( cd mod_fastcgi_%{V_mod_fastcgi}
mkdir ../apache_%{V_apache}/src/modules/fastcgi
cp -rp * ../apache_%{V_apache}/src/modules/fastcgi/
)
%endif
%if "%{mod_throttle}" == "yes"
( cd mod_throttle-*
cp mod_throttle.c ../apache_%{V_apache}/src/modules/extra/
)
%endif
%if "%{mod_access_referer}" == "yes"
( cd mod_access_referer-%{V_mod_access_referer}
cp mod_access_referer.c ../apache_%{V_apache}/src/modules/extra/
)
%endif
%if "%{mod_roaming}" == "yes"
( cd mod_roaming-%{V_mod_roaming}
cp mod_roaming.c ../apache_%{V_apache}/src/modules/extra/
)
%endif
%if "%{mod_relocate}" == "yes"
( cd mod_relocate-%{V_mod_relocate}
cp mod_relocate.c ../apache_%{V_apache}/src/modules/extra/
)
%endif
( cd apache_%{V_apache}
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \
%if "%{mod_ssl}" == "yes"
EAPI_MM="%{l_prefix}" \
SSL_BASE="%{l_prefix}" \
%endif
%if "%{mod_auth_pam}" == "yes"
LIBS="$LIBS -lpam" \
%endif
./configure \
--target=apache \
--with-layout=GNU \
--prefix=%{l_prefix} \
--sbindir=%{l_prefix}/sbin \
--sysconfdir=%{l_prefix}/etc/apache \
--libexecdir=%{l_prefix}/lib/apache \
--datadir=%{l_prefix}/share/apache \
--localstatedir=%{l_prefix}/var/apache \
--without-confadjust \
--enable-suexec \
--suexec-caller=%{l_fsusr} \
--suexec-userdir=.www \
--enable-module=most \
--with-perl=%{l_prefix}/bin/perl \
%if "%{mod_ssl}" == "yes"
--enable-rule=EAPI \
--enable-module=ssl \
%endif
%if "%{mod_perl}" == "yes"
--activate-module=src/modules/perl/libperl.a \
%endif
%if "%{mod_php}" == "yes"
--activate-module=src/modules/php4/libphp4.a \
%endif
%if "%{mod_dav}" == "yes"
--activate-module=src/modules/dav/libdav.a \
%endif
%if "%{mod_layout}" == "yes"
--activate-module=src/modules/layout/liblayout.a \
%endif
%if "%{mod_macro}" == "yes"
--activate-module=src/modules/extra/mod_macro.o \
%endif
%if "%{mod_auth_pam}" == "yes"
--activate-module=src/modules/extra/mod_auth_pam.o \
%endif
%if "%{mod_gzip}" == "yes"
--activate-module=src/modules/extra/mod_gzip.o \
%endif
%if "%{mod_zmod}" == "yes"
--activate-module=src/modules/zmod/libzmod.a \
%endif
%if "%{mod_fastcgi}" == "yes"
--activate-module=src/modules/fastcgi/libfastcgi.a \
%endif
%if "%{mod_throttle}" == "yes"
--activate-module=src/modules/extra/mod_throttle.o \
%endif
%if "%{mod_access_referer}" == "yes"
--activate-module=src/modules/extra/mod_access_referer.o \
%endif
%if "%{mod_roaming}" == "yes"
--activate-module=src/modules/extra/mod_roaming.o \
%endif
%if "%{mod_relocate}" == "yes"
--activate-module=src/modules/extra/mod_relocate.o \
%endif
--enable-module=so
%{l_make} %{l_mflags -O} build-quiet
)
%install
( cd apache_%{V_apache}
%{l_make} %{l_mflags} install root=$RPM_BUILD_ROOT
mv $RPM_BUILD_ROOT%{l_prefix}/share/apache/icons/small/* \
$RPM_BUILD_ROOT%{l_prefix}/share/apache/icons/
rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/apache/icons/small
rm -f $RPM_BUILD_ROOT%{l_prefix}/share/apache/icons/README*
rm -f $RPM_BUILD_ROOT%{l_prefix}/etc/apache/*.default
rm -f $RPM_BUILD_ROOT%{l_prefix}/etc/apache/srm.conf
rm -f $RPM_BUILD_ROOT%{l_prefix}/etc/apache/access.conf
mv $RPM_BUILD_ROOT%{l_prefix}/share/apache/htdocs/index.html.en \
$RPM_BUILD_ROOT%{l_prefix}/share/apache/htdocs/index.html
rm -f $RPM_BUILD_ROOT%{l_prefix}/share/apache/htdocs/index.html.*
chmod a+rx $RPM_BUILD_ROOT%{l_prefix}/share/apache/cgi-bin/*
mv $RPM_BUILD_ROOT%{l_prefix}/share/apache/cgi-bin \
$RPM_BUILD_ROOT%{l_prefix}/cgi/
rm -rf $RPM_BUILD_ROOT%{l_prefix}/cgi/test-cgi
)
%if "%{mod_perl}" == "yes"
rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/perl
%endif
l_hostname=`%{l_shtool} echo -e %h`
l_domainname=`%{l_shtool} echo -e %d | cut -c2-`
%{l_shtool} install -c -m 644 \
-e "s;@l_prefix@;%{l_prefix};g" \
-e "s;@l_hostname@;$l_hostname;g" \
-e "s;@l_domainname@;$l_domainname;g" \
-e "s;@l_npusr@;%{l_npusr};g" \
-e "s;@l_npgrp@;%{l_npgrp};g" \
%{SOURCE apache.base} \
%{SOURCE apache.conf} \
%{SOURCE apache.vhost} \
$RPM_BUILD_ROOT%{l_prefix}/etc/apache/
mv $RPM_BUILD_ROOT%{l_prefix}/etc/apache/magic $RPM_BUILD_ROOT%{l_prefix}/etc/apache/mime.magic
find $RPM_BUILD_ROOT%{l_prefix} -name perllocal.pod -print | xargs rm -f
%{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d
%{l_shtool} install -c -m 755 -e 's;@l_prefix@;%{l_prefix};g' \
-e 's;@l_fsusr@;%{l_fsusr};g' -e 's;@l_fsgrp@;%{l_fsgrp};g' \
%{SOURCE rc.apache} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
%{l_files_std} \
'%attr(4755,root,%{l_fsgrp}) %{l_prefix}/sbin/suexec' \
'%config %{l_prefix}/etc/apache/*' \
'%config %attr(444,%{l_fsusr},%{l_fsgrp}) %{l_prefix}/etc/apache/apache.base'
%files -f files
%clean
rm -rf $RPM_BUILD_ROOT

41
apache/apache.vhost

@ -0,0 +1,41 @@
##
## apache.vhost -- Apache Virtual Host Configuration Template
## ______________________________________________________
##
## PLEASE DO NOT EDIT THIS TEMPLATE!! COPY IT TO "apache.vhost-xxx",
## REMOVE THIS COMMENT AND EDIT THAT FILE INSTEAD, PLEASE!
## ______________________________________________________
##
<VirtualHost www.foo.com:80>
# server information
ServerName www.foo.com
ServerAlias www.foo.net www.foo.org
ServerAdmin webmaster@foo.com
ServerSignature on
ServerTokens Full
# document area
DocumentRoot /home/foo/htdocs/
<Directory "/home/foo/htdocs/">
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
# executable area
ScriptAlias /cgi-bin/ /home/foo/cgi-bin/
<Directory "/home/foo/cgi-bin">
Options Indexes FollowSymLinks MultiViews ExecCGI
AllowOverride None
Order allow,deny
Allow from all
</Directory>
# logging
CustomLog /home/foo/logs/access.log common
ErrorLog /home/foo/logs/error.log
LogLevel warn
</VirtualHost>

52
apache/rc.apache

@ -0,0 +1,52 @@
#!@l_prefix@/lib/rpm/bash @l_prefix@/etc/rc
##
## rc.apache -- Apache Administration Run-Commands
##
%config
apache_enable="yes"
apache_log_files="@l_prefix@/var/apache/log/access.log"
apache_log_rotsteps="10"
apache_log_rotminsize="10M"
apache_log_rotcomplevel="9"
apache_log_rotprolog="true"
apache_log_rotepilog="true"
apache_err_files="@l_prefix@/var/apache/log/error.log"
apache_err_rotsteps="10"
apache_err_rotminsize="1M"
apache_err_rotcomplevel="9"
apache_err_rotprolog="true"
apache_err_rotepilog="true"
%start -p 200 -u root
opServiceEnabled apache || exit 0
@l_prefix@/sbin/apachectl start
%stop -p 200 -u root
opServiceEnabled apache || exit 0
@l_prefix@/sbin/apachectl stop
sleep 2
%restart -u root
opServiceEnabled apache || exit 0
@l_prefix@/sbin/apachectl restart
%daily -u root
opServiceEnabled apache || exit 0
if [ ".$apache_log_files" != . ]; then
shtool rotate -f \
-n${apache_log_rotsteps} -s${apache_log_rotminsize} -d
-z${apache_log_rotcomplevel} -o@l_fsusr@ -o@l_fsgrp@ -m644 \
-P "$apache_log_rotprolog" \
-E "@l_prefix@/sbin/apachectl restart; $apache_log_rotepilog" \
$apache_log_files
fi
if [ ".$apache_err_files" != . ]; then
shtool rotate -f \
-n${apache_err_rotsteps} -s${apache_err_rotminsize} -d
-z${apache_err_rotcomplevel} -o@l_fsusr@ -o@l_fsgrp@ -m644 \
-P "$apache_err_rotprolog" \
-E "@l_prefix@/sbin/apachectl restart; $apache_err_rotepilog" \
$apache_err_files
fi

13
autoconf/autoconf-2.13.patch

@ -0,0 +1,13 @@
--- acgeneral.m4.old Tue Jan 5 14:27:37 1999
+++ acgeneral.m4 Thu Mar 2 12:04:32 2000
@@ -868,6 +868,10 @@
ac_aux_dir=$ac_dir
ac_install_sh="$ac_aux_dir/install.sh -c"
break
+ elif test -f $ac_dir/shtool; then
+ ac_aux_dir=$ac_dir
+ ac_install_sh="$ac_aux_dir/shtool install -c"
+ break
fi
done
if test -z "$ac_aux_dir"; then

106
autoconf/autoconf.spec

@ -0,0 +1,106 @@
##
## autoconf.spec -- OpenPKG RPM Specification
## Copyright (c) 2000-2001 Cable & Wireless ECRC GmbH
## Copyright (c) 2000-2001 Ralf S. Engelschall <rse@engelschall.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.
##
%define V_latest 2.52
%define V_old 2.13
# package information
Name: autoconf
Summary: GNU Source Autoconfiguration
Group: Development
URL: http://www.gnu.org/software/autoconf/
Vendor: Free Software Foundation
Packager: rse@openpkg.org
Distribution: OpenPKG
License: GPL
Version: %{V_latest}
Release: 1
# list of sources
Source1: ftp://ftp.gnu.org/gnu/autoconf/autoconf-%{V_latest}.tar.gz
Source0: ftp://ftp.gnu.org/gnu/autoconf/autoconf-%{V_old}.tar.gz
Patch0: autoconf-%{V_old}.patch
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 0.9-30, m4
PreReq: OpenPKG, openpkg >= 0.9-30, m4
AutoReq: no
AutoReqProv: no
%description
GNU Autoconf is a package for generating configure scripts. These
scripts are present in a large number of free software packages and
are used to detect system features at compilation time. Autoconf
is mostly needed by people producing packages that run on a wide
variety of platforms--particularly UNIX-a-likes.
%prep
%setup0 -q -c -n autoconf-%{V_latest}
%setup1 -q -T -D -a 1
cd autoconf-%{V_old}
%{l_patch} -p0 <%{SOURCE autoconf-%{V_old}.patch}
%build
PATH="%{l_prefix}/bin:$PATH"; export PATH
( cd autoconf-%{V_old}
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \
./configure \
--prefix=%{l_prefix} \
--program-suffix=-old
%{l_rpmtool} subst \
's;\(acdatadir = $(datadir)/autoconf\);\1/old;' \
-- Makefile
%{l_make} %{l_mflags}
)
( cd autoconf-%{V_latest}
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \
./configure \
--prefix=%{l_prefix}
%{l_make} %{l_mflags}
)
%install
rm -rf $RPM_BUILD_ROOT
( cd autoconf-%{V_old}
%{l_make} %{l_mflags} install \
prefix=$RPM_BUILD_ROOT%{l_prefix}
mv $RPM_BUILD_ROOT%{l_prefix}/info/autoconf.info \
$RPM_BUILD_ROOT%{l_prefix}/info/autoconf-old.info
)
( cd autoconf-%{V_latest}
%{l_make} %{l_mflags} install \
prefix=$RPM_BUILD_ROOT%{l_prefix}
)
rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
%files -f files
%clean
rm -rf $RPM_BUILD_ROOT

77
automake/automake.spec

@ -0,0 +1,77 @@
##
## automake.spec -- OpenPKG RPM Specification
## Copyright (c) 2000-2001 Cable & Wireless Deutschland GmbH
## Copyright (c) 2000-2001 Ralf S. Engelschall <rse@engelschall.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.
##
%define V_real 1.5
%define V_here 1.5
# package information
Name: automake
Summary: Automatic Makefile Generation Tools
Group: Development
URL: http://sources.redhat.com/automake/
Vendor: Free Software Foundation
Packager: rse@openpkg.org
Distribution: OpenPKG
License: GPL
Version: %{V_here}
Release: 1
# list of sources
#Source0: ftp://sourceware.cygnus.com/pub/automake/automake-%{V_real}.tar.gz
Source0: ftp://ftp.gnu.org/gnu/automake/automake-%{V_real}.tar.gz
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 0.9-30, perl
PreReq: OpenPKG, openpkg >= 0.9-30, perl
AutoReq: no
AutoReqProv: no
%description
Automake is a tool for automatically generating Makefiles compliant
with the GNU Coding Standards.
%prep
%setup -q -n automake-%{V_real}
%build
PATH="%{l_prefix}/bin:$PATH"; export PATH
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \
./configure \
--prefix=%{l_prefix}
%{l_make} %{l_mflags}
%install
rm -rf $RPM_BUILD_ROOT
%{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
%files -f files
%clean
rm -rf $RPM_BUILD_ROOT

20
bash/bash-2.05.patch.1

@ -0,0 +1,20 @@
--- execute_cmd.c.orig Thu Mar 22 16:17:23 2001
+++ execute_cmd.c Tue Apr 10 11:29:09 2001
@@ -2792,6 +2792,8 @@
if (tc && (flags & CMD_IGNORE_RETURN))
tc->flags |= CMD_IGNORE_RETURN;
+ old_shell_function = this_shell_function;
+
if (subshell == 0)
{
begin_unwind_frame ("function_calling");
@@ -2878,6 +2880,8 @@
if (variable_context == 0 || this_shell_function == 0)
make_funcname_visible (0);
+
+ this_shell_function = old_shell_function;
return (result);
}

22
bash/bash-2.05.patch.2

@ -0,0 +1,22 @@
--- configure.orig Tue Jan 23 18:57:28 2001
+++ configure Tue Apr 10 11:29:11 2001
@@ -763,7 +763,7 @@
mips-irix6*) opt_bash_malloc=no ;; # needs 8-byte alignment
m68k-sysv) opt_bash_malloc=no ;; # fixes file descriptor leak in closedir
sparc-linux*) opt_bash_malloc=no ;; # sparc running linux; requires ELF
-#*-freebsd*) opt_bash_malloc=no ;; # they claim it's better
+*-freebsd*) opt_bash_malloc=no ;; # they claim it's better
*-aix*) opt_bash_malloc=no ;; # AIX machines
*-nextstep*) opt_bash_malloc=no ;; # NeXT machines running NeXTstep
*-macos*) opt_bash_malloc=no ;; # Apple MacOS X
--- support/config.guess.orig Mon Dec 18 16:43:18 2000
+++ support/config.guess Tue Apr 10 11:29:11 2001
@@ -697,7 +697,7 @@
*:FreeBSD:*:*)
if test -x /usr/bin/objformat; then
if test "elf" = "`/usr/bin/objformat`"; then
- echo ${UNAME_MACHINE}-unknown-freebsdelf`echo ${UNAME_RELEASE}|sed -e 's/[-_].*//'`
+ echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*//'`
exit 0
fi
fi

109
bash/bash.spec

@ -0,0 +1,109 @@
##
## bash.spec -- OpenPKG RPM Specification
## Copyright (c) 2000-2001 Cable & Wireless Deutschland GmbH
## Copyright (c) 2000-2001 Ralf S. Engelschall <rse@engelschall.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: bash
Summary: Bourne-Again Shell
Group: Shell
URL: http://www.gnu.org/software/bash/
Vendor: Free Software Foundation
Packager: rse@openpkg.org
Distribution: OpenPKG
License: GPL
Version: 2.05
Release: 1
# list of sources
Source0: ftp://ftp.gnu.org/gnu/bash/bash-%{version}.tar.gz
Source1: profile
Patch0: bash-%{version}.patch.1
Patch1: bash-%{version}.patch.2
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 0.9-30
PreReq: OpenPKG, openpkg >= 0.9-30
AutoReq: no
AutoReqProv: no
%description
Bash (Bourne-Again Shell) is an sh-compatible command language interpreter
that executes commands read from the standard input or from a file. Bash
also incorporates useful features from the Korn and C shells (ksh and csh).
Bash is intended to be a conformant implementation of the IEEE POSIX Shell
and Tools specification (IEEE Working Group 1003.2).
%prep
%setup -q
%patch0 -p0
%patch1 -p0
%build
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \
./configure \
--prefix=%{l_prefix}
%{l_rpmtool} subst \
's;^\(#define.*SYS_PROFILE["^]*\).*;\1 "%{l_prefix}/etc/bash/profile";' \
-- pathnames.h
%{l_rpmtool} subst \
's;/etc/profile;%{l_prefix}/etc/bash/profile;' \
-- doc/bash.1
%{l_make} %{l_mflags -O}
%install
rm -rf $RPM_BUILD_ROOT
%{l_make} %{l_mflags} install prefix=$RPM_BUILD_ROOT%{l_prefix}
rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir
rm -f $RPM_BUILD_ROOT%{l_prefix}/man/man1/bashbug.1
rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/bashbug
strip $RPM_BUILD_ROOT%{l_prefix}/bin/bash
%{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/etc/bash
%{l_shtool} install -c -m 644 -e "s;@l_prefix@;%{l_prefix};g" \
%{SOURCE profile} $RPM_BUILD_ROOT%{l_prefix}/etc/bash/
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
%{l_files_std} \
'%config %{l_prefix}/etc/bash/profile'
%files -f files
%clean
rm -rf $RPM_BUILD_ROOT
%post
if [ ".$1" = .1 -a -w /etc/shells ]; then
cp -p /etc/shells /tmp/shells
grep -v "$RPM_INSTALL_PREFIX/bin/bash" </tmp/shells >/etc/shells
echo "$RPM_INSTALL_PREFIX/bin/bash" >>/etc/shells
rm -f /tmp/shells
fi
%postun
if [ ".$1" = .0 -a -w /etc/shells ]; then
cp -p /etc/shells /tmp/shells
grep -v "$RPM_INSTALL_PREFIX/bin/bash" </tmp/shells >/etc/shells
rm -f /tmp/shells
fi

58
bash/profile

@ -0,0 +1,58 @@
##
## @l_prefix@/etc/bash/profile -- Global Bash Profile
##
# welcome and goodbye message ;)
echo "$HOSTNAME: user $USER, login at `date`"
trap 'echo "$HOSTNAME: user $USER, logout at `date`"' 0
# initially adjust $PWD to symbolic path
cd $HOME
# provide user and host information in default prompt
PS1="\u@\h\$ "
# session timeout
export TMOUT=3600
# environment permissions
umask 022
ulimit -c 16384
if expr $- : ".*i.*" >/dev/null; then
mesg y
fi
# history functionality
shopt -s histappend
HISTSIZE=100
HISTFILESIZE=100
alias h='history | $PAGER'
# various additional variables
export TMPDIR=/tmp
export TEMPDIR=$TMPDIR
export BLOCKSIZE=1024
# convinient root priviledge switching
root () {
if [ $# -eq 0 -o ".$1" = ".-i" ]; then
ssh -t -x root@localhost cd $PWD \&\& exec ${SHELL-/bin/sh}
elif [ ".$1" = ".-l" ]; then
ssh -x root@localhost cd $PWD \&\& `history | tail -2 | head -1 | cut -c8-`
elif [ ".$1" = ".-t" ]; then
shift
ssh -t -x root@localhost cd $PWD \&\& "$@"
else
ssh -x root@localhost cd $PWD \&\& "$@"
fi
}
# suck in the Bourne-Shell environment of all OpenPKG packages
eval `@l_prefix@/etc/rc -p all env:sh`
# path to user environment init script
if [ -f "$HOME/.bashrc" ]; then
BASH_ENV=$HOME/.bashrc
. $BASH_ENV
fi

75
bc/bc.spec

@ -0,0 +1,75 @@
##
## bc.spec -- OpenPKG RPM Specification
## Copyright (c) 2000-2001 Cable & Wireless Deutschland GmbH
## Copyright (c) 2000-2001 Ralf S. Engelschall <rse@engelschall.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: bc
Summary: Arbitrary Precision Calculator Language
Group: Algorithm
URL: http://www.gnu.org/software/bc/
Vendor: Free Software Foundation
Packager: rse@openpkg.org
Distribution: OpenPKG
License: GPL
Version: 1.06
Release: 1
# list of sources
Source0: ftp://ftp.gnu.org/gnu/bc/%{name}-%{version}.tar.gz
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 0.9-30
PreReq: OpenPKG, openpkg >= 0.9-30
AutoReq: no
AutoReqProv: no
%description
GNU bc is an interactive algebraic language with arbitrary precision which
follows the POSIX 1003.2 draft standard, with several extensions including
multi-character variable names, an `else' statement and full Boolean
expressions. GNU bc does not require the separate GNU dc program.
%prep
%setup -q
%build
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \
./configure \
--prefix=$RPM_BUILD_ROOT%{l_prefix}
%{l_make} %{l_mflags -O}
%install
rm -rf $RPM_BUILD_ROOT
%{l_make} %{l_mflags} install
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
%files -f files
%clean
rm -rf $RPM_BUILD_ROOT

52
bind/bind.patch

@ -0,0 +1,52 @@
--- src/lib/isc/eventlib.c.orig Fri Feb 4 08:25:39 2000
+++ src/lib/isc/eventlib.c Wed Mar 7 11:51:38 2001
@@ -293,9 +293,15 @@
evPrintf(ctx, 4,
"pselect(%d, 0x%lx, 0x%lx, 0x%lx, %d.%09ld)\n",
ctx->fdMax+1,
+#if 0
(u_long)ctx->rdLast.fds_bits[0],
(u_long)ctx->wrLast.fds_bits[0],
(u_long)ctx->exLast.fds_bits[0],
+#else
+ (u_long)&(ctx->rdLast),
+ (u_long)&(ctx->wrLast),
+ (u_long)&(ctx->exLast),
+#endif
tp ? tp->tv_sec : -1,
tp ? tp->tv_nsec : -1);
--- src/lib/isc/ev_files.c.orig Thu Oct 7 22:44:04 1999
+++ src/lib/isc/ev_files.c Wed Mar 7 11:53:04 2001
@@ -140,9 +140,15 @@
evPrintf(ctx, 5,
"evSelectFD(fd %d, mask 0x%x): new masks: 0x%lx 0x%lx 0x%lx\n",
fd, eventmask,
+#if 0
(u_long)ctx->rdNext.fds_bits[0],
(u_long)ctx->wrNext.fds_bits[0],
(u_long)ctx->exNext.fds_bits[0]);
+#else
+ (u_long)&(ctx->rdNext),
+ (u_long)&(ctx->wrNext),
+ (u_long)&(ctx->exNext));
+#endif
return (0);
}
@@ -251,9 +257,15 @@
evPrintf(ctx, 5,
"evDeselectFD(fd %d, mask 0x%x): new masks: 0x%lx 0x%lx 0x%lx\n",
del->fd, eventmask,
+#if 0
(u_long)ctx->rdNext.fds_bits[0],
(u_long)ctx->wrNext.fds_bits[0],
(u_long)ctx->exNext.fds_bits[0]);
+#else
+ (u_long)&(ctx->rdNext),
+ (u_long)&(ctx->wrNext),
+ (u_long)&(ctx->exNext));
+#endif
/* Couldn't free it before now since we were using fields out of it. */
FREE(del);

205
bind/bind.spec

@ -0,0 +1,205 @@
##
## bind.spec -- OpenPKG RPM Specification
## Copyright (c) 2000-2001 Cable & Wireless Deutschland GmbH
## Copyright (c) 2000-2001 Ralf S. Engelschall <rse@engelschall.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: bind
Summary: Berkeley Internet Name Domain (BIND)
Group: DNS
URL: http://www.isc.org/products/BIND/
Vendor: Free Software Foundation
Packager: rse@openpkg.org
Distribution: OpenPKG
License: GPL
Version: 8.2.4
Release: 7
# list of sources
Source0: ftp://ftp.isc.org/isc/bind/src/%{version}/bind-src.tar.gz
Source1: ftp://ftp.isc.org/isc/bind/src/%{version}/bind-doc.tar.gz
Source2: db.root
Source3: db.root.sh
Source4: db.localhost
Source5: db.127.0.0
Source6: named.conf
Source7: rc.bind
Patch0: bind.patch
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 0.9-30
PreReq: OpenPKG, openpkg >= 0.9-30
AutoReq: no
AutoReqProv: no
%description
Berkeley Internet Name Domain (BIND) is an implementation of
the Domain Name System (DNS) protocols and provides an openly
redistributable reference implementation of the major components
of the Domain Name System, including a Domain Name System server
(named)
%package sys
Summary: Berkeley Internet Name Domain (BIND) Daemon
Group: DNS
Conflicts: bind < 8.2.4-4
AutoReq: no
AutoReqProv: no
%description sys
Berkeley Internet Name Domain (BIND) is an implementation of
the Domain Name System (DNS) protocols and provides an openly
redistributable reference implementation of the major components
of the Domain Name System, including a Domain Name System server
(named)
%package usr
Summary: Berkeley Internet Name Domain (BIND) Client Utilities
Group: DNS
Conflicts: bind < 8.2.4-4
AutoReq: no
AutoReqProv: no
%description usr
Berkeley Internet Name Domain (BIND) is an implementation of
the Domain Name System (DNS) protocols and provides an openly
redistributable reference implementation of the major components
of the Domain Name System, including a suite of client utilities
for verifying the proper operation of the DNS server.
%prep
%setup0 -q -c -n bind-%{version}
%setup1 -q -T -D -a 1
%patch0 -p0
%build
cd src
# make sure BIND accepts our overriding parameters later
systype=`sh ./port/systype`
rm -f .settings .systype
echo "'DESTINC=/dummy'" >>port/$systype/Makefile.set
echo "'DESTLIB=/dummy'" >>port/$systype/Makefile.set
# find a reasonable compiler, but because of BIND v8's
# system dependend linking stuff, we have to use the vendor
# version on some platforms.
cc="%{l_cc}"
case $systype in
freebsd ) cc="/usr/bin/cc" ;;
esac
# now configure and build the package
%{l_make} %{l_mflags} \
CC="$cc" \
DESTDIR="$RPM_BUILD_ROOT" \
DESTBIN="%{l_prefix}/bin" \
DESTSBIN="%{l_prefix}/sbin" \
DESTEXEC="%{l_prefix}/libexec/bind" \
DESTHELP="%{l_prefix}/etc/bind" \
DESTETC="%{l_prefix}/etc/bind" \
DESTINC="%{l_prefix}/include/bind" \
DESTLIB="%{l_prefix}/lib" \
DESTRUN="%{l_prefix}/var/bind"
%install
rm -rf $RPM_BUILD_ROOT
# install the standard stuff
( cd src
%{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT INSTALL_LIB=""
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
)
# strip down installation
rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/mkservdb
rm -f $RPM_BUILD_ROOT%{l_prefix}/etc/bind/nslookup.help
rm -rf $RPM_BUILD_ROOT%{l_prefix}/include
rm -rf $RPM_BUILD_ROOT%{l_prefix}/lib
rm -f $RPM_BUILD_ROOT%{l_prefix}/sbin/irpd
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
strip $RPM_BUILD_ROOT%{l_prefix}/sbin/* >/dev/null 2>&1 || true
# install manual pages
( cd doc/man
for i in 1 8; do
%{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/man/man$i
%{l_shtool} install -c *.$i $RPM_BUILD_ROOT%{l_prefix}/man/man$i/
done
)
# remove superfluous manual pages
rm -f $RPM_BUILD_ROOT%{l_prefix}/man/man1/mkdep.1
# install run-command script
%{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d
%{l_shtool} install -c -m 755 \
-e 's;@l_prefix@;%{l_prefix};g' \
-e 's;@l_fsusr@;%{l_fsusr};g' \
-e 's;@l_fsgrp@;%{l_fsgrp};g' \
%{SOURCE rc.bind} \
$RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
# install a reasonable default configuration
%{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/etc/bind
%{l_shtool} install -c -m 644 -e 's;@l_prefix@;%{l_prefix};g' \
%{SOURCE named.conf} \
$RPM_BUILD_ROOT%{l_prefix}/etc/bind/
%{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/etc/bind/named.db
%{l_shtool} install -c -m 644 \
%{SOURCE db.127.0.0} \
%{SOURCE db.localhost} \
%{SOURCE db.root} \
%{SOURCE db.root.sh} \
$RPM_BUILD_ROOT%{l_prefix}/etc/bind/named.db/
# create an empty var directory
%{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/var/bind
# determine the installed files
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
%{l_files_std} \
'%config %{l_prefix}/etc/bind/named.conf' \
'%config %{l_prefix}/etc/bind/named.db/*'
egrep -v "/(bin|man1)/" files >files-sys
egrep -v "/(etc|libexec|sbin|man8|var)/" files >files-usr
%files sys -f files-sys
%files usr -f files-usr
%clean
rm -rf $RPM_BUILD_ROOT
%pre
if [ $1 -gt 1 ]; then
# stop daemon before any upgrade
$RPM_INSTALL_PREFIX/sbin/ndc stop >/dev/null 2>&1
fi
%preun
if [ $1 -eq 0 ]; then
# stop daemon before removing package
$RPM_INSTALL_PREFIX/sbin/ndc stop >/dev/null 2>&1
# remove dynamically generated files
rm -f $RPM_INSTALL_PREFIX/var/bind/*
fi

18
bind/db.127.0.0

@ -0,0 +1,18 @@
;
; db.127.0.0 -- zonefile for the reverse mapping of the loopback network
;
$ORIGIN 0.0.127.in-addr.arpa.
$TTL 86400 ; = 1D
@ IN SOA localhost. root.localhost. (
2001010101 ; SERIAL
6H ; REFRESH: Secondaries refresh
60M ; RETRY: Secondaries retry
1W ; EXPIRE: Maximum TTL of data (expiry)
1D ; MINTTL: Minimum TTL of data (expiry)
)
IN NS @
1 IN PTR localhost.

18
bind/db.localhost

@ -0,0 +1,18 @@
;
; db.localhost -- zonefile for the forward mapping of the loopback network
;
$ORIGIN localhost.
$TTL 86400 ; = 1D
@ IN SOA localhost. root.localhost. (
2001010101 ; SERIAL
6H ; REFRESH: Secondaries refresh
60M ; RETRY: Secondaries retry
1W ; EXPIRE: Maximum TTL of data (expiry)
1D ; MINTTL: Minimum TTL of data (expiry)
)
IN NS @
IN A 127.0.0.1

36
bind/db.root

@ -0,0 +1,36 @@
;
; db.root -- BIND "hint" file
; [automatically created on Wed Jan 17 10:27:26 CET 2001 by db.root.sh]
;
; Notice: Although this file officially is only used to initially load
; the cache of the BIND nameserver, it is actually used to specify the
; root nameservers only.
;
. 99999999 IN NS A.ROOT-SERVERS.NET.
. 99999999 IN NS B.ROOT-SERVERS.NET.
. 99999999 IN NS C.ROOT-SERVERS.NET.
. 99999999 IN NS D.ROOT-SERVERS.NET.
. 99999999 IN NS E.ROOT-SERVERS.NET.
. 99999999 IN NS F.ROOT-SERVERS.NET.
. 99999999 IN NS G.ROOT-SERVERS.NET.
. 99999999 IN NS H.ROOT-SERVERS.NET.
. 99999999 IN NS I.ROOT-SERVERS.NET.
. 99999999 IN NS J.ROOT-SERVERS.NET.
. 99999999 IN NS K.ROOT-SERVERS.NET.
. 99999999 IN NS L.ROOT-SERVERS.NET.
. 99999999 IN NS M.ROOT-SERVERS.NET.
A.ROOT-SERVERS.NET. 99999999 IN A 198.41.0.4
B.ROOT-SERVERS.NET. 99999999 IN A 128.9.0.107
C.ROOT-SERVERS.NET. 99999999 IN A 192.33.4.12
D.ROOT-SERVERS.NET. 99999999 IN A 128.8.10.90
E.ROOT-SERVERS.NET. 99999999 IN A 192.203.230.10
F.ROOT-SERVERS.NET. 99999999 IN A 192.5.5.241
G.ROOT-SERVERS.NET. 99999999 IN A 192.112.36.4
H.ROOT-SERVERS.NET. 99999999 IN A 128.63.2.53
I.ROOT-SERVERS.NET. 99999999 IN A 192.36.148.17
J.ROOT-SERVERS.NET. 99999999 IN A 198.41.0.10
K.ROOT-SERVERS.NET. 99999999 IN A 193.0.14.129
L.ROOT-SERVERS.NET. 99999999 IN A 198.32.64.12
M.ROOT-SERVERS.NET. 99999999 IN A 202.12.27.33

32
bind/db.root.sh

@ -0,0 +1,32 @@
#!/bin/sh
SERVER=a.root-servers.net
TMPFILE=/tmp/tmp.$$
ROOTFILE=./db.root
date=`date`
cat >$ROOTFILE <<EOT
;
; db.root -- BIND "hint" file
; [automatically created on $date by db.root.sh]
;
; Notice: Although this file officially is only used to initially load
; the cache of the BIND nameserver, it is actually used to specify the
; root nameservers only.
;
EOT
nslookup >$TMPFILE <<-EOF
server $SERVER
set type=NS
.
EOF
cat $TMPFILE |\
awk '
/nameserver =/ { printf("%-20s 99999999 IN NS %s.\n", ".", $NF); }
/address =/ { printf("%-20s 99999999 IN A %s\n", $1 ".", $NF); }
' |\
sort >>$ROOTFILE
rm $TMPFILE
echo "" >>$ROOTFILE

60
bind/named.conf

@ -0,0 +1,60 @@
##
## @l_prefix@/etc/bind/named.conf -- BIND configuration
##
logging {
channel logfile {
file "@l_prefix@/var/bind/named.log";
severity info;
print-category yes;
print-severity no;
print-time yes;
};
category default { logfile; };
category security { logfile; default_syslog; };
category panic { logfile; default_syslog; };
category packet { null; };
category eventlib { null; };
};
options {
directory "@l_prefix@/etc/bind/named.db";
check-names master warn;
host-statistics no;
allow-query { any; };
allow-transfer { any; };
transfers-in 10;
transfers-per-ns 2;
max-transfer-time-in 120;
transfer-format one-answer;
cleaning-interval 60;
interface-interval 60;
statistics-interval 59;
#listen-on port 53 { 127.0.0.1; };
#query-source address 127.0.0.1 port *;
#transfer-source 127.0.0.1;
};
zone "." IN {
type hint;
file "db.root";
};
zone "localhost" IN {
type master;
file "db.localhost";
notify no;
check-names fail;
allow-update { none; };
allow-transfer { any; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "db.127.0.0";
notify no;
check-names fail;
allow-update { none; };
allow-transfer { any; };
};

40
bind/rc.bind

@ -0,0 +1,40 @@
#!@l_prefix@/lib/rpm/bash @l_prefix@/etc/rc
##
## rc.bind -- Run-Commands for BIND Daemon
##
%config
bind_enable="yes"
bind_log_numfiles="5"
bind_log_minsize="512K"
bind_log_complevel="9"
%start -p 200 -u root
if opServiceEnabled bind; then
@l_prefix@/sbin/ndc start
fi
%stop -p 200 -u root
if opServiceEnabled bind; then
@l_prefix@/sbin/ndc stop
fi
%restart -u root
if opServiceEnabled bind; then
@l_prefix@/sbin/ndc restart
fi
%reload -u root
if opServiceEnabled bind; then
@l_prefix@/sbin/ndc reload
fi
%daily -u root
if opServiceEnabled bind; then
shtool rotate -f \
-n${bind_log_numfiles} -s${bind_log_minsize} \
-d -z${bind_log_complevel} -o@l_fsusr@ -o@l_fsgrp@ -m644 \
-E '@l_prefix@/sbin/ndc restart' \
@l_prefix@/var/bind/named.log
fi

79
bison/bison.spec

@ -0,0 +1,79 @@
##
## bison.spec -- OpenPKG RPM Specification
## Copyright (c) 2000-2001 Cable & Wireless Deutschland GmbH
## Copyright (c) 2000-2001 Ralf S. Engelschall <rse@engelschall.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: bison
Summary: Yacc-compatible LALR(1) Parser Generator
Group: Language
URL: http://www.gnu.org/software/bison/
Vendor: Free Software Foundation
Packager: rse@openpkg.org
Distribution: OpenPKG
License: GPL
Version: 1.28
Release: 1
# list of sources
Source0: ftp://ftp.gnu.org/gnu/bison/bison-%{version}.tar.gz
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 0.9-30, make
PreReq: OpenPKG, openpkg >= 0.9-30
AutoReq: no
AutoReqProv: no
%description
Bison is a general-purpose parser generator that converts a grammar
description for an LALR(1) context-free grammar into a C program to parse
that grammar. Once you are proficient with bison, you may use it to
develop a wide range of language parsers, from those used in simple desk
calculators to complex programming languages. Bison is upward compatible
with yacc: all properly-written yacc grammars ought to work with bison
with no change. Anyone familiar with yacc should be able to use bison with
little trouble.
%prep
%setup -q
%build
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \
./configure \
--prefix=%{l_prefix}
%{l_make} %{l_mflags}
%install
rm -rf $RPM_BUILD_ROOT
%{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
%files -f files
%clean
rm -rf $RPM_BUILD_ROOT

73
bzip2/bzip2.spec

@ -0,0 +1,73 @@
##
## bzip2.spec -- OpenPKG RPM Specification
## Copyright (c) 2000-2001 Cable & Wireless Deutschland GmbH
## Copyright (c) 2000-2001 Ralf S. Engelschall <rse@engelschall.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: bzip2
Summary: De-/Compression with BZIP2 Algorithm
Group: Compression
URL: http://sources.redhat.com/bzip2/
Vendor: Free Software Foundation
Packager: rse@openpkg.org
Distribution: OpenPKG
License: GPL
Version: 1.0.1
Release: 1
# list of sources
Source0: ftp://sourceware.cygnus.com/pub/bzip2/v100/bzip2-%{version}.tar.gz
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 0.9-30
PreReq: OpenPKG, openpkg >= 0.9-30
AutoReq: no
AutoReqProv: no
%description
BZIP2 is a freely available, patent free, high-quality data
compressor. It typically compresses files to within 10% to 15%
of the best available techniques (the PPM family of statistical
compressors), whilst being around twice as fast at compression and
six times faster at decompression.
%prep
%setup -q
%build
%{l_make} %{l_mflags} CC="%{l_cc}" CFLAGS="%{l_cflags -O}"
%install
rm -rf $RPM_BUILD_ROOT
%{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}
%{l_make} %{l_mflags} install PREFIX=$RPM_BUILD_ROOT%{l_prefix}
rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* 2> /dev/null || true
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
%files -f files
%clean
rm -rf $RPM_BUILD_ROOT

92
calc/calc.spec

@ -0,0 +1,92 @@
##
## calc.spec -- OpenPKG RPM Specification
## Copyright (c) 2000-2001 Cable & Wireless Deutschland GmbH
## Copyright (c) 2000-2001 Ralf S. Engelschall <rse@engelschall.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: calc
Summary: C-Style Arbitrary Precision Calculator
Group: Algorithm
URL: http://www.isthe.com/chongo/tech/comp/calc/
Vendor: David I. Bell et al.
Packager: rse@openpkg.org
Distribution: OpenPKG
License: GPL
Version: 2.11.4t2
Release: 1
# list of sources
Source0: ftp://ftp.gnu.org/gnu/bc/%{name}-%{version}.tar.gz
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 0.9-30
PreReq: OpenPKG, openpkg >= 0.9-30
AutoReq: no
AutoReqProv: no
%description
Calc is an interactive calculator which provides for easy large
numeric calculations, but which also can be easily programmed
for difficult or long calculations. It can accept a command line
argument, in which case it executes that single command and exits.
Otherwise, it enters interactive mode. In this mode, it accepts
commands one at a time, processes them, and displays the answers.
In the simplest case, commands are simply expressions which are
evaluated.
%prep
%setup -q
%build
chmod -R u+w .
%{l_rpmtool} subst "s;<malloc.h>;<stdlib.h>;" -- *.[ch]
%{l_make} %{l_mflags} \
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \
BINDIR=%{l_prefix}/bin \
TOPDIR=%{l_prefix}/lib \
INCDIR=%{l_prefix}/include \
MANDIR=%{l_prefix}/man/man1
%install
rm -rf $RPM_BUILD_ROOT
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/bin \
$RPM_BUILD_ROOT%{l_prefix}/lib \
$RPM_BUILD_ROOT%{l_prefix}/man/man1
%{l_make} %{l_mflags} install \
BINDIR=$RPM_BUILD_ROOT%{l_prefix}/bin \
TOPDIR=$RPM_BUILD_ROOT%{l_prefix}/lib \
INCDIR=$RPM_BUILD_ROOT%{l_prefix}/include \
MANDIR=$RPM_BUILD_ROOT%{l_prefix}/man/man1
rm -rf $RPM_BUILD_ROOT%{l_prefix}/lib/calc/test*
rm -rf $RPM_BUILD_ROOT%{l_prefix}/bin/cscript
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* 2> /dev/null || true
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
%files -f files
%clean
rm -rf $RPM_BUILD_ROOT

21
cpio/cpio-2.4.2.patch

@ -0,0 +1,21 @@
--- rmt.c.orig Tue Feb 27 17:38:30 2001
+++ rmt.c Tue Feb 27 17:38:37 2001
@@ -75,7 +75,6 @@
char count[SSIZE], mode[SSIZE], pos[SSIZE], op[SSIZE];
extern errno;
-extern char *sys_errlist[];
char resp[BUFSIZ];
FILE *debug;
--- userspec.c.orig Tue Feb 27 17:38:08 2001
+++ userspec.c Tue Feb 27 17:38:13 2001
@@ -82,8 +82,6 @@
#define isdigit(c) ((c) >= '0' && (c) <= '9')
-char *strdup ();
-
/* Return nonzero if STR represents an unsigned decimal integer,
otherwise return 0. */

80
cpio/cpio.spec

@ -0,0 +1,80 @@
##
## cpio.spec -- OpenPKG RPM Specification
## Copyright (c) 2000-2001 Cable & Wireless Deutschland GmbH
## Copyright (c) 2000-2001 Ralf S. Engelschall <rse@engelschall.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: cpio
Summary: Un-/Packing of CPIO Archive Files
Group: Archiver
URL: http://www.gnu.org/software/cpio/
Vendor: Free Software Foundation
Packager: rse@openpkg.org
Distribution: OpenPKG
License: GPL
Version: 2.4.2
Release: 1
# list of sources
Source0: ftp://ftp.gnu.org/pub/gnu/cpio/cpio-%{version}.tar.gz
Patch0: cpio-%{version}.patch
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 0.9-30
PreReq: OpenPKG, openpkg >= 0.9-30
AutoReq: no
AutoReqProv: no
%description
CPIO copies files into or out of a CPIO or TAR archive, which is a
file that contains other files plus information about them, such
as their file name, owner, timestamps, and access permissions. The
archive can be another file on the disk, a magnetic tape, or a pipe.
%prep
%setup -q
%patch -p0
%build
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \
./configure \
--prefix=%{l_prefix}
%{l_make} %{l_mflags -O} cpio
%install
rm -rf $RPM_BUILD_ROOT
%{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/bin
%{l_shtool} install -c -s -m 755 cpio $RPM_BUILD_ROOT%{l_prefix}/bin/
%{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/man/man1
%{l_shtool} install -c -m 644 cpio.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/
%{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/info
%{l_shtool} install -c -m 644 cpio.info $RPM_BUILD_ROOT%{l_prefix}/info/
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
%files -f files
%clean
rm -rf $RPM_BUILD_ROOT

79
curl/curl.spec

@ -0,0 +1,79 @@
##
## curl.spec -- OpenPKG RPM Specification
## Copyright (c) 2000-2001 Cable & Wireless Deutschland GmbH
## Copyright (c) 2000-2001 Ralf S. Engelschall <rse@engelschall.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: curl
Summary: Batch Client for HTTP, HTTPS, FTP, LDAP and DICT protocol
Group: Web
URL: http://curl.haxx.se/
Vendor: Daniel Stenberg
Packager: rse@openpkg.org
Distribution: OpenPKG
License: GPL
Version: 7.8.1
Release: 2
# list of sources
Source0: http://curl.haxx.se/download/curl-%{version}.tar.bz2
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 0.9-30, openssl
PreReq: OpenPKG, openpkg >= 0.9-30
AutoReq: no
AutoReqProv: no
%description
Curl is the tool for transferring files with URL syntax, supporting FTP,
HTTP, HTTPS, GOPHER, TELNET, DICT, FILE and LDAP. Curl supports HTTPS
certificates, HTTP POST, HTTP PUT, FTP uploading, HTTP form based upload,
proxies, cookies, user+password authentication, file transfer resume and a
busload of other useful tricks.
%prep
%setup -q
%build
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O} -I%{l_prefix}/include" \
CPPFLAGS="-I%{l_prefix}/include" \
LDFLAGS="-L%{l_prefix}/lib" \
./configure \
--prefix=$RPM_BUILD_ROOT%{l_prefix} \
--with-ssl=%{l_prefix} \
--disable-shared
%{l_make} %{l_mflags -O}
%install
rm -rf $RPM_BUILD_ROOT
%{l_make} %{l_mflags} install
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
%files -f files
%clean
rm -rf $RPM_BUILD_ROOT

83
db/db.spec

@ -0,0 +1,83 @@
##
## db.spec -- OpenPKG RPM Specification
## Copyright (c) 2000-2001 Cable & Wireless Deutschland GmbH
## Copyright (c) 2000-2001 Ralf S. Engelschall <rse@engelschall.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: db
Summary: Berkeley-DB Library
Group: Database
URL: http://www.sleepycat.com/
Vendor: Keith Bostic
Packager: rse@openpkg.org
Distribution: OpenPKG
License: GPL
Version: 3.3.11
Release: 2
# list of sources
Source0: http://www.sleepycat.com/update/%{version}/db-%{version}.tar.gz
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 0.9-30
PreReq: OpenPKG, openpkg >= 0.9-30
AutoReq: no
AutoReqProv: no
%description
Berkeley DB is a programmatic toolkit that provides high-performance
built-in database support for desktop and server applications and
for information appliances. The Berkeley DB access methods include
B+tree, Extended Linear Hashing, Fixed and Variable-length records,
and Queues. Berkeley DB provides full transactional support,
database recovery, online backups, and separate access to locking,
logging and shared memory caching subsystems.
%prep
%setup -q
%build
cd build_unix
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \
../dist/configure \
--prefix=%{l_prefix} \
--disable-shared
%{l_make} %{l_mflags -O}
%install
rm -rf $RPM_BUILD_ROOT
( cd build_unix
%{l_make} %{l_mflags} install prefix=$RPM_BUILD_ROOT%{l_prefix})
rm -rf $RPM_BUILD_ROOT%{l_prefix}/docs
rm -f $RPM_BUILD_ROOT%{l_prefix}/include/db_185.h
rm -f $RPM_BUILD_ROOT%{l_prefix}/include/db_cxx.h
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
%files -f files
%clean
rm -rf $RPM_BUILD_ROOT

84
dhcpd/dhcpd.conf

@ -0,0 +1,84 @@
##
## dhcpd.conf -- ISC DHCP Daemon Configuration
##
# Options applicable to all subnets
option domain-name "quux.dom";
authoritative;
default-lease-time 600;
max-lease-time 7200;
ddns-update-style none;
use-host-decl-names on;
# Define some non-standard options
option freebsd-swappath code 128 = text;
option freebsd-rootopts code 130 = text;
option freebsd-swapopts code 131 = text;
# Define a particular sample subnet
subnet 192.168.1.0 netmask 255.255.255.0 {
# Options applicable to this particular subnet
option broadcast-address 192.168.1.255;
option subnet-mask 255.255.255.0;
option routers 192.168.1.1;
option domain-name-servers 192.168.1.2;
# Dynamic DNS (DDNS) Updating
ddns-updates off;
ddns-domainname "quux.dom";
ddns-rev-domainname "in-addr.arpa";
# Pool of known clients (i.e. MAC known but IP not specified)
pool {
range 192.168.1.100 192.168.1.149;
min-lease-time 600; # 10min
default-lease-time 43200; # 12hour
max-lease-time 86400; # 24hour
deny unknown clients;
}
# Pool of unknown clients (i.e. MAC not known)
pool {
range 192.168.1.150 192.168.1.199;
min-lease-time 300; # 5min
default-lease-time 3600; # 1hour
max-lease-time 10800; # 3hour
allow unknown clients;
}
}
# The list of clients we explicitly configure
group {
# Just assign a fixed IP address for machine "quux1"
host quux1 {
hardware ethernet 01:02:03:00:00:01;
fixed-address 192.168.1.3;
}
# Provide full boot information for a FreeBSD diskless client "quux2":
# On the server, create a 32MB swapfile /dlc/fs/swap/swap.192.168.1.4
# with `dd if=/dev/zero of=swap.141.1.129.4 bs=1m count=32' and the
# filesystem /dlc/fs/quux2 with `cd /usr/src; make buildworld; make
# installworld DESTDIR=/dlc/fs/quux2'. Then use Etherboot for booting.
host quux2 {
hardware ethernet 01:02:03:00:00:02;
fixed-address 192.168.1.4;
next-server 192.168.1.2;
option tftp-server-name "192.168.1.2";
filename "kernel.quux";
always-reply-rfc1048 on;
option root-path "192.168.1.2:/dlc/fs/quux2";
option freebsd-rootopts "rw,noatime";
option swap-server 192.168.1.2;
option freebsd-swappath "192.168.1.2:/dlc/fs/swap";
option freebsd-swapopts "sw";
}
}
# The list of clients we know, but which get IP addresses from pool
group {
host quux3 { hardware ethernet 01:02:03:00:00:03; }
host quux4 { hardware ethernet 01:02:03:00:00:04; }
}

112
dhcpd/dhcpd.spec

@ -0,0 +1,112 @@
##
## dhcpd.spec -- OpenPKG RPM Specification
## Copyright (c) 2000-2001 Cable & Wireless Deutschland GmbH
## Copyright (c) 2000-2001 Ralf S. Engelschall <rse@engelschall.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: dhcpd
Summary: DHCP Daemon
Group: DNS
URL: http://www.isc.org/products/ISC/
Vendor: Internet Software Consortium
Packager: rse@openpkg.org
Distribution: OpenPKG
License: ISC/BSD
Version: 3.0rc12
Release: 1
# list of sources
Source0: ftp://ftp.isc.org/isc/dhcp/dhcp-%{version}.tar.gz
Source1: dhcpd.conf
Source2: rc.dhcpd
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 0.9-30
PreReq: OpenPKG, openpkg >= 0.9-30
AutoReq: no
AutoReqProv: no
%description
This is the ISC DHCP daemon reference implementation.
%prep
%setup -q -n dhcp-%{version}
%build
( echo 'CC = %{l_cc}'
echo 'CFLAGS = %{l_cflags -O}'
echo 'USERBINDIR = %{l_prefix}/bin'
echo 'BINDIR = %{l_prefix}/sbin'
echo 'CLIENTBINDIR = %{l_prefix}/sbin'
echo 'ADMMANDIR = %{l_prefix}/man/man8'
echo 'ADMMANEXT = .8'
echo 'FFMANDIR = %{l_prefix}/man/man5'
echo 'FFMANEXT = .5'
echo 'LIBMANDIR = %{l_prefix}/man/man3'
echo 'LIBMANEXT = .3'
echo 'MANCAT = man'
echo 'ETC = %{l_prefix}/etc/dhcpd'
echo 'VARRUN = %{l_prefix}/var/dhcpd'
echo 'VARDB = %{l_prefix}/var/dhcpd'
echo 'LIBDIR = %{l_prefix}/lib'
echo 'INCDIR = %{l_prefix}/include/dhcpd'
) >>site.conf
./configure
%{l_rpmtool} subst \
's;^[^#]*\(#define[^_]*_PATH_DHCPD_PID[^"]*\).*;\1 "%{l_prefix}/var/dhcpd/dhcpd.pid";' \
's;^[^#]*\(#define[^_]*_PATH_DHCPD_DB[^"]*\).*;\1 "%{l_prefix}/var/dhcpd/dhcpd.leases";' \
's;^[^#]*\(#define[^_]*_PATH_DHCPD_CONF[^"]*\).*;\1 "%{l_prefix}/etc/dhcpd/dhcpd.conf";' \
-- includes/site.h
%{l_make} %{l_mflags}
%install
rm -rf $RPM_BUILD_ROOT
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/bin
%{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
%{l_shtool} install -c -m 644 \
%{SOURCE dhcpd.conf} \
$RPM_BUILD_ROOT%{l_prefix}/etc/dhcpd/dhcpd.conf
chmod a-x $RPM_BUILD_ROOT%{l_prefix}/man/man*/*
rm -f $RPM_BUILD_ROOT%{l_prefix}/sbin/dhclient-script
rm -f $RPM_BUILD_ROOT%{l_prefix}/man/man8/dhclient-script.8
rm -rf $RPM_BUILD_ROOT%{l_prefix}/man/man3
rm -rf $RPM_BUILD_ROOT%{l_prefix}/lib
rm -rf $RPM_BUILD_ROOT%{l_prefix}/include
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* 2> /dev/null || true
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/etc/rc.d
%{l_shtool} install -c -m 755 -e 's;@l_prefix@;%{l_prefix};g' \
%{SOURCE rc.dhcpd} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
%{l_shtool} install -c -m 644 /dev/null \
$RPM_BUILD_ROOT%{l_prefix}/var/dhcpd/dhcpd.leases
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
%{l_files_std} \
'%config %{l_prefix}/etc/dhcpd/dhcpd.conf'
%files -f files
%clean
rm -rf $RPM_BUILD_ROOT

19
dhcpd/rc.dhcpd

@ -0,0 +1,19 @@
#!@l_prefix@/lib/rpm/bash @l_prefix@/etc/rc
##
## rc.dhcpd -- Run-Commands for DHCP Daemon
##
%start -p 200 -u root
@l_prefix@/sbin/dhcpd >/dev/null 2>&1
%stop -p 200 -u root
kill -TERM `cat @l_prefix@/var/dhcpd/dhcpd.pid`
%restart -u root
kill -TERM `cat @l_prefix@/var/dhcpd/dhcpd.pid`
sleep 2
@l_prefix@/sbin/dhcpd >/dev/null 2>&1
%reload -u root
kill -HUP `cat @l_prefix@/var/dhcpd/dhcpd.pid`

89
emacs/emacs.spec

@ -0,0 +1,89 @@
##
## emacs.spec -- OpenPKG RPM Specification
## Copyright (c) 2000-2001 Cable & Wireless Deutschland GmbH
## Copyright (c) 2000-2001 Ralf S. Engelschall <rse@engelschall.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: emacs
Summary: The GNU EMACS Text Editor
Group: Editor
URL: http://www.gnu.org/software/emacs/
Vendor: Richard Stallmann et al.
Packager: rse@openpkg.org
Distribution: OpenPKG
License: GPL
Version: 20.7
Release: 1
# list of sources
Source0: ftp://ftp.gnu.org/gnu/emacs/emacs-%{version}.tar.gz
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 0.9-30
PreReq: OpenPKG, openpkg >= 0.9-30
AutoReq: no
AutoReqProv: no
%description
The popular GNU EMACS text editor.
%prep
%setup -q
%build
%{l_rpmtool} subst \
's;/${version}/;/;g' \
's;/${version};;g' \
's;/${configuration};;g' \
-- configure
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \
./configure \
--prefix=%{l_prefix} \
--with-x-toolkit=no \
--without-x
%{l_make} %{l_mflags -O}
%install
rm -rf $RPM_BUILD_ROOT
%{l_make} %{l_mflags} install prefix=$RPM_BUILD_ROOT%{l_prefix}
rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir
rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/emacs-%{version}
rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/rcs-checkin
rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/[ce]tags
rm -f $RPM_BUILD_ROOT%{l_prefix}/man/man1/[ce]tags.1
rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/b2m
mv $RPM_BUILD_ROOT%{l_prefix}/info $RPM_BUILD_ROOT%{l_prefix}/info.old
%{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/info
mv $RPM_BUILD_ROOT%{l_prefix}/info.old/emacs* $RPM_BUILD_ROOT%{l_prefix}/info/
rm -rf $RPM_BUILD_ROOT%{l_prefix}/info.old
rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/emacs/etc
rmdir $RPM_BUILD_ROOT%{l_prefix}/share/emacs/leim
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
%files -f files
%clean
rm -rf $RPM_BUILD_ROOT

80
fetchmail/fetchmail.spec

@ -0,0 +1,80 @@
##
## fetchmail.spec -- OpenPKG RPM Specification
## Copyright (c) 2000-2001 Cable & Wireless Deutschland GmbH
## Copyright (c) 2000-2001 Ralf S. Engelschall <rse@engelschall.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: fetchmail
Summary: Batch client for POP and IMAP protocols
Group: Mail
URL: http://www.tuxedo.org/~esr/fetchmail/
Vendor: Eric S. Raymond
Packager: rse@openpkg.org
Distribution: OpenPKG
License: GPL
Version: 5.9.0
Release: 1
# list of sources
Source0: http://www.tuxedo.org/~esr/fetchmail/fetchmail-%{version}.tar.gz
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 0.9-30, openssl, make
PreReq: OpenPKG, openpkg >= 0.9-30
AutoReq: no
AutoReqProv: no
%description
Fetchmail is a full-featured, robust, well-documented remote-mail
retrieval and forwarding utility intended to be used over on-demand
TCP/IP links (such as SLIP or PPP connections). It supports every
remote-mail protocol now in use on the Internet: POP2, POP3, RPOP,
APOP, KPOP, all flavors of IMAP, and ESMTP ETRN. It can even support
IPv6 and IPSEC.
%prep
%setup -q
%build
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \
./configure \
--prefix=%{l_prefix} \
--with-ssl=%{l_prefix} \
--without-kerberos \
--without-kerberos5 \
--disable-nls
%{l_make} %{l_mflags}
%install
rm -rf $RPM_BUILD_ROOT
%{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
%files -f files
%clean
rm -rf $RPM_BUILD_ROOT

83
flex/flex.spec

@ -0,0 +1,83 @@
##
## flex.spec -- OpenPKG RPM Specification
## Copyright (c) 2000-2001 Cable & Wireless Deutschland GmbH
## Copyright (c) 2000-2001 Ralf S. Engelschall <rse@engelschall.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: flex
Summary: Fast Lexical Analyzer Generator
Group: Language
URL: http://www.gnu.org/software/flex/
Vendor: Free Software Foundation
Packager: rse@openpkg.org
Distribution: OpenPKG
License: BSD
Version: 2.5.4a
Release: 1
# list of sources
Source0: ftp://ftp.gnu.org/non-gnu/flex/flex-%{version}.tar.gz
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 0.9-30, bison
PreReq: OpenPKG, openpkg >= 0.9-30
AutoReq: no
AutoReqProv: no
%description
Flex is a tool for generating scanners: programs which recognized lexical
patterns in text. flex reads the given input files for a description of a
scanner to generate. The description is in the form of pairs of regular
expressions and C code, called rules. flex generates as output a C source
file, lex.yy.c, which defines a routine yylex(). This file is compiled and
linked with the -lfl library to produce an executable. When the executable
is run, it analyzes its input for occurrences of the regular expressions.
Whenever it finds one, it executes the corresponding C code.
%prep
%setup -q -n flex-2.5.4
%build
PATH="%{l_prefix}/bin:%{l_prefix}/sbin:$PATH"
export PATH
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \
./configure \
--prefix=$RPM_BUILD_ROOT%{l_prefix}
%{l_make} %{l_mflags}
%install
rm -rf $RPM_BUILD_ROOT
%{l_make} %{l_mflags} install
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/flex++
ln $RPM_BUILD_ROOT%{l_prefix}/bin/flex $RPM_BUILD_ROOT%{l_prefix}/bin/flex++
ln $RPM_BUILD_ROOT%{l_prefix}/man/man1/flex.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/flex++.1
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
%files -f files
%clean
rm -rf $RPM_BUILD_ROOT

95
freetype/freetype.spec

@ -0,0 +1,95 @@
##
## freetype.spec -- OpenPKG RPM Specification
## Copyright (c) 2000-2001 Cable & Wireless Deutschland GmbH
## Copyright (c) 2000-2001 Ralf S. Engelschall <rse@engelschall.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.
##
%define V_one 1.3.1
%define V_two 2.0.4
# package information
Name: freetype
Summary: A TrueType Font (TTF) Rendering Library
Group: Graphics
URL: http://www.freetype.org/
Vendor: Free Software Foundation
Packager: rse@openpkg.org
Distribution: OpenPKG
License: GPL
Version: %{V_two}
Release: 2
# list of sources
Source0: ftp://ftp.freetype.org/pub/freetype1/freetype-%{V_one}.tar.gz
Source1: ftp://ftp.freetype.org/pub/freetype2/freetype-%{V_two}.tar.gz
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 0.9-30
PreReq: OpenPKG, openpkg >= 0.9-30
AutoReq: no
AutoReqProv: no
%description
FreeType is a full-featured rendering library for TrueType Fonts
(TTF).
%prep
%setup0 -q -c -n freetype-%{version}
%setup1 -q -T -D -a 1
%build
( cd freetype-%{V_one}
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \
./configure \
--prefix=$RPM_BUILD_ROOT%{l_prefix} \
--disable-shared \
--disable-nls
%{l_make} %{l_mflags}
)
( cd freetype-%{V_two}
%{l_make} %{l_mflags} setup \
CFG="--prefix=$RPM_BUILD_ROOT%{l_prefix}"
%{l_make} %{l_mflags}
)
%install
rm -rf $RPM_BUILD_ROOT
( cd freetype-%{V_one}
%{l_make} %{l_mflags} install
)
( cd freetype-%{V_two}
%{l_make} %{l_mflags} install
%{l_rpmtool} subst \
's;^\(prefix=\).*;\1%{l_prefix};' \
-- $RPM_BUILD_ROOT%{l_prefix}/bin/freetype-config
rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/*.orig
)
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
%files -f files
%clean
rm -rf $RPM_BUILD_ROOT

84
gawk/gawk.spec

@ -0,0 +1,84 @@
##
## gawk.spec -- OpenPKG RPM Specification
## Copyright (c) 2000-2001 Cable & Wireless Deutschland GmbH
## Copyright (c) 2000-2001 Ralf S. Engelschall <rse@engelschall.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: gawk
Summary: Pattern Scanning and Processing Language
Group: Language
URL: http://www.gnu.org/software/gawk/
Vendor: Free Software Foundation
Packager: rse@openpkg.org
Distribution: OpenPKG
License: GPL
Version: 3.1.0
Release: 1
# list of sources
Source0: ftp://ftp.gnu.org/gnu/gawk/gawk-%{version}.tar.gz
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 0.9-30
PreReq: OpenPKG, openpkg >= 0.9-30
AutoReq: no
AutoReqProv: no
%description
Gawk is the GNU Project's implementation of the AWK programming
language. It conforms to the definition of the language in the POSIX
1003.2 Command Language And Utilities Standard. This version in turn
is based on the description in The AWK Programming Language, by Aho,
Kernighan, and Weinberger, with the additional features defined in
the System V Release 4 version of UNIX awk. Gawk also provides more
recent Bell Labs awk extensions, and some GNU-specific extensions.
%prep
%setup -q
%build
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \
./configure --prefix=$RPM_BUILD_ROOT%{l_prefix}
%{l_make} %{l_mflags -O}
%install
rm -rf $RPM_BUILD_ROOT
%{l_make} %{l_mflags} install
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
rm -rf $RPM_BUILD_ROOT%{l_prefix}/lib
rm -rf $RPM_BUILD_ROOT%{l_prefix}/libexec
rm -rf $RPM_BUILD_ROOT%{l_prefix}/share
rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/gawk-%{version}
rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir
rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/awk
ln $RPM_BUILD_ROOT%{l_prefix}/bin/gawk $RPM_BUILD_ROOT%{l_prefix}/bin/awk
ln $RPM_BUILD_ROOT%{l_prefix}/man/man1/gawk.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/awk.1
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
%files -f files
%clean
rm -rf $RPM_BUILD_ROOT

153
gcc/gcc.spec

@ -0,0 +1,153 @@
##
## gcc.spec -- OpenPKG RPM Specification
## Copyright (c) 2000-2001 Cable & Wireless Deutschland GmbH
## Copyright (c) 2000-2001 Ralf S. Engelschall <rse@engelschall.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.
##
%define V_major 3.0.1
%define V_short 3.0.1
%define V_long 3.0.1
# package information
Name: gcc
Summary: GNU C/C++ Compiler
Group: Language
URL: http://gcc.gnu.org/
Vendor: Free Software Foundation
Packager: rse@openpkg.org
Distribution: OpenPKG
License: GPL
Version: %{V_short}
Release: 4
# list of sources
Source0: ftp://gcc.gnu.org/pub/gcc/releases/%{V_long}/gcc-%{V_long}.tar.bz2
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 0.9-30, make
PreReq: OpenPKG, openpkg >= 0.9-30
AutoReq: no
AutoReqProv: no
%description
The GNU Compiler Collection (GCC) provides C and C++ compilers.
%prep
%setup -q -n gcc-%{V_long}
%build
# configure the package
mkdir obj
cd obj
options=""
case "%{l_target}" in
*-linux* | *-freebsd* ) options="--with-gnu-as --with-gnu-ld" ;;
esac
CC="%{l_cc}" \
CFLAGS="%{l_cflags}" \
../configure \
--prefix=%{l_prefix} \
--exec-prefix=%{l_prefix} \
--with-gxx-include-dir=%{l_prefix}/include/g++ \
--with-local-prefix=%{l_prefix}/lib/gcc-lib \
--enable-languages="c,c++" \
--enable-threads \
--disable-maintainer-mode \
--enable-shared \
--disable-nls \
$options
# build the package
%{l_make} %{l_mflags} \
MAKE="%{l_make} %{l_mflags}" \
CFLAGS='-O' \
LIBCFLAGS='-g -O2' \
LIBCXXFLAGS='-g -O2 -fno-implicit-templates' \
bootstrap-lean
%install
rm -rf $RPM_BUILD_ROOT
triple=`./config.guess`
triple=`./config.sub $triple | sed -e 's;-unknown-;--;'`
cd obj
# redirect to temporary build root
%{l_rpmtool} subst -v -s \
"s;^\\(prefix[ ]*=\\).*;\\1 $RPM_BUILD_ROOT%{l_prefix};" \
"s;^\\(exec_prefix[ ]*=\\).*;\\1 $RPM_BUILD_ROOT%{l_prefix};" \
"s;^\\(gcc_gxx_include_dir[ ]*=\\).*;\\1 $RPM_BUILD_ROOT%{l_prefix}/include/g++;" \
"s;^\\(gxx_include_dir[ ]*=\\).*;\\1 $RPM_BUILD_ROOT%{l_prefix}/include/g++;" \
"s;^\\(glibcppinstalldir[ ]*=\\).*;\\1 $RPM_BUILD_ROOT%{l_prefix}/include/g++;" \
"s;^\\(local_prefix[ ]*=\\).*;\\1 $RPM_BUILD_ROOT%{l_prefix}/lib/gcc-lib;" \
-- `find . -name Makefile -type f -print`
# make sure the install procedure doesn't compile anything
# (or else we would have wrong paths hard-coded in the programs)
%{l_rpmtool} subst -v -s \
's;^install-cpp:.*;install-cpp:;' \
's;^install-common:.*;install-common: installdirs lang.install-common;' \
's;^install-driver:.*;install-driver:;' \
's;^install-libgcc:.*;install-libgcc: installdirs;' \
's;^install-build:.*;install-build:;' \
's;^install-collect2:.*;install-collect2: installdirs;' \
's;^install-assert-h:.*;install-assert-h: installdirs;' \
's;^install: stmp-dirs ./libgcc.a;install: stmp-dirs;' \
's;^\(install-.*:.*\) all *\(.*\)$;\1\2;' \
-- gcc/Makefile gcc/libgcc.mk gcc/*/Makefile
# make sure the Makefiles are not re-generated
for file in `find . -name config.status -print`; do
( echo "#!/bin/sh"
echo ":"
) >$file
done
# run the standard installation procedure
%{l_make} %{l_mflags} install
# strip the installation
mv $RPM_BUILD_ROOT%{l_prefix}/$triple/include/* \
$RPM_BUILD_ROOT%{l_prefix}/lib/gcc-lib/$triple/%{V_major}/include/ >/dev/null 2>&1 || true
rm -rf $RPM_BUILD_ROOT%{l_prefix}/$triple
rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/*.la
rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/*-gcc
rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/*-c++
rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/*-g++
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
for prog in cc1 cc1plus collect2 cpp; do
strip $RPM_BUILD_ROOT%{l_prefix}/lib/gcc-lib/$triple/%{V_major}/$prog >/dev/null 2>&1 || true
done
# make additional links
ln $RPM_BUILD_ROOT%{l_prefix}/bin/gcc $RPM_BUILD_ROOT%{l_prefix}/bin/cc
ln $RPM_BUILD_ROOT%{l_prefix}/man/man1/gcc.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/cc.1
ln $RPM_BUILD_ROOT%{l_prefix}/man/man1/g++.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/c++.1
# create file list
%{l_rpmtool} files -v -o$RPM_BUILD_DIR/gcc-%{V_long}/files -r$RPM_BUILD_ROOT %{l_files_std}
%files -f files
%clean
# rm -rf $RPM_BUILD_ROOT

93
gd/gd.spec

@ -0,0 +1,93 @@
##
## gd.spec -- OpenPKG RPM Specification
## Copyright (c) 2000-2001 Cable & Wireless Deutschland GmbH
## Copyright (c) 2000-2001 Ralf S. Engelschall <rse@engelschall.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: gd
Summary: Fast Graphics Generation Library
Group: Graphics
URL: http://www.boutell.com/gd/
Vendor: Thomas Boutell
Packager: rse@openpkg.org
Distribution: OpenPKG
License: GPL
Version: 2.0.1
Release: 1
# list of sources
Source0: ftp://ftp.boutell.com/pub/boutell/gd/gd-%{version}.tar.gz
#Patch0: gd-%{version}.patch
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 0.9-30, png, zlib, jpeg
PreReq: OpenPKG, openpkg >= 0.9-30, png, zlib, jpeg
AutoReq: no
AutoReqProv: no
%description
GD is a graphics library. It allows your code to quickly draw images
complete with lines, arcs, text, multiple colors, cut and paste
from other images, and flood fills, and write out the result as a
PNG or JPEG file. This is particularly useful in World Wide Web
applications, where PNG and JPEG are two of the formats accepted for
inline images by most browsers.
%prep
%setup -q
%{l_rpmtool} subst \
's;default:.*;all: libgd.a $(PROGRAMS);' \
's;install:.*;install:;' \
's;--verbose;;' \
-- Makefile
%build
%{l_make} %{l_mflags} \
COMPILER="%{l_cc}" \
CFLAGS="%{l_cflags -O} -DHAVE_LIBPNG -DHAVE_LIBJPEG" \
INCLUDEDIRS="-I. -I%{l_prefix}/include" \
LIBDIRS="-L. -L%{l_prefix}/lib" \
LIBS="-lm -lgd -lpng -lz -ljpeg -lm" \
all
%install
rm -rf $RPM_BUILD_ROOT
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/bin \
$RPM_BUILD_ROOT%{l_prefix}/lib \
$RPM_BUILD_ROOT%{l_prefix}/include
%{l_make} %{l_mflags} install \
INSTALL_BIN=$RPM_BUILD_ROOT%{l_prefix}/bin \
INSTALL_LIB=$RPM_BUILD_ROOT%{l_prefix}/lib \
INSTALL_INCLUDE=$RPM_BUILD_ROOT%{l_prefix}/include
%{l_shtool} install -c -m 644 \
libgd.a $RPM_BUILD_ROOT%{l_prefix}/lib
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* 2> /dev/null || true
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
%files -f files
%clean
rm -rf $RPM_BUILD_ROOT

11
gnupg/gnupg-1.0.6.patch

@ -0,0 +1,11 @@
--- include/ttyio.h.orig Fri May 25 08:42:50 2001
+++ include/ttyio.h Fri Jun 8 22:12:12 2001
@@ -24,7 +24,7 @@
#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 5 )
void tty_printf (const char *fmt, ... ) __attribute__ ((format (printf,1,2)));
#else
- void tty_printf const char *fmt, ... );
+ void tty_printf (const char *fmt, ... );
#endif
void tty_print_string( byte *p, size_t n );
void tty_print_utf8_string( byte *p, size_t n );

84
gnupg/gnupg.spec

@ -0,0 +1,84 @@
##
## gnupg.spec -- OpenPKG RPM Specification
## Copyright (c) 2000-2001 Cable & Wireless Deutschland GmbH
## Copyright (c) 2000-2001 Ralf S. Engelschall <rse@engelschall.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: gnupg
Summary: GNU Privacy Guard
Group: Cryptography
URL: http://www.gnupg.org/
Vendor: Werner Koch
Packager: rse@openpkg.org
Distribution: OpenPKG
License: GPL
Version: 1.0.6
Release: 1
# list of sources
Source0: ftp://ftp.gnupg.org/pub/gcrypt/gnupg/gnupg-%{version}.tar.gz
Patch0: gnupg-%{version}.patch
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 0.9-30
PreReq: OpenPKG, openpkg >= 0.9-30
AutoReq: no
AutoReqProv: no
Provides: openpgp
%description
GnuPG (GNU Privacy Guard) is a GNU utility for encrypting data and
creating digital signatures. GnuPG has advanced key management
capabilities and is compliant with the proposed OpenPGP Internet
standard described in RFC2440. Since GnuPG doesn't use any patented
algorithm, it is not compatible with any version of PGP2 (PGP2.x
uses only IDEA, patented worldwide).
%prep
%setup -q
%patch -p0
%build
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \
./configure \
--prefix=%{l_prefix} \
--with-included-zlib \
--with-included-gettext \
--disable-nls
%{l_make} %{l_mflags -O}
%install
rm -rf $RPM_BUILD_ROOT
%{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* 2> /dev/null || true
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
%{l_files_std} \
'%attr(4755,root,%{l_fsgrp}) %{l_prefix}/bin/gpg'
%files -f files
%clean
rm -rf $RPM_BUILD_ROOT

75
grep/grep.spec

@ -0,0 +1,75 @@
##
## grep.spec -- OpenPKG RPM Specification
## Copyright (c) 2000-2001 Cable & Wireless Deutschland GmbH
## Copyright (c) 2000-2001 Ralf S. Engelschall <rse@engelschall.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: grep
Summary: Global Regular Expression Print
Group: Text
URL: http://www.gnu.org/software/grep/
Vendor: Free Software Foundation
Packager: rse@openpkg.org
Distribution: OpenPKG
License: GPL
Version: 2.4.2
Release: 1
# list of sources
Source0: ftp://ftp.gnu.org/gnu/grep/grep-%{version}.tar.gz
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 0.9-30
PreReq: OpenPKG, openpkg >= 0.9-30
AutoReq: no
AutoReqProv: no
%description
Grep searches the named input FILEs (or standard input if no files are
named, or the file name - is given) for lines containing a match to the
given PATTERN. By default, grep prints the matching lines.
%prep
%setup -q
%build
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \
./configure \
--prefix=%{l_prefix} \
--disable-nls
%{l_make} %{l_mflags -O}
%install
rm -rf $RPM_BUILD_ROOT
%{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* 2> /dev/null || true
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
%files -f files
%clean
rm -rf $RPM_BUILD_ROOT

82
gzip/gzip.spec

@ -0,0 +1,82 @@
##
## gzip.spec -- OpenPKG RPM Specification
## Copyright (c) 2000-2001 Cable & Wireless Deutschland GmbH
## Copyright (c) 2000-2001 Ralf S. Engelschall <rse@engelschall.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: gzip
Summary: De-/Compression with GZIP Algorithm
Group: Compression
URL: http://www.gzip.org/
Vendor: Jean-loup Gailly, Mark Adler
Packager: rse@openpkg.org
Distribution: OpenPKG
License: GPL
Version: 1.3
Release: 1
# list of sources
Source0: ftp://alpha.gnu.org/gnu/gzip/gzip-%{version}.tar
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 0.9-30
PreReq: OpenPKG, openpkg >= 0.9-30
AutoReq: no
AutoReqProv: no
%description
GNU zip (gzip) is a compression utility designed to be a replacement
for the traditional Unix utility compress(1). Its main advantages
over compress(1) are much better compression and freedom from
patented algorithms. gzip produces files with a .gz extension.
gunzip can decompress files created by gzip, compress and pack. The
detection of the input format is automatic. The format of the .gz
files generated by gzip is described in RFCs (Request For Comments)
1951 and 1952.
%prep
%setup -q
%build
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \
./configure \
--prefix=%{l_prefix}
%{l_make} %{l_mflags -O}
%install
rm -rf $RPM_BUILD_ROOT
%{l_rpmtool} subst -v \
"s;\\(prefix *= *\\).*;\\1 $RPM_BUILD_ROOT%{l_prefix};" \
-- Makefile
%{l_make} %{l_mflags} install prefix=$RPM_BUILD_ROOT%{l_prefix}
rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* 2> /dev/null || true
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
%files -f files
%clean
rm -rf $RPM_BUILD_ROOT

22
hexer/hexer-0.1.4c.patch

@ -0,0 +1,22 @@
--- hexer.c.orig Tue Apr 23 19:40:08 1996
+++ hexer.c Sun Apr 1 13:47:14 2001
@@ -67,7 +67,7 @@
extern int errno;
-#ifndef BSD
+#if !defined(BSD) && !defined(__linux__)
extern char *sys_errlist[];
#endif
extern int sys_nerr;
--- commands.c.orig Tue Apr 23 19:40:09 1996
+++ commands.c Sun Apr 1 13:47:46 2001
@@ -1247,7 +1247,7 @@
long k;
char *errormsg;
extern int sys_nerr;
-#ifndef BSD
+#if !defined(BSD) && !defined(__linux__)
extern char *sys_errlist[];
#endif
extern int errno;

79
hexer/hexer.spec

@ -0,0 +1,79 @@
##
## hexer.spec -- OpenPKG RPM Specification
## Copyright (c) 2000-2001 Cable & Wireless Deutschland GmbH
## Copyright (c) 2000-2001 Ralf S. Engelschall <rse@engelschall.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: hexer
Summary: Vi-style Hexadecimal Binary Editor
Group: Editor
URL: ftp://vieta.math.uni-sb.de/pub/misc/
Vendor: Sascha Demetrio
Packager: rse@openpkg.org
Distribution: OpenPKG
License: BSD
Version: 0.1.4c
Release: 1
# list of sources
Source0: ftp://vieta.math.uni-sb.de/pub/misc/hexer-%{version}.tar.gz
Patch0: hexer-%{version}.patch
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 0.9-30
PreReq: OpenPKG, openpkg >= 0.9-30
AutoReq: no
AutoReqProv: no
%description
Hexer is a Vi-style hexadecimal editor for editing binary files.
%prep
%setup -q
%patch -p0
%build
ext=any
case "%{l_target}" in
*-freebsd* ) ext=bsd ;;
*-linux* ) ext=linux ;;
*-solaris* ) ext=sunos ;;
esac
cp config.$ext config.h
%{l_make} %{l_mflags} CC="%{l_cc}" CFLAGS="%{l_cflags -O} \$(DEFINES)"
%install
rm -rf $RPM_BUILD_ROOT
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/bin \
$RPM_BUILD_ROOT%{l_prefix}/man/man1
%{l_shtool} install -c -s -m 755 hexer $RPM_BUILD_ROOT%{l_prefix}/bin/
%{l_shtool} install -c -m 644 hexer.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
%files -f files
%clean
rm -rf $RPM_BUILD_ROOT

100
imagemagick/imagemagick.spec

@ -0,0 +1,100 @@
##
## imagemagick.spec -- OpenPKG RPM Specification
## Copyright (c) 2000-2001 Cable & Wireless Deutschland GmbH
## Copyright (c) 2000-2001 Ralf S. Engelschall <rse@engelschall.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: imagemagick
Summary: Graphic Image Conversion Tool
Group: Graphics
URL: http://www.imagemagick.org/
Vendor: John Cristy
Packager: rse@openpkg.org
Distribution: OpenPKG
License: GPL
Version: 5.3.8.2
Release: 1
# list of sources
Source0: ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick-%{version}.tar.gz
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 0.9-30
PreReq: OpenPKG, openpkg >= 0.9-30
AutoReq: no
AutoReqProv: no
%description
ImageMagick is a robust collection of tools and libraries to read,
write, and manipulate an image in many image formats (over 68 major
formats) including popular formats like TIFF, JPEG, PNG, PDF, Photo
CD, and GIF. With ImageMagick you can create images dynamically,
making it suitable for Web applications. You can also resize,
rotate, sharpen, color reduce, or add special effects to an image
and save your completed work in the same or differing image format.
Image processing operations are available from the command line, as
well as through C, C++, and PERL-based programming interfaces.
%prep
%setup -q -n ImageMagick-5.3.8
%build
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \
./configure \
--prefix=%{l_prefix} \
--without-magick-plus-plus \
--enable-lzw \
--without-perl \
--without-x
%{l_make} %{l_mflags -O}
%install
rm -rf $RPM_BUILD_ROOT
%{l_make} %{l_mflags} install \
prefix=$RPM_BUILD_ROOT%{l_prefix} \
exec_prefix=$RPM_BUILD_ROOT%{l_prefix} \
pkgdocdir=$RPM_BUILD_ROOT%{l_prefix}/share/ImageMagick
( cd $RPM_BUILD_ROOT%{l_prefix} || exit 1
rm -rf lib/ImageMagick
rm -f bin/Magick-config
rm -f bin/cgimagick
rm -f bin/iptcutil
rm -f man/man1/Magick-config.1
rm -f man/man4/miff.4
rm -rf include
rm -rf lib
rm -rf share/ImageMagick/www
rm -f share/ImageMagick/*.txt
rm -f share/ImageMagick/*.html
rm -rf share/ImageMagick/images
)
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* 2> /dev/null || true
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
%files -f files
%clean
rm -rf $RPM_BUILD_ROOT

92
infozip/infozip.spec

@ -0,0 +1,92 @@
##
## infozip.spec -- OpenPKG RPM Specification
## Copyright (c) 2000-2001 Cable & Wireless Deutschland GmbH
## Copyright (c) 2000-2001 Ralf S. Engelschall <rse@engelschall.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: infozip
Summary: Un-/Packing Tools for [PK]ZIP Files
Group: Archiver
URL: http://www.info-zip.org/pub/infozip/
Vendor: Samuel H. Smith, Greg Roelofs
Packager: rse@openpkg.org
Distribution: OpenPKG
License: BSD
Version: 2.3
Release: 1
# list of sources
Source0: ftp://ftp.info-zip.org/pub/infozip/src/zip23.tar.gz
Source1: ftp://ftp.info-zip.org/pub/infozip/src/unzip542.tar.gz
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 0.9-30
PreReq: OpenPKG, openpkg >= 0.9-30
AutoReq: no
AutoReqProv: no
%description
Info-ZIP provides free, portable, high-quality versions of the Zip
and UnZip compressor-archiver utilities that are compatible with the
DOS-based PKZIP by PKWARE, Inc.
%prep
%setup0 -q -c
%setup1 -q -T -D -a 1
%build
( cd zip-2.3
%{l_make} %{l_mflags} -f unix/Makefile generic
)
( cd unzip-5.42
os=generic
case "%{l_target}" in
*-linux* ) os=linux_noasm ;;
*-solaris* ) os=solaris ;;
*-freebsd* ) os=freebsd ;;
esac
%{l_make} %{l_mflags} -f unix/Makefile $os
)
%install
rm -rf $RPM_BUILD_ROOT
%{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}
( cd zip-2.3
%{l_make} %{l_mflags} -f unix/Makefile install \
prefix=$RPM_BUILD_ROOT%{l_prefix} \
INSTALL_D="%{l_shtool} mkdir -f -p -m 755"
)
( cd unzip-5.42
%{l_make} %{l_mflags} -f unix/Makefile install \
prefix=$RPM_BUILD_ROOT%{l_prefix} \
INSTALL_D="%{l_shtool} mkdir -f -p -m 755"
)
chmod -R u+w $RPM_BUILD_ROOT%{_prefix}
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
%files -f files
%clean
rm -rf $RPM_BUILD_ROOT

87
rrdtool/rrdtool.spec

@ -0,0 +1,87 @@
##
## rrdtool.spec -- OpenPKG RPM Specification
## Copyright (c) 2000-2001 Cable & Wireless Deutschland GmbH
## Copyright (c) 2000-2001 Ralf S. Engelschall <rse@engelschall.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: rrdtool
Summary: Round Robin Database
Group: Database
URL: http://ee-staff.ethz.ch/~oetiker/webtools/rrdtool/
Vendor: Tobias Oetiker
Packager: rse@openpkg.org
Distribution: OpenPKG
License: LGPL
Version: 1.0.33
Release: 1
# list of sources
Source0: http://ee-staff.ethz.ch/~oetiker/webtools/rrdtool/pub/rrdtool-%{version}.tar.gz
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 0.9-30, perl
PreReq: OpenPKG, openpkg >= 0.9-30, perl
AutoReq: no
AutoReqProv: no
%description
RRD is the Acronym for Round Robin Database. RRD is a system
to store and display time-series data (i.e. network bandwidth,
machine-room temperature, server load average). It stores the
data in a very compact way that will not expand over time, and it
presents useful graphs by processing the data to enforce a certain
data density. It can be used either via simple wrapper scripts (from
shell or Perl) or via frontends that poll network devices and put a
friendly user interface on it.
%prep
%setup -q
%build
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \
./configure \
--prefix=%{l_prefix} \
--disable-shared
%{l_make} %{l_mflags -O}
%install
rm -rf $RPM_BUILD_ROOT
eval `%{l_prefix}/bin/perl -V:installarchlib`
installarchlib=`echo $installarchlib | sed -e "s;^%{l_prefix};;"`
%{l_rpmtool} subst "s;/lib/perl;$installarchlib;g" -- Makefile
%{l_make} %{l_mflags} install \
DESTDIR=$RPM_BUILD_ROOT AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
rm -rf $RPM_BUILD_ROOT%{l_prefix}/contrib
rm -rf $RPM_BUILD_ROOT%{l_prefix}/doc
rm -rf $RPM_BUILD_ROOT%{l_prefix}/html
rm -rf $RPM_BUILD_ROOT%{l_prefix}/examples
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* 2> /dev/null || true
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
%files -f files
%clean
rm -rf $RPM_BUILD_ROOT
正在加载...
取消
保存