Thread: Debian package patch

Debian package patch

From
Raphaël Enrici
Date:
It is better with the file attached :)

Cheers,

Raphaël


Dear all,

Debian packages for beta 1 are currently building, I will surely upload
them this morning.

Can one of you apply this patch until the next release ? This patch
fixes files in pkg/debian :
- fixes debian versioning scheme
- fixes debian package section : databases (does not exist in debian) ->
misc (section where other postgresql things can be found)
- new "features" in make-deb to make my job easier for next releases :)

Thanks,

Raphaël
diff -ru pgadmin3-0.9.0.orig/pkg/debian/changelog pgadmin3-0.9.0/pkg/debian/changelog
--- pgadmin3-0.9.0.orig/pkg/debian/changelog    Sat Jul 12 21:02:59 2003
+++ pgadmin3-0.9.0/pkg/debian/changelog    Thu Aug  7 01:48:35 2003
@@ -1,3 +1,10 @@
+pgadmin3 (0.9.0-0.0) unstable; urgency=low
+
+  * First beta release of pgAdmin3
+  * Fixed Debian package version scheme
+
+ -- Raphael Enrici <pgadmin-hackers@postgresql.org>  Mon, 30 Jun 2003 23:25:38 +0200
+
 pgadmin3 (0.1.1-20030701.0) unstable; urgency=low

   * Corrected maintainer name / email so it points to pgadmin-hackers@postgresql.org
diff -ru pgadmin3-0.9.0.orig/pkg/debian/control pgadmin3-0.9.0/pkg/debian/control
--- pgadmin3-0.9.0.orig/pkg/debian/control    Sat Jul 12 21:02:59 2003
+++ pgadmin3-0.9.0/pkg/debian/control    Thu Aug  7 02:28:55 2003
@@ -1,5 +1,5 @@
 Source: pgadmin3
-Section: databases
+Section: misc
 Priority: optional
 Maintainer: pgAdmin project <pgadmin-hackers@postgresql.org>
 Build-Depends: debhelper (>> 3.0.0), postgresql-dev, pgadmin3-libwxgtk2ud2.5-dev (>= 2.5.0-20030707.1),
pgadmin3-libwxgtk2ud2.5-contrib(>= 2.5.0-20030707.1) 
diff -ru pgadmin3-0.9.0.orig/pkg/debian/make-deb pgadmin3-0.9.0/pkg/debian/make-deb
--- pgadmin3-0.9.0.orig/pkg/debian/make-deb    Sun Jul 20 18:54:56 2003
+++ pgadmin3-0.9.0/pkg/debian/make-deb    Thu Aug  7 02:28:45 2003
@@ -12,7 +12,18 @@
 #
 # Raphael Enrici - <pgadmin-hackers@postgresql.org> - 20030720
 #
+#( Personal Changelog:
+#    20030807:
+#      - Added better handling of package version to create
+#      - Fixed debian package version scheme
+#)

+# These to environment variables can be set before
+# calling make-deb
+DCH_RELEASE=${DCH_RELEASE:-"0.0.1+makedeb"}
+DCH_COMMENT=${DCH_COMMENT:-"make-deb release"}
+
+#
 HERE=`pwd`
 TAR=tar
 usage() {
@@ -46,7 +57,10 @@
 done

 (cd pkg; $TAR cf - debian ) | tar xpf -
+rm debian/make-deb
 chmod 755 debian/rules
+pgadmin3vers=`basename $HERE | awk -F- '{print $2}'`
 set -x
 touch TODO.txt
-dpkg-buildpackage ${IGNOREDEP} -b -rfakeroot
\ No newline at end of file
+dch --newversion $pgadmin3vers-$DCH_RELEASE $DCH_COMMENT || exit 1
+dpkg-buildpackage ${IGNOREDEP} -b -rfakeroot

Re: Debian package patch

From
"Dave Page"
Date:
Thanks, applied.

Regards, Dave.

> -----Original Message-----
> From: Raphaël Enrici [mailto:blacknoz@club-internet.fr]
> Sent: 07 August 2003 02:35
> To: Dave Page; Andreas Pflug; jm.poure@freesurf.fr
> Cc: pgadmin-hackers@postgresql.org
> Subject: Debian package patch
>
>
> It is better with the file attached :)
>
> Cheers,
>
> Raphaël
>
>
> Dear all,
>
> Debian packages for beta 1 are currently building, I will
> surely upload
> them this morning.
>
> Can one of you apply this patch until the next release ? This patch
> fixes files in pkg/debian :
> - fixes debian versioning scheme
> - fixes debian package section : databases (does not exist in
> debian) ->
> misc (section where other postgresql things can be found)
> - new "features" in make-deb to make my job easier for next
> releases :)
>
> Thanks,
>
> Raphaël
>