On Mon, 27 Jan 2014 09:33:55 +0100 Francesco Paolo Lovergine 
<[email protected]> wrote:
> Package: manpages-posix
> Version: 2.16-1
> Severity: wishlist

I wrote script to help package update. This makes manpages-posix-2.17
with patched debian/ for 2.17.

Please update this package.

#!/bin/sh

NEW=man-pages-posix-2013-a
NEW_TAR=$NEW.tar.xz
OLD_VER=2.16
OLD_DEB=manpages-posix-$OLD_VER
NEW_DEB=manpages-posix-2.17

# get new version
wget https://www.kernel.org/pub/linux/docs/man-pages/man-pages-posix/$NEW_TAR

# get original package
apt-get source manpages-posix

# prepare new package
tar xf $NEW_TAR
mv $NEW $NEW_DEB

# copy debian/
cp -a $OLD_DEB/debian $NEW_DEB
# remove original package
rm -rf $OLD_DEB* manpages-posix_$OLD_VER*

cd $NEW_DEB
# make .orig.tar.xz
echo s | dh_make -f ../$NEW_TAR
# modify for 2.17
cat <<'EOF' |  patch -p1
diff -urNp a/debian/changelog b/debian/changelog
--- a/debian/changelog	2005-12-13 19:56:41.000000000 +0900
+++ b/debian/changelog	2015-11-10 22:49:01.907770018 +0900
@@ -1,3 +1,9 @@
+manpages-posix (2.17-1) unstable; urgency=medium
+
+  * New upstream release. (IEEE Std 1003.1, 2013 Edition)
+
+ -- Francesco Paolo Lovergine <[email protected]>  Tue, 10 Nov 2015 13:07:09 +0100
+
 manpages-posix (2.16-1) unstable; urgency=low
 
   * Alligned to linux main manpages edition.
