]> git.proxmox.com Git - pve-docs.git/commitdiff
simplify package build system (single debian dir)
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 25 May 2016 05:24:28 +0000 (07:24 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 25 May 2016 05:25:05 +0000 (07:25 +0200)
13 files changed:
Makefile
debian/changelog
debian/control
debian/pve-doc-generator.docs [new file with mode: 0644]
debian/pve-doc-generator.install [new file with mode: 0644]
debian/pve-docs.docs [new file with mode: 0644]
debian/pve-docs.install [new file with mode: 0644]
doc-debian/changelog [deleted file]
doc-debian/compat [deleted file]
doc-debian/control [deleted file]
doc-debian/copyright [deleted file]
doc-debian/install [deleted file]
doc-debian/rules [deleted file]

index 340eba482ffc20e5176ea1133101a57f9841f051..206a29e432223155cdc9dc40ff8957a1af55d1b9 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -6,14 +6,12 @@ GEN_PACKAGE=pve-doc-generator
 DOC_PACKAGE=pve-docs
 
 # also update debian/changelog
-GEN_PKGREL=3
-# also update doc-debian/changelog
-DOC_PKGREL=4
+PKGREL=5
 
 GITVERSION:=$(shell cat .git/refs/heads/master)
 
-GEN_DEB=${GEN_PACKAGE}_${DOCRELEASE}-${GEN_PKGREL}_amd64.deb
-DOC_DEB=${DOC_PACKAGE}_${DOCRELEASE}-${DOC_PKGREL}_all.deb
+GEN_DEB=${GEN_PACKAGE}_${DOCRELEASE}-${PKGREL}_amd64.deb
+DOC_DEB=${DOC_PACKAGE}_${DOCRELEASE}-${PKGREL}_all.deb
 
 CHAPTER_LIST=          \
        sysadmin        \
@@ -229,33 +227,28 @@ deb:
        make ${GEN_DEB};
        make ${DOC_DEB};
 
-${DOC_DEB}: index.html ${INDEX_INCLUDES} ${WIKI_IMPORTS} ${API_VIEWER_SOURCES}
+${GEN_DEB} ${DOC_DEB}: index.html ${INDEX_INCLUDES} ${WIKI_IMPORTS} ${API_VIEWER_SOURCES} ${GEN_DEB_SOURCES}
        rm -rf build
        mkdir build
-       rsync -a doc-debian/ build/debian
+       rsync -a debian/ build/debian
+       echo "git clone git://git.proxmox.com/git/pve-docs.git\\ngit checkout ${GITVERSION}" > build/debian/SOURCE
+       # install files for pve-doc-generator package
+       mkdir -p build/usr/share/${GEN_PACKAGE}
+       mkdir -p build/usr/share/doc/${GEN_PACKAGE}
+       install -m 0644 ${GEN_DEB_SOURCES} build/usr/share/${GEN_PACKAGE}
+       install -m 0755 ${GEN_SCRIPTS} build/usr/share/${GEN_PACKAGE}
+       # install files for pvedocs package
        mkdir -p build/usr/share/${DOC_PACKAGE}
        mkdir -p build/usr/share/doc/${DOC_PACKAGE}
-       echo "git clone git://git.proxmox.com/git/pve-docs.git\\ngit checkout ${GITVERSION}" > build/usr/share/doc/${DOC_PACKAGE}/SOURCE
-       # install doc files
        install -m 0644 index.html ${INDEX_INCLUDES} build/usr/share/${DOC_PACKAGE}
        install -m 0644 ${WIKI_IMPORTS} build/usr/share/${DOC_PACKAGE}
        # install api doc viewer
        mkdir build/usr/share/${DOC_PACKAGE}/api-viewer
        install -m 0644 ${API_VIEWER_SOURCES} build/usr/share/${DOC_PACKAGE}/api-viewer
-       cd build; dpkg-buildpackage -rfakeroot -b -us -uc
-       lintian ${DOC_DEB}
-
-${GEN_DEB}: ${GEN_DEB_SOURCES}
-       rm -rf build
-       mkdir build
-       rsync -a debian/ build/debian
-       mkdir -p build/usr/share/${GEN_PACKAGE}
-       mkdir -p build/usr/share/doc/${GEN_PACKAGE}
-       echo "git clone git://git.proxmox.com/git/pve-docs.git\\ngit checkout ${GITVERSION}" > build/usr/share/doc/${GEN_PACKAGE}/SOURCE
-       install -m 0644 ${GEN_DEB_SOURCES} build/usr/share/${GEN_PACKAGE}
-       install -m 0755 ${GEN_SCRIPTS} build/usr/share/${GEN_PACKAGE}
+       # build debain package
        cd build; dpkg-buildpackage -rfakeroot -b -us -uc
        lintian ${GEN_DEB}
+       lintian ${DOC_DEB}
 
 .PHONY: upload
 upload: ${GEN_DEB} ${DOC_DEB}
index fdf8e91a38bb47f9ba7ae49be0526815debd0a83..04d38499cde9757c55238e084d546e874e75ff20 100644 (file)
@@ -1,4 +1,12 @@
-pve-doc-generator (4.2-3) unstable; urgency=medium
+pve-docs (4.2-5) unstable; urgency=medium
+
+  * fix package build system (single debian dir)
+
+  * cleanup pve-docs package - only include documentation files
+
+ -- Proxmox Support Team <support@proxmox.com>  Wed, 25 May 2016 07:17:03 +0200
+
+pve-docs (4.2-3) unstable; urgency=medium
 
   * update generated docs
 
@@ -6,19 +14,19 @@ pve-doc-generator (4.2-3) unstable; urgency=medium
 
  -- Proxmox Support Team <support@proxmox.com>  Thu, 19 May 2016 17:31:19 +0200
 
-pve-doc-generator (4.2-2) unstable; urgency=medium
+pve-docs (4.2-2) unstable; urgency=medium
 
   * update generated docs
 
  -- Proxmox Support Team <support@proxmox.com>  Wed, 11 May 2016 11:12:03 +0200
 
-pve-doc-generator (4.2-1) unstable; urgency=medium
+pve-docs (4.2-1) unstable; urgency=medium
 
   * set RELEASE to 4.2
 
  -- Proxmox Support Team <support@proxmox.com>  Fri, 29 Apr 2016 09:26:04 +0200
 
-pve-doc-generator (4.1-1) unstable; urgency=medium
+pve-docs (4.1-1) unstable; urgency=medium
 
   * first release
 
index c6ea871cdf3e3c60bd115b00ac426a4e6fe6c37d..9dd72d2c662eb238d08b7288608ba108936092ef 100644 (file)
@@ -1,16 +1,21 @@
-Source: pve-doc-generator
+Source: pve-docs
 Section: perl
 Priority: extra
 Maintainer: Proxmox Support Team <support@proxmox.com>
-Build-Depends: debhelper (>= 7.0.50~), lintian
+Build-Depends: debhelper (>= 7.0.50~), lintian, asciidoc, xmlto
 Standards-Version: 3.8.4
 
 Package: pve-doc-generator
 Section: perl
-Priority: optional
 Architecture: any
 Depends: ${perl:Depends}, libpve-common-perl, asciidoc, xmlto
 Description: Proxmox VE Documentation helpers
  Tool to auto-generate various Proxmox VE Documentation files and
  manual pages. This package is required to build most other Proxmox VE
  packages.
+
+Package: pve-docs
+Section: doc
+Architecture: all
+Description: Proxmox VE Documentation
+ This package contains the Proxmox VE Documentation files.
diff --git a/debian/pve-doc-generator.docs b/debian/pve-doc-generator.docs
new file mode 100644 (file)
index 0000000..8696672
--- /dev/null
@@ -0,0 +1 @@
+debian/SOURCE
diff --git a/debian/pve-doc-generator.install b/debian/pve-doc-generator.install
new file mode 100644 (file)
index 0000000..63d9daf
--- /dev/null
@@ -0,0 +1 @@
+/usr/share/pve-doc-generator
diff --git a/debian/pve-docs.docs b/debian/pve-docs.docs
new file mode 100644 (file)
index 0000000..8696672
--- /dev/null
@@ -0,0 +1 @@
+debian/SOURCE
diff --git a/debian/pve-docs.install b/debian/pve-docs.install
new file mode 100644 (file)
index 0000000..c82df20
--- /dev/null
@@ -0,0 +1 @@
+/usr/share/pve-docs
diff --git a/doc-debian/changelog b/doc-debian/changelog
deleted file mode 100644 (file)
index 9cc4bff..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-pve-docs (4.2-4) unstable; urgency=medium
-
-  * update generated docs
-
-  * include options into pct and qm manual page
-
- -- Proxmox Support Team <support@proxmox.com>  Thu, 19 May 2016 17:32:33 +0200
-
-pve-docs (4.2-3) unstable; urgency=medium
-
-  * update generated docs
-
- -- Proxmox Support Team <support@proxmox.com>  Wed, 11 May 2016 11:14:03 +0200
-
-pve-docs (4.2-2) unstable; urgency=medium
-
-  * add api-viewer
-
- -- Proxmox Support Team <support@proxmox.com>  Fri, 29 Apr 2016 14:36:23 +0200
-
-pve-docs (4.2-1) unstable; urgency=medium
-
-  * first release
-
- -- Proxmox Support Team <support@proxmox.com>  Fri, 29 Apr 2016 10:01:01 +0200
-
diff --git a/doc-debian/compat b/doc-debian/compat
deleted file mode 100644 (file)
index ec63514..0000000
+++ /dev/null
@@ -1 +0,0 @@
-9
diff --git a/doc-debian/control b/doc-debian/control
deleted file mode 100644 (file)
index 6cb1c8c..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-Source: pve-docs
-Section: doc
-Priority: extra
-Maintainer: Proxmox Support Team <support@proxmox.com>
-Build-Depends: debhelper (>= 7.0.50~), lintian, asciidoc, xmlto
-Standards-Version: 3.8.4
-
-Package: pve-docs
-Architecture: all
-Depends: ${misc:Depends}
-Suggests: apache2
-Description: Proxmox VE Documentation
- This package contains the Proxmox VE Documentation files, and apache2
- configuration files to serve them.
diff --git a/doc-debian/copyright b/doc-debian/copyright
deleted file mode 100644 (file)
index 1b44193..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-Coryright for files in debian/*: 
-
-    Copyright (C) 2016 Proxmox Server Solutions GmbH
-
-    This software is written by Proxmox Server Solutions GmbH
-    <support@proxmox.com>
-
-    This program is free software: you can redistribute it and/or
-    modify it under the terms of the GNU Affero General Public License
-    as published by the Free Software Foundation, either version 3 of
-    the License, or (at your option) any later version.
-
-    This program is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-    Affero General Public License for more details.
-
-    You should have received a copy of the GNU Affero General Public
-    License along with this program.  If not, see
-    <http://www.gnu.org/licenses/>.
-
-
-All documentation files (*.adoc, *.html, *.pdf) are release under:
-
-    Copyright (C) 2016 Proxmox Server Solutions GmbH
-
-    Permission is granted to copy, distribute and/or modify this document
-    under the terms of the GNU Free Documentation License, Version 1.3
-    or any later version published by the Free Software Foundation;
-    with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
-    A copy of the license is included in the section entitled "GNU
-    Free Documentation License".
-
-    You can find a copy of the license in /usr/share/common-licenses/GFDL.
\ No newline at end of file
diff --git a/doc-debian/install b/doc-debian/install
deleted file mode 100644 (file)
index 1412e51..0000000
+++ /dev/null
@@ -1 +0,0 @@
-/usr/share/
diff --git a/doc-debian/rules b/doc-debian/rules
deleted file mode 100755 (executable)
index 736b14e..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/usr/bin/make -f
-
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
-
-%:
-       dh $@