Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id B395DB5DC68 for ; Tue, 25 Oct 2011 03:44:49 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 94938-09 for ; Tue, 25 Oct 2011 06:44:43 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from mail-yw0-f46.google.com (mail-yw0-f46.google.com [209.85.213.46]) by mail.postgresql.org (Postfix) with ESMTP id 397FDB5DC67 for ; Tue, 25 Oct 2011 03:44:41 -0300 (ADT) Received: by ywm3 with SMTP id 3so194765ywm.19 for ; Mon, 24 Oct 2011 23:44:41 -0700 (PDT) Received: by 10.150.1.7 with SMTP id 7mr24758177yba.34.1319525079615; Mon, 24 Oct 2011 23:44:39 -0700 (PDT) Received: from ?IPv6:2001:44b8:6109:9f00:2a0:c9ff:fe6e:ed8f? (2001-44b8-6109-9f00-02a0-c9ff-fe6e-ed8f.static.ipv6.internode.on.net. [2001:44b8:6109:9f00:2a0:c9ff:fe6e:ed8f]) by mx.google.com with ESMTPS id z15sm17546003anl.15.2011.10.24.23.44.37 (version=SSLv3 cipher=OTHER); Mon, 24 Oct 2011 23:44:38 -0700 (PDT) Message-ID: <4EA65ACC.8020401@ringerc.id.au> Date: Tue, 25 Oct 2011 14:44:28 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.15) Gecko/20110307 Thunderbird/3.1.9 MIME-Version: 1.0 To: =?x-gbk?Q?=B7=C9=BB=FA?= <754178173@qq.com> CC: pgsql-general Subject: Re: References: In-Reply-To: Content-Type: text/plain; charset=x-gbk Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201110/903 X-Sequence-Number: 181375 On 25/10/11 14:17, ·É»ú wrote: > Hi,friends. > Please tell me how to build a debian package in detail,I would like > to build a debian package for postgreSQL. Why? To get a good answer, you will need to explain more about what you are trying to achieve and why you want it. There are already Debian packages for PostgreSQL. What is wrong with them? Do you want to build a package of a newer PostgreSQL for an older version of Debian/Ubuntu? If so, check backports.org before trying to build your own. If there isn't a backport to the version you want, I recommend that you get the source to the latest package for the latest debian release and backport that yourself rather than trying to make a new package from scratch. Do you actually want to *compile* an existing Debian package of PostgreSQL from source into a binary .deb? If so, use dpkg-build . -- Craig Ringer