[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: packages/rpm/mandrake9.1 files - final

From: Files <files_at_poetryunlimited.com>
Date: 2003-09-18 20:22:23 CEST

Makefile:

Configurable elements:
======================
GPG_PATH - location of gnupg file - default ~/.gnupg
TMPDIR - location of scartch area - default /tmp
NODEPS - whether to enforce dependencies during compile phase - default 0
SILENT - whether to remove white-noise - default 1
NO_ACTIVATION - whether to prevent activation (--enable/disable-mod-activation) -
default 1
NO_APACHE2 - whether apache2 is missing - default 0
REQUIRE_APACHE2 - whether to fail if apache2 is missing - default 0 but overridden
by NO_APACHE2 as needed
NEON_RPM - name of neon rpm - libneon0 has not been offered on tigris. neon has -
default neon
EDITOR - name of editor - no default - currently set to vi
APACHE_CONF - location of conf.d - currently set to /etc/httpd/conf.d - default
`apxs2 -q sysconfdir`.d
APACHE_DIR - location of extra modules directory - default `apxs2 -q
libexecdir`-extramodules
NEON_MIN - minimum neon version to accept - default 0.23.0
APACHE_MIN - minimum apache2 version to accept - default 2.0.43
DB4_MIN - minimum db4 version to accept - default 4.0.14 - overridden by apache2 db4
if present

Note: This version of the Makefile allows the Mandrake Linux RPM will compile EVEN
IF THE current directory does not contain a svn repository - it has a non-svn
fallback for the release number.

Non-configurable elements added:
================================
RCFILE - subversion.rc (contains buildarch translations - but defaults should be
sufficient even without this file - at least on a Mandrake system. Non mandrake
systems will require this file).
RPMDIR - /usr/src/RPM for root user, $(TMPDIR)/$(USER)-rpm for others
SILENT - configure parameter
SILENT_FLAG - make parameter
PATCH - which files to use to create the patch - available svn-install.patch,
svn-install-silent.patch
SILENT_TGT - whether to make directly or to make w/ the -s switch for the all
target. Allows noise decrease without large changes to Makefile
MOD_ACTIVATE - propagate module activation to spec file
BUILDROOT - /tmp/$(USER)-$(FULLPACKAGE)-root - this is the installation directory
RCFILES - list of system available RC-files prepended w/ subversion.rc
APXS - apxs path
APR_CONFIG - apr-config path
APU_CONFIG - apu-config path
WITH_XXXX - settings to propagate to configure to turn on and off approrpiate
parameters.
APACHE2 - where the APACHE2 executable is located - used to find db4 if needed
DB4_RPM - name of DB4 rpm - set to libdbX.x currently, based on library version
present - used to find correct development package
DB4_VER - discovered version of db4 present and available - or use default if not
found
NEON_RPM - already specified
NEON_VER - similar purpose to DB4_VER but for neon library.
APACHE_VER - similar purpose to DB4_VER but for apache2.
RPMBITS - currently contains full RPM build directories as needed and will auto
generate them on demand, BUILDROOT based.
QUIT - set to quit if APACHE2 is not present and is required
all_noisy: original all target - added $(QUIT) target
all_silent: make all_noisy with the -s flag
all - make the $(SILENT_TGT)
quit: trigger bail out of apache2 is required and not found as per configuration.
build_sources - added patch assembly line instead of copy

General modifications:
=====================
added @echo commands to describe operation under silent mode

subversion.spec - itemized:
===========================
defines:
--------
%_topdir - propagate by Makefile to RPMDIR
%_tmpdir - propagate by Makefile to TMPDIR
%_signature gpg - as per Mandake Linux RPM Howto
%_gpg_name Mandrake Linux - as per Mandake Linux RPM Howto
%_gpg_path propagate by Makefile to GPG_PATH
%distribution Mandrake Linux - as per Mandake Linux RPM Howto
%vendor MandrakeSoft - as per Mandake Linux RPM Howto

apache_ver - propagate by Makefile to APACHE_VER
apache_dir - propagate by Makefile to APACHE_DIR
apache_conf - propagate by Makefile to APACHE_CONF
db4_rpm - propagate by Makefile to DB4_RPM
db4_ver - propagate by Makefile to DB4_VER
neon_rpm - propagate by Makefile to NEON_RPM
neon_ver - propagate by Makefile to NEON_VER
mod_activate - propagate by Makefile to MOD_ACTIVATE
svn_root - propagate by Makefile to BUILDROOT

Following settings propagated directly since defined as %(un)defines
APR_CONFIG
APU_CONFIG
APXS
WITH_APXS
WITH_APR
WITH_APU
EDITOR
SILENT
SILENT_FLAG
USE_APACHE2 - inverse of NO_APACHE flag

build_dir - top of source tree
lib_dir - subdirectory w/ name of package
tarball - complete tarball name w/ no path
mod_conf - name of conf.d file
rc_file - subversion.rc
py_patch - unused python patch that was in the directory
svn_patch - svn-install.patch (after assembly)

general:
--------
Package versions are dynamic where ever possible.
It is possible to build w/o apache2 and still get all the rpms except for the
-server - no more complaints about missing files.

Spec file currently patches PRIOR to autogen.sh since patching should not take place
on generated files.

Man dir is correctly set - was not previously.

Lib exec dir setting corrected - was missing \

Macros used where ever possible to automate processing.

Spec file will correctly compile from SRPM w/o user intervention even if rcfile is
missing as long as it is on a Mandrake Linux system. Cross compiling on a non
Mandrake Linux system possible from the original source tree from svn repository -
packages/rpm/mandrake9.1

---------------------------------------------------------------------------------

This is what I have working now. Let me know how you want to effect the transfer or
if you still want to. I would be definitely interested in looking after the Mandrake
version.

---------------------------------------------------------------------------------

Let me know if you find any bugs or errors or omissions. Thie contents of this file
can be dropped in directly on 0.29.0.

I have not succcessfully compiled the trunk - do not have neon 0.24.x.

----------------------------------------------------------------------------------

Shamim Islam
BA BS

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Received on Thu Sep 18 20:23:14 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.