head	1.30;
access;
symbols;
locks; strict;
comment	@# @;


1.30
date	2006.10.16.11.41.21;	author grendel;	state Exp;
branches;
next	1.29;

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

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

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

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

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

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

1.23
date	2003.05.25.21.40.43;	author grendel;	state Exp;
branches;
next	1.22;

1.22
date	2003.05.25.01.33.00;	author grendel;	state Exp;
branches;
next	1.21;

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

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

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

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

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

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

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

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

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

1.12
date	2002.10.11.22.24.33;	author grendel;	state Exp;
branches;
next	1.11;

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

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

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

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

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

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

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

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

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

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

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


desc
@@


1.30
log
@new upload
@
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.

# Uncomment this to turn on verbose mode. 
#export DH_VERBOSE=1

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

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

PIKE=/usr/bin/pike$(PVER)
PIKE76=/usr/bin/pike7.6
PIKE_CHANGELOG=/usr/share/doc/pike$(PVER)/changelog.Debian.gz
PIKE_VERSION=$(shell $(PIKE) -e 'string v; int rel;sscanf(version(), "Pike v%s release %d", v, rel); write(v+"."+rel);')
PIKE_VERSION76=$(shell $(PIKE76) -e 'string v; int rel;sscanf(version(), "Pike v%s release %d", v, rel); write(v+"."+rel);')
CVS_SNAPSHOT=$(shell if test -x configure; then echo no; else echo yes; fi)
PIKE_DEBIAN_VER=$(shell gunzip -c $(PIKE_CHANGELOG) | head -1 | sed -e 's/\(.*(\)\(.*\)\().*\)/\2/')

CFLAGS=-O2 -fPIC
# Temporary workaround for hppa linker issues
ifeq ($(DEB_BUILD_ARCH),hppa)
CFLAGS+=-ffunction-sections
endif
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
	CFLAGS += -g
endif
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
	INSTALL_PROGRAM += -s
endif

export CFLAGS PVER

configure: configure-stamp-76

configure-stamp-76:
	$(MAKE) -fdebian/rules PVER=7.6 do-configure-common
	touch $@@

