head	1.57;
access;
symbols
	caudium_1_4_9:1.56.2.10
	caudium_1_4_8:1.56.2.10
	caudium_1_4_7:1.56.2.4
	caudium_1_4_6:1.56.2.4
	caudium_1_2_35:1.30.2.18
	caudium_1_2_34:1.30.2.18
	caudium_1_4_5:1.56
	caudium_1_4_4:1.56
	caudium_1_4_3:1.56
	caudium_1_4_2:1.56
	caudium_1_5_1:1.56
	caudium_1_4_1:1.56
	stable_1_4:1.56.0.2
	caudium_1_3_33:1.56
	caudium_1_3_32:1.56
	caudium_1_3_31:1.55
	caudium_1_3_30:1.55
	caudium_1_3_29:1.55
	caudium_1_2_33:1.30.2.18
	caudium_1_2_32:1.30.2.18
	caudium_1_3_23:1.51
	caudium_1_3_22:1.51
	caudium_1_3_21:1.49
	caudium_1_3_20:1.49
	caudium_1_3_19:1.49
	caudium_1_3_18:1.49
	caudium_1_2_31:1.30.2.18
	caudium_1_2_30:1.30.2.18
	caudium_1_2_29:1.30.2.18
	caudium_1_2_28:1.30.2.18
	caudium_1_3_17:1.49
	caudium_1_3_16:1.49
	caudium_1_2_27:1.30.2.16
	caudium_1_2_26:1.30.2.16
	caudium_1_2_25:1.30.2.14
	caudium_1_2_24:1.30.2.14
	caudium_1_0_57:1.12.2.17
	caudium_1_0_56:1.12.2.17
	caudium_1_3_15:1.44
	caudium_1_3_14:1.44
	caudium_1_2_23:1.30.2.5
	caudium_1_2_22:1.30.2.5
	caudium_1_2_21:1.30.2.5
	caudium_1_2_20:1.30.2.5
	caudium_1_0_55:1.12.2.17
	caudium_1_0_54:1.12.2.17
	caudium_1_3_13:1.42
	caudium_1_3_12:1.42
	caudium_1_3_11:1.40
	caudium_1_3_10:1.40
	caudium_1_2_19:1.30.2.5
	caudium_1_2_18:1.30.2.5
	caudium_1_3_9:1.39
	caudium_1_3_8:1.39
	caudium_1_3_7:1.39
	caudium_1_3_6:1.39
	caudium_1_2_17:1.30.2.5
	caudium_1_2_16:1.30.2.5
	caudium_1_2_15:1.30.2.5
	caudium_1_2_14:1.30.2.5
	caudium_1_2_12:1.30.2.5
	caudium_1_2_10:1.30.2.5
	caudium_1_3_5:1.38
	caudium_1_3_4:1.38
	caudium_1_2_9:1.30.2.5
	caudium_1_2_8:1.30.2.5
	caudium_1_3_3:1.36
	caudium_1_2_7:1.30.2.4
	caudium_1_2_6:1.30.2.4
	caudium_1_0_53:1.12.2.17
	caudium_1_0_52:1.12.2.17
	caudium_1_0_51:1.12.2.17
	caudium_1_0_50:1.12.2.17
	caudium_1_0_45:1.12.2.17
	caudium_1_0_44:1.12.2.17
	caudium_1_0_43:1.12.2.17
	caudium_1_0_42:1.12.2.17
	Caudium_1_3_2:1.34
	caudium_1_2_5:1.30.2.2
	caudium_1_2_4:1.30.2.2
	caudium_1_0_41:1.12.2.16
	caudium_1_0_40:1.12.2.16
	caudium_1_0_39:1.12.2.16
	Caudium_1_0_38:1.12.2.16
	caudium_1_2_3:1.30.2.1
	caudium_1_2_2:1.30.2.1
	caudium_1_3_1:1.31
	caudium_1_2_1:1.30
	stable_1_2:1.30.0.2
	caudium_1_0_37:1.12.2.11
	caudium_1_0_36:1.12.2.11
	caudium_1_1_5:1.27
	caudium_1_1_4:1.27
	caudium_1_1_3:1.26
	caudium_1_1_2:1.26
	caudium_1_0_32:1.12.2.3
	caudium_1_0_30:1.12.2.3
	caudium_1_0_28:1.12.2.3
	caudium_1_0_24:1.12.2.2
	caudium_1_0_22:1.12.2.2
	caudium_1_0_20:1.12.2.2
	caudium_1_0_18:1.12.2.2
	caudium_1_0_17:1.12.2.2
	caudium_1_0_16:1.12.2.2
	caudium_1_0_15:1.12.2.2
	caudium_1_0_14:1.12.2.2
	caudium_1_0_13:1.12.2.2
	caudium_1_0_12:1.12.2.2
	caudium_1_0_11:1.12
	caudium_1_0_10:1.12
	stable_1_0:1.12.0.2
	caudium_1_0_9:1.12
	caudium_1_0_8:1.10
	caudium_1_0_7:1.10
	caudium_1_0_6:1.10
	caudium_1_0_5:1.10
	caudium_1_0_4:1.10
	caudium_1_0_3:1.10
	caudium_1_0_2:1.10;
locks; strict;
comment	@# @;


1.57
date	2005.11.29.20.46.56;	author grendel;	state Exp;
branches;
next	1.56;

1.56
date	2004.05.17.19.23.42;	author grendel;	state Exp;
branches
	1.56.2.1;
next	1.55;

1.55
date	2004.05.13.18.34.24;	author grendel;	state Exp;
branches;
next	1.54;

1.54
date	2004.01.15.18.40.22;	author grendel;	state Exp;
branches;
next	1.53;

1.53
date	2003.12.04.00.14.49;	author grendel;	state Exp;
branches;
next	1.52;

1.52
date	2003.12.02.02.52.14;	author grendel;	state Exp;
branches;
next	1.51;

1.51
date	2003.11.04.01.01.34;	author grendel;	state Exp;
branches;
next	1.50;

1.50
date	2003.09.28.19.52.23;	author grendel;	state Exp;
branches;
next	1.49;

1.49
date	2003.05.24.22.37.04;	author grendel;	state Exp;
branches;
next	1.48;

1.48
date	2003.05.12.17.57.10;	author grendel;	state Exp;
branches;
next	1.47;

1.47
date	2003.04.18.17.13.05;	author grendel;	state Exp;
branches;
next	1.46;

1.46
date	2003.02.27.19.10.26;	author grendel;	state Exp;
branches;
next	1.45;

1.45
date	2003.02.27.18.48.03;	author grendel;	state Exp;
branches;
next	1.44;

1.44
date	2002.12.18.00.32.00;	author grendel;	state Exp;
branches;
next	1.43;

1.43
date	2002.12.17.22.33.08;	author grendel;	state Exp;
branches;
next	1.42;

1.42
date	2002.12.07.02.27.36;	author grendel;	state Exp;
branches;
next	1.41;

1.41
date	2002.12.07.01.35.10;	author grendel;	state Exp;
branches;
next	1.40;

1.40
date	2002.12.06.04.11.45;	author grendel;	state Exp;
branches;
next	1.39;

1.39
date	2002.10.30.22.00.22;	author grendel;	state Exp;
branches;
next	1.38;

1.38
date	2002.07.16.14.52.41;	author grendel;	state Exp;
branches;
next	1.37;

1.37
date	2002.06.29.16.20.13;	author grendel;	state Exp;
branches;
next	1.36;

1.36
date	2002.05.18.16.51.52;	author grendel;	state Exp;
branches;
next	1.35;

1.35
date	2002.05.05.23.13.17;	author grendel;	state Exp;
branches;
next	1.34;

1.34
date	2002.04.20.15.19.10;	author underley;	state Exp;
branches;
next	1.33;

1.33
date	2002.03.30.16.40.49;	author grendel;	state Exp;
branches;
next	1.32;

1.32
date	2002.01.30.13.08.03;	author grendel;	state Exp;
branches;
next	1.31;

1.31
date	2002.01.29.14.08.12;	author grendel;	state Exp;
branches;
next	1.30;

1.30
date	2002.01.07.15.12.54;	author grendel;	state Exp;
branches
	1.30.2.1;
next	1.29;

1.29
date	2002.01.03.17.05.36;	author grendel;	state Exp;
branches;
next	1.28;

1.28
date	2001.11.07.15.43.59;	author grendel;	state Exp;
branches;
next	1.27;

1.27
date	2001.09.24.13.29.41;	author grendel;	state Exp;
branches;
next	1.26;

1.26
date	2001.07.09.09.11.38;	author grendel;	state Exp;
branches;
next	1.25;

1.25
date	2001.06.06.15.22.51;	author grendel;	state Exp;
branches;
next	1.24;

1.24
date	2001.06.05.14.26.57;	author grendel;	state Exp;
branches;
next	1.23;

1.23
date	2001.05.30.08.27.56;	author underley;	state Exp;
branches;
next	1.22;

1.22
date	2001.05.30.08.14.46;	author underley;	state Exp;
branches;
next	1.21;

1.21
date	2001.05.28.12.26.40;	author grendel;	state Exp;
branches;
next	1.20;

1.20
date	2001.05.24.11.31.29;	author grendel;	state Exp;
branches;
next	1.19;

1.19
date	2001.05.22.09.38.58;	author grendel;	state Exp;
branches;
next	1.18;

1.18
date	2001.04.06.14.52.28;	author grendel;	state Exp;
branches;
next	1.17;

1.17
date	2001.02.20.14.54.45;	author grendel;	state Exp;
branches;
next	1.16;

1.16
date	2001.01.15.19.39.51;	author grendel;	state Exp;
branches;
next	1.15;

1.15
date	2001.01.09.09.30.37;	author grendel;	state Exp;
branches;
next	1.14;

1.14
date	2001.01.08.16.52.15;	author grendel;	state Exp;
branches;
next	1.13;

1.13
date	2000.12.20.19.25.29;	author grendel;	state Exp;
branches;
next	1.12;

1.12
date	2000.11.29.20.18.17;	author grendel;	state Exp;
branches
	1.12.2.1;
next	1.11;

1.11
date	2000.11.29.19.45.43;	author grendel;	state Exp;
branches;
next	1.10;

1.10
date	2000.11.03.19.36.12;	author grendel;	state Exp;
branches;
next	1.9;

1.9
date	2000.10.21.17.08.18;	author grendel;	state Exp;
branches;
next	1.8;

1.8
date	2000.09.25.14.20.57;	author grendel;	state Exp;
branches;
next	1.7;

1.7
date	2000.09.17.16.04.34;	author grendel;	state Exp;
branches;
next	1.6;

1.6
date	2000.08.26.09.44.47;	author grendel;	state Exp;
branches;
next	1.5;

1.5
date	2000.08.23.14.55.00;	author grendel;	state Exp;
branches;
next	1.4;

1.4
date	2000.08.21.17.30.02;	author grendel;	state Exp;
branches;
next	1.3;

1.3
date	2000.08.21.17.22.03;	author grendel;	state Exp;
branches;
next	1.2;

1.2
date	2000.08.18.12.39.27;	author grendel;	state Exp;
branches;
next	1.1;

1.1
date	2000.08.16.19.30.47;	author grendel;	state Exp;
branches;
next	;

1.12.2.1
date	2001.01.25.15.44.27;	author grendel;	state Exp;
branches;
next	1.12.2.2;

1.12.2.2
date	2001.01.25.15.52.58;	author grendel;	state Exp;
branches;
next	1.12.2.3;

1.12.2.3
date	2001.02.16.18.38.47;	author grendel;	state Exp;
branches;
next	1.12.2.4;

1.12.2.4
date	2001.04.06.14.56.36;	author grendel;	state Exp;
branches;
next	1.12.2.5;

1.12.2.5
date	2001.04.19.14.33.46;	author grendel;	state Exp;
branches;
next	1.12.2.6;

1.12.2.6
date	2001.04.19.15.51.22;	author grendel;	state Exp;
branches;
next	1.12.2.7;

1.12.2.7
date	2001.04.24.16.18.19;	author grendel;	state Exp;
branches;
next	1.12.2.8;