diff -urNp a/debian/clean b/debian/clean
--- a/debian/clean	1970-01-01 09:00:00.000000000 +0900
+++ b/debian/clean	2015-11-10 22:36:58.065770242 +0900
@@ -0,0 +1,4 @@
+*~
+*.orig
+#*
+debian/*~
diff -urNp a/debian/compat b/debian/compat
--- a/debian/compat	1970-01-01 09:00:00.000000000 +0900
+++ b/debian/compat	2015-11-10 21:19:29.114402873 +0900
@@ -0,0 +1 @@
+9
diff -urNp a/debian/control b/debian/control
--- a/debian/control	2005-12-13 20:00:05.000000000 +0900
+++ b/debian/control	2015-11-10 22:31:33.781326635 +0900
@@ -2,8 +2,8 @@ Source: manpages-posix
 Section: non-free/doc
 Priority: optional
 Maintainer: Francesco Paolo Lovergine <[email protected]>
-Standards-Version: 3.6.2
-Build-Depends-Indep: debhelper (>= 4.0.0)
+Build-Depends: debhelper (>= 9)
+Standards-Version: 3.9.6
 
 Package: manpages-posix
 Architecture: all
diff -urNp a/debian/copyright b/debian/copyright
--- a/debian/copyright	2004-08-21 23:18:51.000000000 +0900
+++ b/debian/copyright	2015-11-10 21:09:38.306383201 +0900
@@ -2,7 +2,7 @@ This package was debianized by Francesco
 Sat, 21 Aug 2004 15:41:06 +0100. Packaged based partially on manpages in
 main section.
 
-It was downloaded from ftp://ftp.win.tue.nl/pub/linux-local/manpages
+It was downloaded from https://www.kernel.org/pub/linux/docs/man-pages/man-pages-posix/
 
 Authors: The Institute of Electrical and Electronics Engineers (IEEE) and
          The Open Group
@@ -19,20 +19,20 @@ In the following statement, the phrase `
 portions of the system documentation.
 
 Portions of this text are reprinted and reproduced in electronic form
-in the linux-manpages package, from IEEE Std 1003.1 (TM), 2003 Edition,
-Standard for Information Technology -- Portable Operating System
-Interface (POSIX (R)), The Open Group Base Specifications Issue 6,
-Copyright (C) 2001-2003 by the Institute of Electrical and Electronics
-Engineers, Inc and The Open Group.  In the event of any discrepancy
-between these versions and the original IEEE and The Open Group
-Standard, the original IEEE and The Open Group Standard is the referee
-document.  The original Standard can be obtained online at
-http://www.opengroup.org/unix/online.html .
+from IEEE Std 1003.1, 2013 Edition, Standard for Information Technology
+-- Portable Operating System Interface (POSIX), The Open Group Base
+Specifications Issue 7, Copyright (C) 2013 by the Institute of Electri-
+cal and Electronics Engineers, Inc and The Open Group.  (This is
+POSIX.1-2008 with the 2013 Technical Corrigendum 1 applied.) In the
+event of any discrepancy between this version and the original IEEE and
+The Open Group Standard, the original IEEE and The Open Group Standard
+is the referee document.  The original Standard can be obtained online
+at http://www.unix.org/online.html .
 
 This notice shall appear on any product containing this material.
 
 Redistribution of this material is permitted so long as this notice and
 the corresponding notices within each POSIX manual page are retained on
-any distribution, and the nroff source is included.  Modifications to
+any distribution, and the nroff source is included. Modifications to
 the text are permitted so long as any conflicts with the standard
 are clearly marked as such in the text.
diff -urNp a/debian/inst b/debian/inst
--- a/debian/inst	2004-08-23 06:08:14.000000000 +0900
+++ b/debian/inst	2015-11-10 21:08:25.349392461 +0900
@@ -39,5 +39,3 @@ for i in man[013]p; do
 	gzip -9 debian/$p/usr/share/man/man$d/*.?posix
 	echo
 done
-
-
diff -urNp a/debian/readme b/debian/readme
--- a/debian/readme	2004-08-21 21:51:28.000000000 +0900
+++ b/debian/readme	2015-11-10 21:09:19.586128995 +0900
@@ -1,6 +1,6 @@
 Andries copies some new files to this location, so it should be
 checked frequently:
 
-	ftp://ftp.win.tue.nl/pub/home/aeb/linux-local/manpages/
+	https://www.kernel.org/pub/linux/docs/man-pages/man-pages-posix/
 
 This is an internal reminder.
diff -urNp a/debian/rules b/debian/rules
--- a/debian/rules	2004-08-27 17:46:51.000000000 +0900
+++ b/debian/rules	2015-11-10 21:32:42.949169977 +0900
@@ -1,7 +1,5 @@
 #! /usr/bin/make -f
 
-export DH_COMPAT=2
-
 PKGNAME=manpages-posix
 
 build:
@@ -11,9 +9,8 @@ build:
 clean:
 	dh_testdir
 	dh_testroot
-	rm -f build-stamp install-stamp
-	-rm -rf *~ *.orig "#*" debian/$(PKGNAME) debian/$(PKGNAME)-dev debian/*~ debian/files*
-	-find man? -name '*~' -exec rm {} \;
+	-rm -rf debian/$(PKGNAME) debian/$(PKGNAME)-dev
+	-find man?p -name '*~' -exec rm {} \;
 	dh_clean
 
 binary-arch: build
diff -urNp a/debian/source/format b/debian/source/format
--- a/debian/source/format	1970-01-01 09:00:00.000000000 +0900
+++ b/debian/source/format	2015-11-10 22:40:07.280386219 +0900
@@ -0,0 +1 @@
+3.0 (quilt)
diff -urNp a/debian/watch b/debian/watch
--- a/debian/watch	1970-01-01 09:00:00.000000000 +0900
+++ b/debian/watch	2015-11-10 22:01:55.289029232 +0900
@@ -0,0 +1,2 @@
+version=3
+https://www.kernel.org/pub/linux/docs/man-pages/man-pages-posix/man-pages-posix-(\d+)-a\.tar\.xz
EOF
-- 
OGAWA Hirofumi <[email protected]>

Reply via email to