[pkg-nvidia-devel] r859 - in /packages/nvidia-graphics-drivers/trunk/debian: README.source changelog rules
rra at users.alioth.debian.org
rra at users.alioth.debian.org
Sat May 8 03:43:43 UTC 2010
Author: rra
Date: Sat May 8 03:43:40 2010
New Revision: 859
URL: http://svn.debian.org/wsvn/pkg-nvidia/?sc=1&rev=859
Log:
Add get-orig-source target
[ Andreas Beckmann ]
* debian/rules, debian/README.source: add new target get-orig-source and
simplify instructions for tarball creation:
uscan --report && dch -v <version> && debian/rules get-orig-source
Modified:
packages/nvidia-graphics-drivers/trunk/debian/README.source
packages/nvidia-graphics-drivers/trunk/debian/changelog
packages/nvidia-graphics-drivers/trunk/debian/rules
Modified: packages/nvidia-graphics-drivers/trunk/debian/README.source
URL: http://svn.debian.org/wsvn/pkg-nvidia/packages/nvidia-graphics-drivers/trunk/debian/README.source?rev=859&op=diff
==============================================================================
--- packages/nvidia-graphics-drivers/trunk/debian/README.source (original)
+++ packages/nvidia-graphics-drivers/trunk/debian/README.source Sat May 8 03:43:40 2010
@@ -1,27 +1,41 @@
Importing a New Upstream Release
The *.orig.tar.gz file for nvidia-graphics-drivers contains just a
- directory named nvidia-graphics-drivers-<version>.orig containing the
+ directory named nvidia-graphics-drivers-<version> containing the
upstream pkg0.run file for i386 and the pkg2.run file for amd64.
+ (Only the .pkg2.run file includes the ia32 libraries.)
Everything else comes from the Subversion repository for the package.
Use the following steps to update to a new upstream release:
- * Download the pkg0.run file for i386 and the pkg2.run file for amd64
- from upstream. The pkg2.run file has the ia32 libraries in it.
- uscan can be used to download the two files.
+ * Check for a new version
- * mkdir nvidia-graphics-drivers-190.53.orig and place package files in
- that directory. Make them executable. Then, create the orig
- tarball with:
+ uscan --report
- tar czvf nvidia-graphics-drivers_190.53.orig.tar.gz
+ * Create a changelog entry for the new version
+
+ debchange --newversion <version>
+
+ * Download the driver archives and create a new .orig.tar.gz
+
+ debian/rules get-orig-source
+
+ Alternatively do it manually:
+ - Download the pkg0.run file for i386 and the pkg2.run file for
+ amd64 from upstream.
+ - mkdir nvidia-graphics-drivers-<version> and place package files
+ in that directory. Make them executable. Then, create the orig
+ tarball with:
+ tar czvf nvidia-graphics-drivers_<version>.orig.tar.gz
* Edit debian/rules.defs in the Debian package and change
NVIDIA_RELEASE to the appropriate value.
* Edit debian/module/conftest.h if necessary for kernel compatibility
and test.
+
+ * Add the new *.orig.tar.gz to the tarballs directory in the svn
+ repository: svn://svn.debian.org/svn/pkg-nvidia/tarballs
Building and Uploading
Modified: packages/nvidia-graphics-drivers/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-nvidia/packages/nvidia-graphics-drivers/trunk/debian/changelog?rev=859&op=diff
==============================================================================
--- packages/nvidia-graphics-drivers/trunk/debian/changelog (original)
+++ packages/nvidia-graphics-drivers/trunk/debian/changelog Sat May 8 03:43:40 2010
@@ -101,6 +101,9 @@
packages built from nvidia-kernel-source
* replace shell script debian/upstream_info with makefile fragment
debian/rules.defs
+ * debian/rules, debian/README.source: add new target get-orig-source and
+ simplify instructions for tarball creation:
+ uscan --report && dch -v <version> && debian/rules get-orig-source
-- Russ Allbery <rra at debian.org> Sat, 24 Apr 2010 20:35:20 -0700
Modified: packages/nvidia-graphics-drivers/trunk/debian/rules
URL: http://svn.debian.org/wsvn/pkg-nvidia/packages/nvidia-graphics-drivers/trunk/debian/rules?rev=859&op=diff
==============================================================================
--- packages/nvidia-graphics-drivers/trunk/debian/rules (original)
+++ packages/nvidia-graphics-drivers/trunk/debian/rules Sat May 8 03:43:40 2010
@@ -140,3 +140,18 @@
debian/libcuda1-ia32.symbols: debian/libcuda1.symbols
sed 's/libcuda1/libcuda1-ia32/g' $< > $@
+
+.PHONY: get-orig-source
+get-orig-source:
+ rm -rf get-orig-source || true
+ mkdir get-orig-source
+ uscan --no-symlink --download-current-version --destdir get-orig-source
+ @set -e -x ; \
+ cd get-orig-source ; \
+ newversion=$$(ls *-x86-*.run | sed -e 's/.*-\([0-9.]*\)-.*/\1/') ; \
+ mkdir nvidia-graphics-drivers-$$newversion ; \
+ mv *.run nvidia-graphics-drivers-$$newversion/ ; \
+ chmod 0755 nvidia-graphics-drivers-$$newversion/* ; \
+ tar cfvz ../../nvidia-graphics-drivers_$$newversion.orig.tar.gz --owner=root --group=src nvidia-graphics-drivers-$$newversion
+ rm -rf get-orig-source || true
+
More information about the Pkg-nvidia-devel
mailing list