Package: vmware-package
Version: 0.8
Severity: wishlist
Tags: patch

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

this patch introduces a --distribution option to set the distribution
name in the changelog file. I use it together with mini-dinstall
to install private packages in a local repository.

Regards,
  Bastian

- -- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.21treasure7 (PREEMPT)
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash

Versions of packages vmware-package depends on:
ii  debhelper                     5.0.52     helper programs for debian/rules
ii  dpkg-dev                      1.14.5     package building tools for Debian
ii  fakeroot                      1.7.1      Gives a fake root environment
ii  make                          3.81-3     The GNU version of the "make" util
ii  module-assistant              0.10.11    tool to make module package creati
ii  python                        2.4.4-6    An interactive high-level object-o

vmware-package recommends no packages.

- -- debconf-show failed

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGl9GMeBwlBDLsbz4RArvzAJ92MEympRQEO4JFa+wWAHIVjqth1QCgrKDb
fi5+5TUV0yHUpVO0nUC7Ka4=
=ip1l
-----END PGP SIGNATURE-----
diff -BurN vmware-package-0.8.orig/make-vmpkg vmware-package-0.8/make-vmpkg
--- vmware-package-0.8.orig/make-vmpkg	2007-07-13 21:18:12.019886048 +0200
+++ vmware-package-0.8/make-vmpkg	2007-07-13 21:18:20.019875174 +0200
@@ -136,6 +136,7 @@
     pkgver = opt.upstreamver + '.' + opt.localver
     pkgdir = '%s/vmware-%s' % (opt.builddir, opt.product)
     builddir = '%s/%s' % (pkgdir, pkgstring)
+    distribution = opt.distribution
     srcpkg = products[opt.product]['srcpkg']
     srcpkgdir = SHARE + '/' + srcpkg
 
@@ -157,6 +158,7 @@
         -e "[EMAIL PROTECTED]@%%%(pkgver)s%%g" \
         -e "[EMAIL PROTECTED]@%%%(maintainer)s%%g" \
         -e "[EMAIL PROTECTED]@%%`date -R`%%g" \
+        -e "[EMAIL PROTECTED]@%%%(distribution)s%%g" \
         `find %(builddir)s -type f`' % {
             'product': opt.product,
             'fname': fname,
@@ -164,6 +166,7 @@
             'upstreamver': opt.upstreamver,
             'maintainer': opt.maintainer,
             'builddir': builddir,
+            'distribution': distribution,
     }
 
     log('populating template values')
@@ -248,6 +251,10 @@
         default=False,
         help='refrain from deleting the source package directory')
 
+    parser.add_option('-D', '--distribution', dest='distribution',
+        default='UNRELEASED',
+        help='set distribution name')
+
     parser.add_option('-k', '--kernel', dest='kernel',
         action='store_true',
         default=False,
diff -BurN vmware-package-0.8.orig/make-vmpkg.1 vmware-package-0.8/make-vmpkg.1
--- vmware-package-0.8.orig/make-vmpkg.1	2007-07-13 21:18:12.019886048 +0200
+++ vmware-package-0.8/make-vmpkg.1	2007-07-13 21:20:17.519715479 +0200
@@ -46,6 +46,9 @@
 \fB\-d\fR, \fB\-\-nodelete\fR
 refrain from deleting the source package directory
 .TP
+\fB\-D\fR, \fB\-\-distribution\fR \fIname\fR
+Set the distribution name. Default name is \fBUNRELEASED\fP.
+.TP
 \fB\-k\fR, \fB\-\-kernel\fR
 build kernel modules (requires root privileges)
 .TP
diff -BurN vmware-package-0.8.orig/share/changelog vmware-package-0.8/share/changelog
--- vmware-package-0.8.orig/share/changelog	2007-07-13 21:18:12.019886048 +0200
+++ vmware-package-0.8/share/changelog	2007-07-13 21:18:32.019858862 +0200
@@ -1,4 +1,4 @@
[EMAIL PROTECTED]@ (@PACKAGE_VERSION@) UNRELEASED; urgency=low
[EMAIL PROTECTED]@ (@PACKAGE_VERSION@) @DISTRIBUTION@; urgency=low
 
   * Local package generated by make-vmpkg(1).
 

Reply via email to