From d833485ea9dd6c097c599933db79f8b3005e7c64 Mon Sep 17 00:00:00 2001 From: Lakshmipathi Date: Wed, 24 Aug 2011 16:48:07 +0530 Subject: Added debian packaging script --- packaging/deb_script/deb_build.sh | 104 ++++++++++++++++++++++++++++++++++ packaging/deb_script/files/control | 19 +++++++ packaging/deb_script/files/control_ib | 19 +++++++ packaging/deb_script/files/postinst | 42 ++++++++++++++ packaging/deb_script/files/rules | 13 +++++ 5 files changed, 197 insertions(+) create mode 100644 packaging/deb_script/deb_build.sh create mode 100644 packaging/deb_script/files/control create mode 100644 packaging/deb_script/files/control_ib create mode 100644 packaging/deb_script/files/postinst create mode 100755 packaging/deb_script/files/rules (limited to 'packaging/deb_script') diff --git a/packaging/deb_script/deb_build.sh b/packaging/deb_script/deb_build.sh new file mode 100644 index 0000000..3fe533d --- /dev/null +++ b/packaging/deb_script/deb_build.sh @@ -0,0 +1,104 @@ +#!/bin/bash +set -x +VERSION=$1 +BUILD_ROOT=`pwd` + +function download_src(){ +#download the package +wget http://bits.gluster.com//pub/gluster/glusterfs/src/glusterfs-$VERSION.tar.gz +} + +function make_orig() +{ +#cp as orig. +cp glusterfs-$VERSION.tar.gz glusterfs-$VERSION.orig.tar.gz +cp glusterfs-$VERSION.tar.gz glusterfs_$VERSION.orig.tar.gz +} + +function file_untar() +{ +#untar +tar -zxvf glusterfs-$VERSION.tar.gz +} + +function create_debian_dir() +{ +cd glusterfs-$VERSION +#dh_make +dh_make< +Build-Depends: debhelper (>= 7), autotools-dev +Standards-Version: 3.8.3 +Homepage: http://www.gluster.com + +Package: glusterfs +Architecture: amd64 +Depends: ${shlibs:Depends}, ${misc:Depends},nfs-common +Description: clustered file-system + GlusterFS is a clustered file-system capable of scaling to several + peta-bytes. It aggregates various storage bricks over Infiniband RDMA + or TCP/IP interconnect into one large parallel network file + system. GlusterFS is one of the most sophisticated file system in + terms of features and extensibility. It borrows a powerful concept + called Translators from GNU Hurd kernel. Much of the code in GlusterFS + is in userspace and easily manageable. diff --git a/packaging/deb_script/files/control_ib b/packaging/deb_script/files/control_ib new file mode 100644 index 0000000..5729bf7 --- /dev/null +++ b/packaging/deb_script/files/control_ib @@ -0,0 +1,19 @@ +Source: glusterfs +Section: admin +Priority: extra +Maintainer: lakshmipathi +Build-Depends: debhelper (>= 7), autotools-dev +Standards-Version: 3.8.3 +Homepage: http://www.gluster.com + +Package: glusterfs +Architecture: amd64 +Depends: ${shlibs:Depends}, ${misc:Depends},nfs-common,libibverbs-dev, libibverbs1 +Description: clustered file-system + GlusterFS is a clustered file-system capable of scaling to several + peta-bytes. It aggregates various storage bricks over Infiniband RDMA + or TCP/IP interconnect into one large parallel network file + system. GlusterFS is one of the most sophisticated file system in + terms of features and extensibility. It borrows a powerful concept + called Translators from GNU Hurd kernel. Much of the code in GlusterFS + is in userspace and easily manageable. diff --git a/packaging/deb_script/files/postinst b/packaging/deb_script/files/postinst new file mode 100644 index 0000000..15c0913 --- /dev/null +++ b/packaging/deb_script/files/postinst @@ -0,0 +1,42 @@ +#!/bin/sh +# postinst script for glusterfs +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-remove' +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + configure) + mkdir -p /usr/local/libexec/glusterfs/ + rm -rf /usr/local/libexec/glusterfs/gsyncd + ln -s /usr/lib/glusterfs/glusterfs/gsyncd /usr/local/libexec/glusterfs/gsyncd + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 diff --git a/packaging/deb_script/files/rules b/packaging/deb_script/files/rules new file mode 100755 index 0000000..917d9bf --- /dev/null +++ b/packaging/deb_script/files/rules @@ -0,0 +1,13 @@ +#!/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. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +%: + dh $@ -- cgit