head	1.2;
access;
symbols
	pjones-sparse-experiment:1.2.0.2
	librsync-0_9_7:1.2
	rpm-4_3_1-start:1.1.1.1
	rpm-4_3:1.1.1.1.0.2
	postmerge-librsync-20021113:1.1.1.1
	premerge-librsync-20021113:1.1.1.1
	librsync-20021113:1.1.1.1
	librsync:1.1.1;
locks; strict;
comment	@# @;


1.2
date	2004.12.11.11.15.05;	author jbj;	state Exp;
branches;
next	1.1;

1.1
date	2002.11.13.20.08.53;	author jbj;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2002.11.13.20.08.53;	author jbj;	state Exp;
branches;
next	;


desc
@@


1.2
log
@Update to librsync-0.9.7.
@
text
@#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.

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

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

# shared library versions, option 1
version=2.0.5
major=2
# option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so
#version=`ls src/.libs/lib*.so.* | \
# awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
#major=`ls src/.libs/lib*.so.* | \
# awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`

configure: configure-stamp
configure-stamp:
	dh_testdir
	# Add here commands to configure the package.
	./configure --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --enable-shared

	touch configure-stamp

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

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

	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) distclean

	dh_clean

install: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs

	# Add here commands to install the package into debian/tmp
	$(MAKE) install prefix=$(CURDIR)/debian/tmp/usr
	-mkdir debian/tmp/usr/bin
	cp .libs/rdiff debian/tmp/usr/bin

# Build architecture-independent files here.
binary-indep: build install
# We have nothing to do by default.

# Build architecture-dependent files here.
binary-arch: build install
	dh_testdir
	dh_testroot
	dh_movefiles

#	dh_installdebconf	
	dh_installdocs
	dh_installexamples
	dh_installmenu
#	dh_installlogrotate
#	dh_installemacsen
#	dh_installpam
#	dh_installmime
#	dh_installinit
	dh_installcron
	dh_installman
	dh_installinfo
#	dh_undocumented
	dh_installchangelogs NEWS
	dh_link
	dh_strip
	dh_compress
	dh_fixperms
	dh_makeshlibs
	dh_installdeb
#	dh_perl
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

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


1.1
log
@Initial revision
@
text
@d2 2
a3 2
# Made with the aid of debmake, by Christoph Lameter,
# based on the sample debian/rules file for GNU hello by Ian Jackson.
d5 2
a6 1
package=librsync
d8 2
a9 2
version=$(shell expr `pwd` : '.*-\([0-9.]*\)')
version_major=$(shell expr `pwd` : '.*-\([0-9]*\).[0-9.]*')
d11 25
a35 21
build:
	$(checkdir)
	./configure --prefix=/usr

	-mkdir shared static
	#
	# First build the shared library
	#
	cd shared ; \
	    $(MAKE) -f ../Makefile VPATH=".." srcdir=".." \
	        CFLAGS="-O2 -fPIC -pipe" ; \
	    gcc -shared -Wl,-soname,$(package).so.$(version_major) -o $(package).so.$(version) `ls *.o`
	#
	# Build the static library (it does not need Position Independent Code,
	# which reserves one register; thus, without -fPIC we get more efficient
	# code).
	#
	cd static ; \
	     $(MAKE) -f ../Makefile VPATH=".." srcdir=".." \
	          CFLAGS="-O2 -pipe" LDFLAGS="-s" progs
	touch build
d38 5
a42 3
	$(checkdir)
	-rm -rf static shared
	-rm -f build
a43 31
	-rm -f `find . -name "*~"`
	-rm -rf debian/tmp `find debian/* -type d ! -name CVS` debian/files* core
	-rm -f debian/*substvars

binary-indep: checkroot build
	$(checkdir)
# There are no architecture-independent files to be uploaded
# generated by this package.  If there were any they would be
# made here.

binary-arch: checkroot build
	$(checkdir)
	-rm -rf debian/tmp `find debian/* -type d`
	install -d debian/tmp
	cd debian/tmp && install -d `cat ../dirs`
	install -m644 static/$(package).a debian/tmp/usr/lib/
	install -m644 static/gdbm.h dbm.h ndbm.h debian/tmp/usr/include/
	install -m644 gdbm.3 debian/tmp/usr/share/man/man3/gdbm.3gdbm

	install -m644 shared/$(package).so.$(version) debian/tmp/usr/lib

	$(MAKE) install prefix=`pwd`/debian/tmp/usr
	debstd -m ChangeLog NEWS README README.CVS TODO changes.test  changes.input: 01.in 02.in 03.in 04.in changes.input 
	dpkg-gencontrol -isp -plibrsync1-dev
	chown -R root.root debian/tmp
	chmod -R go=rX debian/tmp
	dpkg --build debian/tmp ..

define checkdir
	test -f debian/rules
endef
d45 1
a45 1
binary: binary-indep binary-arch
d47 46
a92 3
checkroot:
	$(checkdir)
	test root = "`whoami`"
d94 2
a95 1
.PHONY: binary binary-arch binary-indep clean checkroot
@


1.1.1.1
log
@track: auto import
@
text
@@