apply-patches:
	if [ ! -f patched-stamp ]; then \
	  for f in $(CURDIR)/debian/patches/*.diff; do \
	      patch -p1 -f --no-backup-if-mismatch -d $(CURDIR) < $$f ; \
	  done ; \
	fi
	touch patched-stamp

unapply-patches:
	-if [ -f patched-stamp ]; then \
	    for f in $(CURDIR)/debian/patches/*.diff; do \
		patch -R -p1 -f --no-backup-if-mismatch -d $(CURDIR) < $$f ; \
	    done ; \
	    rm -f patched-stamp ; \
	fi

do-configure-common:
	dh_testdir	
	# Add here commands to configure the package.
	if test "$(CVS_SNAPSHOT)" = "yes"; then \
	    ./autogen.sh; \
	fi
	./configure --prefix=/usr \
	             --with-pike=$(PIKE) \
		     --without-_esmtp \
		     --without-_FDF \
		     --without-PDF \
		     --without-_BerkeleyDB \
		     --without-Newt \
		     --without-gpgme \
		     --without-mnoGo \
		     --without-OpenSSL \
		     --without-OpenLDAP \
		     --without-_XML \
		     --without-mcast \
		     --without-Mailstore \
		     --without-FNV \
		     --without-ferite \
		     --without-AVS \
		     --with-GeoIP \
		     --with-bzip2

build: apply-patches build-stamp-76

build-stamp-76: configure-stamp-76
	$(MAKE) -fdebian/rules PVER=7.6 do-build
	$(MAKE) -fdebian/rules PVER=7.6 inter-install
	$(MAKE) -fdebian/rules PVER=7.6 inter-clean
	touch $@@

do-build:
	dh_testdir
	# Add here commands to compile the package.
	$(MAKE)

	touch build-stamp

inter-clean:
	-$(MAKE) spotless
	-rm -f src/PCRE/pcrelib/dftables
	-rm -f `find -name ".cvsignore" -type f -print`
	-rm -rf `find -name "CVS" -type d -print`
	-rm -f smartlink statuslock
	dh_clean

clean: unapply-patches inter-clean
	dh_testdir
	rm -f build-stamp-76 configure-stamp-76 patched-stamp
	rm -f configure config.h.in config.log configure.ac
	rm -rf debian/pike7.6 debian/pike

inter-install:
	dh_testdir
	dh_clean -k
	dh_installdirs -A
	install -d -m 755 $(CURDIR)/debian/pike/usr/lib/pike/$(PIKE_VERSION)/lib/modules
	$(MAKE) install DESTDIR=$(CURDIR)/debian/pike/
	install -d -m 755 $(CURDIR)/debian/pike/usr/lib/pike/$(PIKE_VERSION)/lib/modules/Newt.pmod/
	cp -pr pmod/Newt.pmod/* $(CURDIR)/debian/pike/usr/lib/pike/$(PIKE_VERSION)/lib/modules/Newt.pmod/

install: DH_OPTIONS=
install: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs -A
	dh_movefiles --sourcedir=debian/pike/

# 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
	# Need this version of debhelper for DH_OPTIONS to work.
#	dh_testversion 1.1.17
#	dh_testdir 
#	dh_testroot 
#	dh_installdebconf
#	dh_installdocs 
#	dh_installmenu
#	dh_installemacsen
#	dh_installpam
#	dh_installinit
#	dh_installcron
#	dh_installmanpages
#	dh_installinfo
#	dh_undocumented
#	dh_installchangelogs 
#	dh_link
#	dh_compress
#	dh_fixperms 
#	# You may want to make some executables suid here.
#	dh_suidregister
#	dh_installdeb
#	dh_perl
#	dh_gencontrol -u"-Vpikever=$(PIKE_DEBIAN_VER)"
#	dh_md5sums 
#	dh_builddeb 

# 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_installmenu
#	dh_installemacsen
#	dh_installpam
#	dh_installinit
#	dh_installcron
#	dh_installmanpages
#	dh_installinfo
#	dh_undocumented
	dh_installexamples
	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 -- -Vpikever76=$(PIKE_VERSION76)
	dh_md5sums
	dh_builddeb

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


1.29
log
@debian cleanup stuff
@
text
@d194 1
a194 1
	dh_gencontrol -Vpikever76=$(PIKE_VERSION76)"
@


1.28
log
@little fuckups fixed
@
text
@a18 2
PIKE72=/usr/bin/pike7.2
PIKE74=/usr/bin/pike7.4
a21 2
PIKE_VERSION72=$(shell $(PIKE72) -e 'string v; int rel;sscanf(version(), "Pike v%s release %d", v, rel); write(v+"."+rel);')
PIKE_VERSION74=$(shell $(PIKE74) -e 'string v; int rel;sscanf(version(), "Pike v%s release %d", v, rel); write(v+"."+rel);')
d40 1
a40 9
configure: configure-stamp-72 configure-stamp-74 configure-stamp-76

configure-stamp-72:
	$(MAKE) -fdebian/rules PVER=7.2 do-configure-common
	touch $@@

configure-stamp-74:
	$(MAKE) -fdebian/rules PVER=7.4 do-configure-common
	touch $@@
d88 1
a88 13
build: apply-patches build-stamp-72 build-stamp-74 build-stamp-76

build-stamp-72: configure-stamp-72
	$(MAKE) -fdebian/rules PVER=7.2 do-build
	$(MAKE) -fdebian/rules PVER=7.2 inter-install
	$(MAKE) -fdebian/rules PVER=7.2 inter-clean
	touch $@@

build-stamp-74: configure-stamp-74
	$(MAKE) -fdebian/rules PVER=7.4 do-build
	$(MAKE) -fdebian/rules PVER=7.4 inter-install
	$(MAKE) -fdebian/rules PVER=7.4 inter-clean
	touch $@@
d113 1
a113 2
	rm -f build-stamp-72 configure-stamp-72 build-stamp-74 configure-stamp-74 \
	      build-stamp-76 configure-stamp-76 patched-stamp
d115 1
a115 1
	rm -rf debian/pike7.2 debian/pike7.4 debian/pike7.6 debian/pike
d194 1
a194 1
	dh_gencontrol -u"-Vpikever72=$(PIKE_VERSION72) -Vpikever74=$(PIKE_VERSION74) -Vpikever76=$(PIKE_VERSION76)"
@


1.27
log
@Added compilation of the Pike 7.6 packages
@
text
@d219 1
a219 1
	dh_gencontrol -u"-Vpikever72=$(PIKE_VERSION72) -Vpikever74=$(PIKE_VERSION74)" -Vpikever76=$(PIKE_VERSION76)"
@


1.26
log
@more changes
@
text
@d21 1
d26 1
d44 1
a44 1
configure: configure-stamp-72 configure-stamp-74
d54 4
d100 1
a100 1
build: apply-patches build-stamp-72 build-stamp-74
d114 6
d137 2
a138 1
	rm -f build-stamp-72 configure-stamp-72 build-stamp-74 configure-stamp-74 patched-stamp
d140 1
a140 1
	rm -rf debian/pike7.2 debian/pike7.4 debian/pike
d219 1
a219 1
	dh_gencontrol -u"-Vpikever72=$(PIKE_VERSION72) -Vpikever74=$(PIKE_VERSION74)"
@


1.25
log
@details
@
text
@d135 2
a136 2
	install -d -m 755 $(CURDIR)/debian/pike$(PVER)-pexts-newt/usr/lib/pike/$(PIKE_VERSION)/lib/modules/Newt.pmod/
	cp -pr pmod/Newt.pmod/* $(CURDIR)/debian/pike$(PVER)-pexts-newt/usr/lib/pike/$(PIKE_VERSION)/lib/modules/Newt.pmod/
@


1.24
log
@that f*ng thing finally compiles as it should on debian
@
text
@d135 2
a136 2
	install -d -m 755 $(CURDIR)/debian/pike$(PVER)-pexts-newt/usr/lib/pike/$(PIKE_VERSION)/lib/modules/
	cp -pr pmod/Newt.pmod/ $(CURDIR)/debian/pike$(PVER)-pexts-newt/usr/lib/pike/$(PIKE_VERSION)/lib/modules/
d194 1
@


1.23
log
@fixed the compile, finally
@
text
@d19 2
d23 2
d42 1
a42 1
configure: apply-patches configure-stamp-72 configure-stamp-74
d45 1
a45 1
	$(MAKE) -fdebian/rules PVER=7.2 do-configure
d49 1
a49 1
	$(MAKE) -fdebian/rules PVER=7.4 do-configure
d53 5
a57 3
	for f in $(CURDIR)/debian/patches/*.diff; do \
	    patch -p1 -f --no-backup-if-mismatch -d $(CURDIR) < $$f ; \
	done
d68 1
a68 1
do-configure:
d91 2
a92 1
		     --with-GeoIP
d94 1
a94 1
build: build-stamp-72 build-stamp-74
a116 1
	-$(MAKE) -C src/PCRE/pcrelib/ clean
d125 1
a125 1
	rm -f build-stamp-72 configure-stamp-72 build-stamp-74 configure-stamp-74 patch-stamp
d127 1
a127 1
	rm -rf debian/pike7.2 debian/pike7.4
d133 2
a134 2
	install -d -m 755 $(CURDIR)/debian/pike$(PVER)/usr/lib/pike/$(PIKE_VERSION)/lib/modules
	$(MAKE) install DESTDIR=$(CURDIR)/debian/pike$(PVER)/
d144 1
a144 2
	dh_movefiles --sourcedir=debian/pike7.2/
	dh_movefiles --sourcedir=debian/pike7.4/
d205 1
a205 1
	dh_gencontrol -u"-Vpikever=$(PIKE_VERSION)"
@


1.22
log
@more fixes
@
text
@d38 1
a38 1
configure: configure-stamp-72 configure-stamp-74
d40 1
a40 1
configure-stamp-72: apply-patches
d44 1
a44 1
configure-stamp-7.4: apply-patches
d108 1
a108 1
inter-clean: unapply-patches
d117 1
a117 1
clean: inter-clean
a118 1
	dh_testroot
d121 1
a124 1
	dh_testroot
d127 1
a127 1
	install -d -m 755 $(CURDIR)/debian/pike$(PVER)/usr/lib/pike$(PVER)/$(PIKE_VERSION)/modules
d129 2
a130 2
	install -d -m 755 $(CURDIR)/debian/pike$(PVER)-pexts-newt/usr/lib/pike$(PVER)/$(PIKE_VERSION)/modules/
	cp -pr pmod/Newt.pmod/ $(CURDIR)/debian/pike$(PVER)-pexts-newt/usr/lib/pike$(PVER)/$(PIKE_VERSION)/modules/
d138 2
a139 2
	dh_movefiles --sourcedir=$(CURDIR)/debian/pike7.2/
	dh_movefiles --sourcedir=$(CURDIR)/debian/pike7.4/
@


1.21
log
@some more forgotten stuff
@
text
@d68 1
a68 1
	 ./configure --prefix=/usr \
d121 1
@


1.20
log
@forgot those "details"
@
text
@d78 1
d81 4
@


1.19
log
@more changes
@
text
@d38 1
a38 4
configure: configure-stamp-7 configure-stamp-72 configure-stamp-74
configure-stamp-7: apply-patches
	$(MAKE) -fdebian/rules PVER=7 do-configure
	touch $@@
d80 1
a80 1
		     --without-GeoIP
d82 1
a82 6
build: build-stamp-7 build-stamp-72 build-stamp-74
build-stamp-7: configure-stamp-7
	$(MAKE) -fdebian/rules PVER=7 do-build
	$(MAKE) -fdebian/rules PVER=7 inter-install
	$(MAKE) -fdebian/rules PVER=7 inter-clean
	touch $@@
d115 1
a115 1
	rm -f build-stamp-7 configure-stamp-7 build-stamp-72 configure-stamp-72 build-stamp-74 configure-stamp-74 patch-stamp
a132 1
	dh_movefiles --sourcedir=$(CURDIR)/debian/pike7/
@


1.18
log
@more
@
text
@d38 2
a39 2
configure: apply-patches configure-stamp-7 configure-stamp-72 configure-stamp-74
configure-stamp-7:
d43 1
a43 1
configure-stamp-72:
d47 1
a47 1
configure-stamp-7.4:
d111 1
a111 1
inter-clean:
d120 1
a120 1
clean: inter-clean unapply-patches
@


1.17
log
@more changes
@
text
@d36 1
a36 1
export CFLAGS
d129 5
a133 5
	dh_installdirs
	install -d -m 755 `pwd`/debian/pike$(PVER)/usr/lib/pike$(PVER)/$(PIKE_VERSION)/modules
	$(MAKE) install DESTDIR=`pwd`/debian/pike$(PVER)/
	install -d -m 755 `pwd`/debian/pike$(PVER)-pexts-newt/usr/lib/pike$(PVER)/$(PIKE_VERSION)/modules/
	cp -pr pmod/Newt.pmod/ `pwd`/debian/pike$(PVER)-pexts-newt/usr/lib/pike$(PVER)/$(PIKE_VERSION)/modules/
d140 4
a143 2
	dh_installdirs
	dh_movefiles
@


1.16
log
@further improvements of the debian build process
@
text
@d130 4
a133 4
	install -d -m 755 `pwd`/debian/tmp/usr/lib/pike$(PVER)/$(PIKE_VERSION)/modules
	$(MAKE) install DESTDIR=`pwd`/debian/tmp/
	install -d -m 755 `pwd`/debian/pexts-newt/usr/lib/pike$(PVER)/$(PIKE_VERSION)/modules/
	cp -pr pmod/Newt.pmod/ `pwd`/debian/pexts-newt/usr/lib/pike$(PVER)/$(PIKE_VERSION)/modules/
@


1.15
log
@one more little thing
@
text
@d88 2
a89 1
	$(MAKE) -fdebian/rules inter-clean
d94 2
a95 1
	$(MAKE) -fdebian/rules inter-clean
d100 2
a101 1
	$(MAKE) -fdebian/rules inter-clean
d125 1
a125 2
install: DH_OPTIONS=
install: build
a129 2

	# Add here commands to install the package into debian/tmp.
d134 7
@


1.14
log
@a few more changes
@
text
@d29 7
@


1.13
log
@first steps to repackage pexts to work with all versions of pike in Debian.
TBC.
@
text
@d31 1
a31 1
configure: configure-stamp-7 configure-stamp-72 configure-stamp-74
d44 14
d110 1
a110 1
clean: inter-clean
d113 1
a113 1
	rm -f build-stamp-7 configure-stamp-7 build-stamp-72 configure-stamp-72 build-stamp-74 configure-stamp-74
a126 1
	
a138 1
	dh_installexamples -ppexts-newt
a168 1
#	dh_installexamples
@


1.12
log
@bump
@
text
@d13 1
a13 1
export DH_COMPAT=2
d18 2
a19 2
PIKE7_CHANGELOG=/usr/share/doc/pike7/changelog.Debian.gz
PIKE=/usr/bin/pike7
d21 2
a22 2
CVS_SNAPSHOT=$(shell if test -f configure; then echo no; else echo yes; fi)
PIKE_DEBIAN_VER=$(shell gunzip -c $(PIKE7_CHANGELOG) | head -1 | sed -e 's/\(.*(\)\(.*\)\().*\)/\2/')
d31 15
a45 3
configure: configure-stamp
configure-stamp:
	dh_testdir
d51 28
a78 13
	                       --with-pike=$(PIKE) \
			       --without-_esmtp \
			       --without-_FDF \
			       --without-PDF \
			       --without-_BerkeleyDB \
			       --without-Newt \
			       --without-gpgme \
			       --without-mnoGo \
			       --without-OpenSSL \
			       --without-_XML \
			       --without-mcast

	touch configure-stamp
d80 1
a80 2
build: configure-stamp build-stamp
build-stamp:
a81 1

d87 1
a87 5
clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp configure-stamp
	# Add here commands to clean up after the build process.
d96 5
d109 1
a109 1
	install -d -m 755 `pwd`/debian/tmp/usr/lib/pike7/$(PIKE_VERSION)/modules
d111 2
a112 2
	install -d -m 755 `pwd`/debian/pexts-newt/usr/lib/pike7/$(PIKE_VERSION)/modules/
	cp -pr pmod/Newt.pmod/ `pwd`/debian/pexts-newt/usr/lib/pike7/$(PIKE_VERSION)/modules/
@


1.11
log
@-fPIC is needed
@
text
@d48 2
a49 1
			       --without-_XML
@


1.10
log
@that too...
@
text
@d24 1
a24 1
CFLAGS=-O2
d46 3
a48 1
			       --without-mnoGo
@


1.9
log
@stuff, part 2
@
text
@d44 3
a46 1
			       --without-Newt
@


1.8
log
@more debian cleanup
@
text
@d24 7
d38 1
a38 1
	CFLAGS=-O2 ./configure --prefix=/usr \
@


1.7
log
@some changes
@
text
@d35 3
a37 1
			       --without-PDF
d114 1
a114 1
	dh_testversion 1.1.17
@


1.6
log
@more debian changes
@
text
@d32 4
a35 1
	                       --with-pike=$(PIKE)
@


1.5
log
@slight modification
@
text
@d134 1
a134 1
	dh_gencontrol -u"-Vpikever=$(PIKE_DEBIAN_VER)"
@


1.4
log
@not needed
@
text
@d53 3
d68 3
a70 1

@


1.3
log
@cleaning up PCRE
@
text
@d78 1
a78 1
#	dh_installexamples
@


1.2
log
@Changes for pike7 in Debian
@
text
@d51 2
a52 1

@


1.1
log
@Debianized the package.
@
text
@d18 2
a19 2
PIKE7_CHANGELOG=/usr/share/doc/pike7-cvs/changelog.Debian.gz
PIKE=/usr/bin/pike7-cvs
d62 1
a62 1
	install -d -m 755 `pwd`/debian/tmp/usr/lib/pike7-cvs/$(PIKE_VERSION)/modules
@

