summaryrefslogtreecommitdiffstats
path: root/Swift
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-06-18 13:38:52 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-06-18 15:57:23 (GMT)
commite45f1cc4ef85ea32b8307f25d22737906a87672c (patch)
tree957ce2f117db120c4345ff3ee6db9476b858f5e9 /Swift
parent94373e3eac30fe3c1ad5565f436fa3aad212a576 (diff)
downloadswift-e45f1cc4ef85ea32b8307f25d22737906a87672c.zip
swift-e45f1cc4ef85ea32b8307f25d22737906a87672c.tar.bz2
More Debian packaging tweaks.
Diffstat (limited to 'Swift')
-rw-r--r--Swift/Packaging/Debian/debian/changelog11
-rw-r--r--Swift/Packaging/Debian/debian/control.in4
-rwxr-xr-xSwift/Packaging/Debian/debian/rules17
-rwxr-xr-xSwift/Packaging/Debian/package.sh21
4 files changed, 30 insertions, 23 deletions
diff --git a/Swift/Packaging/Debian/debian/changelog b/Swift/Packaging/Debian/debian/changelog
index 9e81511..e69de29 100644
--- a/Swift/Packaging/Debian/debian/changelog
+++ b/Swift/Packaging/Debian/debian/changelog
@@ -1,11 +0,0 @@
-swift-im (1.0~beta2-1) unstable; urgency=low
-
- * Upstream release
-
- -- Swift Package Maintainer <packages@swift.im> Sat, 26 Sep 2009 11:08:32 +0200
-
-swift-im (1.0~beta1-1) unstable; urgency=low
-
- * Upstream release
-
- -- Swift Package Maintaner <packages@swift.im> Sat, 26 Sep 2009 11:08:32 +0200
diff --git a/Swift/Packaging/Debian/debian/control.in b/Swift/Packaging/Debian/debian/control.in
index 95bc159..24ef6d8 100644
--- a/Swift/Packaging/Debian/debian/control.in
+++ b/Swift/Packaging/Debian/debian/control.in
@@ -3,7 +3,9 @@ Section: net
Priority: optional
Maintainer: Swift Package Maintainer <packages@swift.im>
Build-Depends: debhelper (>= 7), scons (>= 1.2.0), libssl-dev (>= 0.9.8g), libqt4-dev (>= 4.5.0), libexpat1-dev (>= 2.0.1), lintian (>= 2.2.5), libxss-dev (>= 1.2.0), libboost-dev (>= 1.34.1), libboost-filesystem-dev (>= 1.34.1), libboost-program-options-dev (>= 1.34.1), libboost-regex-dev (>= 1.34.1), libboost-signals-dev (>= 1.34.1), libboost-system-dev (>= 1.34.1), libboost-thread-dev (>= 1.34.1), libboost-date-time-dev (>= 1.34.1), libidn11-dev (>= 1.10), docbook-xsl (>= 1.75.0), docbook-xml (>= 4.5), xsltproc, libxml2-utils
-Standards-Version: 3.8.4
+Standards-Version: 3.9.1
+Vcs-Git: git://swift.im/swift
+Vcs-Browser: http://swift.im/git/swift
Homepage: http://swift.im
Package: libswiften%SWIFTEN_SOVERSION%
diff --git a/Swift/Packaging/Debian/debian/rules b/Swift/Packaging/Debian/debian/rules
index 8069c33..4105fec 100755
--- a/Swift/Packaging/Debian/debian/rules
+++ b/Swift/Packaging/Debian/debian/rules
@@ -2,19 +2,26 @@
#export DH_VERBOSE=1
+SCONS_FLAGS=V=1 optimize=1 debug=1 allow_warnings=1 swiften_dll=1 qt=/usr/share/qt4 docbook_xsl=/usr/share/xml/docbook/stylesheet/docbook-xsl docbook_xml=/usr/share/xml/docbook/schema/dtd/4.5
+
+clean:
+ dh_testdir
+ dh_clean
+ scons $(SCONS_FLAGS) $(SCONS_EXTRA_FLAGS) SWIFT_INSTALLDIR=$(CURDIR)/debian/tmp/usr SWIFTEN_INSTALLDIR=$(CURDIR)/debian/tmp/usr -c
+ -rm -rf .scon*
+ -rm -rf config.log
+
configure:
build: configure
-
-clean:
+ dh_testdir
+ scons $(SCONS_FLAGS) $(SCONS_EXTRA_FLAGS) Swift Swiften
install: build
- dh_testdir
dh_testroot
dh_prep
dh_installdirs
- scons $(SCONS_FLAGS) optimize=1 debug=1 allow_warnings=1 swiften_dll=1 qt=/usr/share/qt4 docbook_xsl=/usr/share/xml/docbook/stylesheet/docbook-xsl docbook_xml=/usr/share/xml/docbook/schema/dtd/4.5 SWIFT_INSTALLDIR=$(CURDIR)/debian/tmp/usr SWIFTEN_INSTALLDIR=$(CURDIR)/debian/tmp/usr $(CURDIR)/debian/tmp
-
+ scons $(SCONS_FLAGS) $(SCONS_EXTRA_FLAGS) SWIFT_INSTALLDIR=$(CURDIR)/debian/tmp/usr SWIFTEN_INSTALLDIR=$(CURDIR)/debian/tmp/usr $(CURDIR)/debian/tmp
binary-indep: install
binary-arch: install
diff --git a/Swift/Packaging/Debian/package.sh b/Swift/Packaging/Debian/package.sh
index f9d809a..c395d25 100755
--- a/Swift/Packaging/Debian/package.sh
+++ b/Swift/Packaging/Debian/package.sh
@@ -21,21 +21,30 @@ rm -rf swift-im-*
echo "Checking out a fresh copy ..."
rm -rf $DIRNAME
git clone ../../../.git $DIRNAME
-find $DIRNAME/3rdParty/Boost/src -type f | grep -v uuid | xargs rm -f
-find $DIRNAME/3rdParty/SCons -delete
-find $DIRNAME/3rdParty/DocBook -delete
+
+# Clean out 3rdParty
+find $DIRNAME/3rdParty -type f | grep -v uuid | grep -v SConscript | xargs rm -f
+find $DIRNAME/3rdParty -depth -empty -type d -exec rmdir {} \;
+rm -rf $DIRNAME/3rdParty/SCons
+
+# Fork local Boost UUID copy
# FIXME: This shouldn't be necessary, but SCons isn't picking up the generated headers for compilation
mkdir -p $DIRNAME/3rdParty/Boost/uuid/boost
cp -r $DIRNAME/3rdParty/Boost/src/boost/uuid $DIRNAME/3rdParty/Boost/uuid/boost
+# Create orig tarball for debuild
+tar czf swift-im_$DEBIAN_VERSION.orig.tar.gz --exclude=$DIRNAME/.git $DIRNAME
+
+# Initialize debian files
ln -s Swift/Packaging/Debian/debian $DIRNAME/debian
../../../BuildTools/UpdateDebianChangelog.py $DIRNAME/debian/changelog $DEBIAN_VERSION
cat $DIRNAME/debian/control.in | sed -e "s/%SWIFTEN_SOVERSION%/$SWIFTEN_SOVERSION/g" > $DIRNAME/debian/control
mv $DIRNAME/debian/libswiften.install $DIRNAME/debian/libswiften$SWIFTEN_SOVERSION.install
mv $DIRNAME/debian/libswiften-dev.install $DIRNAME/debian/libswiften$SWIFTEN_SOVERSION-dev.install
-echo "Building ..."
+# Build
cd $DIRNAME
set +e
-dpkg-buildpackage -S -rfakeroot -i -I
-dpkg-buildpackage -b -rfakeroot -i -I
+debuild -i -I
+#dpkg-buildpackage -S -rfakeroot -i -I
+#dpkg-buildpackage -b -rfakeroot -i -I