[Pkg-voip-commits] r3399 - libccscript3/trunk/debian

Mark Purcell msp at alioth.debian.org
Thu Apr 12 19:42:17 UTC 2007


Author: msp
Date: 2007-04-12 19:42:17 +0000 (Thu, 12 Apr 2007)
New Revision: 3399

Modified:
   libccscript3/trunk/debian/changelog
   libccscript3/trunk/debian/control
   libccscript3/trunk/debian/rules
Log:
* Switch to cdbs

Modified: libccscript3/trunk/debian/changelog
===================================================================
--- libccscript3/trunk/debian/changelog	2007-04-12 19:32:33 UTC (rev 3398)
+++ libccscript3/trunk/debian/changelog	2007-04-12 19:42:17 UTC (rev 3399)
@@ -1,8 +1,9 @@
 libccscript3 (1.1.6-2) UNRELEASED; urgency=low
 
   * NOT RELEASED YET
+  * Switch to cdbs
 
- -- Mark Purcell <msp at debian.org>  Thu, 12 Apr 2007 20:32:24 +0100
+ -- Mark Purcell <msp at debian.org>  Thu, 12 Apr 2007 20:41:06 +0100
 
 libccscript3 (1.1.6-1) unstable; urgency=low
 

Modified: libccscript3/trunk/debian/control
===================================================================
--- libccscript3/trunk/debian/control	2007-04-12 19:32:33 UTC (rev 3398)
+++ libccscript3/trunk/debian/control	2007-04-12 19:42:17 UTC (rev 3399)
@@ -1,7 +1,7 @@
 Source: libccscript3
 Priority: optional
 Maintainer: Mark Purcell <msp at debian.org>
-Build-Depends: debhelper (>= 4.0.0), autotools-dev, libcommoncpp2-dev (>= 1.3.10-4), pkg-config, doxygen, unixodbc-dev
+Build-Depends: debhelper (>= 4.0.0), autotools-dev, libcommoncpp2-dev (>= 1.3.10-4), pkg-config, doxygen, unixodbc-dev, cdbs
 Standards-Version: 3.6.1
 Section: libs
 

Modified: libccscript3/trunk/debian/rules
===================================================================
--- libccscript3/trunk/debian/rules	2007-04-12 19:32:33 UTC (rev 3398)
+++ libccscript3/trunk/debian/rules	2007-04-12 19:42:17 UTC (rev 3399)
@@ -1,109 +1,23 @@
 #!/usr/bin/make -f
-# -*- makefile -*-
-# Sample debian/rules that uses debhelper.
-# This file was originally written by Joey Hess and Craig Small.
-# As a special exception, when this file is copied by dh-make into a
-# dh-make output file, you may use that output file without restriction.
-# This special exception was added by Craig Small in version 0.37 of dh-make.
+DEBVERSION:=$(shell head -n 1 debian/changelog \
+		    | sed -e 's/^[^(]*(\([^)]*\)).*/\1/')
+UPVERSION:=$(shell echo $(DEBVERSION) | sed -e 's/^.*://' -e 's/-[0-9.]*$$//' -e 's/.dfsg$$//')
 
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
+FILENAME := libccscript3_$(UPVERSION).orig.tar.gz
+URL := http://ftp.gnu.org/pub/gnu/commoncpp/ccscript3-$(UPVERSION).tar.gz
 
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/autotools.mk
 
-# These are used for cross-compiling and for saving the configure script
-# from having to guess our platform (since we know it already)
-DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
-DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+DEB_DH_INSTALL_ARGS := --sourcedir=debian/tmp
 
+print-version:
+	@@echo "Debian version:          $(DEBVERSION)"
+	@@echo "Upstream version:        $(UPVERSION)"
 
-CFLAGS = -Wall -g
+get-orig-source:
+	@@dh_testdir
+	@@[ -d ../tarballs/. ]||mkdir -p ../tarballs
+	@@echo Downloading $(FILENAME) from $(URL) ...
+	@@wget -N -nv -T10 -t3 -O ../tarballs/$(FILENAME) $(URL)
 
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
-	CFLAGS += -O0
-else
-	CFLAGS += -O2
-endif
-
-# 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)}'`
-
-config.status: configure
-	dh_testdir
-	# Add here commands to configure the package.
-	CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
-
-
-build: build-stamp
-build-stamp:  config.status
-	dh_testdir
-
-	# Add here commands to compile the package.
-	$(MAKE)
-
-	touch build-stamp
-
-clean:
-	dh_testdir
-	dh_testroot
-	rm -f build-stamp 
-
-	# Add here commands to clean up after the build process.
-	-$(MAKE) distclean
-
-	# Makefile doesn't clean the following:
-	
-	rm -fR modules/odbc.dso
-	
-ifneq "$(wildcard /usr/share/misc/autoconf/config.sub)" ""
-	cp -f /usr/share/misc/config.sub config.sub
-endif
-ifneq "$(wildcard /usr/share/misc/autoconf/config.guess)" ""
-	cp -f /usr/share/misc/config.guess config.guess
-endif
-
-
-	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 DESTDIR=$(CURDIR)/debian/tmp
-	cp optional/odbc/odbc.dso debian/tmp/usr/lib/ccscript3-1.0
-
-
-# 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_installchangelogs ChangeLog
-	dh_installdocs
-	dh_installexamples
-	dh_install --sourcedir=debian/tmp
-	dh_installman
-	dh_link
-	dh_strip
-	dh_compress
-	dh_fixperms
-	dh_makeshlibs
-	dh_installdeb
-	dh_shlibdeps -L libccscript3-1.0-1 -l debian/tmp/usr/lib
-	dh_gencontrol
-	dh_md5sums
-	dh_builddeb
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install 




More information about the Pkg-voip-commits mailing list