1.12.2.8
date	2001.05.05.21.17.45;	author grendel;	state Exp;
branches;
next	1.12.2.9;

1.12.2.9
date	2001.05.05.22.13.41;	author grendel;	state Exp;
branches;
next	1.12.2.10;

1.12.2.10
date	2001.06.06.12.16.30;	author grendel;	state Exp;
branches;
next	1.12.2.11;

1.12.2.11
date	2001.06.25.15.50.45;	author grendel;	state Exp;
branches;
next	1.12.2.12;

1.12.2.12
date	2001.11.26.11.13.46;	author grendel;	state Exp;
branches;
next	1.12.2.13;

1.12.2.13
date	2001.11.26.11.29.58;	author grendel;	state Exp;
branches;
next	1.12.2.14;

1.12.2.14
date	2001.11.26.11.39.27;	author grendel;	state Exp;
branches;
next	1.12.2.15;

1.12.2.15
date	2001.11.26.11.51.36;	author grendel;	state Exp;
branches;
next	1.12.2.16;

1.12.2.16
date	2002.01.29.13.49.50;	author grendel;	state Exp;
branches;
next	1.12.2.17;

1.12.2.17
date	2002.02.27.17.43.03;	author grendel;	state Exp;
branches;
next	;

1.30.2.1
date	2002.01.29.14.00.25;	author grendel;	state Exp;
branches;
next	1.30.2.2;

1.30.2.2
date	2002.01.30.13.03.01;	author grendel;	state Exp;
branches;
next	1.30.2.3;

1.30.2.3
date	2002.03.23.21.47.55;	author grendel;	state Exp;
branches;
next	1.30.2.4;

1.30.2.4
date	2002.04.20.15.47.14;	author grendel;	state Exp;
branches;
next	1.30.2.5;

1.30.2.5
date	2002.06.29.16.30.03;	author grendel;	state Exp;
branches;
next	1.30.2.6;

1.30.2.6
date	2002.12.17.21.19.34;	author grendel;	state Exp;
branches;
next	1.30.2.7;

1.30.2.7
date	2002.12.17.22.18.41;	author grendel;	state Exp;
branches;
next	1.30.2.8;

1.30.2.8
date	2002.12.17.22.31.30;	author grendel;	state Exp;
branches;
next	1.30.2.9;

1.30.2.9
date	2002.12.17.23.12.47;	author grendel;	state Exp;
branches;
next	1.30.2.10;

1.30.2.10
date	2002.12.17.23.24.47;	author grendel;	state Exp;
branches;
next	1.30.2.11;

1.30.2.11
date	2003.02.25.19.24.07;	author grendel;	state Exp;
branches;
next	1.30.2.12;

1.30.2.12
date	2003.02.27.18.40.39;	author grendel;	state Exp;
branches;
next	1.30.2.13;

1.30.2.13
date	2003.02.27.18.53.32;	author grendel;	state Exp;
branches;
next	1.30.2.14;

1.30.2.14
date	2003.02.27.19.09.28;	author grendel;	state Exp;
branches;
next	1.30.2.15;

1.30.2.15
date	2003.04.17.00.44.48;	author grendel;	state Exp;
branches;
next	1.30.2.16;

1.30.2.16
date	2003.04.17.00.59.09;	author grendel;	state Exp;
branches;
next	1.30.2.17;

1.30.2.17
date	2003.05.21.21.00.08;	author grendel;	state Exp;
branches;
next	1.30.2.18;

1.30.2.18
date	2003.06.16.18.36.16;	author grendel;	state Exp;
branches;
next	1.30.2.19;

1.30.2.19
date	2005.04.03.22.45.18;	author grendel;	state Exp;
branches;
next	1.30.2.20;

1.30.2.20
date	2005.04.03.23.45.17;	author grendel;	state Exp;
branches;
next	;

1.56.2.1
date	2005.04.21.23.32.37;	author grendel;	state Exp;
branches;
next	1.56.2.2;

1.56.2.2
date	2005.04.22.00.28.19;	author grendel;	state Exp;
branches;
next	1.56.2.3;

1.56.2.3
date	2005.04.22.01.29.15;	author grendel;	state Exp;
branches;
next	1.56.2.4;

1.56.2.4
date	2005.04.22.01.47.17;	author grendel;	state Exp;
branches;
next	1.56.2.5;

1.56.2.5
date	2005.10.04.06.46.09;	author grendel;	state Exp;
branches;
next	1.56.2.6;

1.56.2.6
date	2005.10.04.07.05.25;	author grendel;	state Exp;
branches;
next	1.56.2.7;

1.56.2.7
date	2005.10.05.06.47.53;	author grendel;	state Exp;
branches;
next	1.56.2.8;

1.56.2.8
date	2005.10.05.07.04.33;	author grendel;	state Exp;
branches;
next	1.56.2.9;

1.56.2.9
date	2006.03.30.12.01.21;	author grendel;	state Exp;
branches;
next	1.56.2.10;

1.56.2.10
date	2006.08.10.09.49.29;	author grendel;	state Exp;
branches;
next	1.56.2.11;

1.56.2.11
date	2006.10.16.10.06.54;	author grendel;	state Exp;
branches;
next	;


desc
@@


1.57
log
@debian mods
@
text
@#!/usr/bin/make -f
# Sample debian/rules that uses debhelper. 
# GNU copyright 1997 by Joey Hess.
#
# This version is for a hypothetical package that builds an
# architecture-dependant package, as well as an architecture-independent
# package.
#
# This is the Caudium Webserver rules file
# $Id: rules,v 1.56.2.8 2005/10/05 07:04:33 grendel Exp $
#
# Uncomment this to turn on verbose mode. 
#export DH_VERBOSE=1

# This has to be exported to make some magic below work.
export DH_OPTIONS

# we need to know what pike are we using

ifdef USE_PIKE
PIKE=pike$(USE_PIKE)
else
PIKE=pike7.6
endif
PIKEBIN=/usr/bin/$(PIKE)

PIKE_VERSION=$(shell $(PIKEBIN) -e 'string v; int rel;sscanf(version(), "Pike v%s release %d", v, rel); write(v+"."+rel);')
CVS_SNAPSHOT=$(shell if test -f configure; then echo no; else echo yes; fi)
PIKE7_CHANGELOG=/usr/share/doc/$(PIKE)/changelog.Debian.gz
PIKE_DEBIAN_VER=$(shell gunzip -c ${PIKE7_CHANGELOG} | head -1 | sed -e 's/\(.*(\)\(.*\)\().*\)/\2/')
PIKE_DEBIAN_VER2=$(shell echo $(PIKE_DEBIAN_VER) | sed -e 's/\(.*\)\(-.*\)/\1/')
EXTVER=

SCRIPTS=protocols/tetris.pike bin/pdbi.pike bin/sqladduser.pike \
        bin/ultrasum.pike bin/install.pike bin/pixsl.pike \
	bin/indexer.pike bin/searcher.pike

PACKAGES=caudium caudium-modules caudium-pixsl caudium-ultralog
REMOVEFONTS=lucida_unicode.ttf lucida_unicode.txt verdana.ttf verdana.txt

CFLAGS = -fPIC

# Temporary workaround for hppa linker issues
ifeq ($(DEB_BUILD_ARCH),hppa)
CFLAGS += -ffunction-sections
endif

ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
CFLAGS += -g3 -ggdb3
endif

ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
INSTALL_PROGRAM += -s
CFLAGS += -s
endif

export CFLAGS

configure: configure-stamp
configure-stamp:
	dh_testdir
	# Add here commands to configure the package.

	if test "$(CVS_SNAPSHOT)" = "yes"; then \
	    ./autogen.sh; \
	    rm -rf `find -name "CVS" -type d -print`; \
	fi
	./configure --prefix=/usr --with-pike=$(PIKEBIN) --with-serverdir=/usr/lib/caudium --without-PCRE

	touch configure-stamp

