Permalink
Browse files

modification for Debian 5 (Lenny)

  • Loading branch information...
1 parent 2f35142 commit a9fe88069fc8a28fdbbf734b3ccf73975e857c62 @kzk kzk committed Apr 18, 2012
Showing with 39 additions and 5 deletions.
  1. +1 −1 configure.in
  2. +2 −1 debian/control
  3. +8 −3 debian/rules
  4. +28 −0 make-deb5.sh
View
@@ -50,7 +50,7 @@ if test ! -d deps/ruby; then
mv deps/ruby-extract/* deps/ruby
fi
-cd deps/ruby && ./configure "--prefix=$ruby_prefix" \
+cd deps/ruby && sed -i -e 's/check: test test-all/check:/' common.mk && ./configure "--prefix=$ruby_prefix" \
--disable-install-doc \
--with-out-ext=dbm \
--with-out-ext=fiddle \
View
@@ -3,7 +3,8 @@ Section: Network
Priority: optional
Maintainer: Kazuki Ohta <k@treasure-data.com>
Build-Depends:
- debhelper (>= 7.0.50~),
+ debhelper (>= 7.0.15~),
+ dh-make,
sudo,
autoconf,
automake,
View
@@ -5,14 +5,19 @@
# 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.
-ifeq ($(shell dpkg-vendor --derives-from Ubuntu && echo yes), yes)
- SUBSTVARS = -Vdist:Depends="libyaml-0-2"
+ifeq ( $(shell [ -e /etc/dpkg/origins/default ]; printf $$?), 0)
+ ifeq ($(shell dpkg-vendor --derives-from Ubuntu && echo yes), yes)
+ SUBSTVARS = -Vdist:Depends="libyaml-0-2"
+ else
+ SUBSTVARS = -Vdist:Depends="libyaml-0-2"
+ endif
else
SUBSTVARS = -Vdist:Depends="libyaml-0-1"
endif
# Uncomment this to turn on verbose mode.
-# export DH_VERBOSE=1
+export DH_VERBOSE=1
+
# This has to be exported to make some magic below work.
export DH_OPTIONS
View
@@ -0,0 +1,28 @@
+#!/bin/bash
+version=`cat VERSION`
+password=`cat PASSWORD`
+dst=td-agent-$version
+rev=`cat REVISION`
+
+rm -fR fluentd
+git clone git://github.com/fluent/fluentd.git
+cd fluentd
+git checkout $rev
+cd ..
+rm -fR $dst*
+rm -fR td-agent_$version*
+rm -fR *.dsc
+cp -r fluentd $dst
+cp -r debian $dst
+cp td-agent.conf $dst
+cp td-agent.prelink.conf $dst
+cp Makefile.am $dst
+cp autogen.sh $dst
+cp configure.in $dst
+tar czf $dst.tar.gz $dst
+
+pushd $dst
+yes | dh_make -e k@treasure-data.com --single -f ../$dst.tar.gz
+./autogen.sh
+dpkg-buildpackage -rfakeroot -us -uc -b
+popd

0 comments on commit a9fe880

Please sign in to comment.