build: configure-stamp build-stamp
build-stamp:
	dh_testdir

	# Add here commands to compile the package.
	$(MAKE)

	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp configure-stamp

	# Add here commands to clean up after the build process.
	-$(MAKE) spotless
	-rm -f `find -name ".cvsignore" -type f -print`
	-rm -rf `find -name "CVS" -type d -print`
	-rm -f smartlink statuslock
	-rm -rf $(CURDIR)/debian/*.links
	dh_clean

install: DH_OPTIONS=
install: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs

	# Add here commands to install the package into debian/caudium.
	$(MAKE) install_alt prefix=/usr DESTDIR=$(CURDIR)/debian/caudium EXTRAVER=$(EXTVER)
	-rm -f $(CURDIR)/debian/caudium/usr/share/doc/caudium$(EXTVER)/COPYING
	-rm -f $(CURDIR)debian/caudium/usr/lib/caudium/$(PIKE_VERSION)/lib/PCRE.so
	cp debian/localhost $(CURDIR)/debian/caudium/etc/caudium$(EXTVER)/localhost.sample
	cp debian/Global_Variables $(CURDIR)/debian/caudium/etc/caudium$(EXTVER)/Global_Variables.sample

	sed -e 's;/usr/caudium/server;/usr/lib/caudium$(EXTVER);g'< \
	 debian/caudium/usr/bin/ultrasum > debian/caudium/usr/bin/ultrasum.new && \
	mv debian/caudium/usr/bin/ultrasum.new debian/caudium/usr/bin/ultrasum ; \

	sed -e 's;/usr/caudium/server;/usr/lib/caudium$(EXTVER);g'< \
	 debian/caudium/usr/bin/pixsl > debian/caudium/usr/bin/pixsl.new && \
	mv debian/caudium/usr/bin/pixsl.new debian/caudium/usr/bin/pixsl ; \
	chmod 755 debian/caudium/usr/bin/pixsl debian/caudium/usr/lib/caudium$(EXTVER)/bin/pixsl.pike

	for s in $(SCRIPTS); do \
	  sed -e 's;^#\!.*;#\!/usr/bin/${PIKE};' debian/caudium/usr/lib/caudium$(EXTVER)/$$s > \
	      debian/caudium/usr/lib/caudium$(EXTVER)/$$s.new && \
	  mv debian/caudium/usr/lib/caudium$(EXTVER)/$$s.new debian/caudium/usr/lib/caudium$(EXTVER)/$$s ; \
	  chmod 755 debian/caudium/usr/lib/caudium$(EXTVER)/$$s ; \
	done

	# fix caudiumctl paths
	sed -e 's#caudiumhome=\$.*#caudiumhome=/usr/lib/caudium#g' \
	    < $(CURDIR)/debian/caudium/usr/bin/caudiumctl \
	    > $(CURDIR)/debian/caudium/usr/bin/caudiumctl.new && \
	    mv $(CURDIR)/debian/caudium/usr/bin/caudiumctl.new $(CURDIR)/debian/caudium/usr/bin/caudiumctl && \
	    chmod 755 $(CURDIR)/debian/caudium/usr/bin/caudiumctl

	# perms fixing fest
	-chmod 644 debian/caudium/usr/lib/caudium$(EXTVER)/fonts/32/urw_itc_avant_garde-demi-r \
	           debian/caudium/usr/lib/caudium$(EXTVER)/etc/roxen_hilfe.pike \
		   debian/caudium/usr/lib/caudium$(EXTVER)/base_server/config/font \
		   debian/caudium/usr/lib/caudium$(EXTVER)/etc/classes/*.jar \
		   debian/caudium/usr/share/caudium$(EXTVER)/modules/scripting/webapp.pike

	mv debian/caudium/usr/bin/htpasswd debian/caudium/usr/bin/htpasswd-caudium

	# add libroxen modules path
	# change the state directory
	sed -e 's;\(^.*globvar("ModuleDirs".*,({\)\(".*"\)\(}),\);\1\2,"/usr/share/roxen/modules/"\3;' \
	    -e 's;\(^.*globvar("font_dirs".*,({\)\(".*"\)\(}),\);\1\2,"local_fonts/",\3;' \
	    -e 's;\(^.*globvar("ConfigurationStateDir".*,\)\(".*"\)\([ ]*,.*,\);\1"/var/state/caudium$(EXTVER)/"\3;' \
	    -e 's;\(^.*globvar("User"[ ]*,[ ]*\)\(""\)\(.*,\);\1"33:33"\3;' \
	    -e 's#^string __caudium_extra_ver__ = ""#string __caudium_extra_ver__ = "Debian GNU/Linux"#' \
	       debian/caudium/usr/lib/caudium$(EXTVER)/etc/modules/CaudiumVersion.pmod > \
	       debian/caudium/usr/lib/caudium$(EXTVER)/etc/modules/CaudiumVersion.pmod.new && \
	mv debian/caudium/usr/lib/caudium$(EXTVER)/etc/modules/CaudiumVersion.pmod.new \
	   debian/caudium/usr/lib/caudium$(EXTVER)/etc/modules/CaudiumVersion.pmod

	for p in $(CURDIR)/debian/www/*.png.uu; do \
	    uudecode -o $(CURDIR)/debian/caudium/var/www/caudiumimages/`basename $${p%*.uu}` $$p; \
	done
	# fix what lintian whines about
	ln -sf ../../../bin/$(PIKE) $(CURDIR)/debian/caudium/usr/lib/caudium$(EXTVER)/bin/caudium
	cp -dp $(CURDIR)/debian/caudium/usr/lib/caudium$(EXTVER)/bin/caudium $(CURDIR)/debian/caudium/usr/lib/caudium$(EXTVER)/bin/pike
	rm -rf debian/caudium/usr/local/

	# lintian doesn't like images in /usr/lib, let's move them to /usr/share
	mv debian/caudium/usr/lib/caudium$(EXTVER)/caudium-images debian/caudium/usr/share/caudium$(EXTVER)/

	install -d -m 755 -o root -g root $(CURDIR)/debian/caudium/usr/share/pike_packages/apps/modules/
	# Remove non-dfsg fonts
	for f in $(REMOVEFONTS); do \
	 if [ -f debian/caudium/usr/lib/caudium$(EXTVER)/fonts/ttf/$f ]; then \
	   rm -f debian/caudium/usr/lib/caudium$(EXTVER)/fonts/ttf/$f; \
	 fi \
	done

	#
	# copy perl
	#
	cp -pad $(CURDIR)/server/perl/ $(CURDIR)/debian/caudium/usr/lib/caudium$(EXTVER)/
	sed -e 's;^#\!.*;#\!/usr/bin/perl;' debian/caudium/usr/lib/caudium$(EXTVER)/perl/bin/perlhelper > \
	    debian/caudium/usr/lib/caudium$(EXTVER)/perlhelper.new && \
	mv debian/caudium/usr/lib/caudium$(EXTVER)/perlhelper.new \
	   debian/caudium/usr/lib/caudium$(EXTVER)/perl/bin/perlhelper
	chmod 755 debian/caudium/usr/lib/caudium$(EXTVER)/perl/bin/perlhelper

	#
	# the -p debhelper param seems to be not working... 
	# so let's do it by hand
	#
	install -m 755 -d debian/caudium-ultralog/usr/share/man/man1/
	cp src/cmods/UltraLog/docs/ultrasum.1 \
	   debian/caudium-ultralog/usr/share/man/man1/

	dh_movefiles  --sourcedir=debian/caudium

	if test -f $(CURDIR)/debian/caudium-cleanup.txt; then \
	    for d in `cat $(CURDIR)/debian/caudium-cleanup.txt`; do \
		rm -rf $(CURDIR)/debian/caudium/$$d ; \
		echo Removing $(CURDIR)/debian/caudium/$$d ; \
	    done \
	fi

	# move all the arch independent files to /usr/share and symlink them from their original location
	# in /usr/lib/caudium/u	

	chmod 755 $(CURDIR)/debian/reflect.sh
	for p in $(PACKAGES); do \
	(cd $(CURDIR)/debian/$$p/; find usr/lib/caudium/ \
	     -name "*.pike" -type f -print \
	     -o -name "*.pmod" -type f -print \
	     -o -name "*.html" -type f -print \
	     -o -name "*.h" -type f -print | \
	     $(CURDIR)/debian/reflect.sh usr/share/caudium/ \
	                                 $(CURDIR)/debian/$$p.links \
	                                 usr/lib/caudium/ \
					 $(CURDIR)/debian/$$p/) ; \
	done


# Build architecture-independent files here.
# Pass -i to all debhelper commands in this target to reduce clutter.
#binary-indep: DH_OPTIONS=-i
binary-indep: build install

# Build architecture-dependent files here.
# Pass -a to all debhelper commands in this target to reduce clutter.
binary-arch: DH_OPTIONS=-a
binary-arch: build install
	# Need this version of debhelper for DH_OPTIONS to work.
#	dh_testversion 1.1.17
	dh_testdir
	dh_testroot
	dh_installdebconf
	dh_installdocs
#	dh_installexamples
#	dh_installmenu
#	dh_installemacsen
#	dh_installpam
	dh_installlogrotate
	dh_installinit
	dh_installman
#	dh_installcron
#	dh_installmanpages -A caudium doc/caudiumctl.1
#	dh_installinfo
#	dh_undocumented htpasswd-caudium.1 pixsl.1
	dh_installchangelogs CHANGES
	dh_strip -a
	dh_link
	dh_compress
	dh_fixperms
	# You may want to make some executables suid here.
#	dh_suidregister
	dh_installdeb
#	dh_makeshlibs
#	dh_perl
	dh_shlibdeps
	dh_gencontrol -- -Vpike:ver=$(PIKE_VERSION) -Vpike:name=$(PIKE)
	dh_md5sums
	dh_builddeb

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install
@


1.56
log
@debian updates
@
text
@d10 1
a10 1
# $Id: rules,v 1.55 2004/05/13 18:34:24 grendel Exp $
d39 1
d41 1
a41 7
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS=-O0
CFARGSEXTRA=--with-rtldebug --with-cdebug --with-debug --without-copt
else
CFLAGS=-O2
CFARGSEXTRA=--without-rtldebug --without-cdebug --without-debug
endif
d45 1
a45 1
CFLAGS+=-ffunction-sections
d53 2
a54 1
	INSTALL_PROGRAM += -s
d66 1
d68 1
a68 1
	./configure --prefix=/usr --with-pike=$(PIKEBIN) --with-serverdir=/usr/lib/caudium
d91 1
d104 1
d164 6
d191 7
d201 1
d214 1
@


1.56.2.1
log
@debian stuff
@
text
@d10 1
a10 1
# $Id: rules,v 1.56 2004/05/17 19:23:42 grendel Exp $
a38 1
REMOVEFONTS=lucida_unicode.ttf lucida_unicode.txt verdana.ttf verdana.txt
a164 6
	# Remove non-dfsg fonts
	for f in $(REMOVEFONTS); do \
	 if [ -f debian/caudium/usr/lib/caudium$(EXTVER)/fonts/ttf/$f ]; then \
	   rm -f debian/caudium/usr/lib/caudium$(EXTVER)/fonts/ttf/$f; \
	 fi \
	done
@


1.56.2.2
log
@debian, more stuff
@
text
@d10 1
a10 1
# $Id: rules,v 1.56.2.1 2005/04/21 23:32:37 grendel Exp $
a40 1
CFLAS = -fPIC
d42 1
a42 1
CFLAGS += -O0
d45 1
a45 1
CFLAGS += -O2
d51 1
a51 1
CFLAGS += -ffunction-sections
d59 1
a59 2
INSTALL_PROGRAM += -s
CFLAGS += -s
@


1.56.2.3
log
@typo
@
text
@d10 1
a10 1
# $Id: rules,v 1.56.2.2 2005/04/22 00:28:19 grendel Exp $
d41 1
a41 1
CFLAGS = -fPIC
@


1.56.2.4
log
@update
@
text
@d10 1
a10 1
# $Id: rules,v 1.56.2.3 2005/04/22 01:29:15 grendel Exp $
a197 1
	chmod 755 $(CURDIR)/debian/reflect.sh
@


1.56.2.5
log
@some debian mods
@
text
@d10 1
a10 1
# $Id: rules,v 1.56.2.4 2005/04/22 01:47:17 grendel Exp $
d42 7
d74 1
a74 1
	./configure --prefix=/usr --with-pike=$(PIKEBIN) --with-serverdir=/usr/lib/caudium --without-PCRE
@


1.56.2.6
log
@more debian stuff
@
text
@d10 1
a10 1
# $Id: rules,v 1.56.2.5 2005/10/04 06:46:09 grendel Exp $
a101 1
	-rm -f $(CURDIR)debian/caudium/usr/lib/caudium/$(PIKE_VERSION)/lib/PCRE.so
@


1.56.2.7
log
@some build process cleanup for debian
@
text
@a89 1
	-rm -rf $(CURDIR)/debian/*.links
a188 7
	if test -f $(CURDIR)/debian/caudium-cleanup.txt; then \
	    for d in `cat $(CURDIR)/debian/caudium-cleanup.txt`; do \
		rm -rf $(CURDIR)/debian/caudium/$$d ; \
		echo Removing $(CURDIR)/debian/caudium/$$d ; \
	    done \
	fi

a204 1

@


1.56.2.8
log
@and some more debian
@
text
@d10 1
a10 1
# $Id: rules,v 1.56.2.7 2005/10/05 06:47:53 grendel Exp $
a65 1
	    rm -rf `find -name "CVS" -type d -print`; \
@


1.56.2.9
log
@Some fixes to the linking/compiling process on Linux and Darwin
@
text
@d10 1
a10 1
# $Id: rules,v 1.56.2.8 2005/10/05 07:04:33 grendel Exp $
d57 1
a57 2
NO_RPATH_PLEASE=yes
export CFLAGS NO_RPATH_PLEASE
@


1.56.2.10
log
@some debian changes plus an alternative fix for the autoconf problem
@
text
@d10 1
a10 1
# $Id: rules,v 1.56.2.9 2006/03/30 12:01:21 grendel Exp $
d58 1
a58 2
SMARTLINK_CMDLINE_DUMP=1
export CFLAGS NO_RPATH_PLEASE SMARTLINK_CMDLINE_DUMP
@


1.56.2.11
log
@Preparing for Debian release
@
text
@d10 1
a10 1
# $Id: rules,v 1.56.2.10 2006/08/10 09:49:29 grendel Exp $
d134 1
a134 1
	chmod 644 debian/caudium/usr/lib/caudium$(EXTVER)/fonts/32/urw_itc_avant_garde-demi-r \
d137 2
a138 2
		   debian/caudium/usr/lib/caudium$(EXTVER)/modules/scripting/webapp.pike \
		   debian/caudium/usr/lib/caudium$(EXTVER)/bin/install.pike
d209 1
a209 8
	     -o -name "*.h" -type f -print \
             -o -name "*.ppm" -type f -print \
	     -o -name "content-encodings" -type f -print \
	     -o -name "content-types" -type f -print \
	     -o -name "errordata" -type f -print \
	     -o -name "extensions" -type f -print \
             -o -name "supports" -type f -print \
	     -o -name ".autodoc" -type f -print | \
d216 1
@


1.55
log
@pike7.6 should be used now
@
text
@d10 1
a10 1
# $Id: rules,v 1.54 2004/01/15 18:40:22 grendel Exp $
d148 4
a151 4
	       debian/caudium/usr/lib/caudium$(EXTVER)/base_server/caudium.pike > \
	       debian/caudium/usr/lib/caudium$(EXTVER)/base_server/caudium.pike.new && \
	mv debian/caudium/usr/lib/caudium$(EXTVER)/base_server/caudium.pike.new \
	   debian/caudium/usr/lib/caudium$(EXTVER)/base_server/caudium.pike
@


1.54
log
@Caudium 1.3 now requires Pike 7.5
@
text
@d10 1
a10 1
# $Id: rules,v 1.53 2003/12/04 00:14:49 grendel Exp $
d23 1
a23 1
PIKE=pike7.5
@


1.53
log
@better build options control for debian
install_alt no longer strips the .so modules
@
text
@d10 1
a10 1
# $Id: rules,v 1.52 2003/12/02 02:52:14 grendel Exp $
d23 1
a23 1
PIKE=pike7.4
@


1.52
log
@and a few more changes
@
text
@d10 1
a10 1
# $Id: rules,v 1.51 2003/11/04 01:01:34 grendel Exp $
d40 23
d226 1
a226 1
	dh_undocumented htpasswd-caudium.1 pixsl.1
d228 1
a228 1
	dh_strip
@


1.51
log
@more
@
text
@d10 1
a10 1
# $Id: rules,v 1.50 2003/09/28 19:52:23 grendel Exp $
d35 2
a36 1
        bin/ultrasum.pike bin/install.pike bin/pixsl.pike 
a88 1
	chmod 755 debian/caudium/usr/bin/ultrasum
d112 3
a114 1
		   debian/caudium/usr/lib/caudium$(EXTVER)/base_server/config/font
a141 1
	install -d -m 755 -o root -g root $(CURDIR)/debian/caudium/usr/local/share/caudium/modules/
@


1.50
log
@removed spidermonkey from the package
@
text
@d10 1
a10 1
# $Id: rules,v 1.49 2003/05/24 22:37:04 grendel Exp $
d47 1
a47 1
	./configure --prefix=/usr --with-pike=$(PIKEBIN) --with-smlib=smjs
@


1.49
log
@updated to the same state as 1.2
@
text
@d10 1
a10 1
# $Id: rules,v 1.48 2003/05/12 17:57:10 grendel Exp $
d37 1
a37 1
PACKAGES=caudium caudium-modules caudium-pixsl caudium-ultralog caudium-spidermonkey
d163 2
a164 2
	# in /usr/lib/caudium/
	
@


1.48
log
@some changes, forgot what
@
text
@d10 1
a10 1
# $Id: rules,v 1.47 2003/04/18 17:13:05 grendel Exp $
d37 2
d79 5
a83 5
	# Add here commands to install the package into debian/tmp.
	$(MAKE) install_alt prefix=/usr DESTDIR=$(CURDIR)/debian/tmp EXTRAVER=$(EXTVER)
	-rm -f $(CURDIR)/debian/tmp/usr/share/doc/caudium$(EXTVER)/COPYING
	cp debian/localhost $(CURDIR)/debian/tmp/etc/caudium$(EXTVER)/localhost.sample
	cp debian/Global_Variables $(CURDIR)/debian/tmp/etc/caudium$(EXTVER)/Global_Variables.sample
d86 3
a88 3
	 debian/tmp/usr/bin/ultrasum > debian/tmp/usr/bin/ultrasum.new && \
	mv debian/tmp/usr/bin/ultrasum.new debian/tmp/usr/bin/ultrasum ; \
	chmod 755 debian/tmp/usr/bin/ultrasum
d91 3
a93 3
	 debian/tmp/usr/bin/pixsl > debian/tmp/usr/bin/pixsl.new && \
	mv debian/tmp/usr/bin/pixsl.new debian/tmp/usr/bin/pixsl ; \
	chmod 755 debian/tmp/usr/bin/pixsl debian/tmp/usr/lib/caudium$(EXTVER)/bin/pixsl.pike
d96 4
a99 4
	  sed -e 's;^#\!.*;#\!/usr/bin/${PIKE};' debian/tmp/usr/lib/caudium$(EXTVER)/$$s > \
	      debian/tmp/usr/lib/caudium$(EXTVER)/$$s.new && \
	  mv debian/tmp/usr/lib/caudium$(EXTVER)/$$s.new debian/tmp/usr/lib/caudium$(EXTVER)/$$s ; \
	  chmod 755 debian/tmp/usr/lib/caudium$(EXTVER)/$$s ; \
d104 4
a107 4
	    < $(CURDIR)/debian/tmp/usr/bin/caudiumctl \
	    > $(CURDIR)/debian/tmp/usr/bin/caudiumctl.new && \
	    mv $(CURDIR)/debian/tmp/usr/bin/caudiumctl.new $(CURDIR)/debian/tmp/usr/bin/caudiumctl && \
	    chmod 755 $(CURDIR)/debian/tmp/usr/bin/caudiumctl
d110 3
a112 3
	-chmod 644 debian/tmp/usr/lib/caudium$(EXTVER)/fonts/32/urw_itc_avant_garde-demi-r \
	           debian/tmp/usr/lib/caudium$(EXTVER)/etc/roxen_hilfe.pike \
		   debian/tmp/usr/lib/caudium$(EXTVER)/base_server/config/font
d114 1
a114 1
	mv debian/tmp/usr/bin/htpasswd debian/tmp/usr/bin/htpasswd-caudium
d123 4
a126 4
	       debian/tmp/usr/lib/caudium$(EXTVER)/base_server/caudium.pike > \
	       debian/tmp/usr/lib/caudium$(EXTVER)/base_server/caudium.pike.new && \
	mv debian/tmp/usr/lib/caudium$(EXTVER)/base_server/caudium.pike.new \
	   debian/tmp/usr/lib/caudium$(EXTVER)/base_server/caudium.pike
d132 3
a134 3
	ln -sf ../../../bin/$(PIKE) $(CURDIR)/debian/tmp/usr/lib/caudium$(EXTVER)/bin/caudium
	cp -dp $(CURDIR)/debian/tmp/usr/lib/caudium$(EXTVER)/bin/caudium $(CURDIR)/debian/tmp/usr/lib/caudium$(EXTVER)/bin/pike
	rm -rf debian/tmp/usr/local/
d137 1
a137 1
	mv debian/tmp/usr/lib/caudium$(EXTVER)/caudium-images debian/tmp/usr/share/caudium$(EXTVER)/
d139 2
a140 2
	install -d -m 755 -o root -g root $(CURDIR)/debian/tmp/usr/share/pike_packages/apps/modules/
	install -d -m 755 -o root -g root $(CURDIR)/debian/tmp/usr/local/share/caudium/modules/
d145 6
a150 6
	cp -pad $(CURDIR)/server/perl/ $(CURDIR)/debian/tmp/usr/lib/caudium$(EXTVER)/
	sed -e 's;^#\!.*;#\!/usr/bin/perl;' debian/tmp/usr/lib/caudium$(EXTVER)/perl/bin/perlhelper > \
	    debian/tmp/usr/lib/caudium$(EXTVER)/perlhelper.new && \
	mv debian/tmp/usr/lib/caudium$(EXTVER)/perlhelper.new \
	   debian/tmp/usr/lib/caudium$(EXTVER)/perl/bin/perlhelper
	chmod 755 debian/tmp/usr/lib/caudium$(EXTVER)/perl/bin/perlhelper
d160 1
a160 1
	dh_movefiles
d162 14
@


1.47
log
@some updates
@
text
@d10 1
a10 1
# $Id: rules,v 1.46 2003/02/27 19:10:26 grendel Exp $
d127 1
a127 1
	    uudecode -o $(CURDIR)/debian/tmp/var/www/caudiumimages/`basename $${p%*.uu}` $$p; \
@


1.46
log
@better
@
text
@d10 1
a10 1
# $Id: rules,v 1.45 2003/02/27 18:48:03 grendel Exp $
a13 3

# This is the debhelper compatability version to use.
export DH_COMPAT=1
@


1.45
log
@the same changes what in 1.2
@
text
@d10 1
a10 1
# $Id: rules,v 1.44 2002/12/18 00:32:00 grendel Exp $
d107 2
a108 1
	    mv $(CURDIR)/debian/tmp/usr/bin/caudiumctl.new $(CURDIR)/debian/tmp/usr/bin/caudiumctl
@


1.44
log
@no symlinks here
@
text
@d10 1
a10 1
# $Id: rules,v 1.43 2002/12/17 22:33:08 grendel Exp $
d103 5
a107 1
	
d138 3
@


1.43
log
@perl here, too
@
text
@d10 1
a10 1
# $Id: rules,v 1.42 2002/12/07 02:27:36 grendel Exp $
a133 1
	ln -s /usr/share/caudium$(EXTVER)/caudium-images debian/tmp/usr/lib/caudium$(EXTVER)/caudium-images
@


1.42
log
@update
@
text
@d10 1
a10 1
# $Id: rules,v 1.41 2002/12/07 01:35:10 grendel Exp $
d131 4
@


1.41
log
@more build fixes
@
text
@d10 1
a10 1
# $Id: rules,v 1.40 2002/12/06 04:11:45 grendel Exp $
d103 1
a103 5
	sed -e 's;^#\!.*;#\!/usr/bin/perl;' debian/tmp/usr/lib/caudium$(EXTVER)/perl/bin/perlhelper > \
	    debian/tmp/usr/lib/caudium$(EXTVER)/perlhelper.new && \
	mv debian/tmp/usr/lib/caudium$(EXTVER)/perlhelper.new \
	   debian/tmp/usr/lib/caudium$(EXTVER)/perl/bin/perlhelper
	chmod 755 debian/tmp/usr/lib/caudium$(EXTVER)/perl/bin/perlhelper
d136 5
@


1.40
log
@7.4.1rc1 is out, so we will work with that version...
@
text
@d10 1
a10 1
# $Id: rules,v 1.39 2002/10/30 22:00:22 grendel Exp $
d102 6
@


1.39
log
@stuff
@
text
@d10 1
a10 1
# $Id: rules,v 1.38 2002/07/16 14:52:41 grendel Exp $
d26 1
a26 1
PIKE=pike7.3
@


1.38
log
@fix for the case when SpiderMonkey is missing + a fix for Debian compilation
@
text
@d10 1
a10 1
# $Id: rules,v 1.37 2002/06/29 16:20:13 grendel Exp $
d129 5
@


1.37
log
@moved the images elsewhere, they are installed with the package now, build
process is easier
@
text
@d10 1
a10 1
# $Id: rules,v 1.36 2002/05/18 16:51:52 grendel Exp $
d48 1
a48 1
	./configure --prefix=/usr --with-pike=$(PIKEBIN)
@


1.36
log
@deb
@
text
@d10 1
a10 1
# $Id: rules,v 1.35 2002/05/05 23:13:17 grendel Exp $
d81 4
a84 4
	$(MAKE) install_alt prefix=/usr DESTDIR=`pwd`/debian/tmp EXTRAVER=$(EXTVER)
	-rm -f `pwd`/debian/tmp/usr/share/doc/caudium$(EXTVER)/COPYING
	cp debian/localhost `pwd`/debian/tmp/etc/caudium$(EXTVER)/localhost.sample
	cp debian/Global_Variables `pwd`/debian/tmp/etc/caudium$(EXTVER)/Global_Variables.sample
d122 3
d126 2
a127 2
	ln -sf ../../../bin/$(PIKE) `pwd`/debian/tmp/usr/lib/caudium$(EXTVER)/bin/caudium
	cp -dp `pwd`/debian/tmp/usr/lib/caudium$(EXTVER)/bin/caudium `pwd`/debian/tmp/usr/lib/caudium$(EXTVER)/bin/pike
@


1.35
log
@stuff
@
text
@d10 1
a10 1
# $Id: rules,v 1.34 2002/04/20 15:19:10 underley Exp $
d26 1
a26 1
PIKE=pike7.2
@


1.34
log
@quick fix to build debian package
@
text
@d10 1
a10 1
# $Id: rules,v 1.33 2002/03/30 16:40:49 grendel Exp $
d116 1
@


1.33
log
@debian stuff
@
text
@d10 1
a10 1
# $Id: rules,v 1.30.2.3 2002/03/23 21:47:55 grendel Exp $
d38 1
a38 2
        bin/ultrasum.pike bin/install.pike bin/pixsl.pike \
        etc/modules/SSL.pmod/client.pike
@


1.32
log
@same changes as what for 1.2
@
text
@d10 1
a10 1
# $Id: rules,v 1.30.2.2 2002/01/30 13:03:01 grendel Exp $
d159 1
d161 1
a161 1
#	dh_installmanpages
d163 1
a163 1
	dh_undocumented htpasswd-caudium.1 pixsl.1 caudiumctl.1
@


1.31
log
@lintian bug
@
text
@d10 1
a10 1
# $Id: rules,v 1.30 2002/01/07 15:12:54 grendel Exp $
d35 1
a35 1
ADD_VER=
d82 4
a85 4
	$(MAKE) install_alt prefix=/usr DESTDIR=`pwd`/debian/tmp EXTRAVER=$(ADD_VER)
	-rm -f `pwd`/debian/tmp/usr/share/doc/caudium$(ADD_VER)/COPYING
	cp debian/localhost `pwd`/debian/tmp/etc/caudium$(ADD_VER)/localhost.sample
	cp debian/Global_Variables `pwd`/debian/tmp/etc/caudium$(ADD_VER)/Global_Variables.sample
d87 1
a87 1
	sed -e 's;/usr/caudium/server;/usr/lib/caudium$(ADD_VER);g'< \
d92 1
a92 1
	sed -e 's;/usr/caudium/server;/usr/lib/caudium$(ADD_VER);g'< \
d95 1
a95 1
	chmod 755 debian/tmp/usr/bin/pixsl debian/tmp/usr/lib/caudium$(ADD_VER)/bin/pixsl.pike
d98 4
a101 4
	  sed -e 's;^#\!.*;#\!/usr/bin/pike7;' debian/tmp/usr/lib/caudium$(ADD_VER)/$$s > \
	      debian/tmp/usr/lib/caudium$(ADD_VER)/$$s.new && \
	  mv debian/tmp/usr/lib/caudium$(ADD_VER)/$$s.new debian/tmp/usr/lib/caudium$(ADD_VER)/$$s ; \
	  chmod 755 debian/tmp/usr/lib/caudium$(ADD_VER)/$$s ; \
d105 3
a107 3
	-chmod 644 debian/tmp/usr/lib/caudium$(ADD_VER)/fonts/32/urw_itc_avant_garde-demi-r \
	           debian/tmp/usr/lib/caudium$(ADD_VER)/etc/roxen_hilfe.pike \
		   debian/tmp/usr/lib/caudium$(ADD_VER)/base_server/config/font
d115 1
a115 1
	    -e 's;\(^.*globvar("ConfigurationStateDir".*,\)\(".*"\)\([ ]*,.*,\);\1"/var/state/caudium$(ADD_VER)/"\3;' \
d117 4
a120 4
	       debian/tmp/usr/lib/caudium$(ADD_VER)/base_server/caudium.pike > \
	       debian/tmp/usr/lib/caudium$(ADD_VER)/base_server/caudium.pike.new && \
	mv debian/tmp/usr/lib/caudium$(ADD_VER)/base_server/caudium.pike.new \
	   debian/tmp/usr/lib/caudium$(ADD_VER)/base_server/caudium.pike
d123 2
a124 2
	ln -sf ../../../bin/$(PIKE) `pwd`/debian/tmp/usr/lib/caudium$(ADD_VER)/bin/pike
	ln -sf ../../../bin/$(PIKE) `pwd`/debian/tmp/usr/lib/caudium$(ADD_VER)/bin/caudium
d162 1
a162 1
	dh_undocumented htpasswd-caudium.1 pixsl.1
@


1.30
log
@minor mods
@
text
@d10 1
a10 1
# $Id: rules,v 1.29 2002/01/03 17:05:36 grendel Exp $
d38 2
a39 1
        bin/ultrasum.pike bin/install.pike 
@


1.30.2.1
log
@lintian bug fixed
@
text
@d10 1
a10 1
# $Id: rules,v 1.30 2002/01/07 15:12:54 grendel Exp $
d38 1
a38 2
        bin/ultrasum.pike bin/install.pike bin/pixsl.pike \
        etc/modules/SSL.pmod/client.pike
@


1.30.2.2
log
@modified the debian stuff a bit:

  - smooth upgrade from caudium 1.0 (symlinks were stray)
  - postinstall uses /usr/lib/caudium/bin/caudium now instead of pike
  - minor debian/control cleanups
  - fixed the sed run for modifying the scripts in bin/ and friends
@
text
@d10 1
a10 1
# $Id: rules,v 1.30.2.1 2002/01/29 14:00:25 grendel Exp $
d35 1
a35 1
EXTVER=
d82 4
a85 4
	$(MAKE) install_alt prefix=/usr DESTDIR=`pwd`/debian/tmp EXTRAVER=$(EXTVER)
	-rm -f `pwd`/debian/tmp/usr/share/doc/caudium$(EXTVER)/COPYING
	cp debian/localhost `pwd`/debian/tmp/etc/caudium$(EXTVER)/localhost.sample
	cp debian/Global_Variables `pwd`/debian/tmp/etc/caudium$(EXTVER)/Global_Variables.sample
d87 1
a87 1
	sed -e 's;/usr/caudium/server;/usr/lib/caudium$(EXTVER);g'< \
d92 1
a92 1
	sed -e 's;/usr/caudium/server;/usr/lib/caudium$(EXTVER);g'< \
d95 1
a95 1
	chmod 755 debian/tmp/usr/bin/pixsl debian/tmp/usr/lib/caudium$(EXTVER)/bin/pixsl.pike
d98 4
a101 4
	  sed -e 's;^#\!.*;#\!/usr/bin/${PIKE};' debian/tmp/usr/lib/caudium$(EXTVER)/$$s > \
	      debian/tmp/usr/lib/caudium$(EXTVER)/$$s.new && \
	  mv debian/tmp/usr/lib/caudium$(EXTVER)/$$s.new debian/tmp/usr/lib/caudium$(EXTVER)/$$s ; \
	  chmod 755 debian/tmp/usr/lib/caudium$(EXTVER)/$$s ; \
d105 3
a107 3
	-chmod 644 debian/tmp/usr/lib/caudium$(EXTVER)/fonts/32/urw_itc_avant_garde-demi-r \
	           debian/tmp/usr/lib/caudium$(EXTVER)/etc/roxen_hilfe.pike \
		   debian/tmp/usr/lib/caudium$(EXTVER)/base_server/config/font
d115 1
a115 1
	    -e 's;\(^.*globvar("ConfigurationStateDir".*,\)\(".*"\)\([ ]*,.*,\);\1"/var/state/caudium$(EXTVER)/"\3;' \
d117 4
a120 4
	       debian/tmp/usr/lib/caudium$(EXTVER)/base_server/caudium.pike > \
	       debian/tmp/usr/lib/caudium$(EXTVER)/base_server/caudium.pike.new && \
	mv debian/tmp/usr/lib/caudium$(EXTVER)/base_server/caudium.pike.new \
	   debian/tmp/usr/lib/caudium$(EXTVER)/base_server/caudium.pike
d123 2
a124 2
	ln -sf ../../../bin/$(PIKE) `pwd`/debian/tmp/usr/lib/caudium$(EXTVER)/bin/caudium
	cp -dp `pwd`/debian/tmp/usr/lib/caudium$(EXTVER)/bin/caudium `pwd`/debian/tmp/usr/lib/caudium$(EXTVER)/bin/pike
d162 1
a162 1
	dh_undocumented htpasswd-caudium.1 pixsl.1 caudiumctl.1
@


1.30.2.3
log
@fix for bug 531044
@
text
@d10 1
a10 1
# $Id: rules,v 1.30.2.2 2002/01/30 13:03:01 grendel Exp $
a158 1
	dh_installman
d160 1
a160 1
#	dh_installmanpages -A caudium doc/caudiumctl.1
d162 1
a162 1
	dh_undocumented htpasswd-caudium.1 pixsl.1
@


1.30.2.4
log
@dmod
@
text
@d10 1
a10 1
# $Id: rules,v 1.30.2.3 2002/03/23 21:47:55 grendel Exp $
d39 1
a39 1
        etc/modules/CaudiumSSL.pmod/client.pike
@


1.30.2.5
log
@same changes as for 1.3
@
text
@d10 1
a10 1
# $Id: rules,v 1.30.2.4 2002/04/20 15:47:14 grendel Exp $
d82 4
a85 4
	$(MAKE) install_alt prefix=/usr DESTDIR=$(CURDIR)/debian/tmp EXTRAVER=$(EXTVER)
	-rm -f $(CURDIR)/debian/tmp/usr/share/doc/caudium$(EXTVER)/COPYING
	cp debian/localhost $(CURDIR)/debian/tmp/etc/caudium$(EXTVER)/localhost.sample
	cp debian/Global_Variables $(CURDIR)/debian/tmp/etc/caudium$(EXTVER)/Global_Variables.sample
a121 3
	for p in $(CURDIR)/debian/www/*.png.uu; do \
	    uudecode -o $(CURDIR)/debian/tmp/var/www/caudiumimages/`basename $${p%*.uu}` $$p; \
	done
d123 2
a124 2
	ln -sf ../../../bin/$(PIKE) $(CURDIR)/debian/tmp/usr/lib/caudium$(EXTVER)/bin/caudium
	cp -dp $(CURDIR)/debian/tmp/usr/lib/caudium$(EXTVER)/bin/caudium $(CURDIR)/debian/tmp/usr/lib/caudium$(EXTVER)/bin/pike
@


1.30.2.6
log
@new release, perl support
@
text
@d10 1
a10 1
# $Id: rules,v 1.30.2.5 2002/06/29 16:30:03 grendel Exp $
a121 4
	# linitian doesn't like images in /usr/lib, let's move them to /usr/share
	mv debian/tmp/usr/lib/caudium$(EXTVER)/caudium-images debian/tmp/usr/share/caudium$(EXTVER)/
	ln -s debian/tmp/usr/share/caudium$(EXTVER)/caudium-images debian/tmp/usr/lib/caudium$(EXTVER)/caudium-images

a130 10
	# copy perl
	#
	cp -pad $(CURDIR)/server/perl/ $(CURDIR)/debian/tmp/usr/lib/caudium$(EXTVER)/
	sed -e 's;^#\!.*;#\!/usr/bin/perl;' debian/tmp/usr/lib/caudium$(EXTVER)/perl/bin/perlhelper > \
	    debian/tmp/usr/lib/caudium$(EXTVER)/perlhelper.new && \
	mv debian/tmp/usr/lib/caudium$(EXTVER)/perlhelper.new \
	   debian/tmp/usr/lib/caudium$(EXTVER)/perl/bin/perlhelper
	chmod 755 debian/tmp/usr/lib/caudium$(EXTVER)/perl/bin/perlhelper

	#
d176 1
a176 1
	dh_perl
@


1.30.2.7
log
@a goofup
@
text
@d10 1
a10 1
# $Id: rules,v 1.30.2.6 2002/12/17 21:19:34 grendel Exp $
d124 1
a124 1
	ln -s /usr/share/caudium$(EXTVER)/caudium-images debian/tmp/usr/lib/caudium$(EXTVER)/caudium-images
@


1.30.2.8
log
@a typo
@
text
@d10 1
a10 1
# $Id: rules,v 1.30.2.7 2002/12/17 22:18:41 grendel Exp $
d122 1
a122 1
	# lintian doesn't like images in /usr/lib, let's move them to /usr/share
@


1.30.2.9
log
@some minor modifications
@
text
@d10 1
a10 1
# $Id: rules,v 1.30.2.8 2002/12/17 22:31:30 grendel Exp $
d121 4
@


1.30.2.10
log
@goofup
@
text
@d10 1
a10 1
# $Id: rules,v 1.30.2.9 2002/12/17 23:12:47 grendel Exp $
a128 3

	# lintian doesn't like images in /usr/lib, let's move them to /usr/share
	mv debian/tmp/usr/lib/caudium$(EXTVER)/caudium-images debian/tmp/usr/share/caudium$(EXTVER)/
@


1.30.2.11
log
@same as in 1.3
@
text
@d10 1
a10 1
# $Id: rules,v 1.30.2.10 2002/12/17 23:24:47 grendel Exp $
d177 1
d179 1
@


1.30.2.12
log
@some fixes to problems noticed by Peter Lundqvist
@
text
@d10 1
a10 1
# $Id: rules,v 1.30.2.11 2003/02/25 19:24:07 grendel Exp $
a96 6
	# fix caudiumctl paths
	sed -e 's#caudiumhome=\$.*#caudiumhome=/usr/lib/caudium#g' \
	    < $(CURDIR)/debian/tmp/usr/bin/caudiumctl \
	    > $(CURDIR)/debian/tmp/usr/bin/caudiumctl.new && \
	    mv $(CURDIR)/debian/tmp/usr/bin/caudiumctl.new $(CURDIR)/debian/tmp/usr/bin/caudiumctl

a141 3

	install -d -m 755 -o root -g root $(CURDIR)/debian/tmp/usr/share/pike_packages/apps/modules/
	install -d -m 755 -o root -g root $(CURDIR)/debian/tmp/usr/local/share/caudium/modules/
@


1.30.2.13
log
@lintian frowns on the directory being in deb
@
text
@d10 1
a10 1
# $Id: rules,v 1.30.2.12 2003/02/27 18:40:39 grendel Exp $
d150 1
@


1.30.2.14
log
@better now
@
text
@d10 1
a10 1
# $Id: rules,v 1.30.2.13 2003/02/27 18:53:32 grendel Exp $
d98 1
a98 1
	sed -e 's#caudiumhome=.*#caudiumhome=/usr/lib/caudium#g' \
d101 1
a101 2
	    mv $(CURDIR)/debian/tmp/usr/bin/caudiumctl.new $(CURDIR)/debian/tmp/usr/bin/caudiumctl && \
	    chmod 755 $(CURDIR)/debian/tmp/usr/bin/caudiumctl
@


1.30.2.15
log
@some debian changes
@
text
@d10 1
a10 1
# $Id: rules,v 1.30.2.14 2003/02/27 19:09:28 grendel Exp $
d14 3
@


1.30.2.16
log
@more stuff
@
text
@d10 1
a10 1
# $Id: rules,v 1.30.2.15 2003/04/17 00:44:48 grendel Exp $
d15 1
d78 5
a82 5
	# Add here commands to install the package into debian/caudium.
	$(MAKE) install_alt prefix=/usr DESTDIR=$(CURDIR)/debian/caudium EXTRAVER=$(EXTVER)
	-rm -f $(CURDIR)/debian/caudium/usr/share/doc/caudium$(EXTVER)/COPYING
	cp debian/localhost $(CURDIR)/debian/caudium/etc/caudium$(EXTVER)/localhost.sample
	cp debian/Global_Variables $(CURDIR)/debian/caudium/etc/caudium$(EXTVER)/Global_Variables.sample
d85 3
a87 3
	 debian/caudium/usr/bin/ultrasum > debian/caudium/usr/bin/ultrasum.new && \
	mv debian/caudium/usr/bin/ultrasum.new debian/caudium/usr/bin/ultrasum ; \
	chmod 755 debian/caudium/usr/bin/ultrasum
d90 3
a92 3
	 debian/caudium/usr/bin/pixsl > debian/caudium/usr/bin/pixsl.new && \
	mv debian/caudium/usr/bin/pixsl.new debian/caudium/usr/bin/pixsl ; \
	chmod 755 debian/caudium/usr/bin/pixsl debian/caudium/usr/lib/caudium$(EXTVER)/bin/pixsl.pike
d96 4
a99 4
	    < $(CURDIR)/debian/caudium/usr/bin/caudiumctl \
	    > $(CURDIR)/debian/caudium/usr/bin/caudiumctl.new && \
	    mv $(CURDIR)/debian/caudium/usr/bin/caudiumctl.new $(CURDIR)/debian/caudium/usr/bin/caudiumctl && \
	    chmod 755 $(CURDIR)/debian/caudium/usr/bin/caudiumctl
d102 4
a105 4
	  sed -e 's;^#\!.*;#\!/usr/bin/${PIKE};' debian/caudium/usr/lib/caudium$(EXTVER)/$$s > \
	      debian/caudium/usr/lib/caudium$(EXTVER)/$$s.new && \
	  mv debian/caudium/usr/lib/caudium$(EXTVER)/$$s.new debian/caudium/usr/lib/caudium$(EXTVER)/$$s ; \
	  chmod 755 debian/caudium/usr/lib/caudium$(EXTVER)/$$s ; \
d109 3
a111 3
	-chmod 644 debian/caudium/usr/lib/caudium$(EXTVER)/fonts/32/urw_itc_avant_garde-demi-r \
	           debian/caudium/usr/lib/caudium$(EXTVER)/etc/roxen_hilfe.pike \
		   debian/caudium/usr/lib/caudium$(EXTVER)/base_server/config/font
d113 1
a113 1
	mv debian/caudium/usr/bin/htpasswd debian/caudium/usr/bin/htpasswd-caudium
d121 4
a124 4
	       debian/caudium/usr/lib/caudium$(EXTVER)/base_server/caudium.pike > \
	       debian/caudium/usr/lib/caudium$(EXTVER)/base_server/caudium.pike.new && \
	mv debian/caudium/usr/lib/caudium$(EXTVER)/base_server/caudium.pike.new \
	   debian/caudium/usr/lib/caudium$(EXTVER)/base_server/caudium.pike
d127 1
a127 1
	    uudecode -o $(CURDIR)/debian/caudium/var/www/caudiumimages/`basename $${p%*.uu}` $$p; \
d130 3
a132 3
	ln -sf ../../../bin/$(PIKE) $(CURDIR)/debian/caudium/usr/lib/caudium$(EXTVER)/bin/caudium
	cp -dp $(CURDIR)/debian/caudium/usr/lib/caudium$(EXTVER)/bin/caudium $(CURDIR)/debian/caudium/usr/lib/caudium$(EXTVER)/bin/pike
	rm -rf debian/caudium/usr/local/
d135 1
a135 1
	mv debian/caudium/usr/lib/caudium$(EXTVER)/caudium-images debian/caudium/usr/share/caudium$(EXTVER)/
d140 6
a145 6
	cp -pad $(CURDIR)/server/perl/ $(CURDIR)/debian/caudium/usr/lib/caudium$(EXTVER)/
	sed -e 's;^#\!.*;#\!/usr/bin/perl;' debian/caudium/usr/lib/caudium$(EXTVER)/perl/bin/perlhelper > \
	    debian/caudium/usr/lib/caudium$(EXTVER)/perlhelper.new && \
	mv debian/caudium/usr/lib/caudium$(EXTVER)/perlhelper.new \
	   debian/caudium/usr/lib/caudium$(EXTVER)/perl/bin/perlhelper
	chmod 755 debian/caudium/usr/lib/caudium$(EXTVER)/perl/bin/perlhelper
d147 1
a147 1
	install -d -m 755 -o root -g root $(CURDIR)/debian/caudium/usr/share/pike_packages/apps/modules/
d157 1
a157 1
	dh_movefiles --sourcedir=debian/caudium
@


1.30.2.17
log
@some debian changes, some typos fixed
@
text
@d10 1
a10 1
# $Id: rules,v 1.30.2.16 2003/04/17 00:59:09 grendel Exp $
a36 2
PACKAGES=caudium caudium-modules caudium-pixsl caudium-ultralog

a67 1
	for p in $(PACKAGES); do rm -f $(CURDIR)/debian/$$p.links; done
a157 14
	# move all the arch independent files to /usr/share and symlink them from their original location
	# in /usr/lib/caudium/
	
	for p in $(PACKAGES); do \
	(cd $(CURDIR)/debian/$$p/; find usr/lib/caudium/ \
	     -name "*.pike" -type f -print \
	     -o -name "*.pmod" -type f -print \
	     -o -name "*.html" -type f -print \
	     -o -name "*.h" -type f -print | \
	     $(CURDIR)/debian/reflect.sh usr/share/caudium/ \
	                                 $(CURDIR)/debian/$$p.links \
	                                 usr/lib/caudium/ \
					 $(CURDIR)/debian/$$p/) ; \
	done
@


1.30.2.18
log
@more stuff
@
text
@d10 1
a10 1
# $Id: rules,v 1.30.2.17 2003/05/21 21:00:08 grendel Exp $
a163 2
	# pbuilder seems to have a problem with the script permissions
	chmod 755 $(CURDIR)/debian/reflect.sh
@


1.30.2.19
log
@Fixing a Debian RC bug
@
text
@d10 1
a10 1
# $Id: rules,v 1.30.2.18 2003/06/16 18:36:16 grendel Exp $
a38 2
REMOVEFONTS=lucida_unicode.ttf lucida_unicode.txt verdana.ttf verdana.txt

a150 7
	# Remove non-dfsg fonts
	for f in $(REMOVEFONTS); do \
	 if -f debian/caudium/usr/lib/caudium$(EXTVER)/fonts/ttf/$f; then \
	   rm -f debian/caudium/usr/lib/caudium$(EXTVER)/fonts/ttf/$f; \
	 fi \
	done

@


1.30.2.20
log
@some more changes
@
text
@d10 1
a10 1
# $Id: rules,v 1.30.2.19 2005/04/03 22:45:18 grendel Exp $
d155 1
a155 1
	 if [ -f debian/caudium/usr/lib/caudium$(EXTVER)/fonts/ttf/$f ]; then \
@


1.29
log
@preparation for the official release
@
text
@d10 1
a10 1
# $Id: rules,v 1.28 2001/11/07 15:43:59 grendel Exp $
d26 1
a26 1
PIKE=pike7
d44 1
a44 1
	
d85 1
a85 1
	
d90 1
a90 1
	
d95 1
a95 1
	
d102 1
a102 1
	
d107 1
a107 1
		   
d109 1
a109 1
	
d125 1
a125 1
	
d135 1
a135 1
	
@


1.28
log
@boom
@
text
@d10 1
a10 1
# $Id: rules,v 1.27 2001/09/24 13:29:41 grendel Exp $
d35 1
a35 1
ADD_VER=-1.1
d130 1
a130 1
	install -m 755 -d debian/caudium-ultralog-1.1/usr/share/man/man1/
d132 1
a132 1
	   debian/caudium-ultralog-1.1/usr/share/man/man1/
@


1.27
log
@further camas eradication
@
text
@d10 1
a10 1
# $Id: rules,v 1.26 2001/07/09 09:11:38 grendel Exp $
d23 2
a24 2
ifdef NEW_PIKE
PIKE=pike7.2
@


1.26
log
@stuff
@
text
@d10 1
a10 1
# $Id: rules,v 1.25 2001/06/06 15:22:51 grendel Exp $
a135 4
	# clean up CAMAS debris here
	rm -rf debian/tmp/usr/share/caudium$(ADD_VER)/modules/camas
	rm -rf debian/caudium-camas/usr/lib/caudium$(ADD_VER)/etc/include/camas/language.templates
	rm -rf debian/caudium-camas/usr/share/caudium$(ADD_VER)/modules/camas/docs
@


1.25
log
@caudium-1.1 can now be conditionally built with either pike7.2 or
pike7 - the former is selected by setting the NEW_PIKE environment
variable before building the package (e.g. debuild -eNEW_PIKE=1)
@
text
@d10 1
a10 1
# $Id: rules,v 1.24 2001/06/05 14:26:57 grendel Exp $
d177 1
a177 1
	dh_gencontrol -- -Vpike:ver=$(PIKE_DEBIAN_VER) -Vpike:name=$(PIKE)
@


1.24
log
@New Debian packaging scheme - new package name, new directories, new
config. Also modified some of Makefiles - the install_alt target (used
and meant for package maintainers) now uses one extra variable to put
caudium in "versioned" directories. This is done to enable developers
using Debian machines to run both stable and unstable Caudium
installed from debs (rpms etc.). The changes don't affect anything
else but the Debian config and the install_alt target.
@
text
@d10 1
a10 1
# $Id: rules,v 1.23 2001/05/30 08:27:56 underley Exp $
d23 8
a30 3
# The ugly hack is here because CVS keeps losing the perm bits...
PIKE=/usr/bin/pike7.2
PIKE_VERSION=$(shell $(PIKE) -e 'string v; int rel;sscanf(version(), "Pike v%s release %d", v, rel); write(v+"."+rel);')
d32 1
a32 1
PIKE7_CHANGELOG=/usr/share/doc/pike7.2/changelog.Debian.gz
d48 1
a48 1
	./configure --prefix=/usr --with-pike=$(PIKE)
d122 2
a123 2
	ln -sf ../../../bin/pike7.2 `pwd`/debian/tmp/usr/lib/caudium$(ADD_VER)/bin/pike
	ln -sf ../../../bin/pike7.2 `pwd`/debian/tmp/usr/lib/caudium$(ADD_VER)/bin/caudium
d177 1
a177 1
	dh_gencontrol -u"-Vpikever=$(PIKE_DEBIAN_VER)"
@


1.23
log
@
Ok, this is correct way. yltralog is no more undocumented ;)
@
text
@d10 1
a10 1
# $Id: rules,v 1.22 2001/05/30 08:14:46 underley Exp $
d24 1
a24 1
PIKE=/usr/bin/pike7
d27 1
a27 1
PIKE7_CHANGELOG=/usr/share/doc/pike7/changelog.Debian.gz
d30 1
d76 4
a79 4
	$(MAKE) install_alt prefix=/usr DESTDIR=`pwd`/debian/tmp
	-rm -f `pwd`/debian/tmp/usr/share/doc/caudium/COPYING
	cp debian/localhost `pwd`/debian/tmp/etc/caudium/localhost.sample
	cp debian/Global_Variables `pwd`/debian/tmp/etc/caudium/Global_Variables.sample
d81 1
a81 1
	sed -e 's;/usr/caudium/server;/usr/lib/caudium;g'< \
d86 1
a86 1
	sed -e 's;/usr/caudium/server;/usr/lib/caudium;g'< \
d89 1
a89 1
	chmod 755 debian/tmp/usr/bin/pixsl debian/tmp/usr/lib/caudium/bin/pixsl.pike
d92 4
a95 4
	  sed -e 's;^#\!.*;#\!/usr/bin/pike7;' debian/tmp/usr/lib/caudium/$$s > \
	      debian/tmp/usr/lib/caudium/$$s.new && \
	  mv debian/tmp/usr/lib/caudium/$$s.new debian/tmp/usr/lib/caudium/$$s ; \
	  chmod 755 debian/tmp/usr/lib/caudium/$$s ; \
d99 3
a101 3
	-chmod 644 debian/tmp/usr/lib/caudium/fonts/32/urw_itc_avant_garde-demi-r \
	           debian/tmp/usr/lib/caudium/etc/roxen_hilfe.pike \
		   debian/tmp/usr/lib/caudium/base_server/config/font
d109 1
a109 1
	    -e 's;\(^.*globvar("ConfigurationStateDir".*,\)\(".*"\)\([ ]*,.*,\);\1"/var/state/caudium/"\3;' \
d111 4
a114 4
	       debian/tmp/usr/lib/caudium/base_server/caudium.pike > \
	       debian/tmp/usr/lib/caudium/base_server/caudium.pike.new && \
	mv debian/tmp/usr/lib/caudium/base_server/caudium.pike.new \
	   debian/tmp/usr/lib/caudium/base_server/caudium.pike
d117 2
a118 2
	ln -sf ../../../bin/pike7 `pwd`/debian/tmp/usr/lib/caudium/bin/pike
	ln -sf ../../../bin/pike7 `pwd`/debian/tmp/usr/lib/caudium/bin/caudium
a120 3
	chmod 644 debian/tmp/usr/lib/caudium/modules/graphics/business_graphics/create_graph.pike \
	          debian/tmp/usr/lib/caudium/modules/graphics/business_graphics/create_bars.pike

d125 1
a125 1
	install -m 755 -d debian/caudium-ultralog/usr/share/man/man1/
d127 1
a127 1
	   debian/caudium-ultralog/usr/share/man/man1/
d132 3
a134 3
	rm -rf debian/tmp/usr/share/caudium/modules/camas
	rm -rf debian/caudium-camas/usr/lib/caudium/etc/include/camas/language.templates
	rm -rf debian/caudium-camas/usr/share/caudium/modules/camas/docs
@


1.22
log
@
Remove ultralog manual from main caudium package
@
text
@d10 1
a10 1
# $Id: rules,v 1.21 2001/05/28 12:26:40 grendel Exp $
a130 3
	# ugly hack - remove manual from caudium deb
	rm debian/tmp/usr/share/man/man1/ultrasum.1.gz
	
d162 1
a162 1
	dh_undocumented htpasswd-caudium.1 ultrasum.1 pixsl.1
@


1.21
log
@debian changes
@
text
@d10 1
a10 1
# $Id: rules,v 1.20 2001/05/24 11:31:29 grendel Exp $
d130 3
@


1.20
log
@debian stuff
camas Polish language files updated
@
text
@d10 1
a10 1
# $Id: rules,v 1.19 2001/05/22 09:38:58 grendel Exp $
d78 1
@


1.19
log
@added camas stuff
updated the debian stuff to match the 1.0 setup
@
text
@d10 1
a10 1
# $Id: rules,v 1.18 2001/04/06 14:52:28 grendel Exp $
d119 2
a120 2
	chmod 644 debian/tmp/usr/share/caudium/modules/graphics/business_graphics/create_graph.pike \
	          debian/tmp/usr/share/caudium/modules/graphics/business_graphics/create_bars.pike
@


1.18
log
@fixed a typo
@
text
@d10 1
a10 1
# $Id: rules,v 1.17 2001/02/20 14:54:45 grendel Exp $
a23 1
#UGLY_HACK=$(shell chmod 755 debian/debian_pike_version)
d118 12
d131 5
d147 1
a147 1
	dh_testversion 1.1.17
@


1.17
log
@updated the Debian stuff
@
text
@d10 1
a10 1
# $Id: rules,v 1.16 2001/01/15 19:39:51 grendel Exp $
d107 1
a107 1
	    -e 's;\(^.*globvar("font_dirs".*,({\)\(".*"\)\(}),\);\1\2"local_fonts/",\3;' \
@


1.16
log
@debian stuff
@
text
@d10 1
a10 1
# $Id: rules,v 1.15 2001/01/09 09:30:37 grendel Exp $
d25 1
a25 1
PIKE=/usr/bin/pike7-cvs
d28 1
a28 1
PIKE7_CHANGELOG=/usr/share/doc/pike7-cvs/changelog.Debian.gz
d91 1
a91 1
	  sed -e 's;^#\!.*;#\!/usr/bin/pike7-cvs;' debian/tmp/usr/lib/caudium/$$s > \
d116 2
a117 2
	ln -sf ../../../bin/pike7-cvs `pwd`/debian/tmp/usr/lib/caudium/bin/pike
	ln -sf ../../../bin/pike7-cvs `pwd`/debian/tmp/usr/lib/caudium/bin/caudium
@


1.15
log
@- fixed the http2 thingie. The problem was that the f param to (a file) was
  not always present and in such case the htp object (Caudium.ParseHTTP)
  wasn't created and got_data still got called on input - the tmp =
  htp->append line obviously failed then. The best fix turned out to be to
  create the htp object unconditionally on every create() call.
- fixed some Debian stuff
@
text
@d10 1
a10 1
# $Id: rules,v 1.14 2001/01/08 16:52:15 grendel Exp $
d24 1
a24 1
UGLY_HACK=$(shell chmod 755 debian/debian_pike_version)
@


1.14
log
@OK, I'm trying not to break things too much, but it can happen :))

- Makefile.in uses the -p flag to cp as some cp versions don't preserve time
  stamps when this flag isn't used
- The install_alt target doesn't install modules in the ${prefix}/share
  directory - they are installed in the ${prefix}/lib along with the core.
- Debian changes - version bump and adaptation to the above
- Added two cif options to configure request settings when http2.pike is used:
    - RequestBufSize  - sets the request buffer size as used by the Caudium
      cmod. Note, it broke requests for me at home - at work it seems to
      function correctly, though... The breakage was that on every requests
      the 'Indexing NULL...' error was happening 3 times in row - then the
      request was handled ok. The problem was reported to happen at line
      1393 or http2.pike - but the real error ocurred somewhere inside
      f_buf_append in caudium.c ... This might be a consequence of
      dynamically allocating the request buffer (buffer->data) in class init
      and reallocating it (if needed) in create.
    - RequestCacheTimeout - sets the http2 cache request timeout.
@
text
@d10 1
a10 1
# $Id: rules,v 1.13 2000/12/20 19:25:29 grendel Exp $
d28 2
a29 1
PIKE_DEBIAN_VER=$(shell debian/debian_pike_version $(PIKE))
d31 1
a65 1
	-chmod 755 debian/debian_pike_version
@


1.13
log
@- added a new font directory for TTF files
- added two M$ TTF fonts and corresponding EULAs
- modified the Debian packaging code
- font_dirs now contains fonts/ and fonts/ttf/ directories by default
@
text
@d10 1
a10 1
# $Id: rules,v 1.12 2000/11/29 20:18:17 grendel Exp $
a100 1
	-rm -f debian/usr/share/doc/caudium/COPYING
a117 1
	
@


1.12
log
@Bummer
@
text
@d10 1
a10 1
# $Id: rules,v 1.11 2000/11/29 19:45:43 grendel Exp $
d107 1
a107 1
	    -e 's;\(^.*globvar("font_dirs".*,({\)\(".*"\)\(}),\);\1\2"local_fonts/","fonts/",\3;' \
@


1.12.2.1
log
@debian changes
@
text
@d10 1
a10 1
# $Id: rules,v 1.12 2000/11/29 20:18:17 grendel Exp $
d23 2
d28 1
a28 2
PIKE7_CHANGELOG=/usr/share/doc/pike7-cvs/changelog.Debian.gz
PIKE_DEBIAN_VER=$(shell gunzip -c ${PIKE7_CHANGELOG} | head -1 | sed -e 's/\(.*(\)\(.*\)\().*\)/\2/')
a29 1

@


1.12.2.2
log
@minor change
@
text
@d10 1
a10 1
# $Id: rules,v 1.12.2.1 2001/01/25 15:44:27 grendel Exp $
d64 1
@


1.12.2.3
log
@Debian now includes the latest pike7 debs, we can depend on them
@
text
@d10 1
a10 1
# $Id: rules,v 1.12.2.2 2001/01/25 15:52:58 grendel Exp $
d23 1
a23 1
PIKE=/usr/bin/pike7
d26 1
a26 1
PIKE7_CHANGELOG=/usr/share/doc/pike7/changelog.Debian.gz
d89 1
a89 1
	  sed -e 's;^#\!.*;#\!/usr/bin/pike7;' debian/tmp/usr/lib/caudium/$$s > \
d115 2
a116 2
	ln -sf ../../../bin/pike7 `pwd`/debian/tmp/usr/lib/caudium/bin/pike
	ln -sf ../../../bin/pike7 `pwd`/debian/tmp/usr/lib/caudium/bin/caudium
@


1.12.2.4
log
@fixed a typo
@
text
@d10 1
a10 1
# $Id: rules,v 1.12.2.3 2001/02/16 18:38:47 grendel Exp $
d106 1
a106 1
	    -e 's;\(^.*globvar("font_dirs".*,({\)\(".*"\)\(}),\);\1\2,"local_fonts/","fonts/",\3;' \
@


1.12.2.5
log
@cleaning up
@
text
@d10 1
a10 1
# $Id: rules,v 1.12.2.4 2001/04/06 14:56:36 grendel Exp $
d131 1
a131 1
#	dh_testversion 1.1.17
d145 1
a145 2
	dh_undocumented htpasswd-caudium.1 pixsl.1
	dh_undocumented -pcaudium-ultralog ultrasum.1
@


1.12.2.6
log
@debian stuff
@
text
@a118 11
	chmod 644 debian/tmp/usr/share/caudium/modules/graphics/business_graphics/create_graph.pike \
	          debian/tmp/usr/share/caudium/modules/graphics/business_graphics/create_bars.pike

	#
	# the -p debhelper param seems to be not working... 
	# so let's do it by hand
	#
	install -m 755 -d debian/caudium-ultralog/usr/share/man/man1/
	cp src/cmods/UltraLog/docs/ultrasum.1 \
	   debian/caudium-ultralog/usr/share/man/man1/
	   
d143 1
d145 2
a146 2
	dh_undocumented -pcaudium htpasswd-caudium.1 
	dh_undocumented -pcaudium-pixsl pixsl.1
@


1.12.2.7
log
@added directory with patches needed for Debian that are not required by
Caudium upstream (stupid policy...)
@
text
@d10 1
a10 1
# $Id: rules,v 1.12.2.6 2001/04/19 15:51:22 grendel Exp $
d39 1
a39 2
	    patch -p1 < debian/patches/caudium-cvs-rpath.diff; \
    	    ./autogen.sh; \
a58 4
	if test "$(CVS_SNAPSHOT)" = "yes"; then \
	    patch -R -p1 < debian/patches/caudium-cvs-rpath.diff; \
	fi
	
@


1.12.2.8
log
@debian mods
@
text
@d39 1
a39 4
	    if test ! -f stamp-patch; then \
		patch -p1 < debian/patches/caudium-cvs-rpath.diff; \
		touch stamp-patch; \
	    fi; \
d60 1
a60 1
	if test -f stamp-patch; then \
a61 1
	    rm -f stamp-patch; \
@


1.12.2.9
log
@debian dreck
@
text
@d10 1
a10 1
# $Id: rules,v 1.12.2.8 2001/05/05 21:17:45 grendel Exp $
a139 5
	
	# clean up CAMAS debris here
	rm -rf debian/tmp/usr/share/caudium/modules/camas
	rm -rf debian/caudium-camas/usr/lib/caudium/etc/include/camas/language.templates
	rm -rf debian/caudium-camas/usr/share/caudium/modules/camas/docs
@


1.12.2.10
log
@CAMAS cleanup
@
text
@d10 1
a10 1
# $Id: rules,v 1.12.2.9 2001/05/05 22:13:41 grendel Exp $
d142 3
a144 3
	#rm -rf debian/tmp/usr/share/caudium/modules/camas
	#rm -rf debian/caudium-camas/usr/lib/caudium/etc/include/camas/language.templates
	#rm -rf debian/caudium-camas/usr/share/caudium/modules/camas/docs
@


1.12.2.11
log
@new debian stuff
@
text
@d10 1
a10 1
# $Id: rules,v 1.12.2.10 2001/06/06 12:16:30 grendel Exp $
d182 1
a182 1
	dh_gencontrol -u"-Vpikever=$(PIKE_VERSION)"
@


1.12.2.12
log
@fixing some debian warnings
getting rid of rpath in debian
@
text
@d10 1
a10 1
# $Id: rules,v 1.12.2.11 2001/06/25 15:50:45 grendel Exp $
a40 1
		patch -p1 < debian/patches/smartlink.diff; \
@


1.12.2.13
log
@further debian stuff
@
text
@d10 1
a10 1
# $Id: rules,v 1.12.2.12 2001/11/26 11:13:46 grendel Exp $
d38 8
a45 8
	if test ! -f stamp-patch; then \
	    patch -p1 < debian/patches/caudium-cvs-rpath.diff; \
	    patch -p1 < debian/patches/smartlink.diff; \
	    patch -p1 < debian/patches/configure.in.diff; \
	    touch stamp-patch; \
	fi;
	./autogen.sh;
	
@


1.12.2.14
log
@now it should work better
@
text
@d10 1
a10 1
# $Id: rules,v 1.12.2.13 2001/11/26 11:29:58 grendel Exp $
d39 1
@


1.12.2.15
log
@unpatch'em in cleanup, fool
@
text
@d10 1
a10 1
# $Id: rules,v 1.12.2.14 2001/11/26 11:39:27 grendel Exp $
d64 1
a64 2
	    patch -R -p1 < debian/patches/smartlink.diff; \
	    patch -R -p1 < debian/patches/configure.in.diff; \
@


1.12.2.16
log
@two more lintian errors squashed
@
text
@d10 1
a10 1
# $Id: rules,v 1.12.2.15 2001/11/26 11:51:36 grendel Exp $
d31 1
a31 2
        bin/ultrasum.pike bin/install.pike bin/pixsl.pike \
        etc/modules/SSL.pmod/client.pike
d36 2
a37 2
# Add here commands to configure the package.

d44 1
a44 1

d53 1
a53 1
# Add here commands to compile the package.
d68 2
a69 2

# Add here commands to clean up after the build process.
d83 1
a83 1
# Add here commands to install the package into debian/tmp.
d87 1
a87 1

d92 1
a92 1

d97 1
a97 1

d104 2
a105 2

# perms fixing fest
d109 1
a109 1

d112 3
a114 3

# add libroxen modules path
# change the state directory
d124 1
a124 1
# fix what lintian whines about
d128 1
a128 1

d132 4
a135 4
#
# the -p debhelper param seems to be not working... 
# so let's do it by hand
#
d139 1
a139 1

d141 5
a145 5

# clean up CAMAS debris here
#rm -rf debian/tmp/usr/share/caudium/modules/camas
#rm -rf debian/caudium-camas/usr/lib/caudium/etc/include/camas/language.templates
#rm -rf debian/caudium-camas/usr/share/caudium/modules/camas/docs
d156 1
a156 1
# Need this version of debhelper for DH_OPTIONS to work.
d177 1
a177 1
# You may want to make some executables suid here.
@


1.12.2.17
log
@some stuff removed
@
text
@d10 1
a10 1
# $Id: rules,v 1.12.2.16 2002/01/29 13:49:50 grendel Exp $
d40 1
d65 1
@


1.11
log
@Fixed missing font paths
@
text
@d10 1
a10 1
# $Id: rules,v 1.10 2000/11/03 19:36:12 grendel Exp $
d107 1
a107 1
	    -e 's;\(^.*globvar("font_dirs".*,({\)\(".*"\)\(}),\);\1,"local_fonts/","fonts/",\2\3;' \
@


1.10
log
@Fixed debian packaging
@
text
@d10 1
a10 1
# $Id: rules,v 1.9 2000/10/21 17:08:18 grendel Exp $
d107 1
@


1.9
log
@- bumped up Debian version
- added permissions fixup for debian_pike_version
@
text
@d10 1
a10 1
# $Id: rules,v 1.8 2000/09/25 14:20:57 grendel Exp $
d77 1
a77 1
	cp debian/localhost `pwd`/debian/tmp/etc/caudium/servers/
@


1.8
log
@Split modules into separate packages - -modules -ultralog -pixsl. Caudium
depends only on the first one now, the other are recommended. Fixed most of
the lintian-reported bugs. Caudium starts now as www-data.www-data by
default.
@
text
@d10 1
a10 1
# $Id: rules,v 1.7 2000/09/17 16:04:34 grendel Exp $
d64 1
@


1.7
log
@ugly hack for stubborn CVS (or, moi should RTFM :P)
@
text
@d10 1
a10 1
# $Id: rules,v 1.6 2000/08/26 09:44:47 grendel Exp $
a36 1
	echo "/usr/lib/caudium/lib/$(PIKE_VERSION)" > debian/caudium-modules.dirs
d63 1
a75 3
	mv -f `pwd`/debian/tmp/usr/lib/caudium/lib/$(PIKE_VERSION)/* \
	   `pwd`/debian/caudium-modules/usr/lib/caudium/lib/$(PIKE_VERSION)
	rm -rf `pwd`/debian/tmp/usr/lib/caudium/lib/$(PIKE_VERSION)/
d83 5
d104 1
d106 2
d112 5
d144 1
a144 1
	dh_undocumented htpasswd-caudium.1 ultrasum.1
@


1.6
log
@Further Debian changes
@
text
@d10 1
a10 1
# $Id: rules,v 1.5 2000/08/23 14:55:00 grendel Exp $
d22 3
@


1.5
log
@- latest version of Debian stuff
- smartlink modified to support sans -rpath and sans -R compiles on Debian
  (it is forbidden by the Debian policy to use these flags)
@
text
@d10 1
a10 1
# $Id: rules,v 1.4 2000/08/21 17:30:02 grendel Exp $
d48 1
a48 1
	$(MAKE) DEBIAN_GNU_LINUX="yes"
d59 2
a60 1

d72 1
d97 8
@


1.4
log
@yep, I blew it again. Now it's OK.
@
text
@d10 1
a10 1
# $Id: rules,v 1.1 2000/08/16 19:30:47 grendel Exp $
d22 1
a22 1
PIKE=/usr/bin/pike7
a38 1
	PIKE_C_INCLUDES=/usr/lib/pike/${PIKE_DEBIAN_VER2}/include/ \
d48 1
a48 1
	$(MAKE)
d82 1
a82 1
	  sed -e 's;^#\!.*;#\!/usr/bin/pike7;' debian/tmp/usr/lib/caudium/$$s > \
d88 7
d121 1
a121 1
	dh_undocumented
@


1.3
log
@Some more Debian-related changes. It's not perfect yet, but getting close :)
@
text
@a132 114
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper. 
# GNU copyright 1997 by Joey Hess.
#
# This version is for a hypothetical package that builds an
# architecture-dependant package, as well as an architecture-independent
# package.
#
# This is the Caudium Webserver rules file
# $Id: rules,v 1.2 2000/08/18 12:39:27 grendel Exp $
#
# Uncomment this to turn on verbose mode. 
#export DH_VERBOSE=1

# This is the debhelper compatability version to use.
export DH_COMPAT=1

# This has to be exported to make some magic below work.
export DH_OPTIONS

# we need to know what pike are we using
PIKE=/usr/bin/pike7
PIKE_VERSION=$(shell $(PIKE) -e 'string v; int rel;sscanf(version(), "Pike v%s release %d", v, rel); write(v+"."+rel);')
CVS_SNAPSHOT=$(shell if test -f configure; then echo no; else echo yes; fi)

configure: configure-stamp
configure-stamp:
	dh_testdir
	# Add here commands to configure the package.
	echo "pike_ver=$(PIKE_VERSION)" > debian/substvars
	echo "/usr/lib/caudium/lib/$(PIKE_VERSION)" > debian/caudium-modules.dirs
	
	if test "$(CVS_SNAPSHOT)" = "yes"; then \
	    ./autogen.sh; \
	fi
	./configure --prefix=/usr --with-pike=$(PIKE)

	touch configure-stamp

build: configure-stamp build-stamp
build-stamp:
	dh_testdir

	# Add here commands to compile the package.
	$(MAKE)

	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp configure-stamp

	# Add here commands to clean up after the build process.
	-$(MAKE) clean

	dh_clean

install: DH_OPTIONS=
install: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs

	# Add here commands to install the package into debian/tmp.
	$(MAKE) install_alt prefix=/usr DESTDIR=`pwd`/debian/tmp
	mv -f `pwd`/debian/tmp/usr/lib/caudium/lib/$(PIKE_VERSION)/* \
	   `pwd`/debian/caudium-modules/usr/lib/caudium/lib/$(PIKE_VERSION)
	rm -rf `pwd`/debian/tmp/usr/lib/caudium/lib/$(PIKE_VERSION)/
	cp debian/localhost `pwd`/debian/tmp/etc/caudium/
	dh_movefiles

# Build architecture-independent files here.
# Pass -i to all debhelper commands in this target to reduce clutter.
#binary-indep: DH_OPTIONS=-i
binary-indep: build install

# Build architecture-dependent files here.
# Pass -a to all debhelper commands in this target to reduce clutter.
binary-arch: DH_OPTIONS=-a
binary-arch: build install
	# Need this version of debhelper for DH_OPTIONS to work.
	dh_testversion 1.1.17
	dh_testdir
	dh_testroot
	dh_installdebconf
	dh_installdocs
#	dh_installexamples
#	dh_installmenu
#	dh_installemacsen
#	dh_installpam
	dh_installinit
#	dh_installcron
#	dh_installmanpages
#	dh_installinfo
	dh_undocumented
	dh_installchangelogs
	dh_strip
	dh_link
	dh_compress
	dh_fixperms
	# You may want to make some executables suid here.
#	dh_suidregister
	dh_installdeb
#	dh_makeshlibs
#	dh_perl
	dh_shlibdeps
	dh_gencontrol -u"-Vpikever=$(PIKE_VERSION)"
	dh_md5sums
	dh_builddeb

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install
@


1.2
log
@some small Debian fixes
@
text
@d25 132
@


1.1
log
@Added Debian GNU/Linux package stuff
@
text
@d10 1
a10 1
# $Id$
d87 1
a87 1
#	dh_installdebconf
@

